From bb3beb413416686863a5de3b85f5eb4f48f13eab Mon Sep 17 00:00:00 2001 From: RPodshyvalova Date: Thu, 9 Feb 2017 20:50:24 +0200 Subject: [PATCH 1/7] homework_10 --- .../quickstart/.gitignore | 10 + .../angular-test-project/quickstart/LICENSE | 20 +- .../angular-test-project/quickstart/README.md | 187 ------------------ .../quickstart/package.json | 2 +- .../quickstart/src/app/app.component.css | 22 +++ .../quickstart/src/app/app.component.html | 37 +--- .../quickstart/src/app/app.component.ts | 44 +++-- .../src/app/app.hero-detail.component.css | 22 +++ .../src/app/app.hero-detail.component.html | 17 ++ .../src/app/app.hero-detail.component.ts | 12 ++ .../src/app/app.hero-edit.component.css | 12 ++ .../src/app/app.hero-edit.component.html | 24 +++ .../src/app/app.hero-edit.component.ts | 18 ++ .../quickstart/src/app/app.hero.ts | 6 + .../quickstart/src/app/app.module.ts | 4 +- 15 files changed, 181 insertions(+), 256 deletions(-) create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/.gitignore create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.css create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.html create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.ts create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.css create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.html create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.ts create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero.ts diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/.gitignore b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/.gitignore new file mode 100644 index 00000000..262060d3 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/.gitignore @@ -0,0 +1,10 @@ +node_modules +jspm_packages +npm-debug.log +debug.log +src/**/*.js +*.js.map +e2e/**/*.js +e2e/**/*.js.map +_test-output +_temp diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/LICENSE b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/LICENSE index 51b127e8..d70ee108 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/LICENSE +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/LICENSE @@ -1,21 +1,3 @@ The MIT License -Copyright (c) 2014-2016 Google, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +Copyright (c) 2017 RPodshyvalova \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/README.md b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/README.md index a5e4eff0..e69de29b 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/README.md +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/README.md @@ -1,187 +0,0 @@ -# Angular QuickStart Source -[![Build Status][travis-badge]][travis-badge-url] - -This repository holds the TypeScript source code of the [angular.io quickstart](https://angular.io/docs/ts/latest/quickstart.html), -the foundation for most of the documentation samples and potentially a good starting point for your application. - -It's been extended with testing support so you can start writing tests immediately. - -**This is not the perfect arrangement for your application. It is not designed for production. -It exists primarily to get you started quickly with learning and prototyping in Angular** - -We are unlikely to accept suggestions about how to grow this QuickStart into something it is not. -Please keep that in mind before posting issues and PRs. - -## Updating to a newer version of the Quickstart Repo - -From time to time the QuickStart will add be enhanced with support for new features or to reflect -changes to the [official Style Guide](https://angular.io/docs/ts/latest/guide/style-guide.html). - -You can update your existing project to an up-to-date QuickStart by following these instructions: -- Create a new project using the [instructions below](#create-a-new-project-based-on-the-quickstart) -- Copy the code you have in your project's `main.ts` file onto `src/app/main.ts` in the new project -- Copy your old `app` folder into `src/app` -- Delete `src/app/main.ts` if you have one (we now use `src/main.ts` instead) -- Copy your old `index.html`, `styles.css` and `tsconfig.json` into `src/` -- Install all your third party dependencies -- Copy your old `e2e/` folder into `e2e/` -- Copy over any other files you added to your project -- Copy your old `.git` folder into your new project's root - -Now you can continue working on the new project. - -## Prerequisites - -Node.js and npm are essential to Angular development. - - -Get it now if it's not already installed on your machine. - -**Verify that you are running at least node `v4.x.x` and npm `3.x.x`** -by running `node -v` and `npm -v` in a terminal/console window. -Older versions produce errors. - -We recommend [nvm](https://github.com/creationix/nvm) for managing multiple versions of node and npm. - -## Create a new project based on the QuickStart - -Clone this repo into new project folder (e.g., `my-proj`). -```shell -git clone https://github.com/angular/quickstart my-proj -cd my-proj -``` - -We have no intention of updating the source on `angular/quickstart`. -Discard the `.git` folder.. -```shell -rm -rf .git # OS/X (bash) -rd .git /S/Q # windows -``` -### Delete _non-essential_ files (optional) - -You can quickly delete the _non-essential_ files that concern testing and QuickStart repository maintenance -(***including all git-related artifacts*** such as the `.git` folder and `.gitignore`!) -by entering the following commands while in the project folder: - -##### OS/X (bash) -```shell -xargs -a non-essential-files.txt rm -rf -rm app/*.spec*.ts -rm non-essential-files.txt -``` - -##### Windows -```shell -for /f %i in (non-essential-files.txt) do del %i /F /S /Q -rd .git /s /q -rd e2e /s /q -``` - -### Create a new git repo -You could [start writing code](#start-development) now and throw it all away when you're done. -If you'd rather preserve your work under source control, consider taking the following steps. - -Initialize this project as a *local git repo* and make the first commit: -```shell -git init -git add . -git commit -m "Initial commit" -``` - ->Recover the deleted `.gitignore` from the QuickStart repository -if you lost it in the _Delete non-essential files_ step. - -Create a *remote repository* for this project on the service of your choice. - -Grab its address (e.g. *`https://github.com//my-proj.git`*) and push the *local repo* to the *remote*. -```shell -git remote add origin -git push -u origin master -``` -## Install npm packages - -> See npm and nvm version notes above - -Install the npm packages described in the `package.json` and verify that it works: - -```shell -npm install -npm start -``` - ->Doesn't work in _Bash for Windows_ which does not support servers as of January, 2017. - -The `npm start` command first compiles the application, -then simultaneously re-compiles and runs the `lite-server`. -Both the compiler and the server watch for file changes. - -Shut it down manually with `Ctrl-C`. - -You're ready to write your application. - -### npm scripts - -We've captured many of the most useful commands in npm scripts defined in the `package.json`: - -* `npm start` - runs the compiler and a server at the same time, both in "watch mode". -* `npm run build` - runs the TypeScript compiler once. -* `npm run build:w` - runs the TypeScript compiler in watch mode; the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them. -* `npm run serve` - runs the [lite-server](https://www.npmjs.com/package/lite-server), a light-weight, static file server, written and maintained by -[John Papa](https://github.com/johnpapa) and -[Christopher Martin](https://github.com/cgmartin) -with excellent support for Angular apps that use routing. - -Here are the test related scripts: -* `npm test` - compiles, runs and watches the karma unit tests -* `npm run e2e` - compiles and run protractor e2e tests, written in Typescript (*e2e-spec.ts) - -## Testing - -The QuickStart documentation doesn't discuss testing. -This repo adds both karma/jasmine unit test and protractor end-to-end testing support. - -These tools are configured for specific conventions described below. - -*It is unwise and rarely possible to run the application, the unit tests, and the e2e tests at the same time. -We recommend that you shut down one before starting another.* - -### Unit Tests -TypeScript unit-tests are usually in the `src/app` folder. Their filenames must end in `.spec.ts`. - -Look for the example `src/app/app.component.spec.ts`. -Add more `.spec.ts` files as you wish; we configured karma to find them. - -Run it with `npm test` - -That command first compiles the application, then simultaneously re-compiles and runs the karma test-runner. -Both the compiler and the karma watch for (different) file changes. - -Shut it down manually with `Ctrl-C`. - -Test-runner output appears in the terminal window. -We can update our app and our tests in real-time, keeping a weather eye on the console for broken tests. -Karma is occasionally confused and it is often necessary to shut down its browser or even shut the command down (`Ctrl-C`) and -restart it. No worries; it's pretty quick. - -### End-to-end (E2E) Tests - -E2E tests are in the `e2e` directory, side by side with the `src` folder. -Their filenames must end in `.e2e-spec.ts`. - -Look for the example `e2e/app.e2e-spec.ts`. -Add more `.e2e-spec.js` files as you wish (although one usually suffices for small projects); -we configured Protractor to find them. - -Thereafter, run them with `npm run e2e`. - -That command first compiles, then simultaneously starts the `lite-server` at `localhost:8080` -and launches Protractor. - -The pass/fail test results appear at the bottom of the terminal window. -A custom reporter (see `protractor.config.js`) generates a `./_test-output/protractor-results.txt` file -which is easier to read; this file is excluded from source control. - -Shut it down manually with `Ctrl-C`. - -[travis-badge]: https://travis-ci.org/angular/quickstart.svg?branch=master -[travis-badge-url]: https://travis-ci.org/angular/quickstart diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/package.json b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/package.json index b30a8e07..d4d5b5f3 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/package.json +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/package.json @@ -7,7 +7,7 @@ "test": "karma start", "build": "rimraf dist && webpack --config config/webpack.prod.js --progress --profile --bail" }, - "keywords": ["angular2 with webpack test project"], + "keywords": ["angular2", "webpack", "typescript"], "author": "RPodshyvalova", "license": "MIT", "dependencies": { diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.css index b7ff79a8..3132f52d 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.css +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.css @@ -1,12 +1,14 @@ .selected { background-color: #CFD8DC !important; color: white; } + .heroes { margin: 0 0 2em 0; list-style-type: none; padding: 0; width: 15em; } + .heroes li { cursor: pointer; position: relative; @@ -17,18 +19,22 @@ height: 1.6em; border-radius: 4px; } + .heroes li.selected:hover { background-color: #BBD8DC !important; color: white; } + .heroes li:hover { color: #607D8B; background-color: #DDD; left: .1em; } + .heroes .text { position: relative; top: -3px; } + .heroes .badge { display: inline-block; font-size: small; @@ -42,4 +48,20 @@ height: 1.8em; margin-right: .8em; border-radius: 4px 0 0 4px; +} + +.edit_icon { + float: right; + color: white; + font-size: 26px; + position: relative; + top: -6px; + width: 30px; + padding: 1px; + background-color: darkslategrey; + font-weight: bold; +} + +.hero_information { + width: 100%; } \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.html index edc9d581..396307dc 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.html +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.html @@ -2,37 +2,14 @@

{{title}}

My Heroes

    -
  • - {{hero.id}} {{hero.name}} +
  • + {{hero.id}} + {{hero.name}} +
-
-

{{selectedHero.name}} details!

-
{{selectedHero.id}}
-
- - -
- - -
-
- - -
-
+
+ +
\ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.ts index 2d2d2bdd..21e12712 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.ts @@ -1,23 +1,19 @@ import { Component } from '@angular/core'; - -export class Hero { - id: number; - name: string; - photo: string; -} +import { Hero } from './app.hero'; const PATH_TO_IMAGES = 'src/images/'; +const ANTIHEROES: string[] = ["Spawn", "Deadpool", "Wolverine", "Punisher", "Ghost Rider", "Rorschach", "Blade", "Venom", "Deathstroke", "John Constantine" ]; const HEROES: Hero[] = [ - { id: 11, name: 'Mr. Nice', photo: PATH_TO_IMAGES +"Nice.jpg" }, - { id: 12, name: 'Narco', photo: PATH_TO_IMAGES +"Narco.jpg" }, - { id: 13, name: 'Bombasto', photo: PATH_TO_IMAGES +"Bombasto.jpg" }, - { id: 14, name: 'Celeritas', photo: PATH_TO_IMAGES +"Celeritas.jpg" }, - { id: 15, name: 'Magneta', photo: PATH_TO_IMAGES +"Magneta.jpg" }, - { id: 16, name: 'RubberMan', photo: PATH_TO_IMAGES +"RubberMan.jpg" }, - { id: 17, name: 'Dynama', photo: PATH_TO_IMAGES +"Dynama.jpg" }, - { id: 18, name: 'Dr IQ', photo: PATH_TO_IMAGES + "DrIQ.jpg" }, - { id: 19, name: 'Magma', photo: PATH_TO_IMAGES + "Magma.jpg" }, - { id: 20, name: 'Tornado', photo: PATH_TO_IMAGES + "Tornado.jpg" } + { id: 11, name: 'Mr. Nice', photo: PATH_TO_IMAGES + "Nice.jpg", antihero: ANTIHEROES[0] }, + { id: 12, name: 'Narco', photo: PATH_TO_IMAGES + "Narco.jpg", antihero: ANTIHEROES[1] }, + { id: 13, name: 'Bombasto', photo: PATH_TO_IMAGES + "Bombasto.jpg", antihero: ANTIHEROES[2] }, + { id: 14, name: 'Celeritas', photo: PATH_TO_IMAGES + "Celeritas.jpg", antihero: ANTIHEROES[3] }, + { id: 15, name: 'Magneta', photo: PATH_TO_IMAGES + "Magneta.jpg", antihero: ANTIHEROES[4] }, + { id: 16, name: 'RubberMan', photo: PATH_TO_IMAGES + "RubberMan.jpg", antihero: ANTIHEROES[5] }, + { id: 17, name: 'Dynama', photo: PATH_TO_IMAGES + "Dynama.jpg", antihero: ANTIHEROES[6] }, + { id: 18, name: 'Dr IQ', photo: PATH_TO_IMAGES + "DrIQ.jpg", antihero: ANTIHEROES[7] }, + { id: 19, name: 'Magma', photo: PATH_TO_IMAGES + "Magma.jpg", antihero: ANTIHEROES[8] }, + { id: 20, name: 'Tornado', photo: PATH_TO_IMAGES + "Tornado.jpg", antihero: ANTIHEROES[9] } ]; @Component({ @@ -29,9 +25,21 @@ const HEROES: Hero[] = [ export class AppComponent { title = 'Tour of Heroes'; heroes = HEROES; + antiheroes = ANTIHEROES; selectedHero: Hero; - - onSelect(hero: Hero): void { + editedHero: Hero; + + // when user click on an item of hero - + // show hero details block and hide hero edit block + onShowDetails(hero: Hero): void { this.selectedHero = hero; + this.editedHero = null; + } + // when user click on an edit button - + // show hero edit block and hide hiro details block + onEdit(hero: Hero, event: any): void { + event.stopPropagation(); + this.editedHero = hero; + this.selectedHero = null; } } \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.css new file mode 100644 index 00000000..3da156b2 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.css @@ -0,0 +1,22 @@ +label { + color: grey; + font-weight: bold; +} + +h2 { + color: grey; +} + +img { + border: 1px solid lightgrey; + margin: 20px; + width: 100px; +} + +.hero_detail_section { + float: left; + width: 40%; + padding-left: 50px; + background-color: antiquewhite; +} + diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.html new file mode 100644 index 00000000..f220a3e7 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.html @@ -0,0 +1,17 @@ +
+
+

{{hero.name}} details section!

+
+ {{hero.id}} +
+
+ {{hero.name}} +
+
+ +
+
+ {{hero.antihero}} +
+
+
diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.ts new file mode 100644 index 00000000..2db9ce5b --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.ts @@ -0,0 +1,12 @@ +import { Component, Input } from '@angular/core'; +import { Hero } from './app.hero'; + +@Component({ + selector: 'my-hero-detail', + templateUrl: 'app.hero-detail.component.html', + styleUrls: ['app.hero-detail.component.css'] +}) + +export class HeroDetailComponent { + @Input() hero: Hero; +} diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.css new file mode 100644 index 00000000..74479cbc --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.css @@ -0,0 +1,12 @@ +.hero_edit_section { + float: left; + width: 40%; + background-color: lightblue; + padding-left: 50px; +} + +img { + border: 1px solid brown; + margin: 20px; + width: 100px; +} \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.html new file mode 100644 index 00000000..589db63d --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.html @@ -0,0 +1,24 @@ +
+
+

{{hero.name}} edit section!

+
+
+ + +
+ +
+ Remove photo +
+
+ + +
+
+
+
+ diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.ts new file mode 100644 index 00000000..6816c5ec --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.ts @@ -0,0 +1,18 @@ +import {Component,Input, OnInit} from '@angular/core'; +import { Hero } from './app.hero'; + +@Component({ + selector: 'my-hero-edit', + templateUrl: 'app.hero-edit.component.html', + styleUrls: ['app.hero-edit.component.css'] +}) + +export class HeroEditComponent { + @Input() hero: Hero; + @Input() antiheroesList: string[]; + + clearPhoto(event: any) { + event.preventDefault(); + this.hero.photo = ''; + } +} \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero.ts new file mode 100644 index 00000000..2f170f92 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero.ts @@ -0,0 +1,6 @@ +export class Hero { + id: number; + name: string; + photo: string; + antihero: string; +} \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts index 0f07ab27..8d555e58 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts @@ -2,10 +2,12 @@ import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { AppComponent } from './app.component'; +import { HeroDetailComponent } from './app.hero-detail.component'; +import { HeroEditComponent } from './app.hero-edit.component'; @NgModule({ imports: [ BrowserModule, FormsModule ], - declarations: [ AppComponent ], + declarations: [ AppComponent, HeroDetailComponent, HeroEditComponent], bootstrap: [ AppComponent ] }) From 172d14f84944fc9cdcfebd79d45f1159c193ce5c Mon Sep 17 00:00:00 2001 From: RPodshyvalova Date: Thu, 9 Feb 2017 20:54:22 +0200 Subject: [PATCH 2/7] homework_10 modified .gitignore --- .../angular-test-project/quickstart/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/.gitignore b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/.gitignore index 262060d3..4ec17f07 100644 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/.gitignore +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/.gitignore @@ -1,4 +1,5 @@ node_modules +dist jspm_packages npm-debug.log debug.log From e10cedf340ff1fb654954657253818527eb83509 Mon Sep 17 00:00:00 2001 From: RPodshyvalova Date: Thu, 9 Feb 2017 21:01:12 +0200 Subject: [PATCH 3/7] homework_10 remove folder dist from commit --- .../dist/app.33bda34e949d8f295463.js | 246 --- .../quickstart/dist/index.html | 13 - .../dist/polyfills.33bda34e949d8f295463.js | 38 - .../dist/vendor.33bda34e949d8f295463.js | 1878 ----------------- 4 files changed, 2175 deletions(-) delete mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/app.33bda34e949d8f295463.js delete mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/index.html delete mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/polyfills.33bda34e949d8f295463.js delete mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/vendor.33bda34e949d8f295463.js diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/app.33bda34e949d8f295463.js b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/app.33bda34e949d8f295463.js deleted file mode 100755 index 5a87d6f2..00000000 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/app.33bda34e949d8f295463.js +++ /dev/null @@ -1,246 +0,0 @@ -webpackJsonp([1],{111:function(t,e,r){"use strict";var o=r(48),n=r(63);r.d(e,"a",function(){return a});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},a=function(t){function AbstractFormGroupDirective(){t.apply(this,arguments)}return i(AbstractFormGroupDirective,t),AbstractFormGroupDirective.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},AbstractFormGroupDirective.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(AbstractFormGroupDirective.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractFormGroupDirective.prototype,"path",{get:function(){return r.i(n.c)(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractFormGroupDirective.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractFormGroupDirective.prototype,"validator",{get:function(){return r.i(n.a)(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractFormGroupDirective.prototype,"asyncValidator",{get:function(){return r.i(n.b)(this._asyncValidators)},enumerable:!0,configurable:!0}),AbstractFormGroupDirective.prototype._checkParentType=function(){},AbstractFormGroupDirective}(o.a)},112:function(t,e,r){"use strict";var o=r(1),n=r(86),i=r(164),a=r(43),s=r(48),u=r(63);r.d(e,"a",function(){return d});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var l=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},c={provide:s.a,useExisting:r.i(o.forwardRef)(function(){return d})},p=Promise.resolve(null),d=function(t){function NgForm(e,o){t.call(this),this._submitted=!1,this.ngSubmit=new n.a,this.form=new i.d({},r.i(u.a)(e),r.i(u.b)(o))}return l(NgForm,t),Object.defineProperty(NgForm.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(NgForm.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(NgForm.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(NgForm.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(NgForm.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),NgForm.prototype.addControl=function(t){var e=this;p.then(function(){var o=e._findContainer(t.path);t._control=o.registerControl(t.name,t.control),r.i(u.d)(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},NgForm.prototype.getControl=function(t){return this.form.get(t.path)},NgForm.prototype.removeControl=function(t){var e=this;p.then(function(){var r=e._findContainer(t.path);r&&r.removeControl(t.name)})},NgForm.prototype.addFormGroup=function(t){var e=this;p.then(function(){var o=e._findContainer(t.path),n=new i.d({});r.i(u.e)(n,t),o.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})},NgForm.prototype.removeFormGroup=function(t){var e=this;p.then(function(){var r=e._findContainer(t.path);r&&r.removeControl(t.name)})},NgForm.prototype.getFormGroup=function(t){return this.form.get(t.path)},NgForm.prototype.updateModel=function(t,e){var r=this;p.then(function(){var o=r.form.get(t.path);o.setValue(e)})},NgForm.prototype.setValue=function(t){this.control.setValue(t)},NgForm.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},NgForm.prototype.onReset=function(){this.resetForm()},NgForm.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},NgForm.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},NgForm.decorators=[{type:o.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[c],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],NgForm.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[a.b]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[a.a]}]}]},NgForm}(s.a)},113:function(t,e,r){"use strict";var o=r(1),n=r(35),i=r(74);r.d(e,"b",function(){return s}),r.d(e,"a",function(){return u});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var a={provide:n.a,useExisting:r.i(o.forwardRef)(function(){return u}),multi:!0},s=function(){function RadioControlRegistry(){this._accessors=[]}return RadioControlRegistry.prototype.add=function(t,e){this._accessors.push([t,e])},RadioControlRegistry.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},RadioControlRegistry.prototype.select=function(t){var e=this;this._accessors.forEach(function(r){e._isSameGroup(r,t)&&r[1]!==t&&r[1].fireUncheck(t.value)})},RadioControlRegistry.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},RadioControlRegistry.decorators=[{type:o.Injectable}],RadioControlRegistry.ctorParameters=function(){return[]},RadioControlRegistry}(),u=function(){function RadioControlValueAccessor(t,e,r,o){this._renderer=t,this._elementRef=e,this._registry=r,this._injector=o,this.onChange=function(){},this.onTouched=function(){}}return RadioControlValueAccessor.prototype.ngOnInit=function(){this._control=this._injector.get(i.a),this._checkName(),this._registry.add(this._control,this)},RadioControlValueAccessor.prototype.ngOnDestroy=function(){this._registry.remove(this)},RadioControlValueAccessor.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)},RadioControlValueAccessor.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},RadioControlValueAccessor.prototype.fireUncheck=function(t){this.writeValue(t)},RadioControlValueAccessor.prototype.registerOnTouched=function(t){this.onTouched=t},RadioControlValueAccessor.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},RadioControlValueAccessor.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},RadioControlValueAccessor.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},RadioControlValueAccessor.decorators=[{type:o.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[a]}]}],RadioControlValueAccessor.ctorParameters=function(){return[{type:o.Renderer},{type:o.ElementRef},{type:s},{type:o.Injector}]},RadioControlValueAccessor.propDecorators={name:[{type:o.Input}],formControlName:[{type:o.Input}],value:[{type:o.Input}]},RadioControlValueAccessor}()},114:function(t,e,r){"use strict";var o=r(1),n=r(86),i=r(334),a=r(43),s=r(48),u=r(161),l=r(63);r.d(e,"a",function(){return d});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var c=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},p={provide:s.a,useExisting:r.i(o.forwardRef)(function(){return d})},d=function(t){function FormGroupDirective(e,r){t.call(this),this._validators=e,this._asyncValidators=r,this._submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new n.a}return c(FormGroupDirective,t),FormGroupDirective.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(FormGroupDirective.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(FormGroupDirective.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(FormGroupDirective.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(FormGroupDirective.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),FormGroupDirective.prototype.addControl=function(t){var e=this.form.get(t.path);return r.i(l.d)(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},FormGroupDirective.prototype.getControl=function(t){return this.form.get(t.path)},FormGroupDirective.prototype.removeControl=function(t){i.b.remove(this.directives,t)},FormGroupDirective.prototype.addFormGroup=function(t){var e=this.form.get(t.path);r.i(l.e)(e,t),e.updateValueAndValidity({emitEvent:!1})},FormGroupDirective.prototype.removeFormGroup=function(t){},FormGroupDirective.prototype.getFormGroup=function(t){return this.form.get(t.path)},FormGroupDirective.prototype.addFormArray=function(t){var e=this.form.get(t.path);r.i(l.e)(e,t),e.updateValueAndValidity({emitEvent:!1})},FormGroupDirective.prototype.removeFormArray=function(t){},FormGroupDirective.prototype.getFormArray=function(t){return this.form.get(t.path)},FormGroupDirective.prototype.updateModel=function(t,e){var r=this.form.get(t.path);r.setValue(e)},FormGroupDirective.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},FormGroupDirective.prototype.onReset=function(){this.resetForm()},FormGroupDirective.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},FormGroupDirective.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var o=t.form.get(e.path);e._control!==o&&(r.i(l.f)(e._control,e),o&&r.i(l.d)(o,e),e._control=o)}),this.form._updateTreeValidity({emitEvent:!1})},FormGroupDirective.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},FormGroupDirective.prototype._updateValidators=function(){var t=r.i(l.a)(this._validators);this.form.validator=a.c.compose([this.form.validator,t]);var e=r.i(l.b)(this._asyncValidators);this.form.asyncValidator=a.c.composeAsync([this.form.asyncValidator,e])},FormGroupDirective.prototype._checkFormPresent=function(){this.form||u.a.missingFormException()},FormGroupDirective.decorators=[{type:o.Directive,args:[{selector:"[formGroup]",providers:[p],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],FormGroupDirective.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[a.b]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[a.a]}]}]},FormGroupDirective.propDecorators={form:[{type:o.Input,args:["formGroup"]}],ngSubmit:[{type:o.Output}]},FormGroupDirective}(s.a)},115:function(t,e,r){"use strict";function _hasInvalidParent(t){return!(t instanceof d||t instanceof l.a||t instanceof h)}var o=r(1),n=r(43),i=r(111),a=r(48),s=r(161),u=r(63),l=r(114);r.d(e,"b",function(){return d}),r.d(e,"a",function(){return h});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var c=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},p={provide:a.a,useExisting:r.i(o.forwardRef)(function(){return d})},d=function(t){function FormGroupName(e,r,o){t.call(this),this._parent=e,this._validators=r,this._asyncValidators=o}return c(FormGroupName,t),FormGroupName.prototype._checkParentType=function(){_hasInvalidParent(this._parent)&&s.a.groupParentException()},FormGroupName.decorators=[{type:o.Directive,args:[{selector:"[formGroupName]",providers:[p]}]}],FormGroupName.ctorParameters=function(){return[{type:a.a,decorators:[{type:o.Optional},{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[n.b]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[n.a]}]}]},FormGroupName.propDecorators={name:[{type:o.Input,args:["formGroupName"]}]},FormGroupName}(i.a),f={provide:a.a,useExisting:r.i(o.forwardRef)(function(){return h})},h=function(t){function FormArrayName(e,r,o){t.call(this),this._parent=e,this._validators=r,this._asyncValidators=o}return c(FormArrayName,t),FormArrayName.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},FormArrayName.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(FormArrayName.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(FormArrayName.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(FormArrayName.prototype,"path",{get:function(){return r.i(u.c)(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(FormArrayName.prototype,"validator",{get:function(){return r.i(u.a)(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(FormArrayName.prototype,"asyncValidator",{get:function(){return r.i(u.b)(this._asyncValidators)},enumerable:!0,configurable:!0}),FormArrayName.prototype._checkParentType=function(){_hasInvalidParent(this._parent)&&s.a.arrayParentException()},FormArrayName.decorators=[{type:o.Directive,args:[{selector:"[formArrayName]",providers:[f]}]}],FormArrayName.ctorParameters=function(){return[{type:a.a,decorators:[{type:o.Optional},{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[n.b]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[n.a]}]}]},FormArrayName.propDecorators={name:[{type:o.Input,args:["formArrayName"]}]},FormArrayName}(a.a)},158:function(t,e,r){"use strict";var o=r(1),n=r(35);r.d(e,"a",function(){return a});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i={provide:n.a,useExisting:r.i(o.forwardRef)(function(){return a}),multi:!0},a=function(){function CheckboxControlValueAccessor(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return CheckboxControlValueAccessor.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",t)},CheckboxControlValueAccessor.prototype.registerOnChange=function(t){this.onChange=t},CheckboxControlValueAccessor.prototype.registerOnTouched=function(t){this.onTouched=t},CheckboxControlValueAccessor.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},CheckboxControlValueAccessor.decorators=[{type:o.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[i]}]}],CheckboxControlValueAccessor.ctorParameters=function(){return[{type:o.Renderer},{type:o.ElementRef}]},CheckboxControlValueAccessor}()},159:function(t,e,r){"use strict";var o=r(1),n=r(35);r.d(e,"a",function(){return a});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i={provide:n.a,useExisting:r.i(o.forwardRef)(function(){return a}),multi:!0},a=function(){function DefaultValueAccessor(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return DefaultValueAccessor.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},DefaultValueAccessor.prototype.registerOnChange=function(t){this.onChange=t},DefaultValueAccessor.prototype.registerOnTouched=function(t){this.onTouched=t},DefaultValueAccessor.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},DefaultValueAccessor.decorators=[{type:o.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[i]}]}],DefaultValueAccessor.ctorParameters=function(){return[{type:o.Renderer},{type:o.ElementRef}]},DefaultValueAccessor}()},160:function(t,e,r){"use strict";var o=r(1),n=r(43),i=r(111),a=r(48),s=r(112),u=r(332);r.d(e,"a",function(){return p});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var l=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},c={provide:a.a,useExisting:r.i(o.forwardRef)(function(){return p})},p=function(t){function NgModelGroup(e,r,o){t.call(this),this._parent=e,this._validators=r,this._asyncValidators=o}return l(NgModelGroup,t),NgModelGroup.prototype._checkParentType=function(){this._parent instanceof NgModelGroup||this._parent instanceof s.a||u.a.modelGroupParentException()},NgModelGroup.decorators=[{type:o.Directive,args:[{selector:"[ngModelGroup]",providers:[c],exportAs:"ngModelGroup"}]}],NgModelGroup.ctorParameters=function(){return[{type:a.a,decorators:[{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[n.b]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[n.a]}]}]},NgModelGroup.propDecorators={name:[{type:o.Input,args:["ngModelGroup"]}]},NgModelGroup}(i.a)},161:function(t,e,r){"use strict";var o=r(331);r.d(e,"a",function(){return n});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function ReactiveErrors(){}return ReactiveErrors.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+o.a.formControlName)},ReactiveErrors.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+o.a.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+o.a.ngModelGroup)},ReactiveErrors.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+o.a.formControlName)},ReactiveErrors.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+o.a.formGroupName)},ReactiveErrors.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+o.a.formArrayName)},ReactiveErrors.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},ReactiveErrors}()},162:function(t,e,r){"use strict";function _buildValueString(t,e){return null==t?""+e:(r.i(n.a)(e)||(e="Object"),(t+": "+e).slice(0,50))}function _extractId(t){return t.split(":")[0]}var o=r(1),n=r(87),i=r(35);r.d(e,"b",function(){return s}),r.d(e,"a",function(){return u});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var a={provide:i.a,useExisting:r.i(o.forwardRef)(function(){return s}),multi:!0},s=function(){function SelectControlValueAccessor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){}}return SelectControlValueAccessor.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var r=_buildValueString(e,t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",r)},SelectControlValueAccessor.prototype.registerOnChange=function(t){var e=this;this.onChange=function(r){e.value=r,t(e._getOptionValue(r))}},SelectControlValueAccessor.prototype.registerOnTouched=function(t){this.onTouched=t},SelectControlValueAccessor.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},SelectControlValueAccessor.prototype._registerOption=function(){return(this._idCounter++).toString()},SelectControlValueAccessor.prototype._getOptionId=function(t){for(var e=0,o=Array.from(this._optionMap.keys());e-1)}}else r=function(t,e){t._setSelected(!1)};this._optionMap.forEach(r)},SelectMultipleControlValueAccessor.prototype.registerOnChange=function(t){var e=this;this.onChange=function(r){var o=[];if(r.hasOwnProperty("selectedOptions"))for(var n=r.selectedOptions,i=0;i0||this.disabled},FormGroup.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,r){if(void 0===t[r])throw new Error("Must supply a value for form control with name: '"+r+"'.")})},FormGroup}(d),m=function(t){function FormArray(e,r,o){void 0===r&&(r=null),void 0===o&&(o=null),t.call(this,r,o),this.controls=e,this._initObservables(),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}return s(FormArray,t),FormArray.prototype.at=function(t){return this.controls[t]},FormArray.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},FormArray.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},FormArray.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},FormArray.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(FormArray.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),FormArray.prototype.setValue=function(t,e){var r=this,o=void 0===e?{}:e,n=o.onlySelf,i=o.emitEvent;this._checkAllValuesPresent(t),t.forEach(function(t,e){r._throwIfControlMissing(e),r.at(e).setValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:n,emitEvent:i})},FormArray.prototype.patchValue=function(t,e){var r=this,o=void 0===e?{}:e,n=o.onlySelf,i=o.emitEvent;t.forEach(function(t,e){r.at(e)&&r.at(e).patchValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:n,emitEvent:i})},FormArray.prototype.reset=function(t,e){void 0===t&&(t=[]);var r=void 0===e?{}:e,o=r.onlySelf,n=r.emitEvent;this._forEachChild(function(e,r){e.reset(t[r],{onlySelf:!0,emitEvent:n})}),this.updateValueAndValidity({onlySelf:o,emitEvent:n}),this._updatePristine({onlySelf:o}),this._updateTouched({onlySelf:o})},FormArray.prototype.getRawValue=function(){return this.controls.map(function(t){return t.value})},FormArray.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},FormArray.prototype._forEachChild=function(t){this.controls.forEach(function(e,r){t(e,r)})},FormArray.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},FormArray.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},FormArray.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},FormArray.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,r){if(void 0===t[r])throw new Error("Must supply a value for form control at index: "+r+".")})},FormArray.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t0||this.disabled},FormArray.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},FormArray}(d)},222:function(t,e,r){"use strict";r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function AbstractControlDirective(){}return Object.defineProperty(AbstractControlDirective.prototype,"control",{get:function(){throw new Error("unimplemented")},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),AbstractControlDirective.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},AbstractControlDirective.prototype.hasError=function(t,e){return void 0===e&&(e=null),!!this.control&&this.control.hasError(t,e)},AbstractControlDirective.prototype.getError=function(t,e){return void 0===e&&(e=null),this.control?this.control.getError(t,e):null},AbstractControlDirective}()},223:function(t,e,r){"use strict";var o=r(1),n=r(48),i=r(74);r.d(e,"a",function(){return l}),r.d(e,"b",function(){return c});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var a=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},s=function(){function AbstractControlStatus(t){this._cd=t}return Object.defineProperty(AbstractControlStatus.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlStatus.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlStatus.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlStatus.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlStatus.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlStatus.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlStatus.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),AbstractControlStatus}(),u={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},l=function(t){function NgControlStatus(e){t.call(this,e)}return a(NgControlStatus,t),NgControlStatus.decorators=[{type:o.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:u}]}],NgControlStatus.ctorParameters=function(){return[{type:i.a,decorators:[{type:o.Self}]}]},NgControlStatus}(s),c=function(t){function NgControlStatusGroup(e){t.call(this,e)}return a(NgControlStatusGroup,t),NgControlStatusGroup.decorators=[{type:o.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:u}]}],NgControlStatusGroup.ctorParameters=function(){return[{type:n.a,decorators:[{type:o.Self}]}]},NgControlStatusGroup}(s)},224:function(t,e,r){"use strict";var o=r(1),n=r(86),i=r(164),a=r(43),s=r(111),u=r(48),l=r(35),c=r(74),p=r(112),d=r(160),f=r(63),h=r(332);r.d(e,"a",function(){return v});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var m=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},y={provide:c.a,useExisting:r.i(o.forwardRef)(function(){return v})},g=Promise.resolve(null),v=function(t){function NgModel(e,o,a,s){t.call(this),this._control=new i.c,this._registered=!1,this.update=new n.a,this._parent=e,this._rawValidators=o||[],this._rawAsyncValidators=a||[],this.valueAccessor=r.i(f.g)(this,s)}return m(NgModel,t),NgModel.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),r.i(f.h)(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},NgModel.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(NgModel.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"path",{get:function(){return this._parent?r.i(f.c)(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"validator",{get:function(){return r.i(f.a)(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"asyncValidator",{get:function(){return r.i(f.b)(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),NgModel.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},NgModel.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},NgModel.prototype._isStandalone=function(){return!this._parent||this.options&&this.options.standalone},NgModel.prototype._setUpStandalone=function(){r.i(f.d)(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},NgModel.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},NgModel.prototype._checkParentType=function(){!(this._parent instanceof d.a)&&this._parent instanceof s.a?h.a.formGroupNameException():this._parent instanceof d.a||this._parent instanceof p.a||h.a.modelParentException()},NgModel.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||h.a.missingNameException()},NgModel.prototype._updateValue=function(t){var e=this;g.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},NgModel.prototype._updateDisabled=function(t){var e=this,r=t.isDisabled.currentValue,o=""===r||r&&"false"!==r;g.then(function(){o&&!e.control.disabled?e.control.disable():!o&&e.control.disabled&&e.control.enable()})},NgModel.decorators=[{type:o.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[y],exportAs:"ngModel"}]}],NgModel.ctorParameters=function(){return[{type:u.a,decorators:[{type:o.Optional},{type:o.Host}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[a.b]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[a.a]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[l.a]}]}]},NgModel.propDecorators={name:[{type:o.Input}],isDisabled:[{type:o.Input,args:["disabled"]}],model:[{type:o.Input,args:["ngModel"]}],options:[{type:o.Input,args:["ngModelOptions"]}],update:[{type:o.Output,args:["ngModelChange"]}]},NgModel}(c.a)},225:function(t,e,r){"use strict";var o=r(1),n=r(35);r.d(e,"a",function(){return a});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i={provide:n.a,useExisting:r.i(o.forwardRef)(function(){return a}),multi:!0},a=function(){function NumberValueAccessor(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return NumberValueAccessor.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},NumberValueAccessor.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},NumberValueAccessor.prototype.registerOnTouched=function(t){this.onTouched=t},NumberValueAccessor.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},NumberValueAccessor.decorators=[{type:o.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[i]}]}],NumberValueAccessor.ctorParameters=function(){return[{type:o.Renderer},{type:o.ElementRef}]},NumberValueAccessor}()},226:function(t,e,r){"use strict";var o=r(1),n=r(35);r.d(e,"a",function(){return a});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i={provide:n.a,useExisting:r.i(o.forwardRef)(function(){return a}),multi:!0},a=function(){function RangeValueAccessor(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return RangeValueAccessor.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",parseFloat(t))},RangeValueAccessor.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},RangeValueAccessor.prototype.registerOnTouched=function(t){this.onTouched=t},RangeValueAccessor.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},RangeValueAccessor.decorators=[{type:o.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[i]}]}],RangeValueAccessor.ctorParameters=function(){return[{type:o.Renderer},{type:o.ElementRef}]},RangeValueAccessor}()},227:function(t,e,r){"use strict";var o=r(1),n=r(86),i=r(43),a=r(35),s=r(74),u=r(161),l=r(63);r.d(e,"a",function(){return d});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var c=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},p={provide:s.a,useExisting:r.i(o.forwardRef)(function(){return d})},d=function(t){function FormControlDirective(e,o,i){t.call(this),this.update=new n.a,this._rawValidators=e||[],this._rawAsyncValidators=o||[],this.valueAccessor=r.i(l.g)(this,i)}return c(FormControlDirective,t),Object.defineProperty(FormControlDirective.prototype,"isDisabled",{set:function(t){u.a.disabledAttrWarning()},enumerable:!0,configurable:!0}),FormControlDirective.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(r.i(l.d)(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),r.i(l.h)(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(FormControlDirective.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlDirective.prototype,"validator",{get:function(){return r.i(l.a)(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlDirective.prototype,"asyncValidator",{get:function(){return r.i(l.b)(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlDirective.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),FormControlDirective.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},FormControlDirective.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},FormControlDirective.decorators=[{type:o.Directive,args:[{selector:"[formControl]",providers:[p],exportAs:"ngForm"}]}],FormControlDirective.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[i.b]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[i.a]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[a.a]}]}]},FormControlDirective.propDecorators={form:[{type:o.Input,args:["formControl"]}],model:[{type:o.Input,args:["ngModel"]}],update:[{type:o.Output,args:["ngModelChange"]}],isDisabled:[{type:o.Input,args:["disabled"]}]},FormControlDirective}(s.a)},228:function(t,e,r){"use strict";var o=r(1),n=r(86),i=r(43),a=r(111),s=r(48),u=r(35),l=r(74),c=r(161),p=r(63),d=r(114),f=r(115);r.d(e,"a",function(){return y});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var h=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},m={provide:l.a,useExisting:r.i(o.forwardRef)(function(){return y})},y=function(t){function FormControlName(e,o,i,a){t.call(this),this._added=!1,this.update=new n.a,this._parent=e,this._rawValidators=o||[],this._rawAsyncValidators=i||[],this.valueAccessor=r.i(p.g)(this,a)}return h(FormControlName,t),Object.defineProperty(FormControlName.prototype,"isDisabled",{set:function(t){c.a.disabledAttrWarning()},enumerable:!0,configurable:!0}),FormControlName.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),r.i(p.h)(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},FormControlName.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},FormControlName.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(FormControlName.prototype,"path",{get:function(){return r.i(p.c)(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlName.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlName.prototype,"validator",{get:function(){return r.i(p.a)(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlName.prototype,"asyncValidator",{get:function(){return r.i(p.b)(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlName.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),FormControlName.prototype._checkParentType=function(){!(this._parent instanceof f.b)&&this._parent instanceof a.a?c.a.ngModelGroupException():this._parent instanceof f.b||this._parent instanceof d.a||this._parent instanceof f.a||c.a.controlParentException()},FormControlName.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},FormControlName.decorators=[{type:o.Directive,args:[{selector:"[formControlName]",providers:[m]}]}],FormControlName.ctorParameters=function(){return[{type:s.a,decorators:[{type:o.Optional},{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[i.b]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[i.a]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[u.a]}]}]},FormControlName.propDecorators={name:[{type:o.Input,args:["formControlName"]}],model:[{type:o.Input,args:["ngModel"]}],update:[{type:o.Output,args:["ngModelChange"]}],isDisabled:[{type:o.Input,args:["disabled"]}]},FormControlName}(l.a)},331:function(t,e,r){"use strict";r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o={formControlName:'\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n
\n
\n \n
\n
',ngModelWithFormGroup:'\n
\n \n \n
\n '}},332:function(t,e,r){"use strict";var o=r(331);r.d(e,"a",function(){return n});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function TemplateDrivenErrors(){}return TemplateDrivenErrors.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+o.a.formControlName+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+o.a.ngModelWithFormGroup)},TemplateDrivenErrors.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+o.a.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+o.a.ngModelGroup)},TemplateDrivenErrors.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},TemplateDrivenErrors.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+o.a.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+o.a.ngModelGroup)},TemplateDrivenErrors}()},333:function(t,e,r){"use strict";var o=r(1),n=r(43);r.d(e,"e",function(){return u}),r.d(e,"a",function(){return l}),r.d(e,"c",function(){return p}),r.d(e,"b",function(){return f}),r.d(e,"d",function(){return m});var i=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},a={provide:n.b,useExisting:r.i(o.forwardRef)(function(){return u}),multi:!0},s={provide:n.b,useExisting:r.i(o.forwardRef)(function(){return l}),multi:!0},u=function(){function RequiredValidator(){}return Object.defineProperty(RequiredValidator.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&t!==!1&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),RequiredValidator.prototype.validate=function(t){return this.required?n.c.required(t):null},RequiredValidator.prototype.registerOnValidatorChange=function(t){this._onChange=t},RequiredValidator.decorators=[{type:o.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[a],host:{"[attr.required]":'required ? "" : null'}}]}],RequiredValidator.ctorParameters=function(){return[]},RequiredValidator.propDecorators={required:[{type:o.Input}]},RequiredValidator}(),l=function(t){function CheckboxRequiredValidator(){t.apply(this,arguments)}return i(CheckboxRequiredValidator,t),CheckboxRequiredValidator.prototype.validate=function(t){return this.required?n.c.requiredTrue(t):null},CheckboxRequiredValidator.decorators=[{type:o.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[s],host:{"[attr.required]":'required ? "" : null'}}]}],CheckboxRequiredValidator.ctorParameters=function(){return[]},CheckboxRequiredValidator}(u),c={provide:n.b,useExisting:r.i(o.forwardRef)(function(){return p}),multi:!0},p=function(){function MinLengthValidator(){}return MinLengthValidator.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},MinLengthValidator.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},MinLengthValidator.prototype.registerOnValidatorChange=function(t){this._onChange=t},MinLengthValidator.prototype._createValidator=function(){this._validator=n.c.minLength(parseInt(this.minlength,10))},MinLengthValidator.decorators=[{type:o.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[c],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],MinLengthValidator.ctorParameters=function(){return[]},MinLengthValidator.propDecorators={minlength:[{type:o.Input}]},MinLengthValidator}(),d={provide:n.b,useExisting:r.i(o.forwardRef)(function(){return f}),multi:!0},f=function(){function MaxLengthValidator(){}return MaxLengthValidator.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},MaxLengthValidator.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},MaxLengthValidator.prototype.registerOnValidatorChange=function(t){this._onChange=t},MaxLengthValidator.prototype._createValidator=function(){this._validator=n.c.maxLength(parseInt(this.maxlength,10))},MaxLengthValidator.decorators=[{type:o.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[d],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],MaxLengthValidator.ctorParameters=function(){return[]},MaxLengthValidator.propDecorators={maxlength:[{type:o.Input}]},MaxLengthValidator}(),h={provide:n.b,useExisting:r.i(o.forwardRef)(function(){return m}),multi:!0},m=function(){function PatternValidator(){}return PatternValidator.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},PatternValidator.prototype.validate=function(t){return this._validator(t)},PatternValidator.prototype.registerOnValidatorChange=function(t){this._onChange=t},PatternValidator.prototype._createValidator=function(){this._validator=n.c.pattern(this.pattern)},PatternValidator.decorators=[{type:o.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[h],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],PatternValidator.ctorParameters=function(){return[]},PatternValidator.propDecorators={pattern:[{type:o.Input}]},PatternValidator}()},334:function(t,e,r){"use strict";r(87);r.d(e,"a",function(){return o}),r.d(e,"b",function(){return n});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function StringMapWrapper(){}return StringMapWrapper.merge=function(t,e){for(var r={},o=0,n=Object.keys(t);o=0;r--)if(e(t[r]))return t[r];return null},ListWrapper.removeAll=function(t,e){for(var r=0;r-1&&t.splice(o,1)}},ListWrapper.remove=function(t,e){var r=t.indexOf(e);return r>-1&&(t.splice(r,1),!0)},ListWrapper.equals=function(t,e){if(t.length!=e.length)return!1;for(var r=0;r1?t[1]:null,o=t.length>2?t[2]:null;return this.control(e,r,o)}return this.control(t)},FormBuilder.decorators=[{type:o.Injectable}],FormBuilder.ctorParameters=function(){return[]},FormBuilder}()},336:function(t,e,r){"use strict";var o=r(1);r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=o.__core_private__.isPromise,i=o.__core_private__.isObservable},35:function(t,e,r){"use strict";var o=r(1);r.d(e,"a",function(){return n});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=new o.OpaqueToken("NgValueAccessor")},428:function(t,e,r){"use strict";var o=this&&this.__decorate||function(t,e,r,o){var n,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,r,a):n(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=r(1),a=r(98),s=r(521),u=r(559),l=function(){function AppModule(){}return AppModule=o([i.NgModule({imports:[a.BrowserModule,s.FormsModule],declarations:[u.AppComponent],bootstrap:[u.AppComponent]}),n("design:paramtypes",[])],AppModule)}();e.AppModule=l},43:function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function isEmptyInputValue(t){return null==t||0===t.length}function _convertToPromise(t){return r.i(s.a)(t)?t:n.toPromise.call(t)}function _executeValidators(t,e){return e.map(function(e){return e(t)})}function _executeAsyncValidators(t,e){return e.map(function(e){return e(t)})}function _mergeErrors(t){var e=t.reduce(function(t,e){return r.i(a.c)(e)?i.a.merge(t,e):t},{});return 0===Object.keys(e).length?null:e}var o=r(1),n=r(412),i=(r.n(n),r(334)),a=r(87),s=r(336);r.d(e,"b",function(){return u}),r.d(e,"a",function(){return l}),r.d(e,"c",function(){return c});var u=new o.OpaqueToken("NgValidators"),l=new o.OpaqueToken("NgAsyncValidators"),c=function(){function Validators(){}return Validators.required=function(t){return isEmptyInputValue(t.value)?{required:!0}:null},Validators.requiredTrue=function(t){return t.value===!0?null:{required:!0}},Validators.minLength=function(t){return function(e){if(isEmptyInputValue(e.value))return null;var r=e.value?e.value.length:0;return rt?{maxlength:{requiredLength:t,actualLength:r}}:null}},Validators.pattern=function(t){if(!t)return Validators.nullValidator;var e,r;return"string"==typeof t?(r="^"+t+"$",e=new RegExp(r)):(r=t.toString(),e=t),function(t){if(isEmptyInputValue(t.value))return null;var o=t.value;return e.test(o)?null:{pattern:{requiredPattern:r,actualValue:o}}}},Validators.nullValidator=function(t){return null},Validators.compose=function(t){if(!t)return null;var e=t.filter(a.c);return 0==e.length?null:function(t){return _mergeErrors(_executeValidators(t,e))}},Validators.composeAsync=function(t){if(!t)return null;var e=t.filter(a.c);return 0==e.length?null:function(t){var r=_executeAsyncValidators(t,e).map(_convertToPromise);return Promise.all(r).then(_mergeErrors)}},Validators}()},48:function(t,e,r){"use strict";var o=r(222);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=function(t){function ControlContainer(){t.apply(this,arguments)}return n(ControlContainer,t),Object.defineProperty(ControlContainer.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(ControlContainer.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),ControlContainer}(o.a)},521:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(525);r.d(e,"AbstractControlDirective",function(){return o.a}),r.d(e,"AbstractFormGroupDirective",function(){return o.b}),r.d(e,"CheckboxControlValueAccessor",function(){return o.c}),r.d(e,"ControlContainer",function(){return o.d}),r.d(e,"NG_VALUE_ACCESSOR",function(){return o.e}),r.d(e,"DefaultValueAccessor",function(){return o.f}),r.d(e,"NgControl",function(){return o.g}),r.d(e,"NgControlStatus",function(){return o.h}),r.d(e,"NgControlStatusGroup",function(){return o.i}),r.d(e,"NgForm",function(){return o.j}),r.d(e,"NgModel",function(){return o.k}),r.d(e,"NgModelGroup",function(){return o.l}),r.d(e,"RadioControlValueAccessor",function(){return o.m}),r.d(e,"FormControlDirective",function(){return o.n}),r.d(e,"FormControlName",function(){return o.o}),r.d(e,"FormGroupDirective",function(){return o.p}),r.d(e,"FormArrayName",function(){return o.q}),r.d(e,"FormGroupName",function(){return o.r}),r.d(e,"NgSelectOption",function(){return o.s}),r.d(e,"SelectControlValueAccessor",function(){return o.t}),r.d(e,"SelectMultipleControlValueAccessor",function(){return o.u}),r.d(e,"CheckboxRequiredValidator",function(){return o.v}),r.d(e,"MaxLengthValidator",function(){return o.w}),r.d(e,"MinLengthValidator",function(){return o.x}),r.d(e,"PatternValidator",function(){return o.y}),r.d(e,"RequiredValidator",function(){return o.z}),r.d(e,"FormBuilder",function(){return o.A}),r.d(e,"AbstractControl",function(){return o.B}),r.d(e,"FormArray",function(){return o.C}),r.d(e,"FormControl",function(){return o.D}),r.d(e,"FormGroup",function(){return o.E}),r.d(e,"NG_ASYNC_VALIDATORS",function(){return o.F}),r.d(e,"NG_VALIDATORS",function(){return o.G}),r.d(e,"Validators",function(){return o.H}),r.d(e,"VERSION",function(){return o.I}),r.d(e,"FormsModule",function(){return o.J}),r.d(e,"ReactiveFormsModule",function(){return o.K})},522:function(t,e,r){"use strict";var o=r(1),n=r(158),i=r(159),a=r(223),s=r(112),u=r(224),l=r(160),c=r(225),p=r(113),d=r(226),f=r(227),h=r(228),m=r(114),y=r(115),g=r(162),v=r(163),_=r(333);r(74);r.d(e,"a",function(){return C}),r.d(e,"c",function(){return A}),r.d(e,"b",function(){return V});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var b=[g.a,v.b,i.a,c.a,d.a,n.a,g.b,v.a,p.a,a.a,a.b,_.e,_.c,_.b,_.d,_.a],C=[u.a,l.a,s.a],A=[f.a,m.a,h.a,y.b,y.a],V=function(){function InternalFormsSharedModule(){}return InternalFormsSharedModule.decorators=[{type:o.NgModule,args:[{declarations:b,exports:b}]}],InternalFormsSharedModule.ctorParameters=function(){return[]},InternalFormsSharedModule}()},523:function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function normalizeValidator(t){return t.validate?function(e){return t.validate(e)}:t}function normalizeAsyncValidator(t){return t.validate?function(e){return t.validate(e)}:t}e.a=normalizeValidator,e.b=normalizeAsyncValidator},524:function(t,e,r){"use strict";var o=r(1),n=r(522),i=r(113),a=r(335);r.d(e,"a",function(){return s}),r.d(e,"b",function(){return u});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=function(){function FormsModule(){}return FormsModule.decorators=[{type:o.NgModule,args:[{declarations:n.a,providers:[i.b],exports:[n.b,n.a]}]}],FormsModule.ctorParameters=function(){return[]},FormsModule}(),u=function(){function ReactiveFormsModule(){}return ReactiveFormsModule.decorators=[{type:o.NgModule,args:[{declarations:[n.c],providers:[a.a,i.b],exports:[n.b,n.c]}]}],ReactiveFormsModule.ctorParameters=function(){return[]},ReactiveFormsModule}()},525:function(t,e,r){"use strict";var o=r(222);r.d(e,"a",function(){return o.a});var n=r(111);r.d(e,"b",function(){return n.a});var i=r(158);r.d(e,"c",function(){return i.a});var a=r(48);r.d(e,"d",function(){return a.a});var s=r(35);r.d(e,"e",function(){return s.a});var u=r(159);r.d(e,"f",function(){return u.a});var l=r(74);r.d(e,"g",function(){return l.a});var c=r(223);r.d(e,"h",function(){return c.a}),r.d(e,"i",function(){return c.b});var p=r(112);r.d(e,"j",function(){return p.a});var d=r(224);r.d(e,"k",function(){return d.a});var f=r(160);r.d(e,"l",function(){return f.a});var h=r(113);r.d(e,"m",function(){return h.a});var m=r(227);r.d(e,"n",function(){return m.a});var y=r(228);r.d(e,"o",function(){return y.a});var g=r(114);r.d(e,"p",function(){return g.a});var v=r(115);r.d(e,"q",function(){return v.a}),r.d(e,"r",function(){return v.b});var _=r(162);r.d(e,"s",function(){return _.a}),r.d(e,"t",function(){return _.b});var b=r(163);r.d(e,"u",function(){return b.a});var C=r(333);r.d(e,"v",function(){return C.a}),r.d(e,"w",function(){return C.b}),r.d(e,"x",function(){return C.c}),r.d(e,"y",function(){return C.d}),r.d(e,"z",function(){return C.e});var A=r(335);r.d(e,"A",function(){return A.a});var V=r(164);r.d(e,"B",function(){return V.a}),r.d(e,"C",function(){return V.b}),r.d(e,"D",function(){return V.c}),r.d(e,"E",function(){return V.d});var O=r(43);r.d(e,"F",function(){return O.a}),r.d(e,"G",function(){return O.b}),r.d(e,"H",function(){return O.c});var F=r(526);r.d(e,"I",function(){return F.a});var E=r(524);r.d(e,"J",function(){return E.a}),r.d(e,"K",function(){return E.b})},526:function(t,e,r){"use strict";var o=r(1);r.d(e,"a",function(){return n});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=new o.Version("2.4.6")},559:function(t,e,r){"use strict";var o=this&&this.__decorate||function(t,e,r,o){var n,i=arguments.length,a=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(i<3?n(a):i>3?n(e,r,a):n(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},n=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},i=r(1),a=function(){function Hero(){}return Hero}();e.Hero=a;var s="src/images/",u=[{id:11,name:"Mr. Nice",photo:s+"Nice.jpg"},{id:12,name:"Narco",photo:s+"Narco.jpg"},{id:13,name:"Bombasto",photo:s+"Bombasto.jpg"},{id:14,name:"Celeritas",photo:s+"Celeritas.jpg"},{id:15,name:"Magneta",photo:s+"Magneta.jpg"},{id:16,name:"RubberMan",photo:s+"RubberMan.jpg"},{id:17,name:"Dynama",photo:s+"Dynama.jpg"},{id:18,name:"Dr IQ",photo:s+"DrIQ.jpg"},{id:19,name:"Magma",photo:s+"Magma.jpg"},{id:20,name:"Tornado",photo:s+"Tornado.jpg"}],l=function(){function AppComponent(){this.title="Tour of Heroes",this.heroes=u}return AppComponent.prototype.onSelect=function(t){this.selectedHero=t},AppComponent=o([i.Component({selector:"my-app",template:r(695),styles:[r(696)]}),n("design:paramtypes",[])],AppComponent)}();e.AppComponent=l},63:function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function controlPath(t,e){return e.path.concat([t])}function setUpControl(t,e){t||_throwError(e,"Cannot find control with"),e.valueAccessor||_throwError(e,"No value accessor for form control with"),t.validator=n.c.compose([t.validator,e.validator]),t.asyncValidator=n.c.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(r){e.viewToModelUpdate(r),t.markAsDirty(),t.setValue(r,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,r){e.valueAccessor.writeValue(t),r&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function cleanUpControl(t,e){e.valueAccessor.registerOnChange(function(){return _noControlError(e)}),e.valueAccessor.registerOnTouched(function(){return _noControlError(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function setUpFormContainer(t,e){r.i(o.f)(t)&&_throwError(e,"Cannot find control with"),t.validator=n.c.compose([t.validator,e.validator]),t.asyncValidator=n.c.composeAsync([t.asyncValidator,e.asyncValidator])}function _noControlError(t){return _throwError(t,"There is no FormControl instance attached to form control element with")}function _throwError(t,e){var r;throw r=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+r)}function composeValidators(t){return r.i(o.c)(t)?n.c.compose(t.map(s.a)):null}function composeAsyncValidators(t){return r.i(o.c)(t)?n.c.composeAsync(t.map(s.b)):null}function isPropertyUpdated(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!r.i(o.b)(e,n.currentValue)}function isBuiltInAccessor(t){return f.some(function(e){return t.constructor===e})}function selectValueAccessor(t,e){if(!e)return null;var r,o,n;return e.forEach(function(e){e.constructor===a.a?r=e:isBuiltInAccessor(e)?(o&&_throwError(t,"More than one built-in value accessor matches form control with"),o=e):(n&&_throwError(t,"More than one custom value accessor matches form control with"),n=e)}),n?n:o?o:r?r:(_throwError(t,"No valid value accessor for form control with"),null)}var o=r(87),n=r(43),i=r(158),a=r(159),s=r(523),u=r(225),l=r(113),c=r(226),p=r(162),d=r(163);e.c=controlPath,e.d=setUpControl,e.f=cleanUpControl,e.e=setUpFormContainer,e.a=composeValidators,e.b=composeAsyncValidators,e.h=isPropertyUpdated,e.g=selectValueAccessor;var f=[i.a,c.a,u.a,p.b,d.a,l.a]},695:function(t,e){t.exports='
\n

{{title}}

\n

My Heroes

\n
    \n
  • \n {{hero.id}} {{hero.name}}\n
  • \n
\n
\n

{{selectedHero.name}} details!

\n
{{selectedHero.id}}
\n
\n \n \n
\n \n \n
\n
\n \n \n
\n
\n
\n
'},696:function(t,e){t.exports=".selected {\n background-color: #CFD8DC !important; color: white;\n}\n.heroes {\n margin: 0 0 2em 0;\n list-style-type: none;\n padding: 0;\n width: 15em;\n}\n.heroes li {\n cursor: pointer;\n position: relative;\n left: 0;\n background-color: #EEE;\n margin: .5em;\n padding: .3em 0;\n height: 1.6em;\n border-radius: 4px;\n}\n.heroes li.selected:hover {\n background-color: #BBD8DC !important; color: white;\n}\n.heroes li:hover {\n color: #607D8B;\n background-color: #DDD;\n left: .1em;\n}\n.heroes .text {\n position: relative;\n top: -3px;\n}\n.heroes .badge {\n display: inline-block;\n font-size: small;\n color: white;\n padding: 0.8em 0.7em 0 0.7em;\n background-color: #607D8B;\n line-height: 1em;\n position: relative;\n left: -1px;\n top: -4px;\n height: 1.8em;\n margin-right: .8em;\n border-radius: 4px 0 0 4px;\n}"},74:function(t,e,r){"use strict";function unimplemented(){throw new Error("unimplemented")}var o=r(222);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=function(t){function NgControl(){t.apply(this,arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}return n(NgControl,t),Object.defineProperty(NgControl.prototype,"validator",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(NgControl.prototype,"asyncValidator",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),NgControl.prototype.viewToModelUpdate=function(t){},NgControl}(o.a)},86:function(t,e,r){"use strict";var o=r(13),n=(r.n(o),r(0));r.n(n);r.d(e,"a",function(){return a});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},a=function(t){function EventEmitter(e){void 0===e&&(e=!1),t.call(this),this.__isAsync=e}return i(EventEmitter,t),EventEmitter.prototype.emit=function(e){t.prototype.next.call(this,e)},EventEmitter.prototype.subscribe=function(e,r,o){var n,i=function(t){return null},a=function(){return null};return e&&"object"==typeof e?(n=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(n=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},r&&(i=this.__isAsync?function(t){setTimeout(function(){return r(t)})}:function(t){r(t)}),o&&(a=this.__isAsync?function(){setTimeout(function(){return o()})}:function(){o()})),t.prototype.subscribe.call(this,n,i,a)},EventEmitter}(o.Subject)},87:function(t,e,r){"use strict";(function(t){function isPresent(t){return null!=t}function isBlank(t){return null==t}function looseIdentical(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function isJsObject(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function getSymbolIterator(){if(!n)if(r.Symbol&&Symbol.iterator)n=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e - - - Angular QuickStart - - - - - - - Loading AppComponent content here ... - - diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/polyfills.33bda34e949d8f295463.js b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/polyfills.33bda34e949d8f295463.js deleted file mode 100755 index def73be4..00000000 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/polyfills.33bda34e949d8f295463.js +++ /dev/null @@ -1,38 +0,0 @@ -!function(t){function __webpack_require__(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,__webpack_require__),r.l=!0,r.exports}var e=window.webpackJsonp;window.webpackJsonp=function(n,o,i){for(var u,a,c,s=0,f=[];s"+o+""};t.exports=function(t,e){var n={};n[t]=e(a),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){var r=n(93),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},,,,function(t,e,n){var r=n(10);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(121),o=n(51);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(51);t.exports=function(t){return Object(r(t))}},,,,,,,,function(t,e,n){var r=n(2),o=n(18),i=n(10);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},,,,function(t,e,n){var r=n(90),o=n(121),i=n(38),u=n(32),a=n(564);t.exports=function(t,e){var n=1==t,c=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,h=e||a;return function(e,a,v){for(var d,g,y=i(e),m=o(y),b=r(a,v,3),_=u(m.length),k=0,w=n?h(e,_):c?h(e,0):void 0;_>k;k++)if((p||k in m)&&(d=m[k],g=b(d,k,y),t))if(n)w[k]=g;else if(g)switch(t){case 3:return!0;case 5:return d;case 6:return k;case 2:w.push(d)}else if(f)return!1;return l?-1:s||f?f:w}}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(22),o=n(78);t.exports=n(26)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(387),o=n(2),i=n(175)("metadata"),u=i.store||(i.store=new(n(685))),a=function(t,e,n){var o=u.get(t);if(!o){if(!n)return;u.set(t,o=new r)}var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}return i},c=function(t,e,n){var r=a(e,n,!1);return void 0!==r&&r.has(t)},s=function(t,e,n){var r=a(e,n,!1);return void 0===r?void 0:r.get(t)},f=function(t,e,n,r){a(n,r,!0).set(t,e)},l=function(t,e){var n=a(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},p=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},h=function(t){o(o.S,"Reflect",t)};t.exports={store:u,map:a,has:c,get:s,set:f,keys:l,key:p,exp:h}},function(t,e,n){var r=n(29),o=n(38),i=n(257)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},,function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,,,,,,,,function(t,e,n){var r=n(125)("meta"),o=n(11),i=n(29),u=n(22).f,a=0,c=Object.isExtensible||function(){return!0},s=!n(10)(function(){return c(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return s&&v.NEED&&c(t)&&!i(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){var r=n(173),o=n(78),i=n(37),u=n(79),a=n(29),c=n(368),s=Object.getOwnPropertyDescriptor;e.f=n(26)?s:function(t,e){if(t=i(t),e=u(e,!0),c)try{return s(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},,,,,,,,,,function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},,,,,,,,,,,function(t,e,n){var r=n(76);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(8),o=n(377),i=n(244),u=n(257)("IE_PROTO"),a=function(){},c="prototype",s=function(){var t,e=n(366)("iframe"),r=i.length,o="<",u=">";for(e.style.display="none",n(367).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),s=t.F;r--;)delete s[c][i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[c]=r(t),n=new a,a[c]=null,n[u]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(379),o=n(244);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(15)("unscopables"),o=Array.prototype;void 0==o[r]&&n(52)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(77);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){t.exports={}},function(t,e,n){var r=n(379),o=n(244).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(93),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(52),o=n(30),i=n(10),u=n(51),a=n(15);t.exports=function(t,e,n){var c=a(t),s=n(u,c,""[t]),f=s[0],l=s[1];i(function(){var e={};return e[c]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,f),r(RegExp.prototype,c,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},function(t,e,n){var r=n(90),o=n(371),i=n(369),u=n(8),a=n(32),c=n(385),s={},f={},e=t.exports=function(t,e,n,l,p){var h,v,d,g,y=p?function(){return t}:c(t),m=r(n,l,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(h=a(t.length);h>b;b++)if(g=e?m(u(v=t[b])[0],v[1]):m(t[b]),g===s||g===f)return g}else for(d=y.call(t);!(v=d.next()).done;)if(g=o(d,m,v.value,e),g===s||g===f)return g};e.BREAK=s,e.RETURN=f},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(22).f,o=n(29),i=n(15)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(19),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r=n(2),o=n(51),i=n(10),u=n(259),a="["+u+"]",c="​…",s=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(t,e,n){var o={},a=i(function(){return!!u[t]()||c[t]()!=c}),s=o[t]=a?e(p):u[t];n&&(o[n]=s),r(r.P+r.F*a,"String",o)},p=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(s,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},function(t,e,n){"use strict";var r=n(363),o={};o[n(15)("toStringTag")]="z",o+""!="[object z]"&&n(30)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){"use strict";var r=n(382)(!0);n(250)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){"use strict";var r=n(19),o=n(2),i=n(30),u=n(254),a=n(65),c=n(171),s=n(242),f=n(11),l=n(10),p=n(373),h=n(174),v=n(247);t.exports=function(t,e,n,d,g,y){var m=r[t],b=m,_=g?"set":"add",k=b&&b.prototype,w={},T=function(t){var e=k[t];i(k,t,"delete"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(y||k.forEach&&!l(function(){(new b).entries().next()}))){var S=new b,x=S[_](y?{}:-0,1)!=S,O=l(function(){S.has(1)}),E=p(function(t){new b(t)}),P=!y&&l(function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)});E||(b=e(function(e,n){s(e,b,t);var r=v(new m,e,b);return void 0!=n&&c(n,g,r[_],r),r}),b.prototype=k,k.constructor=b),(O||P)&&(T("delete"),T("has"),g&&T("get")),(P||x)&&T(_),y&&k.clear&&delete k.clear}else b=d.getConstructor(e,t,g,_),u(b.prototype,n),a.NEED=!0;return h(b,t),w[t]=b,o(o.G+o.W+o.F*(b!=m),w),y||d.setStrong(b,t,g),b}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(15)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){"use strict";var r=n(8);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(11),o=n(255).set;t.exports=function(t,e,n){var i,u=e.constructor;return u!==n&&"function"==typeof u&&(i=u.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){var r=n(77);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(11),o=n(77),i=n(15)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){"use strict";var r=n(251),o=n(2),i=n(30),u=n(52),a=n(29),c=n(122),s=n(372),f=n(174),l=n(54),p=n(15)("iterator"),h=!([].keys&&"next"in[].keys()),v="@@iterator",d="keys",g="values",y=function(){return this};t.exports=function(t,e,n,m,b,_,k){s(n,e,m);var w,T,S,x=function(t){if(!h&&t in F)return F[t];switch(t){case d:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",E=b==g,P=!1,F=t.prototype,M=F[p]||F[v]||b&&F[b],j=M||x(b),A=b?E?x("entries"):j:void 0,Z="Array"==e?F.entries||M:M;if(Z&&(S=l(Z.call(new t)),S!==Object.prototype&&(f(S,O,!0),r||a(S,p)||u(S,p,y))),E&&M&&M.name!==g&&(P=!0,j=function(){return M.call(this)}),r&&!k||!h&&!P&&F[p]||u(F,p,j),c[e]=j,c[O]=y,b)if(w={values:E?j:x(g),keys:_?j:x(d),entries:A},k)for(T in w)T in F||i(F,T,w[T]);else o(o.P+o.F*(h||P),e,w);return w}},function(t,e){t.exports=!1},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r=n(30);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(11),o=n(8),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(90)(Function.call,n(66).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){"use strict";var r=n(19),o=n(22),i=n(26),u=n(15)("species");t.exports=function(t){var e=r[t];i&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(175)("keys"),o=n(125);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(249),o=n(51);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(77);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){var r=n(37),o=n(32),i=n(124);t.exports=function(t){return function(e,n,u){var a,c=r(e),s=o(c.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if(a=c[f++],a!=a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(76),o=n(38),i=n(121),u=n(32);t.exports=function(t,e,n,a,c){r(e);var s=o(t),f=i(s),l=u(s.length),p=c?l-1:0,h=c?-1:1;if(n<2)for(;;){if(p in f){a=f[p],p+=h;break}if(p+=h,c?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;c?p>=0:l>p;p+=h)p in f&&(a=e(a,f[p],p,s));return a}},function(t,e,n){"use strict";var r=n(76),o=n(11),i=n(568),u=[].slice,a={},c=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!g(this,t)}}),h&&r(l.prototype,"size",{get:function(){return c(this[d])}}),l},def:function(t,e,n){var r,o,i=g(t,e);return i?i.v=n:(t._l=i={i:o=v(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[d]++,"F"!==o&&(t._i[o]=i)),t},getEntry:g,setStrong:function(t,e,n){f(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?l(0,n.k):"values"==e?l(0,n.v):l(0,[n.k,n.v]):(t._t=void 0,l(1))},n?"entries":"values",!n,!0),p(e)}}},function(t,e,n){"use strict";var r=n(22),o=n(78);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(11),o=n(19).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){t.exports=n(19).document&&document.documentElement},function(t,e,n){t.exports=!n(26)&&!n(10)(function(){return 7!=Object.defineProperty(n(366)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(122),o=n(15)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(11),o=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},function(t,e,n){var r=n(8);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(91),o=n(78),i=n(174),u={};n(52)(u,n(15)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(15)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var r=n(92),o=n(172),i=n(173),u=n(38),a=n(121),c=Object.assign;t.exports=!c||n(10)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=u(t),c=arguments.length,s=1,f=o.f,l=i.f;c>s;)for(var p,h=a(arguments[s++]),v=f?r(h).concat(f(h)):r(h),d=v.length,g=0;d>g;)l.call(h,p=v[g++])&&(n[p]=h[p]);return n}:c},function(t,e,n){var r=n(22),o=n(8),i=n(92);t.exports=n(26)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),a=u.length,c=0;a>c;)r.f(t,n=u[c++],e[n]);return t}},function(t,e,n){var r=n(37),o=n(123).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?a(t):o(r(t))}},function(t,e,n){var r=n(29),o=n(37),i=n(360)(!1),u=n(257)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),c=0,s=[];for(n in a)n!=u&&r(a,n)&&s.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(19).parseFloat,o=n(176).trim;t.exports=1/r(n(259)+"-0")!==-(1/0)?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){var r=n(19).parseInt,o=n(176).trim,i=n(259),u=/^[\-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(u.test(n)?16:10))}:r},function(t,e,n){var r=n(93),o=n(51);t.exports=function(t){return function(e,n){var i,u,a=String(o(e)),c=r(n),s=a.length;return c<0||c>=s?t?"":void 0:(i=a.charCodeAt(c),i<55296||i>56319||c+1===s||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,e,n){"use strict";var r=n(93),o=n(51);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e,n){e.f=n(15)},function(t,e,n){var r=n(363),o=n(15)("iterator"),i=n(122);t.exports=n(18).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(120),o=n(374),i=n(122),u=n(37);t.exports=n(250)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){"use strict";var r=n(364);t.exports=n(243)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(this,t);return e&&e.v},set:function(t,e){return r.def(this,0===t?0:t,e)}},r,!0)},function(t,e,n){n(26)&&"g"!=/./g.flags&&n(22).f(RegExp.prototype,"flags",{configurable:!0,get:n(246)})},function(t,e,n){n(170)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(170)("replace",2,function(t,e,n){return[function(r,o){"use strict";var i=t(this),u=void 0==r?void 0:r[e];return void 0!==u?u.call(r,i,o):n.call(String(i),r,o)},n]})},function(t,e,n){n(170)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(170)("split",2,function(t,e,r){"use strict";var o=n(249),i=r,u=[].push,a="split",c="length",s="lastIndex";if("c"=="abbc"[a](/(b)*/)[1]||4!="test"[a](/(?:)/,-1)[c]||2!="ab"[a](/(?:ab)*/)[c]||4!="."[a](/(.?)(.?)/)[c]||"."[a](/()()/)[c]>1||""[a](/.?/)[c]){var f=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(n,t,e);var r,a,l,p,h,v=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,y=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,d+"g");for(f||(r=new RegExp("^"+m.source+"$(?!\\s)",d));(a=m.exec(n))&&(l=a.index+a[0][c],!(l>g&&(v.push(n.slice(g,a.index)),!f&&a[c]>1&&a[0].replace(r,function(){for(h=1;h1&&a.index=y)));)m[s]===a.index&&m[s]++;return g===n[c]?!p&&m.test("")||v.push(""):v.push(n.slice(g)),v[c]>y?v.slice(0,y):v}}else"0"[a](void 0,0)[c]&&(r=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(n,o){var i=t(this),u=void 0==n?void 0:n[e];return void 0!==u?u.call(n,i,o):r.call(String(i),n,o)},r]})},function(t,e,n){"use strict";var r=n(364);t.exports=n(243)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r=n(19),o=n(29),i=n(26),u=n(2),a=n(30),c=n(65).KEY,s=n(10),f=n(175),l=n(174),p=n(125),h=n(15),v=n(384),d=n(572),g=n(569),y=n(567),m=n(248),b=n(8),_=n(37),k=n(79),w=n(78),T=n(91),S=n(378),x=n(66),O=n(22),E=n(92),P=x.f,F=O.f,M=S.f,j=r.Symbol,A=r.JSON,Z=A&&A.stringify,D="prototype",C=h("_hidden"),R=h("toPrimitive"),I={}.propertyIsEnumerable,N=f("symbol-registry"),z=f("symbols"),L=f("op-symbols"),q=Object[D],H="function"==typeof j,W=r.QObject,B=!W||!W[D]||!W[D].findChild,U=i&&s(function(){return 7!=T(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(q,e);r&&delete q[e],F(t,e,n),r&&t!==q&&F(q,e,r)}:F,G=function(t){var e=z[t]=T(j[D]);return e._k=t,e},X=H&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},K=function(t,e,n){return t===q&&K(L,e,n),b(t),e=k(e,!0),b(n),o(z,e)?(n.enumerable?(o(t,C)&&t[C][e]&&(t[C][e]=!1),n=T(n,{enumerable:w(0,!1)})):(o(t,C)||F(t,C,w(1,{})),t[C][e]=!0),U(t,e,n)):F(t,e,n)},Q=function(t,e){b(t);for(var n,r=y(e=_(e)),o=0,i=r.length;i>o;)K(t,n=r[o++],e[n]);return t},V=function(t,e){return void 0===e?T(t):Q(T(t),e)},J=function(t){var e=I.call(this,t=k(t,!0));return!(this===q&&o(z,t)&&!o(L,t))&&(!(e||!o(this,t)||!o(z,t)||o(this,C)&&this[C][t])||e)},Y=function(t,e){if(t=_(t),e=k(e,!0),t!==q||!o(z,e)||o(L,e)){var n=P(t,e);return!n||!o(z,e)||o(t,C)&&t[C][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=M(_(t)),r=[],i=0;n.length>i;)o(z,e=n[i++])||e==C||e==c||r.push(e);return r},tt=function(t){for(var e,n=t===q,r=M(n?L:_(t)),i=[],u=0;r.length>u;)!o(z,e=r[u++])||n&&!o(q,e)||i.push(z[e]);return i};H||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===q&&e.call(L,n),o(this,C)&&o(this[C],t)&&(this[C][t]=!1),U(this,t,w(1,n))};return i&&B&&U(q,t,{configurable:!0,set:e}),G(t)},a(j[D],"toString",function(){return this._k}),x.f=Y,O.f=K,n(123).f=S.f=$,n(173).f=J,n(172).f=tt,i&&!n(251)&&a(q,"propertyIsEnumerable",J,!0),v.f=function(t){return G(h(t))}),u(u.G+u.W+u.F*!H,{Symbol:j});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var et=E(h.store),nt=0;et.length>nt;)d(et[nt++]);u(u.S+u.F*!H,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=j(t)},keyFor:function(t){if(X(t))return g(N,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){B=!0},useSimple:function(){B=!1}}),u(u.S+u.F*!H,"Object",{create:V,defineProperty:K,defineProperties:Q,getOwnPropertyDescriptor:Y,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),A&&u(u.S+u.F*(!H||s(function(){var t=j();return"[null]"!=Z([t])||"{}"!=Z({a:t})||"{}"!=Z(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!X(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,Z.apply(A,r)}}}),j[D][R]||n(52)(j[D],R,j[D].valueOf),l(j,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){for(var r=n(386),o=n(30),i=n(19),u=n(52),a=n(122),c=n(15),s=c("iterator"),f=c("toStringTag"),l=a.Array,p=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],h=0;h<5;h++){var v,d=p[h],g=i[d],y=g&&g.prototype;if(y){y[s]||u(y,s,l),y[f]||u(y,f,d),a[d]=l;for(v in r)y[v]||o(y,v,r[v],!0)}}},function(t,e){function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(t){if(n===setTimeout)return setTimeout(t,0);if((n===defaultSetTimout||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function runClearTimeout(t){if(r===clearTimeout)return clearTimeout(t);if((r===defaultClearTimeout||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}function cleanUpNextTick(){a&&i&&(a=!1,i.length?u=i.concat(u):c=-1,u.length&&drainQueue())}function drainQueue(){if(!a){var t=runTimeout(cleanUpNextTick);a=!0;for(var e=u.length;e;){for(i=u,u=[];++c1)for(var n=1;n=0;n--)"function"==typeof t[n]&&(t[n]=Zone.current.wrap(t[n],e+"_"+n));return t}function patchPrototype(t,e){for(var n=t.constructor.name,r=function(r){var o=e[r],i=t[o];i&&(t[o]=function(t){return function(){return t.apply(this,bindArguments(arguments,n+"."+o))}}(i))},o=0;o1?new e(t,n):new e(t),i=Object.getOwnPropertyDescriptor(o,"onmessage");return i&&i.configurable===!1?(r=Object.create(o),["addEventListener","removeEventListener","send","close"].forEach(function(t){r[t]=function(){return o[t].apply(o,arguments)}})):r=o,patchOnProperties(r,["close","error","message","open"]),r};for(var n in e)t.WebSocket[n]=e[n]}function propertyDescriptorPatch(t){if(!i){var e="undefined"!=typeof WebSocket;canPatchViaPropertyDescriptor()?(u&&patchOnProperties(HTMLElement.prototype,b),patchOnProperties(XMLHttpRequest.prototype,null),"undefined"!=typeof IDBIndex&&(patchOnProperties(IDBIndex.prototype,null),patchOnProperties(IDBRequest.prototype,null),patchOnProperties(IDBOpenDBRequest.prototype,null),patchOnProperties(IDBDatabase.prototype,null),patchOnProperties(IDBTransaction.prototype,null),patchOnProperties(IDBCursor.prototype,null)),e&&patchOnProperties(WebSocket.prototype,null)):(patchViaCapturingAllTheEvents(),patchClass("XMLHttpRequest"),e&&apply(t))}}function canPatchViaPropertyDescriptor(){if(u&&!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var t=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(t&&!t.configurable)return!1}var e=Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype,"onreadystatechange");Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}});var n=new XMLHttpRequest,r=!!n.onreadystatechange;return Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",e||{}),r}function patchViaCapturingAllTheEvents(){for(var t=function(t){var e=b[t],n="on"+e;self.addEventListener(e,function(t){var e,r,o=t.target;for(r=o?o.constructor.name+"."+n:"unknown."+n;o;)o[n]&&!o[n][_]&&(e=Zone.current.wrap(o[n],r),e[_]=o[n],o[n]=e),o=o.parentElement},!0)},e=0;e "+n.zone.name+"]",n=n.parent):n=null:e[r]+=" ["+n.zone.name+"]"}}t.stack=t.zoneAwareStack=e.join("\n")}return Object.defineProperties(this,Z(Object.getPrototypeOf(this))),this}if(t.Zone)throw new Error("Zone already loaded.");var e=function(){function Zone(t,e){this._properties=null,this._parent=t,this._name=e?e.name||"unnamed":"",this._properties=e&&e.properties||{},this._zoneDelegate=new n(this,this._parent&&this._parent._zoneDelegate,e)}return Zone.assertZonePatched=function(){if(t.Promise!==k)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(Zone,"current",{get:function(){return c.zone},enumerable:!0,configurable:!0}),Object.defineProperty(Zone,"currentTask",{get:function(){return s},enumerable:!0,configurable:!0}),Object.defineProperty(Zone.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(Zone.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Zone.prototype.get=function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]},Zone.prototype.getZoneWith=function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null},Zone.prototype.fork=function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)},Zone.prototype.wrap=function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}},Zone.prototype.run=function(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),c=new o(c,this);try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{c=c.parent}},Zone.prototype.runGuarded=function(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),c=new o(c,this);try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{c=c.parent}},Zone.prototype.runTask=function(t,e,n){if(t.runCount++,t.zone!=this)throw new Error("A task can only be run in the zone which created it! (Creation: "+t.zone.name+"; Execution: "+this.name+")");var r=s;s=t,c=new o(c,this);try{"macroTask"==t.type&&t.data&&!t.data.isPeriodic&&(t.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{c=c.parent,s=r}},Zone.prototype.scheduleMicroTask=function(t,e,n,o){return this._zoneDelegate.scheduleTask(this,new r("microTask",this,t,e,n,o,null))},Zone.prototype.scheduleMacroTask=function(t,e,n,o,i){return this._zoneDelegate.scheduleTask(this,new r("macroTask",this,t,e,n,o,i))},Zone.prototype.scheduleEventTask=function(t,e,n,o,i){return this._zoneDelegate.scheduleTask(this,new r("eventTask",this,t,e,n,o,i))},Zone.prototype.cancelTask=function(t){var e=this._zoneDelegate.cancelTask(this,t);return t.runCount=-1,t.cancelFn=null,e},Zone}();e.__symbol__=__symbol__;var n=function(){function ZoneDelegate(t,e,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=e,this._forkZS=n&&(n&&n.onFork?n:e._forkZS),this._forkDlgt=n&&(n.onFork?e:e._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:e.zone),this._interceptZS=n&&(n.onIntercept?n:e._interceptZS),this._interceptDlgt=n&&(n.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:e.zone),this._invokeZS=n&&(n.onInvoke?n:e._invokeZS),this._invokeDlgt=n&&(n.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:e.zone),this._handleErrorZS=n&&(n.onHandleError?n:e._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:e.zone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:e._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:e.zone),this._invokeTaskZS=n&&(n.onInvokeTask?n:e._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:e.zone),this._cancelTaskZS=n&&(n.onCancelTask?n:e._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:e.zone),this._hasTaskZS=n&&(n.onHasTask?n:e._hasTaskZS),this._hasTaskDlgt=n&&(n.onHasTask?e:e._hasTaskDlgt),this._hasTaskCurrZone=n&&(n.onHasTask?this.zone:e.zone)}return ZoneDelegate.prototype.fork=function(t,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,n):new e(t,n)},ZoneDelegate.prototype.intercept=function(t,e,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,n):e},ZoneDelegate.prototype.invoke=function(t,e,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,n,r,o):e.apply(n,r)},ZoneDelegate.prototype.handleError=function(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)},ZoneDelegate.prototype.scheduleTask=function(t,e){try{if(this._scheduleTaskZS)return this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e);if(e.scheduleFn)e.scheduleFn(e);else{if("microTask"!=e.type)throw new Error("Task is missing scheduleFn.");scheduleMicroTask(e)}return e}finally{t==this.zone&&this._updateTaskCount(e.type,1)}},ZoneDelegate.prototype.invokeTask=function(t,e,n,r){try{return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,n,r):e.callback.apply(n,r)}finally{t!=this.zone||"eventTask"==e.type||e.data&&e.data.isPeriodic||this._updateTaskCount(e.type,-1)}},ZoneDelegate.prototype.cancelTask=function(t,e){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)throw new Error("Task does not support cancellation, or is already canceled.");n=e.cancelFn(e)}return t==this.zone&&this._updateTaskCount(e.type,-1),n},ZoneDelegate.prototype.hasTask=function(t,e){return this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)},ZoneDelegate.prototype._updateTaskCount=function(t,e){var n=this._taskCounts,r=n[t],o=n[t]=r+e;if(o<0)throw new Error("More tasks executed then were scheduled.");if(0==r||0==o){var i={microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t};try{this.hasTask(this.zone,i)}finally{this._parentDelegate&&this._parentDelegate._updateTaskCount(t,e)}}},ZoneDelegate}(),r=function(){function ZoneTask(t,e,n,r,o,i,u){this.runCount=0,this.type=t,this.zone=e,this.source=n,this.data=o,this.scheduleFn=i,this.cancelFn=u,this.callback=r;var a=this;this.invoke=function(){h++;try{return e.runTask(a,this,arguments)}finally{1==h&&drainMicroTaskQueue(),h--}}}return ZoneTask.prototype.toString=function(){return this.data&&"undefined"!=typeof this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},ZoneTask.prototype.toJSON=function(){return{type:this.type,source:this.source,data:this.data,zone:this.zone.name,invoke:this.invoke,scheduleFn:this.scheduleFn,cancelFn:this.cancelFn,runCount:this.runCount,callback:this.callback}},ZoneTask}(),o=function(){function ZoneFrame(t,e){this.parent=t,this.zone=e}return ZoneFrame}(),i=__symbol__("setTimeout"),u=__symbol__("Promise"),a=__symbol__("then"),c=new o(null,new e(null,null)),s=null,f=[],l=!1,p=[],h=0,v=__symbol__("state"),d=__symbol__("value"),g="Promise.then",y=null,m=!0,b=!1,_=0,k=function(){function ZoneAwarePromise(t){var e=this;if(!(e instanceof ZoneAwarePromise))throw new Error("Must be an instanceof Promise.");e[v]=y,e[d]=[];try{t&&t(makeResolver(e,m),makeResolver(e,b))}catch(t){resolvePromise(e,!1,t)}}return ZoneAwarePromise.toString=function(){return"function ZoneAwarePromise() { [native code] }"},ZoneAwarePromise.resolve=function(t){return resolvePromise(new this(null),m,t)},ZoneAwarePromise.reject=function(t){return resolvePromise(new this(null),b,t)},ZoneAwarePromise.race=function(t){function onResolve(t){r&&(r=e(t))}function onReject(t){r&&(r=n(t))}for(var e,n,r=new this(function(t,r){o=[t,r],e=o[0],n=o[1];var o}),o=0,i=t;o2?arguments[2]:void 0,f=Math.min((void 0===s?u:o(s,u))-c,u-a),l=1;for(c0;)c in n?n[a]=n[c]:delete n[a],a+=l,c+=l;return n}},function(t,e,n){"use strict";var r=n(38),o=n(124),i=n(32);t.exports=function(t){for(var e=r(this),n=i(e.length),u=arguments.length,a=o(u>1?arguments[1]:void 0,n),c=u>2?arguments[2]:void 0,s=void 0===c?n:o(c,n);s>a;)e[a++]=t;return e}},function(t,e,n){var r=n(171);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){var r=n(11),o=n(248),i=n(15)("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&(e=e[i],null===e&&(e=void 0))),void 0===e?Array:e}},function(t,e,n){var r=n(563);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(254),o=n(65).getWeak,i=n(8),u=n(11),a=n(242),c=n(171),s=n(50),f=n(29),l=s(5),p=s(6),h=0,v=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},g=function(t,e){return l(t.a,function(t){return t[0]===e})};d.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var s=t(function(t,r){a(t,s,e,"_i"),t._i=h++,t._l=void 0,void 0!=r&&c(r,n,t[i],t)});return r(s.prototype,{delete:function(t){if(!u(t))return!1;var e=o(t);return e===!0?v(this).delete(t):e&&f(e,this._i)&&delete e[this._i]},has:function(t){if(!u(t))return!1;var e=o(t);return e===!0?v(this).has(t):e&&f(e,this._i)}}),s},def:function(t,e,n){var r=o(i(e),!0);return r===!0?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},function(t,e,n){"use strict";var r=n(8),o=n(79),i="number";t.exports=function(t){if("string"!==t&&t!==i&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),t!=i)}},function(t,e,n){var r=n(92),o=n(172),i=n(173);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,a=n(t),c=i.f,s=0;a.length>s;)c.call(t,u=a[s++])&&e.push(u);return e}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(92),o=n(37);t.exports=function(t,e){for(var n,i=o(t),u=r(i),a=u.length,c=0;a>c;)if(i[n=u[c++]]===e)return n}},function(t,e,n){var r=n(123),o=n(172),i=n(8),u=n(19).Reflect;t.exports=u&&u.ownKeys||function(t){var e=r.f(i(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,n){var r=n(19),o=n(18),i=n(251),u=n(384),a=n(22).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,n){var r=n(2);r(r.P,"Array",{copyWithin:n(560)}),n(120)("copyWithin")},function(t,e,n){"use strict";var r=n(2),o=n(50)(4);r(r.P+r.F*!n(36)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,n){var r=n(2);r(r.P,"Array",{fill:n(561)}),n(120)("fill")},function(t,e,n){"use strict";var r=n(2),o=n(50)(2);r(r.P+r.F*!n(36)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(2),o=n(50)(6),i="findIndex",u=!0;i in[]&&Array(1)[i](function(){u=!1}),r(r.P+r.F*u,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(120)(i)},function(t,e,n){"use strict";var r=n(2),o=n(50)(5),i="find",u=!0;i in[]&&Array(1)[i](function(){u=!1}),r(r.P+r.F*u,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(120)(i)},function(t,e,n){"use strict";var r=n(2),o=n(50)(0),i=n(36)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(90),o=n(2),i=n(38),u=n(371),a=n(369),c=n(32),s=n(365),f=n(385);o(o.S+o.F*!n(373)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=i(t),h="function"==typeof this?this:Array,v=arguments.length,d=v>1?arguments[1]:void 0,g=void 0!==d,y=0,m=f(p);if(g&&(d=r(d,v>2?arguments[2]:void 0,2)),void 0==m||h==Array&&a(m))for(e=c(p.length),n=new h(e);e>y;y++)s(n,y,g?d(p[y],y):p[y]);else for(l=m.call(p),n=new h;!(o=l.next()).done;y++)s(n,y,g?u(l,d,[o.value,y],!0):o.value);return n.length=y,n}})},function(t,e,n){"use strict";var r=n(2),o=n(360)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(36)(i)),"Array",{indexOf:function(t){return u?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,n){var r=n(2);r(r.S,"Array",{isArray:n(248)})},function(t,e,n){"use strict";var r=n(2),o=n(37),i=[].join;r(r.P+r.F*(n(121)!=Object||!n(36)(i)),"Array",{join:function(t){return i.call(o(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var r=n(2),o=n(37),i=n(93),u=n(32),a=[].lastIndexOf,c=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!n(36)(a)),"Array",{lastIndexOf:function(t){if(c)return a.apply(this,arguments)||0;var e=o(this),n=u(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){"use strict";var r=n(2),o=n(50)(1);r(r.P+r.F*!n(36)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(2),o=n(365);r(r.S+r.F*n(10)(function(){function F(){}return!(Array.of.call(F)instanceof F)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(2),o=n(361);r(r.P+r.F*!n(36)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(2),o=n(361);r(r.P+r.F*!n(36)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){"use strict";var r=n(2),o=n(367),i=n(77),u=n(124),a=n(32),c=[].slice;r(r.P+r.F*n(10)(function(){o&&c.call(o)}),"Array",{slice:function(t,e){var n=a(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return c.call(this,t,e);for(var o=u(t,n),s=u(e,n),f=a(s-o),l=Array(f),p=0;p9?t:"0"+t};r(r.P+r.F*(o(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!o(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(n>99?n:"0"+u(n))+"Z"}})},function(t,e,n){"use strict";var r=n(2),o=n(38),i=n(79);r(r.P+r.F*n(10)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(15)("toPrimitive"),o=Date.prototype;r in o||n(52)(o,r,n(566))},function(t,e,n){var r=Date.prototype,o="Invalid Date",i="toString",u=r[i],a=r.getTime;new Date(NaN)+""!=o&&n(30)(r,i,function(){var t=a.call(this);return t===t?u.call(this):o})},function(t,e,n){var r=n(2);r(r.P,"Function",{bind:n(362)})},function(t,e,n){"use strict";var r=n(11),o=n(54),i=n(15)("hasInstance"),u=Function.prototype;i in u||n(22).f(u,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(22).f,o=n(78),i=n(29),u=Function.prototype,a=/^\s*function ([^ (]*)/,c="name",s=Object.isExtensible||function(){return!0};c in u||n(26)&&r(u,c,{configurable:!0,get:function(){try{var t=this,e=(""+t).match(a)[1];return i(t,c)||!s(t)||r(t,c,o(5,e)),e}catch(t){return""}}})},function(t,e,n){var r=n(2),o=n(375),i=Math.sqrt,u=Math.acosh;r(r.S+r.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+i(t-1)*i(t+1))}})},function(t,e,n){function asinh(t){return isFinite(t=+t)&&0!=t?t<0?-asinh(-t):Math.log(t+Math.sqrt(t*t+1)):t}var r=n(2),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:asinh})},function(t,e,n){var r=n(2),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(2),o=n(253);r(r.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(2);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(2),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,n){var r=n(2),o=n(252);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,n){var r=n(2),o=n(253),i=Math.pow,u=i(2,-52),a=i(2,-23),c=i(2,127)*(2-a),s=i(2,-126),f=function(t){return t+1/u-1/u};r(r.S,"Math",{fround:function(t){var e,n,r=Math.abs(t),i=o(t);return rc||n!=n?i*(1/0):i*n)}})},function(t,e,n){var r=n(2),o=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,i=0,u=0,a=arguments.length,c=0;u0?(r=n/c,i+=r*r):i+=n;return c===1/0?1/0:c*Math.sqrt(i)}})},function(t,e,n){var r=n(2),o=Math.imul;r(r.S+r.F*n(10)(function(){return o(4294967295,5)!=-5||2!=o.length}),"Math",{imul:function(t,e){var n=65535,r=+t,o=+e,i=n&r,u=n&o;return 0|i*u+((n&r>>>16)*u+i*(n&o>>>16)<<16>>>0)}})},function(t,e,n){var r=n(2);r(r.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,n){var r=n(2);r(r.S,"Math",{log1p:n(375)})},function(t,e,n){var r=n(2);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(2);r(r.S,"Math",{sign:n(253)})},function(t,e,n){var r=n(2),o=n(252),i=Math.exp;r(r.S+r.F*n(10)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(2),o=n(252),i=Math.exp;r(r.S,"Math",{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},function(t,e,n){var r=n(2);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){"use strict";var r=n(19),o=n(29),i=n(77),u=n(247),a=n(79),c=n(10),s=n(123).f,f=n(66).f,l=n(22).f,p=n(176).trim,h="Number",v=r[h],d=v,g=v.prototype,y=i(n(91)(g))==h,m="trim"in String.prototype,b=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():p(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var u,c=e.slice(2),s=0,f=c.length;so)return NaN;return parseInt(c,r)}}return+e};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof v&&(y?c(function(){g.valueOf.call(n)}):i(n)!=h)?u(new d(b(e)),n,v):b(e)};for(var _,k=n(26)?s(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;k.length>w;w++)o(d,_=k[w])&&!o(v,_)&&l(v,_,f(d,_));v.prototype=g,g.constructor=v,n(30)(r,h,v)}},function(t,e,n){var r=n(2);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(2),o=n(19).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,n){var r=n(2);r(r.S,"Number",{isInteger:n(370)})},function(t,e,n){var r=n(2);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(2),o=n(370),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},function(t,e,n){var r=n(2);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(2);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(2),o=n(380);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,n){var r=n(2),o=n(381);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,n){"use strict";var r=n(2),o=n(93),i=n(359),u=n(383),a=1..toFixed,c=Math.floor,s=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l="0",p=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*s[n], -s[n]=r%1e7,r=c(r/1e7)},h=function(t){for(var e=6,n=0;--e>=0;)n+=s[e],s[e]=c(n/t),n=n%t*1e7},v=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==s[t]){var n=String(s[t]);e=""===e?n:e+u.call(l,7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2===1?d(t,e-1,n*t):d(t*t,e/2,n)},g=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(10)(function(){a.call({})})),"Number",{toFixed:function(t){var e,n,r,a,c=i(this,f),s=o(t),y="",m=l;if(s<0||s>20)throw RangeError(f);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(y="-",c=-c),c>1e-21)if(e=g(c*d(2,69,1))-69,n=e<0?c*d(2,-e,1):c/d(2,e,1),n*=4503599627370496,e=52-e,e>0){for(p(0,n),r=s;r>=7;)p(1e7,0),r-=7;for(p(d(10,r,1),0),r=e-1;r>=23;)h(1<<23),r-=23;h(1<0?(a=m.length,m=y+(a<=s?"0."+u.call(l,s-a)+m:m.slice(0,a-s)+"."+m.slice(a-s))):m=y+m,m}})},function(t,e,n){"use strict";var r=n(2),o=n(10),i=n(359),u=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==u.call(1,void 0)})||!o(function(){u.call({})})),"Number",{toPrecision:function(t){var e=i(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(e):u.call(e,t)}})},function(t,e,n){var r=n(2);r(r.S+r.F,"Object",{assign:n(376)})},function(t,e,n){var r=n(2);r(r.S,"Object",{create:n(91)})},function(t,e,n){var r=n(2);r(r.S+r.F*!n(26),"Object",{defineProperties:n(377)})},function(t,e,n){var r=n(2);r(r.S+r.F*!n(26),"Object",{defineProperty:n(22).f})},function(t,e,n){var r=n(11),o=n(65).onFreeze;n(46)("freeze",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(37),o=n(66).f;n(46)("getOwnPropertyDescriptor",function(){return function(t,e){return o(r(t),e)}})},function(t,e,n){n(46)("getOwnPropertyNames",function(){return n(378).f})},function(t,e,n){var r=n(38),o=n(54);n(46)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(11);n(46)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(11);n(46)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(11);n(46)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(2);r(r.S,"Object",{is:n(571)})},function(t,e,n){var r=n(38),o=n(92);n(46)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(11),o=n(65).onFreeze;n(46)("preventExtensions",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(11),o=n(65).onFreeze;n(46)("seal",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},function(t,e,n){var r=n(2);r(r.S,"Object",{setPrototypeOf:n(255).set})},function(t,e,n){var r=n(2),o=n(380);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(t,e,n){var r=n(2),o=n(381);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(t,e,n){var r=n(2),o=n(76),i=n(8),u=(n(19).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n(10)(function(){u(function(){})}),"Reflect",{apply:function(t,e,n){var r=o(t),c=i(n);return u?u(r,e,c):a.call(r,e,c)}})},function(t,e,n){var r=n(2),o=n(91),i=n(76),u=n(8),a=n(11),c=n(10),s=n(362),f=(n(19).Reflect||{}).construct,l=c(function(){function F(){}return!(f(function(){},[],F)instanceof F)}),p=!c(function(){f(function(){})});r(r.S+r.F*(l||p),"Reflect",{construct:function(t,e){i(t),u(e);var n=arguments.length<3?t:i(arguments[2]);if(p&&!l)return f(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(s.apply(t,r))}var c=n.prototype,h=o(a(c)?c:Object.prototype),v=Function.apply.call(t,h,e);return a(v)?v:h}})},function(t,e,n){var r=n(22),o=n(2),i=n(8),u=n(79);o(o.S+o.F*n(10)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){i(t),e=u(e,!0),i(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(2),o=n(66).f,i=n(8);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(2),o=n(8),i=function(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(372)(i,"Object",function(){var t,e=this,n=e._k;do if(e._i>=n.length)return{value:void 0,done:!0};while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,e,n){var r=n(66),o=n(2),i=n(8);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(i(t),e)}})},function(t,e,n){var r=n(2),o=n(54),i=n(8);r(r.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,n){function get(t,e){var n,u,s=arguments.length<3?t:arguments[2];return c(t)===s?t[e]:(n=r.f(t,e))?i(n,"value")?n.value:void 0!==n.get?n.get.call(s):void 0:a(u=o(t))?get(u,e,s):void 0}var r=n(66),o=n(54),i=n(29),u=n(2),a=n(11),c=n(8);u(u.S,"Reflect",{get:get})},function(t,e,n){var r=n(2);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(2),o=n(8),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,e,n){var r=n(2);r(r.S,"Reflect",{ownKeys:n(570)})},function(t,e,n){var r=n(2),o=n(8),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(2),o=n(255);o&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){function set(t,e,n){var a,l,p=arguments.length<4?t:arguments[3],h=o.f(s(t),e);if(!h){if(f(l=i(t)))return set(l,e,n,p);h=c(0)}return u(h,"value")?!(h.writable===!1||!f(p))&&(a=o.f(p,e)||c(0),a.value=n,r.f(p,e,a),!0):void 0!==h.set&&(h.set.call(p,n),!0)}var r=n(22),o=n(66),i=n(54),u=n(29),a=n(2),c=n(78),s=n(8),f=n(11);a(a.S,"Reflect",{set:set})},function(t,e,n){var r=n(19),o=n(247),i=n(22).f,u=n(123).f,a=n(249),c=n(246),s=r.RegExp,f=s,l=s.prototype,p=/a/g,h=/a/g,v=new s(p)!==p;if(n(26)&&(!v||n(10)(function(){return h[n(15)("match")]=!1,s(p)!=p||s(h)==h||"/a/i"!=s(p,"i")}))){s=function(t,e){var n=this instanceof s,r=a(t),i=void 0===e;return!n&&r&&t.constructor===s&&i?t:o(v?new f(r&&!i?t.source:t,e):f((r=t instanceof s)?t.source:t,r&&i?c.call(t):e),n?this:l,s)};for(var d=(function(t){t in s||i(s,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})}),g=u(f),y=0;g.length>y;)d(g[y++]);l.constructor=s,s.prototype=l,n(30)(r,"RegExp",s)}n(256)("RegExp")},function(t,e,n){"use strict";n(388);var r=n(8),o=n(246),i=n(26),u="toString",a=/./[u],c=function(t){n(30)(RegExp.prototype,u,t,!0)};n(10)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?c(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):a.name!=u&&c(function(){return a.call(this)})},function(t,e,n){"use strict";n(31)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(31)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(31)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(31)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";var r=n(2),o=n(382)(!1);r(r.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,n){"use strict";var r=n(2),o=n(32),i=n(258),u="endsWith",a=""[u];r(r.P+r.F*n(245)(u),"String",{endsWith:function(t){var e=i(this,t,u),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),c=void 0===n?r:Math.min(o(n),r),s=String(t);return a?a.call(e,s,c):e.slice(c-s.length,c)===s}})},function(t,e,n){"use strict";n(31)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(31)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(31)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){var r=n(2),o=n(124),i=String.fromCharCode,u=String.fromCodePoint;r(r.S+r.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,u=0;r>u;){if(e=+arguments[u++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(((e-=65536)>>10)+55296,e%1024+56320))}return n.join("")}})},function(t,e,n){"use strict";var r=n(2),o=n(258),i="includes";r(r.P+r.F*n(245)(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";n(31)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(31)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){var r=n(2),o=n(37),i=n(32);r(r.S,"String",{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,u=[],a=0;n>a;)u.push(String(e[a++])),a1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(31)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(31)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(31)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){"use strict";n(176)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r,o=n(50)(0),i=n(30),u=n(65),a=n(376),c=n(565),s=n(11),f=u.getWeak,l=Object.isExtensible,p=c.ufstore,h={},v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},d={get:function(t){if(s(t)){var e=f(t);return e===!0?p(this).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(this,t,e)}},g=t.exports=n(243)("WeakMap",v,d,c,!0,!0);7!=(new g).set((Object.freeze||Object)(h),7).get(h)&&(r=c.getConstructor(v),a(r.prototype,d),u.NEED=!0,o(["delete","has","get","set"],function(t){var e=g.prototype,n=e[t];i(e,t,function(e,o){if(s(e)&&!l(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)})}))},function(t,e,n){var r=n(53),o=n(8),i=r.key,u=r.set;r.exp({defineMetadata:function(t,e,n,r){u(t,e,o(n),i(r))}})},function(t,e,n){var r=n(53),o=n(8),i=r.key,u=r.map,a=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:i(arguments[2]),r=u(o(e),n,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var c=a.get(e);return c.delete(n),!!c.size||a.delete(e)}})},function(t,e,n){var r=n(393),o=n(562),i=n(53),u=n(8),a=n(54),c=i.keys,s=i.key,f=function(t,e){var n=c(t,e),i=a(t);if(null===i)return n;var u=f(i,e);return u.length?n.length?o(new r(n.concat(u))):u:n};i.exp({getMetadataKeys:function(t){return f(u(t),arguments.length<2?void 0:s(arguments[1]))}})},function(t,e,n){var r=n(53),o=n(8),i=n(54),u=r.has,a=r.get,c=r.key,s=function(t,e,n){var r=u(t,e,n);if(r)return a(t,e,n);var o=i(e);return null!==o?s(t,o,n):void 0};r.exp({getMetadata:function(t,e){return s(t,o(e),arguments.length<3?void 0:c(arguments[2]))}})},function(t,e,n){var r=n(53),o=n(8),i=r.keys,u=r.key;r.exp({getOwnMetadataKeys:function(t){return i(o(t),arguments.length<2?void 0:u(arguments[1]))}})},function(t,e,n){var r=n(53),o=n(8),i=r.get,u=r.key;r.exp({getOwnMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,n){var r=n(53),o=n(8),i=n(54),u=r.has,a=r.key,c=function(t,e,n){var r=u(t,e,n);if(r)return!0;var o=i(e);return null!==o&&c(t,o,n)};r.exp({hasMetadata:function(t,e){return c(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(53),o=n(8),i=r.has,u=r.key;r.exp({hasOwnMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,n){var r=n(53),o=n(8),i=n(76),u=r.key,a=r.set;r.exp({metadata:function(t,e){return function(n,r){a(t,e,(void 0!==r?o:i)(n),u(r))}}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(443),n(445)}]); \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/vendor.33bda34e949d8f295463.js b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/vendor.33bda34e949d8f295463.js deleted file mode 100755 index e0908702..00000000 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/dist/vendor.33bda34e949d8f295463.js +++ /dev/null @@ -1,1878 +0,0 @@ -webpackJsonp([0],[function(t,e,r){"use strict";var n=r(24),i=r(960),o=r(131),s=function(){function Observable(t){this._isScalar=!1,t&&(this._subscribe=t)}return Observable.prototype.lift=function(t){var e=new Observable;return e.source=this,e.operator=t,e},Observable.prototype.subscribe=function(t,e,r){var n=this.operator,o=i.toSubscriber(t,e,r);if(n?n.call(o,this.source):o.add(this._subscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},Observable.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var i=r.subscribe(function(e){if(i)try{t(e)}catch(t){n(t),i.unsubscribe()}else t(e)},n,e)})},Observable.prototype._subscribe=function(t){return this.source.subscribe(t)},Observable.prototype[o.$$observable]=function(){return this},Observable.create=function(t){return new Observable(t)},Observable}();e.Observable=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(502);r.d(e,"createPlatform",function(){return n.a}),r.d(e,"assertPlatform",function(){return n.b}),r.d(e,"destroyPlatform",function(){return n.c}),r.d(e,"getPlatform",function(){return n.d}),r.d(e,"PlatformRef",function(){return n.e}),r.d(e,"ApplicationRef",function(){return n.f}),r.d(e,"enableProdMode",function(){return n.g}),r.d(e,"isDevMode",function(){return n.h}),r.d(e,"createPlatformFactory",function(){return n.i}),r.d(e,"NgProbeToken",function(){return n.j}),r.d(e,"APP_ID",function(){return n.k}),r.d(e,"PACKAGE_ROOT_URL",function(){return n.l}),r.d(e,"PLATFORM_INITIALIZER",function(){return n.m}),r.d(e,"APP_BOOTSTRAP_LISTENER",function(){return n.n}),r.d(e,"APP_INITIALIZER",function(){return n.o}),r.d(e,"ApplicationInitStatus",function(){return n.p}),r.d(e,"DebugElement",function(){return n.q}),r.d(e,"DebugNode",function(){return n.r}),r.d(e,"asNativeElements",function(){return n.s}),r.d(e,"getDebugNode",function(){return n.t}),r.d(e,"Testability",function(){return n.u}),r.d(e,"TestabilityRegistry",function(){return n.v}),r.d(e,"setTestabilityGetter",function(){return n.w}),r.d(e,"TRANSLATIONS",function(){return n.x}),r.d(e,"TRANSLATIONS_FORMAT",function(){return n.y}),r.d(e,"LOCALE_ID",function(){return n.z}),r.d(e,"ApplicationModule",function(){return n.A}),r.d(e,"wtfCreateScope",function(){return n.B}),r.d(e,"wtfLeave",function(){return n.C}),r.d(e,"wtfStartTimeRange",function(){return n.D}),r.d(e,"wtfEndTimeRange",function(){return n.E}),r.d(e,"Type",function(){return n.F}),r.d(e,"EventEmitter",function(){return n.G}),r.d(e,"ErrorHandler",function(){return n.H}),r.d(e,"AnimationTransitionEvent",function(){return n.I}),r.d(e,"AnimationPlayer",function(){return n.J}),r.d(e,"AnimationStyles",function(){return n.K}),r.d(e,"AnimationKeyframe",function(){return n.L}),r.d(e,"Sanitizer",function(){return n.M}),r.d(e,"SecurityContext",function(){return n.N}),r.d(e,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return n.O}),r.d(e,"Attribute",function(){return n.P}),r.d(e,"ContentChild",function(){return n.Q}),r.d(e,"ContentChildren",function(){return n.R}),r.d(e,"Query",function(){return n.S}),r.d(e,"ViewChild",function(){return n.T}),r.d(e,"ViewChildren",function(){return n.U}),r.d(e,"Component",function(){return n.V}),r.d(e,"Directive",function(){return n.W}),r.d(e,"HostBinding",function(){return n.X}),r.d(e,"HostListener",function(){return n.Y}),r.d(e,"Input",function(){return n.Z}),r.d(e,"Output",function(){return n._0}),r.d(e,"Pipe",function(){return n._1}),r.d(e,"AfterContentChecked",function(){return n._2}),r.d(e,"AfterContentInit",function(){return n._3}),r.d(e,"AfterViewChecked",function(){return n._4}),r.d(e,"AfterViewInit",function(){return n._5}),r.d(e,"DoCheck",function(){return n._6}),r.d(e,"OnChanges",function(){return n._7}),r.d(e,"OnDestroy",function(){return n._8}),r.d(e,"OnInit",function(){return n._9}),r.d(e,"CUSTOM_ELEMENTS_SCHEMA",function(){return n._10}),r.d(e,"NO_ERRORS_SCHEMA",function(){return n._11}),r.d(e,"NgModule",function(){return n._12}),r.d(e,"ViewEncapsulation",function(){return n._13}),r.d(e,"Version",function(){return n._14}),r.d(e,"VERSION",function(){return n._15}),r.d(e,"Class",function(){return n._16}),r.d(e,"forwardRef",function(){return n._17}),r.d(e,"resolveForwardRef",function(){return n._18}),r.d(e,"Injector",function(){return n._19}),r.d(e,"ReflectiveInjector",function(){return n._20}),r.d(e,"ResolvedReflectiveFactory",function(){return n._21}),r.d(e,"ReflectiveKey",function(){return n._22}),r.d(e,"OpaqueToken",function(){return n._23}),r.d(e,"Inject",function(){return n._24}),r.d(e,"Optional",function(){return n._25}),r.d(e,"Injectable",function(){return n._26}),r.d(e,"Self",function(){return n._27}),r.d(e,"SkipSelf",function(){return n._28}),r.d(e,"Host",function(){return n._29}),r.d(e,"NgZone",function(){return n._30}),r.d(e,"RenderComponentType",function(){return n._31}),r.d(e,"Renderer",function(){return n._32}),r.d(e,"RootRenderer",function(){return n._33}),r.d(e,"COMPILER_OPTIONS",function(){return n._34}),r.d(e,"Compiler",function(){return n._35}),r.d(e,"CompilerFactory",function(){return n._36}),r.d(e,"ModuleWithComponentFactories",function(){return n._37}),r.d(e,"ComponentFactory",function(){return n._38}),r.d(e,"ComponentRef",function(){return n._39}),r.d(e,"ComponentFactoryResolver",function(){return n._40}),r.d(e,"ElementRef",function(){return n._41}),r.d(e,"NgModuleFactory",function(){return n._42}),r.d(e,"NgModuleRef",function(){return n._43}),r.d(e,"NgModuleFactoryLoader",function(){return n._44}),r.d(e,"getModuleFactory",function(){return n._45}),r.d(e,"QueryList",function(){return n._46}),r.d(e,"SystemJsNgModuleLoader",function(){return n._47}),r.d(e,"SystemJsNgModuleLoaderConfig",function(){return n._48}),r.d(e,"TemplateRef",function(){return n._49}),r.d(e,"ViewContainerRef",function(){return n._50}),r.d(e,"EmbeddedViewRef",function(){return n._51}),r.d(e,"ViewRef",function(){return n._52}),r.d(e,"ChangeDetectionStrategy",function(){return n._53}),r.d(e,"ChangeDetectorRef",function(){return n._54}),r.d(e,"CollectionChangeRecord",function(){return n._55}),r.d(e,"DefaultIterableDiffer",function(){return n._56}),r.d(e,"IterableDiffers",function(){return n._57}),r.d(e,"KeyValueChangeRecord",function(){return n._58}),r.d(e,"KeyValueDiffers",function(){return n._59}),r.d(e,"SimpleChange",function(){return n._60}),r.d(e,"WrappedValue",function(){return n._61}),r.d(e,"platformCore",function(){return n._62}),r.d(e,"__core_private__",function(){return n._63}),r.d(e,"AUTO_STYLE",function(){return n._64}),r.d(e,"AnimationEntryMetadata",function(){return n._65}),r.d(e,"AnimationStateMetadata",function(){return n._66}),r.d(e,"AnimationStateDeclarationMetadata",function(){return n._67}),r.d(e,"AnimationStateTransitionMetadata",function(){return n._68}),r.d(e,"AnimationMetadata",function(){return n._69}),r.d(e,"AnimationKeyframesSequenceMetadata",function(){return n._70}),r.d(e,"AnimationStyleMetadata",function(){return n._71}),r.d(e,"AnimationAnimateMetadata",function(){return n._72}),r.d(e,"AnimationWithStepsMetadata",function(){return n._73}),r.d(e,"AnimationSequenceMetadata",function(){return n._74}),r.d(e,"AnimationGroupMetadata",function(){return n._75}),r.d(e,"animate",function(){return n._76}),r.d(e,"group",function(){return n._77}),r.d(e,"sequence",function(){return n._78}),r.d(e,"style",function(){return n._79}),r.d(e,"state",function(){return n._80}),r.d(e,"keyframes",function(){return n._81}),r.d(e,"transition",function(){return n._82}),r.d(e,"trigger",function(){return n._83})},,function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(272),o=r(20),s=r(397),a=r(183),u=function(t){function Subscriber(e,r,n){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!e){this.destination=s.empty;break}if("object"==typeof e){e instanceof Subscriber?(this.destination=e,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,e,r,n)}}return n(Subscriber,t),Subscriber.prototype[a.$$rxSubscriber]=function(){return this},Subscriber.create=function(t,e,r){var n=new Subscriber(t,e,r);return n.syncErrorThrowable=!1,n},Subscriber.prototype.next=function(t){this.isStopped||this._next(t)},Subscriber.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Subscriber.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Subscriber.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},Subscriber.prototype._next=function(t){this.destination.next(t)},Subscriber.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},Subscriber.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},Subscriber}(o.Subscription);e.Subscriber=u;var c=function(t){function SafeSubscriber(e,r,n,o){t.call(this),this._parent=e;var s,a=this;i.isFunction(r)?s=r:r&&(a=r,s=r.next,n=r.error,o=r.complete,i.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=n,this._complete=o}return n(SafeSubscriber,t),SafeSubscriber.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parent;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},SafeSubscriber.prototype.error=function(t){if(!this.isStopped){var e=this._parent;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},SafeSubscriber.prototype.complete=function(){if(!this.isStopped){var t=this._parent;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},SafeSubscriber.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},SafeSubscriber.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},SafeSubscriber.prototype._unsubscribe=function(){var t=this._parent;this._context=null,this._parent=null,t.unsubscribe()},SafeSubscriber}(u)},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=function(t){function OuterSubscriber(){t.apply(this,arguments)}return n(OuterSubscriber,t),OuterSubscriber.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},OuterSubscriber.prototype.notifyError=function(t,e){this.destination.error(t)},OuterSubscriber.prototype.notifyComplete=function(t){this.destination.complete()},OuterSubscriber}(i.Subscriber);e.OuterSubscriber=o},function(t,e,r){"use strict";function subscribeToResult(t,e,r,p){var f=new c.InnerSubscriber(t,r,p);if(f.closed)return null;if(e instanceof a.Observable)return e._isScalar?(f.next(e.value),f.complete(),null):e.subscribe(f);if(i.isArray(e)){for(var h=0,d=e.length;h=0?(n="anonymous_"+E++,e.__anonymousType=n):n=_sanitizeIdentifier(n),n}function identifierModuleUrl(t){var e=t.reference;return e instanceof i.a?e.filePath:a.c.importUri(e)}function tokenName(t){return r.i(s.c)(t.value)?_sanitizeIdentifier(t.value):identifierName(t.identifier)}function tokenReference(t){return r.i(s.c)(t.identifier)?t.identifier.reference:t.value}function createHostComponentMeta(t,e){var r=u.a.parse(e.selector)[0].getMatchingElementTemplate();return T.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new x({encapsulation:n.ViewEncapsulation.None,template:r,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:n.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function _normalizeArray(t){return t||[]}var n=r(1),i=r(58),o=r(69),s=r(6),a=r(14),u=r(144),c=r(28);r.d(e,"m",function(){return f}),r.d(e,"b",function(){return d}),r.d(e,"n",function(){return m}),r.d(e,"h",function(){return v}),r.d(e,"f",function(){return b}),r.d(e,"g",function(){return _}),r.d(e,"e",function(){return g}),r.d(e,"c",function(){return S}),r.d(e,"d",function(){return w}),e.a=identifierName,e.i=identifierModuleUrl,r.d(e,"q",function(){return C}),e.k=tokenName,e.j=tokenReference,r.d(e,"l",function(){return A}),r.d(e,"p",function(){return x}),r.d(e,"o",function(){return T}),e.v=createHostComponentMeta,r.d(e,"t",function(){return O}),r.d(e,"r",function(){return P}),r.d(e,"s",function(){return R}),r.d(e,"u",function(){return M});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var l=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},p=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,f=function(){function CompileAnimationEntryMetadata(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return CompileAnimationEntryMetadata}(),h=function(){function CompileAnimationStateMetadata(){}return CompileAnimationStateMetadata}(),d=function(t){function CompileAnimationStateDeclarationMetadata(e,r){t.call(this),this.stateNameExpr=e,this.styles=r}return l(CompileAnimationStateDeclarationMetadata,t),CompileAnimationStateDeclarationMetadata}(h),m=function(t){function CompileAnimationStateTransitionMetadata(e,r){t.call(this),this.stateChangeExpr=e,this.steps=r}return l(CompileAnimationStateTransitionMetadata,t),CompileAnimationStateTransitionMetadata}(h),y=function(){function CompileAnimationMetadata(){}return CompileAnimationMetadata}(),v=function(t){function CompileAnimationKeyframesSequenceMetadata(e){void 0===e&&(e=[]),t.call(this),this.steps=e}return l(CompileAnimationKeyframesSequenceMetadata,t),CompileAnimationKeyframesSequenceMetadata}(y),b=function(t){function CompileAnimationStyleMetadata(e,r){void 0===r&&(r=null),t.call(this),this.offset=e,this.styles=r}return l(CompileAnimationStyleMetadata,t),CompileAnimationStyleMetadata}(y),_=function(t){function CompileAnimationAnimateMetadata(e,r){void 0===e&&(e=0),void 0===r&&(r=null),t.call(this),this.timings=e,this.styles=r}return l(CompileAnimationAnimateMetadata,t),CompileAnimationAnimateMetadata}(y),g=function(t){function CompileAnimationWithStepsMetadata(e){void 0===e&&(e=null),t.call(this),this.steps=e}return l(CompileAnimationWithStepsMetadata,t),CompileAnimationWithStepsMetadata}(y),S=function(t){function CompileAnimationSequenceMetadata(e){void 0===e&&(e=null),t.call(this,e)}return l(CompileAnimationSequenceMetadata,t),CompileAnimationSequenceMetadata}(g),w=function(t){function CompileAnimationGroupMetadata(e){void 0===e&&(e=null),t.call(this,e)}return l(CompileAnimationGroupMetadata,t),CompileAnimationGroupMetadata}(g),E=0,C={};C.Pipe=0,C.Directive=1,C.NgModule=2,C.Injectable=3,C[C.Pipe]="Pipe",C[C.Directive]="Directive",C[C.NgModule]="NgModule",C[C.Injectable]="Injectable";var A=function(){function CompileStylesheetMetadata(t){var e=void 0===t?{}:t,r=e.moduleUrl,n=e.styles,i=e.styleUrls;this.moduleUrl=r,this.styles=_normalizeArray(n),this.styleUrls=_normalizeArray(i)}return CompileStylesheetMetadata}(),x=function(){function CompileTemplateMetadata(t){var e=void 0===t?{}:t,r=e.encapsulation,n=e.template,i=e.templateUrl,s=e.styles,a=e.styleUrls,u=e.externalStylesheets,c=e.animations,l=e.ngContentSelectors,p=e.interpolation;if(this.encapsulation=r,this.template=n,this.templateUrl=i,this.styles=_normalizeArray(s),this.styleUrls=_normalizeArray(a),this.externalStylesheets=_normalizeArray(u),this.animations=c?o.b.flatten(c):[],this.ngContentSelectors=l||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p}return CompileTemplateMetadata.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},CompileTemplateMetadata}(),T=function(){function CompileDirectiveMetadata(t){var e=void 0===t?{}:t,r=e.isHost,n=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.hostListeners,p=e.hostProperties,f=e.hostAttributes,h=e.providers,d=e.viewProviders,m=e.queries,y=e.viewQueries,v=e.entryComponents,b=e.template;this.isHost=!!r,this.type=n,this.isComponent=i,this.selector=o,this.exportAs=s,this.changeDetection=a,this.inputs=u,this.outputs=c,this.hostListeners=l,this.hostProperties=p,this.hostAttributes=f,this.providers=_normalizeArray(h),this.viewProviders=_normalizeArray(d),this.queries=_normalizeArray(m),this.viewQueries=_normalizeArray(y),this.entryComponents=_normalizeArray(v),this.template=b}return CompileDirectiveMetadata.create=function(t){var e=void 0===t?{}:t,n=e.isHost,i=e.type,o=e.isComponent,a=e.selector,u=e.exportAs,l=e.changeDetection,f=e.inputs,h=e.outputs,d=e.host,m=e.providers,y=e.viewProviders,v=e.queries,b=e.viewQueries,_=e.entryComponents,g=e.template,S={},w={},E={};r.i(s.c)(d)&&Object.keys(d).forEach(function(t){var e=d[t],n=t.match(p);null===n?E[t]=e:r.i(s.c)(n[1])?w[n[1]]=e:r.i(s.c)(n[2])&&(S[n[2]]=e)});var C={};r.i(s.c)(f)&&f.forEach(function(t){var e=r.i(c.a)(t,[t,t]);C[e[0]]=e[1]});var A={};return r.i(s.c)(h)&&h.forEach(function(t){var e=r.i(c.a)(t,[t,t]);A[e[0]]=e[1]}),new CompileDirectiveMetadata({isHost:n,type:i,isComponent:!!o,selector:a,exportAs:u,changeDetection:l,inputs:C,outputs:A,hostListeners:S,hostProperties:w,hostAttributes:E,providers:m,viewProviders:y,queries:v,viewQueries:b,entryComponents:_,template:g})},CompileDirectiveMetadata.prototype.toSummary=function(){return{summaryKind:C.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary()}},CompileDirectiveMetadata}(),O=function(){function CompilePipeMetadata(t){var e=void 0===t?{}:t,r=e.type,n=e.name,i=e.pure;this.type=r,this.name=n,this.pure=!!i}return CompilePipeMetadata.prototype.toSummary=function(){return{summaryKind:C.Pipe,type:this.type,name:this.name,pure:this.pure}},CompilePipeMetadata}(),P=function(){function CompileNgModuleMetadata(t){var e=void 0===t?{}:t,r=e.type,n=e.providers,i=e.declaredDirectives,o=e.exportedDirectives,s=e.declaredPipes,a=e.exportedPipes,u=e.entryComponents,c=e.bootstrapComponents,l=e.importedModules,p=e.exportedModules,f=e.schemas,h=e.transitiveModule,d=e.id;this.type=r,this.declaredDirectives=_normalizeArray(i),this.exportedDirectives=_normalizeArray(o),this.declaredPipes=_normalizeArray(s),this.exportedPipes=_normalizeArray(a),this.providers=_normalizeArray(n),this.entryComponents=_normalizeArray(u),this.bootstrapComponents=_normalizeArray(c),this.importedModules=_normalizeArray(l),this.exportedModules=_normalizeArray(p),this.schemas=_normalizeArray(f),this.id=d,this.transitiveModule=h}return CompileNgModuleMetadata.prototype.toSummary=function(){return{summaryKind:C.NgModule,type:this.type,entryComponents:this.transitiveModule.entryComponents,providers:this.transitiveModule.providers,modules:this.transitiveModule.modules,exportedDirectives:this.transitiveModule.exportedDirectives,exportedPipes:this.transitiveModule.exportedPipes}},CompileNgModuleMetadata}(),R=function(){function TransitiveCompileNgModuleMetadata(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return TransitiveCompileNgModuleMetadata.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},TransitiveCompileNgModuleMetadata.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},TransitiveCompileNgModuleMetadata.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},TransitiveCompileNgModuleMetadata.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},TransitiveCompileNgModuleMetadata.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},TransitiveCompileNgModuleMetadata.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},TransitiveCompileNgModuleMetadata.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.reference)||(this.entryComponentsSet.add(t.reference),this.entryComponents.push(t))},TransitiveCompileNgModuleMetadata}(),M=function(){function ProviderMeta(t,e){var r=e.useClass,n=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=r,this.useValue=n,this.useExisting=i,this.useFactory=o,this.dependencies=s,this.multi=!!a}return ProviderMeta}()},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(0),o=r(3),s=r(20),a=r(185),u=r(398),c=r(183),l=function(t){function SubjectSubscriber(e){t.call(this,e),this.destination=e}return n(SubjectSubscriber,t),SubjectSubscriber}(o.Subscriber);e.SubjectSubscriber=l;var p=function(t){function Subject(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(Subject,t),Subject.prototype[c.$$rxSubscriber]=function(){return new l(this)},Subject.prototype.lift=function(t){var e=new f(this,this);return e.operator=t,e},Subject.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i0&&t<0;){i--,t++;var a=e.charCodeAt(i);if(a==n.a){o--;var u=e.substr(0,i-1).lastIndexOf(String.fromCharCode(n.a));s=u>0?i-u:i}else s--}for(;i0;){var a=e.charCodeAt(i);i++,t--,a==n.a?(o++,s=0):s++}return new ParseLocation(this.file,i,o,s)},ParseLocation.prototype.getContext=function(t,e){var n=this.file.content,o=this.offset;if(r.i(i.c)(o)){o>n.length-1&&(o=n.length-1);for(var s=o,a=0,u=0;a0&&(o--,a++,"\n"!=n[o]||++u!=e););for(a=0,u=0;a]"+t.after+'")':"",r=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+r},ParseError}()},function(t,e,r){"use strict";var n=r(84);r.d(e,"h",function(){return n.b}),r.d(e,"i",function(){return n.c}),r.d(e,"j",function(){return n.a}),r.d(e,"k",function(){return n.d}),r.d(e,"l",function(){return n.e}),r.d(e,"m",function(){return n.f});var i=r(210);r.d(e,"a",function(){return i.b}),r.d(e,"b",function(){return i.a});var o=r(108);r.d(e,"c",function(){return o.a});var s=r(505);r.d(e,"d",function(){return s.a});var a=r(213);r.d(e,"e",function(){return a.b});var u=r(212);r.d(e,"f",function(){return u.a});var c=r(211);r.d(e,"g",function(){return c.a})},,,,,function(t,e,r){"use strict";(function(t){function getTypeNameForDebugging(t){return t.name||typeof t}function isPresent(t){return null!=t}function isBlank(t){return null==t}function stringify(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),r=e.indexOf("\n");return r===-1?e:e.substring(0,r)}function isJsObject(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function getSymbolIterator(){if(!s)if(n.Symbol&&Symbol.iterator)s=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e1;){var o=n.shift();i=i.hasOwnProperty(o)&&null!=i[o]?i[o]:i[o]={}}void 0!==i&&null!==i||(i={}),i[n.shift()]=r}function getSymbolIterator(){if(!o)if(n.Symbol&&Symbol.iterator)o=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e=t.length)return null;var c=t[a],l=i[u],p=l.startsWith(":");if(!p&&l!==c.path)return null;p&&(o[l.substring(1)]=c),s.push(c),a++}return"full"===r.pathMatch&&(e.hasChildren()||a0?t[t.length-1]:null}function merge(t,e){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function forEach(t,e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}function waitForMap(t,e){var n=[],s={};if(forEach(t,function(t,r){r===p.a&&n.push(u.map.call(e(r,t),function(t){return s[r]=t,t}))}),forEach(t,function(t,r){r!==p.a&&n.push(u.map.call(e(r,t),function(t){return s[r]=t,t}))}),n.length>0){var c=o.concatAll.call(i.of.apply(void 0,n)),l=a.last.call(c);return u.map.call(l,function(){return s})}return r.i(i.of)(s)}function andObservables(t){var e=c.mergeAll.call(t);return s.every.call(e,function(t){return t===!0})}function wrapIntoObservable(t){return r.i(l.a)(t)?t:r.i(l.b)(t)?r.i(n.fromPromise)(t):r.i(i.of)(t)}var n=r(181),i=(r.n(n),r(80)),o=(r.n(i),r(265)),s=(r.n(o),r(267)),a=(r.n(s),r(405)),u=(r.n(a),r(81)),c=(r.n(u),r(94)),l=(r.n(c),r(555)),p=r(45);e.f=shallowEqualArrays,e.c=shallowEqual,e.a=flatten,e.i=last,e.e=merge,e.d=forEach,e.h=waitForMap,e.g=andObservables,e.b=wrapIntoObservable},,,,,,function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(0),o=r(261),s=r(67),a=r(68),u=function(t){function ArrayObservable(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(ArrayObservable,t),ArrayObservable.create=function(t,e){return new ArrayObservable(t,e)},ArrayObservable.of=function(){for(var t=[],e=0;e1?new ArrayObservable(t,r):1===n?new o.ScalarObservable(t[0],r):new s.EmptyObservable(r)},ArrayObservable.dispatch=function(t){var e=t.array,r=t.index,n=t.count,i=t.subscriber;return r>=n?void i.complete():(i.next(e[r]),void(i.closed||(t.index=r+1,this.schedule(t))))},ArrayObservable.prototype._subscribe=function(t){var e=0,r=this.array,n=r.length,i=this.scheduler;if(i)return i.schedule(ArrayObservable.dispatch,0,{array:r,index:e,count:n,subscriber:t});for(var o=0;o0&&n.push(new h.u(h.v(x),i)),n.push(new h.t(e)),t.methods.push(new h.q("ngDoCheck",[new h.o(O.name,h.d(r.i(c.a)(c.b.AppView),[h.m])),new h.o(R.name,h.m),new h.o(x.name,h.s)],n,h.s))}function addCheckInputMethod(t,e){var n=r.i(i.a)(e),o=[h.e.prop(E).set(h.f(!0)).toStmt(),h.e.prop(S).prop(t).set(A).toStmt()];e.genChanges&&o.push(h.e.prop(w).key(h.f(t)).set(h.g(r.i(c.a)(c.b.SimpleChange)).instantiate([n.expression,A])).toStmt());var s=r.i(i.b)({currValExpr:A,forceUpdate:T,stmts:[]},n.expression,x,o);e.methods.push(new h.q("check_"+t,[new h.o(A.name,h.m),new h.o(x.name,h.s),new h.o(T.name,h.s)],s))}function addCheckHostMethod(t,e,n){var a=[],u=[new h.o(O.name,h.d(r.i(c.a)(c.b.AppView),[h.m])),new h.o(P.name,h.d(r.i(c.a)(c.b.AppView),[h.m])),new h.o(R.name,h.m),new h.o(x.name,h.s)];t.forEach(function(t,l){var p=r.i(i.a)(n),f=r.i(o.b)(n,null,h.e.prop(S),t.value,p.bindingId);if(f){var d;t.needsRuntimeSecurityContext&&(d=h.a("secCtx_"+u.length),u.push(new h.o(d.name,h.d(r.i(c.a)(c.b.SecurityContext)))));var m;if(t.isAnimation){var y=r.i(s.a)(O,P,t,e,h.e.prop(C).or(h.g(r.i(c.a)(c.b.noop))),R,f.currValExpr,p.expression),v=y.updateStmts,b=y.detachStmts;m=v,(_=n.detachStmts).push.apply(_,b)}else m=r.i(s.b)(O,t,R,f.currValExpr,n.compilerConfig.logBindingUpdate,d);a.push.apply(a,r.i(i.b)(f,p.expression,x,m));var _}}),n.methods.push(new h.q("checkHost",u,a))}function addHandleEventMethod(t,e){var n=h.a("result"),i=[n.set(h.f(!0)).toDeclStmt(h.s)];t.forEach(function(t,s){var a=r.i(o.c)(e,null,h.e.prop(S),t.handler,"sub_"+s),u=a.stmts;a.preventDefault&&u.push(n.set(a.preventDefault.and(n)).toStmt()),i.push(new h.u(M.equals(h.f(t.fullName)),u))}),i.push(new h.t(n)),e.methods.push(new h.q("handleEvent",[new h.o(M.name,h.r),new h.o(o.d.event.name,h.m)],i,h.s))}function addSubscribeMethod(t,e){var n=[new h.o(O.name,h.d(r.i(c.a)(c.b.AppView),[h.m])),new h.o(C,h.m)],i=[h.e.prop(C).set(h.a(C)).toStmt()];Object.keys(t.outputs).forEach(function(r,o){var s=t.outputs[r],a="emit"+o;n.push(new h.o(a,h.s));var u="subscription"+o;e.fields.push(new h.c(u,h.m)),i.push(new h.u(h.a(a),[h.e.prop(u).set(h.e.prop(S).prop(r).callMethod(h.O.SubscribeObservable,[h.a(C).callMethod(h.O.Bind,[O,h.f(s)])])).toStmt()])),e.destroyStmts.push(h.e.prop(u).and(h.e.prop(u).callMethod("unsubscribe",[])).toStmt())}),e.methods.push(new h.q("subscribe",n,i))}function parseHostBindings(t,e,i){var o=[],s=new v.a(e,p.a,i,[],o),a=r.i(n.i)(t.type),u=a?"in Directive "+r.i(n.a)(t.type)+" in "+a:"in Directive "+r.i(n.a)(t.type),c=new d.b("",u),l=new d.c(new d.d(c,null,null,null),new d.d(c,null,null,null)),f=s.createDirectiveHostPropertyAsts(t.toSummary(),l),h=s.createDirectiveHostEventAsts(t.toSummary(),l);return new k(f,h,o)}function reportParseErrors(t,e){var r=t.filter(function(t){return t.level===d.e.WARNING}),n=t.filter(function(t){return t.level===d.e.FATAL});if(r.length>0&&this._console.warn("Directive parse warnings:\n"+r.join("\n")),n.length>0)throw new Error("Directive parse errors:\n"+n.join("\n"))}var n=r(12),i=r(282),o=r(99),s=r(283),a=r(59),u=r(82),c=r(16),l=r(17),p=r(41),f=r(199),h=r(9),d=r(33),m=r(14),y=r(62),v=r(296);r.d(e,"a",function(){return D}),r.d(e,"b",function(){return j});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var b=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},_=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},g=function(){function DirectiveWrapperCompileResult(t,e){this.statements=t,this.dirWrapperClassVar=e}return DirectiveWrapperCompileResult}(),S="context",w="_changes",E="_changed",C="_eventHandler",A=h.a("currValue"),x=h.a("throwOnChange"),T=h.a("forceUpdate"),O=h.a("view"),P=h.a("componentView"),R=h.a("el"),M=h.a("eventName"),I=h.e.prop(w).set(h.l([])).toStmt(),D=function(){function DirectiveWrapperCompiler(t,e,r,n){this.compilerConfig=t,this._exprParser=e,this._schemaRegistry=r,this._console=n}return DirectiveWrapperCompiler.dirWrapperClassName=function(t){return"Wrapper_"+r.i(n.a)(t)},DirectiveWrapperCompiler.prototype.compile=function(t){var e=parseHostBindings(t,this._exprParser,this._schemaRegistry);reportParseErrors(e.errors,this._console);var r=new N(this.compilerConfig,t);Object.keys(t.inputs).forEach(function(t){addCheckInputMethod(t,r)}),addNgDoCheckMethod(r),addCheckHostMethod(e.hostProps,e.hostListeners,r),addHandleEventMethod(e.hostListeners,r),addSubscribeMethod(t,r);var n=r.build();return new g([n],n.name)},DirectiveWrapperCompiler=b([r.i(l.a)(),_("design:paramtypes",[a.a,u.a,y.a,m.F])],DirectiveWrapperCompiler)}(),N=function(){function DirectiveWrapperBuilder(t,e){this.compilerConfig=t,this.dirMeta=e,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this.detachStmts=[],this.destroyStmts=[];var r=e.type.lifecycleHooks;this.genChanges=r.indexOf(m.G.OnChanges)!==-1||this.compilerConfig.logBindingUpdate,this.ngOnChanges=r.indexOf(m.G.OnChanges)!==-1,this.ngOnInit=r.indexOf(m.G.OnInit)!==-1,this.ngDoCheck=r.indexOf(m.G.DoCheck)!==-1,this.ngOnDestroy=r.indexOf(m.G.OnDestroy)!==-1,this.ngOnDestroy&&this.destroyStmts.push(h.e.prop(S).callMethod("ngOnDestroy",[]).toStmt())}return DirectiveWrapperBuilder.prototype.build=function(){for(var t=[],e=0;e0?[e.callMethod("ngOnDestroy",[]).toStmt()]:[]},DirectiveWrapperExpressions.subscribe=function(t,e,r,n,i,o){var s=!1,a=[];return Object.keys(t.outputs).forEach(function(e){var n=t.outputs[e],i=r.indexOf(n)>-1;s=s||i,a.push(h.f(i))}),e.forEach(function(t){t.isAnimation&&r.length>0&&(s=!0)}),s?[n.callMethod("subscribe",[i,o].concat(a)).toStmt()]:[]},DirectiveWrapperExpressions.handleEvent=function(t,e,r,n){return e.callMethod("handleEvent",[r,n])},DirectiveWrapperExpressions}()},function(t,e,r){"use strict";function visitAll(t,e,r){void 0===r&&(r=null);var n=[],i=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=i(t);e&&n.push(e)}),n}r.d(e,"d",function(){return n}),r.d(e,"b",function(){return i}),r.d(e,"c",function(){return o}),r.d(e,"f",function(){return s}),r.d(e,"e",function(){return a}),r.d(e,"a",function(){return u}),e.g=visitAll;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function Text(t,e){this.value=t,this.sourceSpan=e}return Text.prototype.visit=function(t,e){return t.visitText(this,e)},Text}(),i=function(){function Expansion(t,e,r,n,i){this.switchValue=t,this.type=e,this.cases=r,this.sourceSpan=n,this.switchValueSourceSpan=i}return Expansion.prototype.visit=function(t,e){return t.visitExpansion(this,e)},Expansion}(),o=function(){function ExpansionCase(t,e,r,n,i){this.value=t,this.expression=e,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=i}return ExpansionCase.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},ExpansionCase}(),s=function(){function Attribute(t,e,r,n){this.name=t,this.value=e,this.sourceSpan=r,this.valueSpan=n}return Attribute.prototype.visit=function(t,e){return t.visitAttribute(this,e)},Attribute}(),a=function(){function Element(t,e,r,n,i,o){this.name=t,this.attrs=e,this.children=r,this.sourceSpan=n,this.startSourceSpan=i,this.endSourceSpan=o}return Element.prototype.visit=function(t,e){return t.visitElement(this,e)},Element}(),u=function(){function Comment(t,e){this.value=t,this.sourceSpan=e}return Comment.prototype.visit=function(t,e){return t.visitComment(this,e)},Comment}()},function(t,e,r){"use strict";r.d(e,"a",function(){return n});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function ElementSchemaRegistry(){}return ElementSchemaRegistry.prototype.hasProperty=function(t,e,r){},ElementSchemaRegistry.prototype.hasElement=function(t,e){},ElementSchemaRegistry.prototype.securityContext=function(t,e,r){},ElementSchemaRegistry.prototype.allKnownElementNames=function(){},ElementSchemaRegistry.prototype.getMappedPropName=function(t){},ElementSchemaRegistry.prototype.getDefaultComponentElementName=function(){},ElementSchemaRegistry.prototype.validateProperty=function(t){},ElementSchemaRegistry.prototype.validateAttribute=function(t){},ElementSchemaRegistry.prototype.normalizeAnimationStyleProperty=function(t){},ElementSchemaRegistry.prototype.normalizeAnimationStyleValue=function(t,e,r){},ElementSchemaRegistry}()},,function(t,e,r){"use strict";r.d(e,"b",function(){return n}),r.d(e,"a",function(){return i}),r.d(e,"d",function(){return o}),r.d(e,"e",function(){return s}),r.d(e,"c",function(){return a});var n={};n.Get=0,n.Post=1,n.Put=2,n.Delete=3,n.Options=4,n.Head=5,n.Patch=6,n[n.Get]="Get",n[n.Post]="Post",n[n.Put]="Put",n[n.Delete]="Delete",n[n.Options]="Options",n[n.Head]="Head",n[n.Patch]="Patch";var i={};i.Unsent=0,i.Open=1,i.HeadersReceived=2,i.Loading=3,i.Done=4,i.Cancelled=5,i[i.Unsent]="Unsent",i[i.Open]="Open",i[i.HeadersReceived]="HeadersReceived",i[i.Loading]="Loading",i[i.Done]="Done",i[i.Cancelled]="Cancelled";var o={};o.Basic=0,o.Cors=1,o.Default=2,o.Error=3,o.Opaque=4,o[o.Basic]="Basic",o[o.Cors]="Cors",o[o.Default]="Default",o[o.Error]="Error",o[o.Opaque]="Opaque";var s={};s.NONE=0,s.JSON=1,s.FORM=2,s.FORM_DATA=3,s.TEXT=4,s.BLOB=5,s.ARRAY_BUFFER=6,s[s.NONE]="NONE",s[s.JSON]="JSON",s[s.FORM]="FORM",s[s.FORM_DATA]="FORM_DATA",s[s.TEXT]="TEXT",s[s.BLOB]="BLOB",s[s.ARRAY_BUFFER]="ARRAY_BUFFER";var a={};a.Text=0,a.Json=1,a.ArrayBuffer=2,a.Blob=3,a[a.Text]="Text",a[a.Json]="Json",a[a.ArrayBuffer]="ArrayBuffer",a[a.Blob]="Blob"},,,function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(0),o=function(t){function EmptyObservable(e){t.call(this),this.scheduler=e}return n(EmptyObservable,t),EmptyObservable.create=function(t){return new EmptyObservable(t)},EmptyObservable.dispatch=function(t){var e=t.subscriber;e.complete()},EmptyObservable.prototype._subscribe=function(t){var e=this.scheduler;return e?e.schedule(EmptyObservable.dispatch,0,{subscriber:t}):void t.complete()},EmptyObservable}(i.Observable);e.EmptyObservable=o},function(t,e,r){"use strict";function isScheduler(t){return t&&"function"==typeof t.schedule}e.isScheduler=isScheduler},function(t,e,r){"use strict";r(6);r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function StringMapWrapper(){}return StringMapWrapper.merge=function(t,e){for(var r={},n=0,i=Object.keys(t);n=0;r--)if(e(t[r]))return t[r];return null},ListWrapper.removeAll=function(t,e){for(var r=0;r-1&&t.splice(n,1)}},ListWrapper.remove=function(t,e){var r=t.indexOf(e);return r>-1&&(t.splice(r,1),!0)},ListWrapper.equals=function(t,e){if(t.length!=e.length)return!1;for(var r=0;r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(t){function HtmlParser(){t.call(this,i.a)}return a(HtmlParser,t),HtmlParser.prototype.parse=function(e,r,n,i){return void 0===n&&(n=!1),void 0===i&&(i=o.a),t.prototype.parse.call(this,e,r,n,i)},HtmlParser=u([r.i(n.a)(),c("design:paramtypes",[])],HtmlParser)}(s.a)},function(t,e,r){"use strict";function splitNsName(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(e==-1)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function getNsPrefix(t){return null===t?null:splitNsName(t)[0]}function mergeNsAndName(t,e){return t?":"+t+":"+e:e}r.d(e,"a",function(){return n}),e.e=splitNsName,e.c=getNsPrefix,e.b=mergeNsAndName,r.d(e,"d",function(){return i});var n={};n.RAW_TEXT=0,n.ESCAPABLE_RAW_TEXT=1,n.PARSABLE_DATA=2,n[n.RAW_TEXT]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA]="PARSABLE_DATA";var i={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"}},function(t,e,r){"use strict";function createOfflineCompileUrlResolver(){return new c(".")}function getUrlScheme(t){var e=_split(t);return e&&e[p.Scheme]||""}function _buildFromEncodedParts(t,e,n,o,s,a,u){var c=[];return r.i(i.c)(t)&&c.push(t+":"),r.i(i.c)(n)&&(c.push("//"),r.i(i.c)(e)&&c.push(e+"@"),c.push(n),r.i(i.c)(o)&&c.push(":"+o)),r.i(i.c)(s)&&c.push(s),r.i(i.c)(a)&&c.push("?"+a),r.i(i.c)(u)&&c.push("#"+u),c.join("")}function _split(t){return t.match(l)}function _removeDotSegments(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",r="/"===t[t.length-1]?"/":"",n=t.split("/"),i=[],o=0,s=0;s0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+r}function _joinAndCanonicalizePath(t){var e=t[p.Path];return e=r.i(i.d)(e)?"":_removeDotSegments(e),t[p.Path]=e,_buildFromEncodedParts(t[p.Scheme],t[p.UserInfo],t[p.Domain],t[p.Port],e,t[p.QueryData],t[p.Fragment])}function _resolveUrl(t,e){var n=_split(encodeURI(e)),o=_split(t);if(r.i(i.c)(n[p.Scheme]))return _joinAndCanonicalizePath(n);n[p.Scheme]=o[p.Scheme];for(var s=p.Scheme;s<=p.Port;s++)r.i(i.d)(n[s])&&(n[s]=o[s]);if("/"==n[p.Path][0])return _joinAndCanonicalizePath(n);var a=o[p.Path];r.i(i.d)(a)&&(a="/");var u=a.lastIndexOf("/");return a=a.substring(0,u+1)+n[p.Path],n[p.Path]=a,_joinAndCanonicalizePath(n)}var n=r(1),i=r(6),o=r(17);e.c=createOfflineCompileUrlResolver,r.d(e,"d",function(){return u}),r.d(e,"a",function(){return c}),e.b=getUrlScheme;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u={provide:n.PACKAGE_ROOT_URL,useValue:"/"},c=function(){function UrlResolver(t){void 0===t&&(t=null),this._packagePrefix=t}return UrlResolver.prototype.resolve=function(t,e){var n=e;r.i(i.c)(t)&&t.length>0&&(n=_resolveUrl(t,n));var o=_split(n),s=this._packagePrefix;if(r.i(i.c)(s)&&r.i(i.c)(o)&&"package"==o[p.Scheme]){var a=o[p.Path];return s=s.replace(/\/+$/,""),a=a.replace(/^\/+/,""),s+"/"+a}return n},UrlResolver.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[n.PACKAGE_ROOT_URL]}]}]},UrlResolver=s([r.i(o.a)(),a("design:paramtypes",[String])],UrlResolver)}(),l=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),p={};p.Scheme=1,p.UserInfo=2,p.Domain=3,p.Port=4,p.Path=5,p.QueryData=6,p.Fragment=7,p[p.Scheme]="Scheme",p[p.UserInfo]="UserInfo",p[p.Domain]="Domain",p[p.Port]="Port",p[p.Path]="Path",p[p.QueryData]="QueryData",p[p.Fragment]="Fragment"},function(t,e,r){"use strict";function getPropertyInView(t,e,r){if(e===r)return t;for(var n=o.e,i=e;i!==r&&i.declarationElement.view;)i=i.declarationElement.view,n=n.prop("parentView");if(i!==r)throw new Error("Internal error: Could not calculate a property in a parent view: "+t);return t.visitExpression(new u(n,r),null)}function injectFromViewParentInjector(t,e,n){var a;a=t.viewType===s.n.HOST?o.e:o.e.prop("parentView");var u=[r.i(i.b)(e),o.e.prop("parentIndex")];return n&&u.push(o.b),a.callMethod("injectorGet",u)}function getViewClassName(t,e){return"View_"+r.i(n.a)(t.type)+e}function getHandleEventMethodName(t){return"handleEvent_"+t}var n=r(12),i=r(40),o=r(9),s=r(14);e.c=getPropertyInView,e.b=injectFromViewParentInjector,e.a=getViewClassName,e.d=getHandleEventMethodName;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var a=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},u=function(t){function _ReplaceViewTransformer(e,r){t.call(this),this._viewExpr=e,this._view=r}return a(_ReplaceViewTransformer,t),_ReplaceViewTransformer.prototype._isThis=function(t){return t instanceof o.A&&t.builtin===o.F.This},_ReplaceViewTransformer.prototype.visitReadVarExpr=function(t,e){return this._isThis(t)?this._viewExpr:t},_ReplaceViewTransformer.prototype.visitReadPropExpr=function(e,r){return this._isThis(e.receiver)&&(this._view.fields.some(function(t){return t.name==e.name})||this._view.getters.some(function(t){return t.name==e.name}))?this._viewExpr.cast(this._view.classType).prop(e.name):t.prototype.visitReadPropExpr.call(this,e,r)},_ReplaceViewTransformer}(o.G)},,function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function createEmptyUrlTree(){return new o(new s([],{}),{},null)}function containsTree(t,e,r){return r?equalQueryParams(t.queryParams,e.queryParams)&&equalSegmentGroups(t.root,e.root):containsQueryParams(t.queryParams,e.queryParams)&&containsSegmentGroup(t.root,e.root)}function equalQueryParams(t,e){return r.i(i.c)(t,e)}function equalSegmentGroups(t,e){if(!equalPath(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var r in e.children){if(!t.children[r])return!1;if(!equalSegmentGroups(t.children[r],e.children[r]))return!1}return!0}function containsQueryParams(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(r){return e[r]===t[r]})}function containsSegmentGroup(t,e){return containsSegmentGroupHelper(t,e,e.segments)}function containsSegmentGroupHelper(t,e,r){if(t.segments.length>r.length){var i=t.segments.slice(0,r.length);return!!equalPath(i,r)&&!e.hasChildren()}if(t.segments.length===r.length){if(!equalPath(t.segments,r))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!containsSegmentGroup(t.children[o],e.children[o]))return!1}return!0}var i=r.slice(0,t.segments.length),s=r.slice(t.segments.length);return!!equalPath(t.segments,i)&&(!!t.children[n.a]&&containsSegmentGroupHelper(t.children[n.a],e,s))}function equalSegments(t,e){if(t.length!==e.length)return!1;for(var n=0;n0?o+"("+s.join("//")+")":""+o}if(t.hasChildren()&&!e){var a=mapChildrenIntoArray(t,function(e,r){return r===n.a?[serializeSegment(t.children[n.a],!1)]:[r+":"+serializeSegment(e,!1)]});return serializePaths(t)+"/("+a.join("//")+")"}return serializePaths(t)}function encode(t){return encodeURIComponent(t)}function decode(t){return decodeURIComponent(t)}function serializePath(t){return""+encode(t.path)+serializeParams(t.parameters)}function serializeParams(t){return pairs(t).map(function(t){return";"+encode(t.first)+"="+encode(t.second)}).join("")}function serializeQueryParams(t){var e=Object.keys(t).map(function(e){var r=t[e];return Array.isArray(r)?r.map(function(t){return encode(e)+"="+encode(t)}).join("&"):encode(e)+"="+encode(r)});return e.length?"?"+e.join("&"):""}function pairs(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(new l(r,t[r]));return e}function matchSegments(t){p.lastIndex=0;var e=t.match(p);return e?e[0]:""}function matchQueryParams(t){f.lastIndex=0;var e=t.match(p);return e?e[0]:""}function matchUrlQueryParamValue(t){h.lastIndex=0;var e=t.match(h);return e?e[0]:""}var n=r(45),i=r(49);e.g=createEmptyUrlTree,e.h=containsTree,r.d(e,"e",function(){return o}),r.d(e,"c",function(){return s}),r.d(e,"b",function(){return a}),e.f=equalSegments,e.i=mapChildrenIntoArray,r.d(e,"d",function(){return u}),r.d(e,"a",function(){return c});var o=function(){function UrlTree(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}return UrlTree.prototype.toString=function(){return(new c).serialize(this)},UrlTree}(),s=function(){function UrlSegmentGroup(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,r.i(i.d)(e,function(t,e){return t.parent=n})}return UrlSegmentGroup.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(UrlSegmentGroup.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),UrlSegmentGroup.prototype.toString=function(){return serializePaths(this)},UrlSegmentGroup}(),a=function(){function UrlSegment(t,e){this.path=t,this.parameters=e}return UrlSegment.prototype.toString=function(){return serializePath(this)},UrlSegment}(),u=function(){function UrlSerializer(){}return UrlSerializer.prototype.parse=function(t){},UrlSerializer.prototype.serialize=function(t){},UrlSerializer}(),c=function(){function DefaultUrlSerializer(){}return DefaultUrlSerializer.prototype.parse=function(t){var e=new d(t);return new o(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},DefaultUrlSerializer.prototype.serialize=function(t){var e="/"+serializeSegment(t.root,!0),r=serializeQueryParams(t.queryParams),n=null!==t.fragment&&void 0!==t.fragment?"#"+encodeURI(t.fragment):"";return""+e+r+n},DefaultUrlSerializer}(),l=function(){function Pair(t,e){this.first=t,this.second=e}return Pair}(),p=/^[^\/()?;=&#]+/,f=/^[^=?&#]+/,h=/^[^?&#]+/,d=function(){function UrlParser(t){this.url=t,this.remaining=t}return UrlParser.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},UrlParser.prototype.capture=function(t){if(!this.remaining.startsWith(t))throw new Error('Expected "'+t+'".');this.remaining=this.remaining.substring(t.length)},UrlParser.prototype.parseRootSegment=function(){return this.remaining.startsWith("/")&&this.capture("/"),""===this.remaining||this.remaining.startsWith("?")||this.remaining.startsWith("#")?new s([],{}):new s([],this.parseChildren())},UrlParser.prototype.parseChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegments());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegments());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[n.a]=new s(t,e)),r},UrlParser.prototype.parseSegments=function(){var t=matchSegments(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");this.capture(t);var e={};return this.peekStartsWith(";")&&(e=this.parseMatrixParams()),new a(decode(t),e)},UrlParser.prototype.parseQueryParams=function(){var t={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(t);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(t);return t},UrlParser.prototype.parseFragment=function(){return this.peekStartsWith("#")?decodeURI(this.remaining.substring(1)):null},UrlParser.prototype.parseMatrixParams=function(){for(var t={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(t);return t},UrlParser.prototype.parseParam=function(t){var e=matchSegments(this.remaining);if(e){this.capture(e);var r="";if(this.peekStartsWith("=")){this.capture("=");var n=matchSegments(this.remaining);n&&(r=n,this.capture(r))}t[decode(e)]=decode(r)}},UrlParser.prototype.parseQueryParam=function(t){var e=matchQueryParams(this.remaining);if(e){this.capture(e);var r="";if(this.peekStartsWith("=")){this.capture("=");var n=matchUrlQueryParamValue(this.remaining);n&&(r=n,this.capture(r))}var i=decode(e),o=decode(r);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}},UrlParser.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var r=matchSegments(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=n.a);var a=this.parseChildren();e[o]=1===Object.keys(a).length?a[n.a]:new s([],a),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),e},UrlParser}()},,,,,function(t,e,r){"use strict";var n=r(55);e.of=n.ArrayObservable.of},function(t,e,r){"use strict";function map(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new o(t,e))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e.map=map;var o=function(){function MapOperator(t,e){this.project=t,this.thisArg=e}return MapOperator.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},MapOperator}();e.MapOperator=o;var s=function(t){function MapSubscriber(e,r,n){t.call(this,e),this.project=r,this.count=0,this.thisArg=n||this}return n(MapSubscriber,t),MapSubscriber.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},MapSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function _createInterpolateRegExp(t){var e=r.i(i.h)(t.start)+"([\\s\\S]*?)"+r.i(i.h)(t.end);return new RegExp(e,"g")}var n=r(137),i=r(6),o=r(17),s=r(41),a=r(195),u=r(102);r.d(e,"a",function(){return h});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var c=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(){function SplitInterpolation(t,e,r){this.strings=t,this.expressions=e,this.offsets=r}return SplitInterpolation}(),f=function(){function TemplateBindingParseResult(t,e,r){this.templateBindings=t,this.warnings=e,this.errors=r}return TemplateBindingParseResult}(),h=function(){function Parser(t){this._lexer=t,this.errors=[]}return Parser.prototype.parseAction=function(t,e,r){void 0===r&&(r=s.a),this._checkNoInterpolation(t,e,r);var n=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new d(t,e,i,n.length,!0,this.errors,t.length-n.length).parseChain();return new a.f(o,t,e,this.errors)},Parser.prototype.parseBinding=function(t,e,r){void 0===r&&(r=s.a);var n=this._parseBindingAst(t,e,r);return new a.f(n,t,e,this.errors)},Parser.prototype.parseSimpleBinding=function(t,e,r){void 0===r&&(r=s.a);var n=this._parseBindingAst(t,e,r),i=m.check(n);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new a.f(n,t,e,this.errors)},Parser.prototype._reportError=function(t,e,r,n){this.errors.push(new a.g(t,e,r,n))},Parser.prototype._parseBindingAst=function(t,e,n){var o=this._parseQuote(t,e);if(r.i(i.c)(o))return o;this._checkNoInterpolation(t,e,n);var s=this._stripComments(t),a=this._lexer.tokenize(s);return new d(t,e,a,s.length,!1,this.errors,t.length-s.length).parseChain()},Parser.prototype._parseQuote=function(t,e){if(r.i(i.d)(t))return null;var n=t.indexOf(":");if(n==-1)return null;var o=t.substring(0,n).trim();if(!r.i(u.a)(o))return null;var s=t.substring(n+1);return new a.h(new a.i(0,t.length),o,s,e)},Parser.prototype.parseTemplateBindings=function(t,e,r){var n=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});n.unshift.apply(n,i)}return new d(e,r,n,e.length,!1,this.errors,0).parseTemplateBindings()},Parser.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=s.a);var o=this.splitInterpolation(t,e,n);if(null==o)return null;for(var u=[],c=0;c0?(c+=r.start.length,a.push(f),u.push(c),c+=f.length+r.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,l,r)+" in",e),a.push("$implict"),u.push(c))}return new p(o,a,u)},Parser.prototype.wrapLiteralPrimitive=function(t,e){return new a.f(new a.k(new a.i(0,r.i(i.d)(t)?0:t.length),t),t,e,this.errors)},Parser.prototype._stripComments=function(t){var e=this._commentStart(t);return r.i(i.c)(e)?t.substring(0,e).trim():t},Parser.prototype._commentStart=function(t){for(var e=null,o=0;o1&&this._reportError("Got interpolation ("+r.start+r.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,r)+" in",e)},Parser.prototype._findInterpolationErrorColumn=function(t,e,r){for(var n="",i=0;i":case"<=":case">=":this.advance();var r=this.parseAdditive();t=new a.o(this.span(t.span.start),e,t,r);continue}break}return t},_ParseAST.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==u.e.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var r=this.parseMultiplicative();t=new a.o(this.span(t.span.start),e,t,r);continue}break}return t},_ParseAST.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==u.e.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();t=new a.o(this.span(t.span.start),e,t,r);continue}break}return t},_ParseAST.prototype.parsePrefix=function(){if(this.next.type==u.e.Operator){var t=this.inputIndex,e=this.next.strValue,r=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),r=this.parsePrefix(),new a.o(this.span(t),e,new a.k(new a.i(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new a.p(this.span(t),r)}}return this.parseCallChain()},_ParseAST.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(n.e))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(n.f)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(n.g),this.optionalOperator("=")){var r=this.parseConditional();t=new a.q(this.span(t.span.start),t,e,r)}else t=new a.r(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(n.h))return t;this.rparensExpected++;var i=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(n.i),t=new a.s(this.span(t.span.start),t,i)}},_ParseAST.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(n.h)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(n.i),e}if(this.next.isKeywordNull())return this.advance(),new a.k(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new a.k(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new a.k(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new a.k(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new a.t(this.span(t));if(this.optionalCharacter(n.f)){this.rbracketsExpected++;var r=this.parseExpressionList(n.g);return this.rbracketsExpected--,this.expectCharacter(n.g),new a.u(this.span(t),r)}if(this.next.isCharacter(n.j))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new a.t(this.span(t)),!1);if(this.next.isNumber()){var i=this.next.toNumber();return this.advance(),new a.k(this.span(t),i)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new a.k(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new a.d(this.span(t))):(this.error("Unexpected token "+this.next),new a.d(this.span(t)))},_ParseAST.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(n.k));return e},_ParseAST.prototype.parseLiteralMap=function(){var t=[],e=[],r=this.inputIndex;if(this.expectCharacter(n.j),!this.optionalCharacter(n.l)){this.rbracesExpected++;do{var i=this.expectIdentifierOrKeywordOrString();t.push(i),this.expectCharacter(n.d),e.push(this.parsePipe())}while(this.optionalCharacter(n.k));this.rbracesExpected--,this.expectCharacter(n.l)}return new a.v(this.span(r),t,e)},_ParseAST.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var r=t.span.start,i=this.expectIdentifierOrKeyword();if(this.optionalCharacter(n.h)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(n.i),this.rparensExpected--;var s=this.span(r);return e?new a.a(s,t,i,o):new a.b(s,t,i,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new a.d(this.span(r))):new a.w(this.span(r),t,i);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new a.d(this.span(r));var u=this.parseConditional();return new a.x(this.span(r),t,i,u)}return new a.c(this.span(r),t,i)},_ParseAST.prototype.parseCallArguments=function(){if(this.next.isCharacter(n.i))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(n.k));return t},_ParseAST.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},_ParseAST.prototype.parseTemplateBindings=function(){for(var t=[],e=null,r=[];this.index0&&t[t.length-1]===e}var n=r(6),i=r(33),o=r(61),s=r(41),a=r(481),u=r(71);r.d(e,"b",function(){return p}),r.d(e,"a",function(){return f});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var c=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},l=function(t){function TreeError(e,r,n){t.call(this,r,n),this.elementName=e}return c(TreeError,t),TreeError.create=function(t,e,r){return new TreeError(t,e,r)},TreeError}(i.a),p=function(){function ParseTreeResult(t,e){this.rootNodes=t,this.errors=e}return ParseTreeResult}(),f=function(){function Parser(t){this.getTagDefinition=t}return Parser.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=s.a);var i=a.a(t,e,this.getTagDefinition,r,n),o=new h(i.tokens,this.getTagDefinition).build();return new p(o.rootNodes,i.errors.concat(o.errors))},Parser}(),h=function(){function _TreeBuilder(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return _TreeBuilder.prototype.build=function(){for(;this._peek.type!==a.b.EOF;)this._peek.type===a.b.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===a.b.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===a.b.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===a.b.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===a.b.TEXT||this._peek.type===a.b.RAW_TEXT||this._peek.type===a.b.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===a.b.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new p(this._rootNodes,this._errors)},_TreeBuilder.prototype._advance=function(){var t=this._peek;return this._index0)return this._errors=this._errors.concat(s.errors),null;var u=new i.c(t.sourceSpan.start,n.sourceSpan.end),c=new i.c(e.sourceSpan.start,n.sourceSpan.end);return new o.c(t.parts[0],s.rootNodes,u,t.sourceSpan,c)},_TreeBuilder.prototype._collectExpansionExpTokens=function(t){for(var e=[],r=[a.b.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==a.b.EXPANSION_FORM_START&&this._peek.type!==a.b.EXPANSION_CASE_EXP_START||r.push(this._peek.type),this._peek.type===a.b.EXPANSION_CASE_EXP_END){if(!lastOnStack(r,a.b.EXPANSION_CASE_EXP_START))return this._errors.push(l.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0==r.length)return e}if(this._peek.type===a.b.EXPANSION_FORM_END){if(!lastOnStack(r,a.b.EXPANSION_FORM_START))return this._errors.push(l.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===a.b.EOF)return this._errors.push(l.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},_TreeBuilder.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var i=this._getParentElement();r.i(n.c)(i)&&0==i.children.length&&this.getTagDefinition(i.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new o.d(e,t.sourceSpan))},_TreeBuilder.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},_TreeBuilder.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],s=[];this._peek.type===a.b.ATTR_NAME;)s.push(this._consumeAttr(this._advance()));var c=this._getElementFullName(e,n,this._getParentElement()),p=!1;if(this._peek.type===a.b.TAG_OPEN_END_VOID){this._advance(),p=!0;var f=this.getTagDefinition(c);f.canSelfClose||null!==r.i(u.c)(c)||f.isVoid||this._errors.push(l.create(c,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===a.b.TAG_OPEN_END&&(this._advance(),p=!1);var h=this._peek.sourceSpan.start,d=new i.c(t.sourceSpan.start,h),m=new o.e(c,s,[],d,d,null);this._pushElement(m),p&&(this._popElement(c),m.endSourceSpan=d)},_TreeBuilder.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var r=this.getTagDefinition(t.name),n=this._getParentElementSkippingContainers(),i=n.parent,s=n.container;if(i&&r.requireExtraParent(i.name)){var a=new o.e(r.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,s,a)}this._addToParent(t),this._elementStack.push(t)},_TreeBuilder.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid?this._errors.push(l.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"')):this._popElement(e)||this._errors.push(l.create(e,t.sourceSpan,'Unexpected closing tag "'+t.parts[1]+'"'))},_TreeBuilder.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var r=this._elementStack[e];if(r.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(r.name).closedByParent)return!1}return!1},_TreeBuilder.prototype._consumeAttr=function(t){var e,n=r.i(u.b)(t.parts[0],t.parts[1]),s=t.sourceSpan.end,c="";if(this._peek.type===a.b.ATTR_VALUE){var l=this._advance();c=l.parts[0],s=l.sourceSpan.end,e=l.sourceSpan}return new o.f(n,c,new i.c(t.sourceSpan.start,s),e)},_TreeBuilder.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},_TreeBuilder.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if("ng-container"!==this._elementStack[e].name)return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},_TreeBuilder.prototype._addToParent=function(t){var e=this._getParentElement();r.i(n.c)(e)?e.children.push(t):this._rootNodes.push(t)},_TreeBuilder.prototype._insertBeforeContainer=function(t,e,r){if(e){if(t){var n=t.children.indexOf(e);t.children[n]=r}else this._rootNodes.push(r);r.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,r)}else this._addToParent(r),this._elementStack.push(r)},_TreeBuilder.prototype._getElementFullName=function(t,e,i){return r.i(n.d)(t)&&(t=this.getTagDefinition(e).implicitNamespacePrefix,r.i(n.d)(t)&&r.i(n.c)(i)&&(t=r.i(u.c)(i.name))),r.i(u.b)(t,e)},_TreeBuilder}()},function(t,e,r){"use strict";var n=r(85);r.d(e,"b",function(){return i}),r.d(e,"c",function(){return o}),r.d(e,"a",function(){return s}),r.d(e,"d",function(){return a}),r.d(e,"e",function(){return u}),r.d(e,"f",function(){return c});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=r.i(n.b)("Inject",[["token",void 0]]),o=r.i(n.b)("Optional",[]),s=r.i(n.a)("Injectable",[]),a=r.i(n.b)("Self",[]),u=r.i(n.b)("SkipSelf",[]),c=r.i(n.b)("Host",[])},function(t,e,r){"use strict";function extractAnnotation(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function applyParams(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+r.i(n.c)(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var i=t,s=i.length-1,a=t[s];if("function"!=typeof a)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+r.i(n.c)(a)+"'");if(s!=a.length)throw new Error("Number of annotations ("+s+") does not match number of arguments ("+a.length+") in the function: "+r.i(n.c)(a));for(var u=[],c=0,l=i.length-1;c=1;){var i=e[n],o=e[n-1];if(i.routeConfig&&""===i.routeConfig.path)n--;else{if(o.component)break;n--}}return e.slice(n).reduce(function(t,e){var n=r.i(s.e)(t.params,e.params),i=r.i(s.e)(t.data,e.data),o=r.i(s.e)(t.resolve,e._resolvedData);return{params:n,data:i,resolve:o}},{params:{},data:{},resolve:{}})}function setRouterStateSnapshot(t,e){e.value._routerState=t,e.children.forEach(function(e){return setRouterStateSnapshot(t,e)})}function serializeNode(t){var e=t.children.length>0?" { "+t.children.map(serializeNode).join(", ")+" } ":"";return""+t.value+e}function advanceActivatedRoute(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,r.i(s.c)(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),r.i(s.c)(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),r.i(s.f)(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),equalParamsAndUrlSegments(e,t._futureSnapshot)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function equalParamsAndUrlSegments(t,e){return r.i(s.c)(t.params,e.params)&&r.i(o.f)(t.url,e.url)}var n=r(126),i=(r.n(n),r(45)),o=r(75),s=r(49),a=r(241);r.d(e,"c",function(){return c}),e.e=createEmptyState,r.d(e,"a",function(){return l}),e.g=inheritedParamsDataResolve,r.d(e,"b",function(){return p}),r.d(e,"d",function(){return f}),e.h=advanceActivatedRoute,e.f=equalParamsAndUrlSegments;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},c=function(t){function RouterState(e,r){t.call(this,e),this.snapshot=r,setRouterStateSnapshot(this,e)}return u(RouterState,t),RouterState.prototype.toString=function(){return this.snapshot.toString()},RouterState}(a.a),l=function(){function ActivatedRoute(t,e,r,n,i,o,s,a){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(ActivatedRoute.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRoute.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRoute.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRoute.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRoute.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRoute.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),ActivatedRoute.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},ActivatedRoute}(),p=function(){function ActivatedRouteSnapshot(t,e,r,n,i,o,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=i,this.outlet=o,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(ActivatedRouteSnapshot.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRouteSnapshot.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRouteSnapshot.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRouteSnapshot.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRouteSnapshot.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRouteSnapshot.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),ActivatedRouteSnapshot.prototype.toString=function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+t+"', path:'"+e+"')"},ActivatedRouteSnapshot}(),f=function(t){function RouterStateSnapshot(e,r){t.call(this,r),this.url=e,setRouterStateSnapshot(this,r)}return u(RouterStateSnapshot,t),RouterStateSnapshot.prototype.toString=function(){return serializeNode(this._root)},RouterStateSnapshot}(a.a)},,,,,function(t,e,r){"use strict";function mergeAll(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new s(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(4),o=r(5);e.mergeAll=mergeAll;var s=function(){function MergeAllOperator(t){this.concurrent=t}return MergeAllOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.concurrent))},MergeAllOperator}();e.MergeAllOperator=s;var a=function(t){function MergeAllSubscriber(e,r){t.call(this,e),this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0}return n(MergeAllSubscriber,t),MergeAllSubscriber.prototype._next=function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeAllSubscriber}(i.OuterSubscriber);e.MergeAllSubscriber=a},function(t,e,r){"use strict";function mergeMap(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof e&&(r=e,e=null),this.lift(new s(t,e,r))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(5),o=r(4);e.mergeMap=mergeMap;var s=function(){function MergeMapOperator(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=r}return MergeMapOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector,this.concurrent))},MergeMapOperator}();e.MergeMapOperator=s;var a=function(t){function MergeMapSubscriber(e,r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=r,this.resultSelector=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(MergeMapSubscriber,t),MergeMapSubscriber.prototype._next=function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapSubscriber}(o.OuterSubscriber);e.MergeMapSubscriber=a},function(t,e,r){"use strict";function multicast(t,e){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new i(r,e));var o=Object.create(this,n.connectableObservableDescriptor);return o.source=this,o.subjectFactory=r,o}var n=r(399);e.multicast=multicast;var i=function(){function MulticastOperator(t,e){this.subjectFactory=t,this.selector=e}return MulticastOperator.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(t);return i.add(e.subscribe(n)),i},MulticastOperator}();e.MulticastOperator=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(446);r.d(e,"NgLocalization",function(){return n.c}),r.d(e,"CommonModule",function(){return n.a}),r.d(e,"NgClass",function(){return n.d}),r.d(e,"NgFor",function(){return n.e}),r.d(e,"NgIf",function(){return n.f}),r.d(e,"NgPlural",function(){return n.g}),r.d(e,"NgPluralCase",function(){return n.h}),r.d(e,"NgStyle",function(){return n.i}),r.d(e,"NgSwitch",function(){return n.j}),r.d(e,"NgSwitchCase",function(){return n.k}),r.d(e,"NgSwitchDefault",function(){return n.l}),r.d(e,"NgTemplateOutlet",function(){return n.m}),r.d(e,"AsyncPipe",function(){return n.n}),r.d(e,"DatePipe",function(){return n.o}),r.d(e,"I18nPluralPipe",function(){return n.p}),r.d(e,"I18nSelectPipe",function(){return n.q}),r.d(e,"JsonPipe",function(){return n.r}),r.d(e,"LowerCasePipe",function(){return n.s}),r.d(e,"CurrencyPipe",function(){return n.t}),r.d(e,"DecimalPipe",function(){return n.u}),r.d(e,"PercentPipe",function(){return n.v}),r.d(e,"SlicePipe",function(){return n.w}),r.d(e,"UpperCasePipe",function(){return n.x}),r.d(e,"VERSION",function(){return n.y}),r.d(e,"Version",function(){return n.z}),r.d(e,"PlatformLocation",function(){return n.b}),r.d(e,"LocationStrategy",function(){return n.A}),r.d(e,"APP_BASE_HREF",function(){return n.B}),r.d(e,"HashLocationStrategy",function(){return n.C}),r.d(e,"PathLocationStrategy",function(){return n.D}),r.d(e,"Location",function(){return n.E})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(544);r.d(e,"BrowserModule",function(){return n.a}),r.d(e,"platformBrowser",function(){return n.b}),r.d(e,"Title",function(){return n.c}),r.d(e,"disableDebugTools",function(){return n.d}),r.d(e,"enableDebugTools",function(){return n.e}),r.d(e,"AnimationDriver",function(){return n.f}),r.d(e,"By",function(){return n.g}),r.d(e,"NgProbeToken",function(){return n.h}),r.d(e,"DOCUMENT",function(){return n.i}),r.d(e,"EVENT_MANAGER_PLUGINS",function(){return n.j}),r.d(e,"EventManager",function(){return n.k}),r.d(e,"HAMMER_GESTURE_CONFIG",function(){return n.l}),r.d(e,"HammerGestureConfig",function(){return n.m}),r.d(e,"DomSanitizer",function(){return n.n}),r.d(e,"VERSION",function(){return n.o}),r.d(e,"__platform_browser_private__",function(){return n.p})},function(t,e,r){"use strict";function convertPropertyBinding(t,e,r,n,i){var o=createCurrValueExpr(i),a=[];e||(e=new d);var c=new h(t,e,r,u,i,!1),p=n.visit(c,f.Expression);if(!p)return null;if(c.temporaryCount)for(var m=0;m=0){var l=a[u],m=convertStmtIntoExpression(l);m&&(c=createPreventDefaultVar(i),a[u]=c.set(m.cast(s.m).notIdentical(s.f(!1))).toDeclStmt(null,[s.k.Final]))}return new p(a,c)}function createSharedBindingVariablesIfNeeded(t){var e=[],n=s.w(t);return n.has(u.name)&&e.push(u.set(s.g(r.i(o.a)(o.b.ValueUnwrapper)).instantiate([])).toDeclStmt(null,[s.k.Final])),e}function temporaryName(t,e){return"tmp_"+t+"_"+e}function temporaryDeclaration(t,e){return new s.x(temporaryName(t,e),s.b)}function prependTemporaryDecls(t,e,r){for(var n=t-1;n>=0;n--)r.unshift(temporaryDeclaration(e,n))}function ensureStatementMode(t,e){if(t!==f.Statement)throw new Error("Expected a statement, but saw "+e)}function ensureExpressionMode(t,e){if(t!==f.Expression)throw new Error("Expected an expression, but saw "+e)}function convertToStatementIfNeeded(t,e){return t===f.Statement?e.toStmt():e}function flattenStatements(t,e){Array.isArray(t)?t.forEach(function(t){return flattenStatements(t,e)}):e.push(t)}function createCachedLiteralArray(t,e){if(0===e.length)return s.g(r.i(o.a)(o.b.EMPTY_ARRAY));for(var n=s.e.prop("_arr_"+t.fields.length),i=[],u=[],c=0;c":r=s.y.Bigger;break;case"<=":r=s.y.LowerEquals;break;case">=":r=s.y.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return convertToStatementIfNeeded(e,new s.z(r,this.visit(t.left,f.Expression),this.visit(t.right,f.Expression)))},_AstToIrVisitor.prototype.visitChain=function(t,e){return ensureStatementMode(e,t),this.visitAll(t.expressions,e)},_AstToIrVisitor.prototype.visitConditional=function(t,e){var r=this.visit(t.condition,f.Expression);return convertToStatementIfNeeded(e,r.conditional(this.visit(t.trueExp,f.Expression),this.visit(t.falseExp,f.Expression)))},_AstToIrVisitor.prototype.visitPipe=function(t,e){var r=this.visit(t.exp,f.Expression),n=this.visitAll(t.args,f.Expression),i=this._nameResolver.callPipe(t.name,r,n);if(!i)throw new Error("Illegal state: Pipe "+t.name+" is not allowed here!");return this.needsValueUnwrapper=!0,convertToStatementIfNeeded(e,this._valueUnwrapper.callMethod("unwrap",[i]))},_AstToIrVisitor.prototype.visitFunctionCall=function(t,e){return convertToStatementIfNeeded(e,this.visit(t.target,f.Expression).callFn(this.visitAll(t.args,f.Expression)))},_AstToIrVisitor.prototype.visitImplicitReceiver=function(t,e){return ensureExpressionMode(e,t),this._implicitReceiver},_AstToIrVisitor.prototype.visitInterpolation=function(t,e){ensureExpressionMode(e,t);for(var n=[s.f(t.expressions.length)],i=0;i=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},v=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},b=function(){function DirectiveNormalizer(t,e,r,n){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=r,this._config=n,this._resourceLoaderCache=new Map}return DirectiveNormalizer.prototype.clearCache=function(){this._resourceLoaderCache.clear()},DirectiveNormalizer.prototype.clearCacheFor=function(t){var e=this;t.isComponent&&(this._resourceLoaderCache.delete(t.template.templateUrl),t.template.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)}))},DirectiveNormalizer.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},DirectiveNormalizer.prototype.normalizeTemplate=function(t){var e,n=this,i=null;if(r.i(s.c)(t.template))i=this.normalizeTemplateSync(t),e=Promise.resolve(i);else{if(!t.templateUrl)throw new m.e("No template specified for component "+r.i(s.e)(t.componentType));e=this.normalizeTemplateAsync(t)}return i&&0===i.styleUrls.length?new m.h(i):new m.h(null,e.then(function(t){return n.normalizeExternalStylesheets(t)}))},DirectiveNormalizer.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},DirectiveNormalizer.prototype.normalizeTemplateAsync=function(t){var e=this,r=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(r).then(function(n){return e.normalizeLoadedTemplate(t,n,r)})},DirectiveNormalizer.prototype.normalizeLoadedTemplate=function(t,e,o){var a=l.b.fromArray(t.interpolation),c=this._htmlParser.parse(e,r.i(s.e)(t.componentType),!0,a);if(c.errors.length>0){var p=c.errors.join("\n");throw new m.e("Template parse errors:\n"+p)}var f=this.normalizeStylesheet(new i.l({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),h=new _;u.g(h,c.rootNodes);var d=this.normalizeStylesheet(new i.l({styles:h.styles,styleUrls:h.styleUrls,moduleUrl:o})),y=t.encapsulation;r.i(s.d)(y)&&(y=this._config.defaultEncapsulation);var v=f.styles.concat(d.styles),b=f.styleUrls.concat(d.styleUrls);return y===n.ViewEncapsulation.Emulated&&0===v.length&&0===b.length&&(y=n.ViewEncapsulation.None),new i.p({encapsulation:y,template:e,templateUrl:o,styles:v,styleUrls:b,ngContentSelectors:h.ngContentSelectors,animations:t.animations,interpolation:t.interpolation})},DirectiveNormalizer.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new i.p({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation})})},DirectiveNormalizer.prototype._loadMissingExternalStylesheets=function(t,e){var r=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return r._fetch(t).then(function(n){var o=r.normalizeStylesheet(new i.l({styles:[n],moduleUrl:t}));return e.set(t,o),r._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(t){return Array.from(e.values())})},DirectiveNormalizer.prototype.normalizeStylesheet=function(t){var e=this,n=t.styleUrls.filter(f.a).map(function(r){return e._urlResolver.resolve(t.moduleUrl,r)}),o=t.styles.map(function(i){var o=r.i(f.b)(e._urlResolver,t.moduleUrl,i);return n.push.apply(n,o.styleUrls),o.style});return new i.l({styles:o,styleUrls:n,moduleUrl:t.moduleUrl})},DirectiveNormalizer=y([r.i(a.a)(),v("design:paramtypes",[p.a,d.a,c.a,o.a])],DirectiveNormalizer)}(),_=function(){function TemplatePreparseVisitor(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return TemplatePreparseVisitor.prototype.visitElement=function(t,e){var n=r.i(h.a)(t);switch(n.type){case h.b.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case h.b.STYLE:var i="";t.children.forEach(function(t){t instanceof u.d&&(i+=t.value)}),this.styles.push(i);break;case h.b.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,u.g(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},TemplatePreparseVisitor.prototype.visitExpansion=function(t,e){u.g(this,t.cases)},TemplatePreparseVisitor.prototype.visitExpansionCase=function(t,e){u.g(this,t.expression)},TemplatePreparseVisitor.prototype.visitComment=function(t,e){return null},TemplatePreparseVisitor.prototype.visitAttribute=function(t,e){return null},TemplatePreparseVisitor.prototype.visitText=function(t,e){return null},TemplatePreparseVisitor}()},function(t,e,r){"use strict";function isDirectiveMetadata(t){return t instanceof n.Directive}var n=r(1),i=r(69),o=r(6),s=r(17),a=r(14),u=r(28);r.d(e,"a",function(){return p});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var c=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p=function(){function DirectiveResolver(t){void 0===t&&(t=a.c),this._reflector=t}return DirectiveResolver.prototype.isDirective=function(t){var e=this._reflector.annotations(r.i(n.resolveForwardRef)(t));return e&&e.some(isDirectiveMetadata)},DirectiveResolver.prototype.resolve=function(t,e){void 0===e&&(e=!0);var s=this._reflector.annotations(r.i(n.resolveForwardRef)(t));if(s){var a=i.b.findLast(s,isDirectiveMetadata);if(a){var u=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(a,u,t)}}if(e)throw new Error("No Directive annotation found on "+r.i(o.e)(t));return null},DirectiveResolver.prototype._mergeWithPropertyMetadata=function(t,e,r){var o=[],s=[],a={},u={};return Object.keys(e).forEach(function(t){var r=i.b.findLast(e[t],function(t){return t instanceof n.Input});r&&(r.bindingPropertyName?o.push(t+": "+r.bindingPropertyName):o.push(t));var c=i.b.findLast(e[t],function(t){return t instanceof n.Output});c&&(c.bindingPropertyName?s.push(t+": "+c.bindingPropertyName):s.push(t));var l=e[t].filter(function(t){return t&&t instanceof n.HostBinding});l.forEach(function(e){if(e.hostPropertyName){var r=e.hostPropertyName[0];if("("===r)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===r)throw new Error("@HostBinding parameter should be a property name, 'class.', or 'attr.'.");a["["+e.hostPropertyName+"]"]=t}else a["["+t+"]"]=t});var p=e[t].filter(function(t){return t&&t instanceof n.HostListener});p.forEach(function(e){var r=e.args||[];a["("+e.eventName+")"]=t+"("+r.join(",")+")"});var f=i.b.findLast(e[t],function(t){return t instanceof n.Query});f&&(u[t]=f)}),this._merge(t,o,s,a,u,r)},DirectiveResolver.prototype._extractPublicName=function(t){return r.i(u.a)(t,[null,t])[1].trim()},DirectiveResolver.prototype._dedupeBindings=function(t){for(var e=new Set,r=[],n=t.length-1;n>=0;n--){var i=t[n],o=this._extractPublicName(i);e.has(o)||(e.add(o),r.push(i))}return r.reverse()},DirectiveResolver.prototype._merge=function(t,e,r,o,s,a){var u=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),c=this._dedupeBindings(t.outputs?t.outputs.concat(r):r),l=t.host?i.a.merge(t.host,o):o,p=t.queries?i.a.merge(t.queries,s):s;return t instanceof n.Component?new n.Component({selector:t.selector,inputs:u,outputs:c,host:l,exportAs:t.exportAs,moduleId:t.moduleId,queries:p,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new n.Directive({selector:t.selector,inputs:u,outputs:c,host:l,exportAs:t.exportAs,queries:p,providers:t.providers})},DirectiveResolver=c([r.i(s.a)(),l("design:paramtypes",[a.K])],DirectiveResolver)}()},function(t,e,r){"use strict";function newCharacterToken(t,e){return new p(t,u.Character,e,String.fromCharCode(e))}function newIdentifierToken(t,e){return new p(t,u.Identifier,0,e)}function newKeywordToken(t,e){return new p(t,u.Keyword,0,e)}function newOperatorToken(t,e){return new p(t,u.Operator,0,e)}function newStringToken(t,e){return new p(t,u.String,0,e)}function newNumberToken(t,e){return new p(t,u.Number,e,"")}function newErrorToken(t,e){return new p(t,u.Error,0,e)}function isIdentifierStart(t){return n.I<=t&&t<=n.J||n.K<=t&&t<=n.L||t==n.M||t==n.N}function isIdentifier(t){if(0==t.length)return!1;var e=new h(t);if(!isIdentifierStart(e.peek))return!1;for(e.advance();e.peek!==n.m;){if(!isIdentifierPart(e.peek))return!1;e.advance()}return!0}function isIdentifierPart(t){return n.O(t)||n.o(t)||t==n.M||t==n.N}function isExponentStart(t){return t==n.P||t==n.Q}function isExponentSign(t){return t==n.t||t==n.s}function isQuote(t){return t===n.p||t===n.q||t===n.R}function unescape(t){switch(t){case n.S:return n.a;case n.T:return n.U;case n.V:return n.W;case n.X:return n.Y;case n.Z:return n._0;default:return t}}var n=r(137),i=r(6),o=r(17);r.d(e,"e",function(){return u}),r.d(e,"c",function(){return l}),r.d(e,"d",function(){return f}),e.a=isIdentifier,e.b=isQuote;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},a=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u={};u.Character=0,u.Identifier=1,u.Keyword=2,u.String=3,u.Operator=4,u.Number=5,u.Error=6,u[u.Character]="Character",u[u.Identifier]="Identifier",u[u.Keyword]="Keyword",u[u.String]="String",u[u.Operator]="Operator",u[u.Number]="Number",u[u.Error]="Error";var c=["var","let","null","undefined","true","false","if","else","this"],l=function(){function Lexer(){}return Lexer.prototype.tokenize=function(t){for(var e=new h(t),r=[],n=e.scanToken();null!=n;)r.push(n),n=e.scanToken();return r},Lexer=s([r.i(o.a)(),a("design:paramtypes",[])],Lexer)}(),p=function(){function Token(t,e,r,n){this.index=t,this.type=e,this.numValue=r,this.strValue=n}return Token.prototype.isCharacter=function(t){return this.type==u.Character&&this.numValue==t},Token.prototype.isNumber=function(){return this.type==u.Number},Token.prototype.isString=function(){return this.type==u.String},Token.prototype.isOperator=function(t){return this.type==u.Operator&&this.strValue==t},Token.prototype.isIdentifier=function(){return this.type==u.Identifier},Token.prototype.isKeyword=function(){return this.type==u.Keyword},Token.prototype.isKeywordLet=function(){return this.type==u.Keyword&&"let"==this.strValue},Token.prototype.isKeywordNull=function(){return this.type==u.Keyword&&"null"==this.strValue},Token.prototype.isKeywordUndefined=function(){return this.type==u.Keyword&&"undefined"==this.strValue},Token.prototype.isKeywordTrue=function(){return this.type==u.Keyword&&"true"==this.strValue},Token.prototype.isKeywordFalse=function(){return this.type==u.Keyword&&"false"==this.strValue},Token.prototype.isKeywordThis=function(){return this.type==u.Keyword&&"this"==this.strValue},Token.prototype.isError=function(){return this.type==u.Error},Token.prototype.toNumber=function(){return this.type==u.Number?this.numValue:-1},Token.prototype.toString=function(){switch(this.type){case u.Character:case u.Identifier:case u.Keyword:case u.Operator:case u.String:case u.Error:return this.strValue;case u.Number:return this.numValue.toString();default:return null}},Token}(),f=new p(-1,u.Character,0,""),h=function(){function _Scanner(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return _Scanner.prototype.advance=function(){this.peek=++this.index>=this.length?n.m:this.input.charCodeAt(this.index)},_Scanner.prototype.scanToken=function(){for(var t=this.input,e=this.length,r=this.peek,i=this.index;r<=n.n;){if(++i>=e){r=n.m;break}r=t.charCodeAt(i)}if(this.peek=r,this.index=i,i>=e)return null;if(isIdentifierStart(r))return this.scanIdentifier();if(n.o(r))return this.scanNumber(i);var o=i;switch(r){case n.e:return this.advance(),n.o(this.peek)?this.scanNumber(o):newCharacterToken(o,n.e);case n.h:case n.i:case n.j:case n.l:case n.f:case n.g:case n.k:case n.d:case n.c:return this.scanCharacter(o,r);case n.p:case n.q:return this.scanString();case n.r:case n.s:case n.t:case n.u:case n.b:case n.v:case n.w:return this.scanOperator(o,String.fromCharCode(r));case n.x:return this.scanComplexOperator(o,"?",n.e,".");case n.y:case n.z:return this.scanComplexOperator(o,String.fromCharCode(r),n.A,"=");case n.B:case n.A:return this.scanComplexOperator(o,String.fromCharCode(r),n.A,"=",n.A,"=");case n.C:return this.scanComplexOperator(o,"&",n.C,"&");case n.D:return this.scanComplexOperator(o,"|",n.D,"|");case n.E:for(;n.F(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(r)+"]",0)},_Scanner.prototype.scanCharacter=function(t,e){return this.advance(),newCharacterToken(t,e)},_Scanner.prototype.scanOperator=function(t,e){return this.advance(),newOperatorToken(t,e)},_Scanner.prototype.scanComplexOperator=function(t,e,r,n,i,o){this.advance();var s=e;return this.peek==r&&(this.advance(),s+=n),null!=i&&this.peek==i&&(this.advance(),s+=o),newOperatorToken(t,s)},_Scanner.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();isIdentifierPart(this.peek);)this.advance();var e=this.input.substring(t,this.index);return c.indexOf(e)>-1?newKeywordToken(t,e):newIdentifierToken(t,e)},_Scanner.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(n.o(this.peek));else if(this.peek==n.e)e=!1;else{if(!isExponentStart(this.peek))break;if(this.advance(),isExponentSign(this.peek)&&this.advance(),!n.o(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var r=this.input.substring(t,this.index),o=e?i.i.parseIntAutoRadix(r):parseFloat(r);return newNumberToken(t,o)},_Scanner.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var r="",i=this.index,o=this.input;this.peek!=e;)if(this.peek==n.G){r+=o.substring(i,this.index),this.advance();var s=void 0;if(this.peek==n.H){var a=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(a))return this.error("Invalid unicode escape [\\u"+a+"]",0);s=parseInt(a,16);for(var u=0;u<5;u++)this.advance()}else s=unescape(this.peek),this.advance();r+=String.fromCharCode(s),i=this.index}else{if(this.peek==n.m)return this.error("Unterminated quote",0);this.advance()}var c=o.substring(i,this.index);return this.advance(),newStringToken(t,r+c)},_Scanner.prototype.error=function(t,e){var r=this.index+e;return newErrorToken(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},_Scanner}()},function(t,e,r){"use strict";function flattenArray(t,e){if(void 0===e&&(e=[]),t)for(var i=0;i=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},w=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},E=new n.OpaqueToken("ErrorCollector"),C=function(){function CompileMetadataResolver(t,e,r,n,i,o,s,a){void 0===s&&(s=m.c),this._ngModuleResolver=t,this._directiveResolver=e,this._pipeResolver=r,this._summaryResolver=n,this._schemaRegistry=i,this._directiveNormalizer=o,this._reflector=s,this._errorCollector=a,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return CompileMetadataResolver.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},CompileMetadataResolver.prototype.clearCache=function(){this._directiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},CompileMetadataResolver.prototype.getAnimationEntryMetadata=function(t){var e=this,r=t.definitions.map(function(t){return e._getAnimationStateMetadata(t)});return new s.m(t.name,r)},CompileMetadataResolver.prototype._getAnimationStateMetadata=function(t){if(t instanceof n.AnimationStateDeclarationMetadata){var e=this._getAnimationStyleMetadata(t.styles);return new s.b(t.stateNameExpr,e)}return t instanceof n.AnimationStateTransitionMetadata?new s.n(t.stateChangeExpr,this._getAnimationMetadata(t.steps)):null},CompileMetadataResolver.prototype._getAnimationStyleMetadata=function(t){return new s.f(t.offset,t.styles)},CompileMetadataResolver.prototype._getAnimationMetadata=function(t){var e=this;if(t instanceof n.AnimationStyleMetadata)return this._getAnimationStyleMetadata(t);if(t instanceof n.AnimationKeyframesSequenceMetadata)return new s.h(t.steps.map(function(t){return e._getAnimationStyleMetadata(t)}));if(t instanceof n.AnimationAnimateMetadata){var r=this._getAnimationMetadata(t.styles);return new s.g(t.timings,r)}if(t instanceof n.AnimationWithStepsMetadata){var i=t.steps.map(function(t){return e._getAnimationMetadata(t)});return t instanceof n.AnimationGroupMetadata?new s.d(i):new s.c(i)}return null},CompileMetadataResolver.prototype._loadSummary=function(t,e){var r=this._summaryCache.get(t);if(!r){var n=this._summaryResolver.resolveSummary(t);r=n?n.type:null,this._summaryCache.set(t,r)}return r&&r.summaryKind===e?r:null},CompileMetadataResolver.prototype._loadDirectiveMetadata=function(t,e){var i=this;if(!this._directiveCache.has(t)){t=r.i(n.resolveForwardRef)(t);var o=this.getNonNormalizedDirectiveMetadata(t),a=o.annotation,u=o.metadata,c=function(e){var r=new s.o({type:u.type,isComponent:u.isComponent,selector:u.selector,exportAs:u.exportAs,changeDetection:u.changeDetection,inputs:u.inputs,outputs:u.outputs,hostListeners:u.hostListeners,hostProperties:u.hostProperties,hostAttributes:u.hostAttributes,providers:u.providers,viewProviders:u.viewProviders,queries:u.queries,viewQueries:u.viewQueries,entryComponents:u.entryComponents,template:e});return i._directiveCache.set(t,r),i._summaryCache.set(t,r.toSummary()),r};if(u.isComponent){var l=this._directiveNormalizer.normalizeTemplate({componentType:t,moduleUrl:componentModuleUrl(this._reflector,t,a),encapsulation:u.template.encapsulation,template:u.template.template,templateUrl:u.template.templateUrl,styles:u.template.styles,styleUrls:u.template.styleUrls,animations:u.template.animations,interpolation:u.template.interpolation});return l.syncResult?(c(l.syncResult),null):e?(this._reportError(new m.I(t),t),null):l.asyncResult.then(c)}return c(null),null}},CompileMetadataResolver.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;t=r.i(n.resolveForwardRef)(t);var i=this._directiveResolver.resolve(t);if(!i)return null;var a;if(i instanceof n.Component){r.i(o.b)("styles",i.styles),r.i(o.b)("styleUrls",i.styleUrls),r.i(o.a)("interpolation",i.interpolation);var u=i.animations?i.animations.map(function(t){return e.getAnimationEntryMetadata(t)}):null;a=new s.p({encapsulation:i.encapsulation,template:i.template,templateUrl:i.templateUrl,styles:i.styles,styleUrls:i.styleUrls,animations:u,interpolation:i.interpolation})}var l=null,p=[],f=[],h=i.selector;i instanceof n.Component?(l=i.changeDetection,i.viewProviders&&(p=this._getProvidersMetadata(i.viewProviders,f,'viewProviders for "'+stringifyType(t)+'"',[],t)),i.entryComponents&&(f=flattenAndDedupeArray(i.entryComponents).map(function(t){return e._getIdentifierMetadata(t)}).concat(f)),h||(h=this._schemaRegistry.getDefaultComponentElementName())):h||(this._reportError(new _.e("Directive "+stringifyType(t)+" has no selector, please add it!"),t),h="error");var d=[];r.i(c.c)(i.providers)&&(d=this._getProvidersMetadata(i.providers,f,'providers for "'+stringifyType(t)+'"',[],t));var m=[],y=[];r.i(c.c)(i.queries)&&(m=this._getQueriesMetadata(i.queries,!1,t),y=this._getQueriesMetadata(i.queries,!0,t));var v=s.o.create({selector:h,exportAs:i.exportAs,isComponent:!!a,type:this._getTypeMetadata(t),template:a,changeDetection:l,inputs:i.inputs,outputs:i.outputs,host:i.host,providers:d,viewProviders:p,queries:m,viewQueries:y,entryComponents:f});return{metadata:v,annotation:i}},CompileMetadataResolver.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(new _.e("Illegal state: getDirectiveMetadata can only be called after loadNgModuleMetadata for a module that declares it. Directive "+stringifyType(t)+"."),t),e},CompileMetadataResolver.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,s.q.Directive);return e||this._reportError(new _.e("Illegal state: Could not load the summary for directive "+stringifyType(t)+"."),t),e},CompileMetadataResolver.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},CompileMetadataResolver.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},CompileMetadataResolver.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,s.q.NgModule);if(!e){var r=this.getNgModuleMetadata(t,!1);e=r?r.toSummary():null,e&&this._summaryCache.set(t,e)}return e},CompileMetadataResolver.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,r){var n=this;void 0===r&&(r=!0);var i=this.getNgModuleMetadata(t,r),o=[];return i&&(i.declaredDirectives.forEach(function(t){var r=n._loadDirectiveMetadata(t.reference,e);r&&o.push(r)}),i.declaredPipes.forEach(function(t){return n._loadPipeMetadata(t.reference)})),Promise.all(o)},CompileMetadataResolver.prototype.getNgModuleMetadata=function(t,e){var i=this;void 0===e&&(e=!0),t=r.i(n.resolveForwardRef)(t);var o=this._ngModuleCache.get(t);if(o)return o;var a=this._ngModuleResolver.resolve(t,e);if(!a)return null;var u=[],c=[],l=[],p=[],f=[],h=[],d=[],m=[],y=[];a.imports&&flattenAndDedupeArray(a.imports).forEach(function(e){var r;if(isValidType(e))r=e;else if(e&&e.ngModule){var n=e;r=n.ngModule,n.providers&&h.push.apply(h,i._getProvidersMetadata(n.providers,d,"provider for the NgModule '"+stringifyType(r)+"'",[],e))}if(!r)return void i._reportError(new _.e("Unexpected value '"+stringifyType(e)+"' imported by the module '"+stringifyType(t)+"'"),t);var o=i.getNgModuleSummary(r);return o?void p.push(o):void i._reportError(new _.e("Unexpected "+i._getTypeDescriptor(e)+" '"+stringifyType(e)+"' imported by the module '"+stringifyType(t)+"'"),t)}),a.exports&&flattenAndDedupeArray(a.exports).forEach(function(e){if(!isValidType(e))return void i._reportError(new _.e("Unexpected value '"+stringifyType(e)+"' exported by the module '"+stringifyType(t)+"'"),t);var r=i.getNgModuleSummary(e);r?f.push(r):c.push(i._getIdentifierMetadata(e))});var v=this._getTransitiveNgModuleMetadata(p,f);a.declarations&&flattenAndDedupeArray(a.declarations).forEach(function(e){if(!isValidType(e))return void i._reportError(new _.e("Unexpected value '"+stringifyType(e)+"' declared by the module '"+stringifyType(t)+"'"),t);var r=i._getIdentifierMetadata(e);if(i._directiveResolver.isDirective(e))v.addDirective(r),u.push(r),i._addTypeToModule(e,t);else{if(!i._pipeResolver.isPipe(e))return void i._reportError(new _.e("Unexpected "+i._getTypeDescriptor(e)+" '"+stringifyType(e)+"' declared by the module '"+stringifyType(t)+"'"),t);v.addPipe(r),v.pipes.push(r),l.push(r),i._addTypeToModule(e,t)}});var b=[],g=[];return c.forEach(function(e){v.directivesSet.has(e.reference)?(b.push(e),v.addExportedDirective(e)):v.pipesSet.has(e.reference)?(g.push(e),v.addExportedPipe(e)):i._reportError(new _.e("Can't export "+i._getTypeDescriptor(e.reference)+" "+stringifyType(e.reference)+" from "+stringifyType(t)+" as it was neither declared nor imported!"),t)}),a.providers&&h.push.apply(h,this._getProvidersMetadata(a.providers,d,"provider for the NgModule '"+stringifyType(t)+"'",[],t)),a.entryComponents&&d.push.apply(d,flattenAndDedupeArray(a.entryComponents).map(function(t){return i._getIdentifierMetadata(t)})),a.bootstrap&&flattenAndDedupeArray(a.bootstrap).forEach(function(e){return isValidType(e)?void m.push(i._getIdentifierMetadata(e)):void i._reportError(new _.e("Unexpected value '"+stringifyType(e)+"' used in the bootstrap property of module '"+stringifyType(t)+"'"),t)}),d.push.apply(d,m),a.schemas&&y.push.apply(y,flattenAndDedupeArray(a.schemas)),o=new s.r({type:this._getTypeMetadata(t),providers:h,entryComponents:d,bootstrapComponents:m,schemas:y,declaredDirectives:u,exportedDirectives:b,declaredPipes:l,exportedPipes:g,importedModules:p,exportedModules:f,transitiveModule:v,id:a.id}),d.forEach(function(t){return v.addEntryComponent(t)}),h.forEach(function(t){return v.addProvider(t,o.type)}),v.addModule(o.type),this._ngModuleCache.set(t,o),o},CompileMetadataResolver.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},CompileMetadataResolver.prototype._addTypeToModule=function(t,e){var r=this._ngModuleOfTypes.get(t);r&&r!==e&&this._reportError(new _.e("Type "+stringifyType(t)+" is part of the declarations of 2 modules: "+stringifyType(r)+" and "+stringifyType(e)+"! "+("Please consider moving "+stringifyType(t)+" to a higher module that imports "+stringifyType(r)+" and "+stringifyType(e)+". ")+("You can also create a new NgModule that exports and includes "+stringifyType(t)+" then import that NgModule in "+stringifyType(r)+" and "+stringifyType(e)+".")),e),this._ngModuleOfTypes.set(t,e)},CompileMetadataResolver.prototype._getTransitiveNgModuleMetadata=function(t,e){var r=new s.s,n=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return r.addModule(t)}),t.entryComponents.forEach(function(t){return r.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=s.j(t.provider.token),o=n.get(i);o||(o=new Set,n.set(i,o));var a=t.module.reference;!e.has(i)&&o.has(a)||(o.add(a),e.add(i),r.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return r.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addDirective(t)}),t.exportedPipes.forEach(function(t){return r.addPipe(t)})}),r},CompileMetadataResolver.prototype._getIdentifierMetadata=function(t){return t=r.i(n.resolveForwardRef)(t),{reference:t}},CompileMetadataResolver.prototype.isInjectable=function(t){var e=this._reflector.annotations(t);return e.some(function(t){return t.constructor===n.Injectable})},CompileMetadataResolver.prototype.getInjectableSummary=function(t){return{summaryKind:s.q.Injectable,type:this._getTypeMetadata(t)}},CompileMetadataResolver.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var r=this._loadSummary(t,s.q.Injectable);return r?r.type:this._getTypeMetadata(t,e)},CompileMetadataResolver.prototype._getTypeMetadata=function(t,e){void 0===e&&(e=null);var n=this._getIdentifierMetadata(t);return{reference:n.reference,diDeps:this._getDependenciesMetadata(n.reference,e),lifecycleHooks:m.J.filter(function(t){return r.i(f.a)(t,n.reference)})}},CompileMetadataResolver.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),t=r.i(n.resolveForwardRef)(t),{reference:t,diDeps:this._getDependenciesMetadata(t,e)}},CompileMetadataResolver.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(new _.e("Illegal state: getPipeMetadata can only be called after loadNgModuleMetadata for a module that declares it. Pipe "+stringifyType(t)+"."),t),e},CompileMetadataResolver.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,s.q.Pipe);return e||this._reportError(new _.e("Illegal state: Could not load the summary for pipe "+stringifyType(t)+"."),t),e},CompileMetadataResolver.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},CompileMetadataResolver.prototype._loadPipeMetadata=function(t){t=r.i(n.resolveForwardRef)(t);var e=this._pipeResolver.resolve(t),i=new s.t({type:this._getTypeMetadata(t),name:e.name,pure:e.pure});return this._pipeCache.set(t,i),this._summaryCache.set(t,i.toSummary()),i},CompileMetadataResolver.prototype._getDependenciesMetadata=function(t,e){var i=this,o=!1,s=e||this._reflector.parameters(t)||[],a=s.map(function(t){var e=!1,s=!1,a=!1,u=!1,l=!1,p=null;return Array.isArray(t)?t.forEach(function(t){t instanceof n.Host?s=!0:t instanceof n.Self?a=!0:t instanceof n.SkipSelf?u=!0:t instanceof n.Optional?l=!0:t instanceof n.Attribute?(e=!0,p=t.attributeName):t instanceof n.Inject?p=t.token:isValidType(t)&&r.i(c.d)(p)&&(p=t)}):p=t,r.i(c.d)(p)?(o=!0,null):{isAttribute:e,isHost:s,isSelf:a,isSkipSelf:u,isOptional:l,token:i._getTokenMetadata(p)}});if(o){var u=a.map(function(t){return t?stringifyType(t.token):"?"}).join(", ");this._reportError(new _.e("Can't resolve all parameters for "+stringifyType(t)+": ("+u+")."),t)}return a},CompileMetadataResolver.prototype._getTokenMetadata=function(t){t=r.i(n.resolveForwardRef)(t);var e;return e="string"==typeof t?{value:t}:{identifier:{reference:t}}},CompileMetadataResolver.prototype._getProvidersMetadata=function(t,e,i,o,a){var u=this;return void 0===o&&(o=[]),t.forEach(function(c,p){if(Array.isArray(c))u._getProvidersMetadata(c,e,i,o);else{c=r.i(n.resolveForwardRef)(c);var f=void 0;if(c&&"object"==typeof c&&c.hasOwnProperty("provide"))f=new s.u(c.provide,c);else if(isValidType(c))f=new s.u(c,{useClass:c});else{var h=t.reduce(function(t,e,r){return r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function NgModuleResolver(t){void 0===t&&(t=a.c),this._reflector=t}return NgModuleResolver.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(_isNgModuleMetadata)},NgModuleResolver.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=i.b.findLast(this._reflector.annotations(t),_isNgModuleMetadata);if(n)return n;if(e)throw new Error("No NgModule metadata found for '"+r.i(o.e)(t)+"'.");return null},NgModuleResolver=u([r.i(s.a)(),c("design:paramtypes",[a.K])],NgModuleResolver)}()},function(t,e,r){"use strict";function _isPipeMetadata(t){return t instanceof n.Pipe}var n=r(1),i=r(69),o=r(6),s=r(17),a=r(14);r.d(e,"a",function(){return l});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(){function PipeResolver(t){void 0===t&&(t=a.c),this._reflector=t}return PipeResolver.prototype.isPipe=function(t){var e=this._reflector.annotations(r.i(n.resolveForwardRef)(t));return e&&e.some(_isPipeMetadata)},PipeResolver.prototype.resolve=function(t,e){void 0===e&&(e=!0);var s=this._reflector.annotations(r.i(n.resolveForwardRef)(t));if(s){var a=i.b.findLast(s,_isPipeMetadata);if(a)return a}if(e)throw new Error("No Pipe decorator found on "+r.i(o.e)(t));return null},PipeResolver=u([r.i(s.a)(),c("design:paramtypes",[a.K])],PipeResolver)}()},function(t,e,r){"use strict";function splitClasses(t){return t.trim().split(/\s+/g)}function createElementCssSelector(t,e){var n=new _.a,i=r.i(d.e)(t)[1];n.setElement(i);for(var o=0;o=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},T=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},O=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,P=1,R=2,M=3,I=4,D=5,N=6,k=7,j=8,V=9,L=10,F="template",B="template",U="*",H="class",W=_.a.parse("*")[0],z=new n.OpaqueToken("TemplateTransforms"),q=function(t){function TemplateParseError(e,r,n){t.call(this,r,e,n)}return A(TemplateParseError,t),TemplateParseError}(m.a),G=function(){function TemplateParseResult(t,e){this.templateAst=t,this.errors=e}return TemplateParseResult}(),K=function(){function TemplateParser(t,e,r,n,i){this._exprParser=t,this._schemaRegistry=e,this._htmlParser=r,this._console=n,this.transforms=i}return TemplateParser.prototype.parse=function(t,e,r,n,i,o){var s=this.tryParse(t,e,r,n,i,o),a=s.errors.filter(function(t){return t.level===m.e.WARNING}),u=s.errors.filter(function(t){return t.level===m.e.FATAL});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw new S.e("Template parse errors:\n"+c)}return s.templateAst},TemplateParser.prototype.tryParse=function(t,e,r,n,i,o){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t))),t,e,r,n,i,o)},TemplateParser.prototype.tryParseHtml=function(t,e,n,i,o,s,a){var u,c=t.errors;if(t.rootNodes.length>0){var p=removeSummaryDuplicates(i),f=removeSummaryDuplicates(o),h=new v.b(e,t.rootNodes[0].sourceSpan),d=void 0;e.template&&e.template.interpolation&&(d={start:e.template.interpolation[0],end:e.template.interpolation[1]});var m=new w.a(this._exprParser,d,this._schemaRegistry,f,c),y=new X(h,p,m,this._schemaRegistry,s,c);u=l.g(y,t.rootNodes,Y),c.push.apply(c,h.errors)}else u=[];return this._assertNoReferenceDuplicationOnTemplate(u,c),c.length>0?new G(u,c):(this.transforms&&this.transforms.forEach(function(t){u=r.i(E.a)(t,u)}),new G(u,c))},TemplateParser.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var i=r.i(f.a)(t.rootNodes);n.push.apply(n,i.errors),t=new p.b(i.nodes,n)}return t},TemplateParser.prototype.getInterpolationConfig=function(t){if(t.template)return h.b.fromArray(t.template.interpolation)},TemplateParser.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var r=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var n=t.name;if(r.indexOf(n)<0)r.push(n);else{var i=new q('Reference "#'+n+'" is defined several times',t.sourceSpan,m.e.FATAL);e.push(i)}})})},TemplateParser.ctorParameters=function(){return[{type:o.a},{type:b.a},{type:a.a},{type:y.F},{type:Array,decorators:[{type:n.Optional},{type:n.Inject,args:[z]}]}]},TemplateParser=x([r.i(c.a)(),T("design:paramtypes",[o.a,b.a,a.a,y.F,Array])],TemplateParser)}(),X=function(){function TemplateParseVisitor(t,e,r,n,i,o){var s=this;this.providerViewContext=t,this._bindingParser=r,this._schemaRegistry=n,this._schemas=i,this._targetErrors=o,this.selectorMatcher=new _.b,this.directivesIndex=new Map,this.ngContentCount=0,e.forEach(function(t,e){var r=_.a.parse(t.selector);s.selectorMatcher.addSelectables(r,t),s.directivesIndex.set(t,e)})}return TemplateParseVisitor.prototype.visitExpansion=function(t,e){return null},TemplateParseVisitor.prototype.visitExpansionCase=function(t,e){return null},TemplateParseVisitor.prototype.visitText=function(t,e){var r=e.findNgContentIndex(W),n=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return n?new E.h(n,r,t.sourceSpan):new E.i(t.value,r,t.sourceSpan)},TemplateParseVisitor.prototype.visitAttribute=function(t,e){return new E.j(t.name,t.value,t.sourceSpan)},TemplateParseVisitor.prototype.visitComment=function(t,e){return null},TemplateParseVisitor.prototype.visitElement=function(t,e){var n=this,i=t.name,o=r.i(C.a)(t);if(o.type===C.b.SCRIPT||o.type===C.b.STYLE)return null;if(o.type===C.b.STYLESHEET&&r.i(g.a)(o.hrefAttr))return null;var a=[],u=[],c=[],p=[],f=[],h=[],m=[],y=[],b=!1,S=[],w=r.i(d.e)(i.toLowerCase())[1],A=w==F;t.attrs.forEach(function(t){var e,i,o=n._parseAttr(A,t,a,u,f,c,p),l=n._normalizeAttributeName(t.name);l==B?e=t.value:l.startsWith(U)&&(e=t.value,i=l.substring(U.length)+":");var d=r.i(s.c)(e);d&&(b&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),b=!0,n._bindingParser.parseInlineTemplateBinding(i,e,t.sourceSpan,m,h,y)),o||d||(S.push(n.visitAttribute(t,null)),a.push([t.name,t.value]))});var x=createElementCssSelector(i,a),T=this._parseDirectives(this.selectorMatcher,x),O=T.directives,P=T.matchElement,R=[],M=this._createDirectiveAsts(A,t.name,O,u,c,t.sourceSpan,R),I=this._createElementPropertyAsts(t.name,u,M),D=e.isTemplateElement||b,N=new v.c(this.providerViewContext,e.providerContext,D,M,S,R,t.sourceSpan),k=l.g(o.nonBindable?$:this,t.children,Z.create(A,M,A?e.providerContext:N));N.afterElement();var j,V=r.i(s.c)(o.projectAs)?_.a.parse(o.projectAs)[0]:x,L=e.findNgContentIndex(V);if(o.type===C.b.NG_CONTENT)t.children&&!t.children.every(_isEmptyTextNode)&&this._reportError(" element cannot have content.",t.sourceSpan),j=new E.k(this.ngContentCount++,b?null:L,t.sourceSpan);else if(A)this._assertAllEventsPublishedByDirectives(M,f),this._assertNoComponentsNorElementBindingsOnTemplate(M,I,t.sourceSpan),j=new E.l(S,f,R,p,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,k,b?null:L,t.sourceSpan);else{this._assertElementExists(P,t),this._assertOnlyOneComponent(M,t.sourceSpan);var H=b?null:e.findNgContentIndex(V);j=new E.m(i,S,I,f,R,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,k,b?null:H,t.sourceSpan,t.endSourceSpan),this._findComponentDirectives(M).forEach(function(t){return n._validateElementAnimationInputOutputs(t.hostProperties,t.hostEvents,t.directive.template)});var W=N.viewContext.component.template;this._validateElementAnimationInputOutputs(I,f,W.toSummary())}if(b){var z=createElementCssSelector(F,m),q=this._parseDirectives(this.selectorMatcher,z).directives,G=this._createDirectiveAsts(!0,t.name,q,h,[],t.sourceSpan,[]),K=this._createElementPropertyAsts(t.name,h,G);this._assertNoComponentsNorElementBindingsOnTemplate(G,K,t.sourceSpan);var X=new v.c(this.providerViewContext,e.providerContext,e.isTemplateElement,G,[],[],t.sourceSpan);X.afterElement(),j=new E.l([],[],[],y,X.transformedDirectiveAsts,X.transformProviders,X.transformedHasViewContainer,[j],L,t.sourceSpan)}return j},TemplateParseVisitor.prototype._validateElementAnimationInputOutputs=function(t,e,r){var n=this,i=new Set;r.animations.forEach(function(t){i.add(t)});var o=t.filter(function(t){return t.isAnimation});o.forEach(function(t){var e=t.name;i.has(e)||n._reportError("Couldn't find an animation entry for \""+e+'"',t.sourceSpan)}),e.forEach(function(t){if(t.isAnimation){var e=o.find(function(e){return e.name==t.name});e||n._reportError("Unable to listen on (@"+t.name+"."+t.phase+") because the animation trigger [@"+t.name+"] isn't being used on the same element",t.sourceSpan)}})},TemplateParseVisitor.prototype._parseAttr=function(t,e,n,i,o,a,u){var c=this._normalizeAttributeName(e.name),l=e.value,p=e.sourceSpan,f=c.match(O),h=!1;if(null!==f)if(h=!0,r.i(s.c)(f[P]))this._bindingParser.parsePropertyBinding(f[k],l,!1,p,n,i);else if(f[R])if(t){var d=f[k];this._parseVariable(d,l,p,u)}else this._reportError('"let-" is only supported on template elements.',p);else if(f[M]){var d=f[k];this._parseReference(d,l,p,a)}else f[I]?this._bindingParser.parseEvent(f[k],l,p,n,o):f[D]?(this._bindingParser.parsePropertyBinding(f[k],l,!1,p,n,i),this._parseAssignmentEvent(f[k],l,p,n,o)):f[N]?this._bindingParser.parseLiteralAttr(c,l,p,n,i):f[j]?(this._bindingParser.parsePropertyBinding(f[j],l,!1,p,n,i),this._parseAssignmentEvent(f[j],l,p,n,o)):f[V]?this._bindingParser.parsePropertyBinding(f[V],l,!1,p,n,i):f[L]&&this._bindingParser.parseEvent(f[L],l,p,n,o);else h=this._bindingParser.parsePropertyInterpolation(c,l,p,n,i);return h||this._bindingParser.parseLiteralAttr(c,l,p,n,i),h},TemplateParseVisitor.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},TemplateParseVisitor.prototype._parseVariable=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',r),n.push(new E.d(t,e,r))},TemplateParseVisitor.prototype._parseReference=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',r),n.push(new Q(t,e,r))},TemplateParseVisitor.prototype._parseAssignmentEvent=function(t,e,r,n,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",r,n,i)},TemplateParseVisitor.prototype._parseDirectives=function(t,e){var r=this,n=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){n[r.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:n.filter(function(t){return!!t}),matchElement:i}},TemplateParseVisitor.prototype._createDirectiveAsts=function(t,e,n,o,s,a,c){var l=this,p=new Set,f=null,h=n.map(function(t){var n=new m.c(a.start,a.end,"Directive "+r.i(i.a)(t.type));t.isComponent&&(f=t);var h=[],d=l._bindingParser.createDirectiveHostPropertyAsts(t,n);l._checkPropertiesInSchema(e,d);var y=l._bindingParser.createDirectiveHostEventAsts(t,n);return l._createDirectivePropertyAsts(t.inputs,o,h),s.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(c.push(new E.n(e.name,r.i(u.c)(t.type),e.sourceSpan)),p.add(e.name))}),new E.o(t,h,d,y,n)});return s.forEach(function(e){if(e.value.length>0)p.has(e.name)||l._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!f){var n=null;t&&(n=r.i(u.f)(u.b.TemplateRef)),c.push(new E.n(e.name,n,e.sourceSpan))}}),h},TemplateParseVisitor.prototype._createDirectivePropertyAsts=function(t,e,r){if(t){var n=new Map;e.forEach(function(t){var e=n.get(t.name);e&&!e.isLiteral||n.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],o=n.get(i);o&&r.push(new E.p(e,o.name,o.expression,o.sourceSpan))})}},TemplateParseVisitor.prototype._createElementPropertyAsts=function(t,e,r){var n=this,i=[],o=new Map;return r.forEach(function(t){t.inputs.forEach(function(t){o.set(t.templateName,t)})}),e.forEach(function(e){e.isLiteral||o.get(e.name)||i.push(n._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i),i},TemplateParseVisitor.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},TemplateParseVisitor.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return r.i(i.a)(t.directive.type)})},TemplateParseVisitor.prototype._assertOnlyOneComponent=function(t,e){var r=this._findComponentDirectiveNames(t);r.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+r.join(","),e)},TemplateParseVisitor.prototype._assertElementExists=function(t,e){var r=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(r,this._schemas)){var n="'"+r+"' is not a known element:\n"+("1. If '"+r+"' is an Angular component, then verify that it is part of this module.\n")+("2. If '"+r+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.");this._reportError(n,e.sourceSpan)}},TemplateParseVisitor.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,r){var n=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),r),e.forEach(function(t){n._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',r)})},TemplateParseVisitor.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,i=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var r=t.directive.outputs[e];i.add(r)})}),e.forEach(function(t){!r.i(s.c)(t.target)&&i.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},TemplateParseVisitor.prototype._checkPropertiesInSchema=function(t,e){var r=this;e.forEach(function(e){if(e.type===E.f.Property&&!r._schemaRegistry.hasProperty(t,e.name,r._schemas)){var n="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.indexOf("-")>-1&&(n+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module."+("\n2. If '"+t+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.\n")),r._reportError(n,e.sourceSpan)}})},TemplateParseVisitor.prototype._reportError=function(t,e,r){void 0===r&&(r=m.e.FATAL),this._targetErrors.push(new m.a(e,t,r))},TemplateParseVisitor}(),J=function(){function NonBindableVisitor(){}return NonBindableVisitor.prototype.visitElement=function(t,e){var n=r.i(C.a)(t);if(n.type===C.b.SCRIPT||n.type===C.b.STYLE||n.type===C.b.STYLESHEET)return null;var i=t.attrs.map(function(t){return[t.name,t.value]}),o=createElementCssSelector(t.name,i),s=e.findNgContentIndex(o),a=l.g(this,t.children,Y);return new E.m(t.name,l.g(this,t.attrs),[],[],[],[],[],!1,a,s,t.sourceSpan,t.endSourceSpan)},NonBindableVisitor.prototype.visitComment=function(t,e){return null},NonBindableVisitor.prototype.visitAttribute=function(t,e){return new E.j(t.name,t.value,t.sourceSpan)},NonBindableVisitor.prototype.visitText=function(t,e){var r=e.findNgContentIndex(W);return new E.i(t.value,r,t.sourceSpan)},NonBindableVisitor.prototype.visitExpansion=function(t,e){return t},NonBindableVisitor.prototype.visitExpansionCase=function(t,e){return t},NonBindableVisitor}(),Q=function(){function ElementOrDirectiveRef(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return ElementOrDirectiveRef}(),Z=function(){function ElementContext(t,e,r,n){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=r,this.providerContext=n}return ElementContext.create=function(t,e,r){var n=new _.b,i=null,o=e.find(function(t){return t.directive.isComponent});if(o)for(var s=o.directive.template.ngContentSelectors,a=0;a0?e[0]:null},ElementContext}(),Y=new Z(!0,new _.b,null,null),$=new J},function(t,e,r){"use strict";var n=r(59),i=r(17),o=r(62),s=r(298),a=r(300),u=r(495),c=r(496),l=r(204);r.d(e,"b",function(){return l.b}),r.d(e,"c",function(){return l.c}),r.d(e,"a",function(){return l.a}),r.d(e,"d",function(){return d});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var p=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},f=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(){function ViewCompileResult(t,e,r){this.statements=t,this.viewClassVar=e,this.dependencies=r}return ViewCompileResult}(),d=function(){function ViewCompiler(t,e){this._genConfig=t,this._schemaRegistry=e}return ViewCompiler.prototype.compileComponent=function(t,e,n,i,o){var l=[],p=new a.a(t,this._genConfig,i,n,o,0,s.a.createNull(),[],l),f=[];return r.i(c.a)(p,e,l),r.i(u.a)(p,e,this._schemaRegistry),r.i(c.b)(p,f),new h(f,p.classExpr.name,l)},ViewCompiler=p([r.i(i.a)(),f("design:paramtypes",[n.a,o.a])],ViewCompiler)}()},function(t,e,r){"use strict";var n=r(7);r.d(e,"b",function(){return o}),r.d(e,"a",function(){return a});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=new Object,o=i,s=function(){function _NullInjector(){}return _NullInjector.prototype.get=function(t,e){if(void 0===e&&(e=i),e===i)throw new Error("No provider for "+r.i(n.c)(t)+"!");return e},_NullInjector}(),a=function(){function Injector(){}return Injector.prototype.get=function(t,e){},Injector.THROW_IF_NOT_FOUND=i,Injector.NULL=new s,Injector}()},function(t,e,r){"use strict";function isListLikeIterable(t){return!!r.i(n.d)(t)&&(Array.isArray(t)||!(t instanceof Map)&&r.i(n.e)()in t)}function areIterablesEqual(t,e,i){for(var o=t[r.i(n.e)()](),s=e[r.i(n.e)()]();;){var a=o.next(),u=s.next();if(a.done&&u.done)return!0;if(a.done||u.done)return!1;if(!i(a.value,u.value))return!1}}function iterateListLike(t,e){if(Array.isArray(t))for(var i=0;i=0;r--)if(e(t[r]))return t[r];return null},ListWrapper.removeAll=function(t,e){for(var r=0;r-1&&t.splice(n,1)}},ListWrapper.remove=function(t,e){var r=t.indexOf(e);return r>-1&&(t.splice(r,1),!0)},ListWrapper.equals=function(t,e){if(t.length!=e.length)return!1;for(var r=0;r0){var n=t.slice(0,r),i=t.slice(r+1).trim();e.set(n,i)}}),e},Headers.prototype.append=function(t,e){var r=this.getAll(t);null===r?this.set(t,e):r.push(e)},Headers.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},Headers.prototype.forEach=function(t){var e=this;this._headers.forEach(function(r,n){return t(r,e._normalizedNames.get(n),e._headers)})},Headers.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},Headers.prototype.has=function(t){return this._headers.has(t.toLowerCase())},Headers.prototype.keys=function(){return Array.from(this._normalizedNames.values())},Headers.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},Headers.prototype.values=function(){return Array.from(this._headers.values())},Headers.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(r,n){var i=[];r.forEach(function(t){return i.push.apply(i,t.split(","))}),e[t._normalizedNames.get(n)]=i}),e},Headers.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase()):null},Headers.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},Headers.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},Headers}()},function(t,e,r){"use strict";r.d(e,"b",function(){return n}),r.d(e,"a",function(){return i}),r.d(e,"c",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function ConnectionBackend(){}return ConnectionBackend.prototype.createConnection=function(t){},ConnectionBackend}(),i=function(){function Connection(){}return Connection}(),o=function(){function XSRFStrategy(){}return XSRFStrategy.prototype.configureRequest=function(t){},XSRFStrategy}()},function(t,e,r){"use strict";function defaultErrorHandler(t){throw t}function advanceActivatedRouteNodeAndItsChildren(t){r.i(S.h)(t.value),t.children.forEach(advanceActivatedRouteNodeAndItsChildren)}function parentLoadedConfig(t){for(var e=t.parent;e;){var r=e._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;if(r&&r.component)return null;e=e.parent}return null}function closestLoadedConfig(t){if(!t)return null;for(var e=t.parent;e;){var r=e._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;e=e.parent}return null}function nodeChildrenAsMap(t){return t?t.children.reduce(function(t,e){return t[e.value.outlet]=e,t},{}):{}}function getOutlet(t,e){var r=t._outlets[e.outlet];if(!r){var n=e.component.name;throw e.outlet===w.a?new Error("Cannot find primary outlet to load '"+n+"'"):new Error("Cannot find the outlet "+e.outlet+" to load '"+n+"'")}return r}function validateCommands(t){for(var e=0;e-1)return n;if(n=r.getPluralCategory(t),e.indexOf(n)>-1)return n;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function getPluralCase(t,e){"string"==typeof e&&(e=parseInt(e,10));var r=e,n=r.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(r)),o=n.length,s=parseInt(n,10),u=parseInt(r.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,c=t.split("-")[0].toLowerCase();switch(c){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===r?a.One:a.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return r===Math.floor(r)&&r>=0&&r<=1?a.One:a.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===r?a.One:a.Other;case"ar":return 0===r?a.Zero:1===r?a.One:2===r?a.Two:r%100===Math.floor(r%100)&&r%100>=3&&r%100<=10?a.Few:r%100===Math.floor(r%100)&&r%100>=11&&r%100<=99?a.Many:a.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?a.One:a.Other;case"be":return r%10===1&&r%100!==11?a.One:r%10===Math.floor(r%10)&&r%10>=2&&r%10<=4&&!(r%100>=12&&r%100<=14)?a.Few:r%10===0||r%10===Math.floor(r%10)&&r%10>=5&&r%10<=9||r%100===Math.floor(r%100)&&r%100>=11&&r%100<=14?a.Many:a.Other;case"br":return r%10===1&&r%100!==11&&r%100!==71&&r%100!==91?a.One:r%10===2&&r%100!==12&&r%100!==72&&r%100!==92?a.Two:r%10===Math.floor(r%10)&&(r%10>=3&&r%10<=4||r%10===9)&&!(r%100>=10&&r%100<=19||r%100>=70&&r%100<=79||r%100>=90&&r%100<=99)?a.Few:0!==r&&r%1e6===0?a.Many:a.Other;case"bs":case"hr":case"sr":return 0===o&&i%10===1&&i%100!==11||s%10===1&&s%100!==11?a.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?a.Few:a.Other;case"cs":case"sk":return 1===i&&0===o?a.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?a.Few:0!==o?a.Many:a.Other;case"cy":return 0===r?a.Zero:1===r?a.One:2===r?a.Two:3===r?a.Few:6===r?a.Many:a.Other;case"da":return 1===r||0!==u&&(0===i||1===i)?a.One:a.Other;case"dsb":case"hsb":return 0===o&&i%100===1||s%100===1?a.One:0===o&&i%100===2||s%100===2?a.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?a.Few:a.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?a.One:a.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!==4&&i%10!==6&&i%10!==9||0!==o&&s%10!==4&&s%10!==6&&s%10!==9?a.One:a.Other;case"ga":return 1===r?a.One:2===r?a.Two:r===Math.floor(r)&&r>=3&&r<=6?a.Few:r===Math.floor(r)&&r>=7&&r<=10?a.Many:a.Other;case"gd":return 1===r||11===r?a.One:2===r||12===r?a.Two:r===Math.floor(r)&&(r>=3&&r<=10||r>=13&&r<=19)?a.Few:a.Other;case"gv":return 0===o&&i%10===1?a.One:0===o&&i%10===2?a.Two:0!==o||i%100!==0&&i%100!==20&&i%100!==40&&i%100!==60&&i%100!==80?0!==o?a.Many:a.Other:a.Few;case"he":return 1===i&&0===o?a.One:2===i&&0===o?a.Two:0!==o||r>=0&&r<=10||r%10!==0?a.Other:a.Many;case"is":return 0===u&&i%10===1&&i%100!==11||0!==u?a.One:a.Other;case"ksh":return 0===r?a.Zero:1===r?a.One:a.Other;case"kw":case"naq":case"se":case"smn":return 1===r?a.One:2===r?a.Two:a.Other;case"lag":return 0===r?a.Zero:0!==i&&1!==i||0===r?a.Other:a.One;case"lt":return r%10!==1||r%100>=11&&r%100<=19?r%10===Math.floor(r%10)&&r%10>=2&&r%10<=9&&!(r%100>=11&&r%100<=19)?a.Few:0!==s?a.Many:a.Other:a.One;case"lv":case"prg":return r%10===0||r%100===Math.floor(r%100)&&r%100>=11&&r%100<=19||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?a.Zero:r%10===1&&r%100!==11||2===o&&s%10===1&&s%100!==11||2!==o&&s%10===1?a.One:a.Other;case"mk":return 0===o&&i%10===1||s%10===1?a.One:a.Other;case"mt":return 1===r?a.One:0===r||r%100===Math.floor(r%100)&&r%100>=2&&r%100<=10?a.Few:r%100===Math.floor(r%100)&&r%100>=11&&r%100<=19?a.Many:a.Other;case"pl":return 1===i&&0===o?a.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?a.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?a.Many:a.Other;case"pt":return r===Math.floor(r)&&r>=0&&r<=2&&2!==r?a.One:a.Other;case"ro":return 1===i&&0===o?a.One:0!==o||0===r||1!==r&&r%100===Math.floor(r%100)&&r%100>=1&&r%100<=19?a.Few:a.Other;case"ru":case"uk":return 0===o&&i%10===1&&i%100!==11?a.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?a.Few:0===o&&i%10===0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?a.Many:a.Other;case"shi":return 0===i||1===r?a.One:r===Math.floor(r)&&r>=2&&r<=10?a.Few:a.Other;case"si":return 0===r||1===r||0===i&&1===s?a.One:a.Other;case"sl":return 0===o&&i%100===1?a.One:0===o&&i%100===2?a.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?a.Few:a.Other;case"tzm":return r===Math.floor(r)&&r>=0&&r<=1||r===Math.floor(r)&&r>=11&&r<=99?a.One:a.Other;default:return a.Other}}var n=r(1);r.d(e,"b",function(){return o}),e.a=getPluralCategory,r.d(e,"c",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},o=function(){function NgLocalization(){}return NgLocalization.prototype.getPluralCategory=function(t){},NgLocalization}(),s=function(t){function NgLocaleLocalization(e){t.call(this),this._locale=e}return i(NgLocaleLocalization,t),NgLocaleLocalization.prototype.getPluralCategory=function(t){var e=getPluralCase(this._locale,t);switch(e){case a.Zero:return"zero";case a.One:return"one";case a.Two:return"two";case a.Few:return"few";case a.Many:return"many";default:return"other"}},NgLocaleLocalization.decorators=[{type:n.Injectable}],NgLocaleLocalization.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[n.LOCALE_ID]}]}]},NgLocaleLocalization}(o),a={};a.Zero=0,a.One=1,a.Two=2,a.Few=3,a.Many=4,a.Other=5,a[a.Zero]="Zero",a[a.One]="One",a[a.Two]="Two",a[a.Few]="Few",a[a.Many]="Many",a[a.Other]="Other"},function(t,e,r){"use strict";var n=r(1);r.d(e,"a",function(){return i}),r.d(e,"b",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function LocationStrategy(){}return LocationStrategy.prototype.path=function(t){},LocationStrategy.prototype.prepareExternalUrl=function(t){},LocationStrategy.prototype.pushState=function(t,e,r,n){},LocationStrategy.prototype.replaceState=function(t,e,r,n){},LocationStrategy.prototype.forward=function(){},LocationStrategy.prototype.back=function(){},LocationStrategy.prototype.onPopState=function(t){},LocationStrategy.prototype.getBaseHref=function(){},LocationStrategy}(),o=new n.OpaqueToken("appBaseHref")},function(t,e,r){"use strict";var n=(r(489),r(42),r(106),r(59),r(12),r(471),r(190),r(192),r(191),r(58),r(193),r(194),r(202),r(291),r(478));r.d(e,"b",function(){return n.a});var i=(r(72),r(201));r.d(e,"a",function(){return i.a});r(101),r(105),r(104),r(41),r(62),r(286),r(100),r(102),r(82),r(103),r(70),r(142),r(60),r(486),r(200),r(33),r(143),r(144),r(145),r(107),r(136),r(28)},function(t,e,r){"use strict";function _parseAnimationDeclarationStates(t,e,r){var n=_normalizeStyleMetadata(t.styles,{},e,r,!1),i=new l.b(n),o=t.stateNameExpr.split(/\s*,\s*/);return o.map(function(t){return new l.c(t,i)})}function _parseAnimationStateTransition(t,e,r,n){var i=new p.a,o=[],s=t.stateChangeExpr.split(/\s*,\s*/);s.forEach(function(t){o.push.apply(o,_parseAnimationTransitionExpr(t,n))});var a=_normalizeAnimationEntry(t.steps),u=_normalizeStyleSteps(a,e,r,n),c=_parseTransitionAnimation(u,0,i,e,n);0==n.length&&_fillAnimationAstStartingKeyframes(c,i,n);var f=c instanceof l.d?c:new l.e([c]);return new l.f(o,f)}function _parseAnimationAlias(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";default:return e.push(new b('the transition alias value "'+t+'" is not supported')),"* => *"}}function _parseAnimationTransitionExpr(t,e){var n=[];":"==t[0]&&(t=_parseAnimationAlias(t,e));var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(!r.i(o.c)(i)||i.length<4)return e.push(new b("the provided "+t+" is not of a supported format")),n;var s=i[1],a=i[2],c=i[3];n.push(new l.g(s,c));var p=s==u.a&&c==u.a;return"<"!=a[0]||p||n.push(new l.g(c,s)),n}function _normalizeAnimationEntry(t){return Array.isArray(t)?new n.c(t):t}function _normalizeStyleMetadata(t,e,r,n,i){var o=t.offset;(o>1||o<0)&&n.push(new b("Offset values for animations must be between 0 and 1"));var s=[];return t.styles.forEach(function(t){if("string"==typeof t)i?s.push.apply(s,_resolveStylesFromState(t,e,n)):n.push(new b("State based animations cannot contain references to other states"));else{var o=t,a={};Object.keys(o).forEach(function(t){var e=r.normalizeAnimationStyleProperty(t),i=r.normalizeAnimationStyleValue(e,t,o[t]),s=i.error;s&&n.push(new b(s)),a[e]=i.value}),s.push(a)}}),s}function _normalizeStyleSteps(t,e,r,i){var o=_normalizeStyleStepEntry(t,e,r,i);return t instanceof n.d?new n.d(o):new n.c(o)}function _mergeAnimationStyles(t,e){if("object"==typeof e&&null!==e&&t.length>0){var r=t.length-1,n=t[r];if("object"==typeof n&&null!==n)return void(t[r]=i.a.merge(n,e))}t.push(e)}function _normalizeStyleStepEntry(t,e,i,s){var a;if(!(t instanceof n.e))return[t];a=t.steps;var u,c=[];return a.forEach(function(t){if(t instanceof n.f)r.i(o.c)(u)||(u=[]),_normalizeStyleMetadata(t,e,i,s,!0).forEach(function(t){_mergeAnimationStyles(u,t)});else{if(r.i(o.c)(u)&&(c.push(new n.f(0,u)),u=null),t instanceof n.g){var a=t.styles;a instanceof n.f?a.styles=_normalizeStyleMetadata(a,e,i,s,!0):a instanceof n.h&&a.steps.forEach(function(t){t.styles=_normalizeStyleMetadata(t,e,i,s,!0)})}else if(t instanceof n.e){var l=_normalizeStyleStepEntry(t,e,i,s);t=t instanceof n.d?new n.d(l):new n.c(l)}c.push(t)}}),r.i(o.c)(u)&&c.push(new n.f(0,u)),c}function _resolveStylesFromState(t,e,n){var i=[];if(":"!=t[0])n.push(new b('Animation states via styles must be prefixed with a ":"'));else{var s=t.substring(1),a=e[s];r.i(o.c)(a)?a.styles.forEach(function(t){"object"==typeof t&&null!==t&&i.push(t)}):n.push(new b('Unable to apply styles due to missing a state: "'+s+'"'))}return i}function _parseAnimationKeyframes(t,e,n,i,s){var a=t.steps.length,c=0;t.steps.forEach(function(t){return c+=r.i(o.c)(t.offset)?1:0}),c>0&&c=0;C--)T(C);return h.map(function(t){return new l.h(t[0],new l.b([t[1]]))})}function _parseTransitionAnimation(t,e,i,s,a){var u,c=0,p=e;if(t instanceof n.e){var f,h=0,d=[],m=t instanceof n.d;if(t.steps.forEach(function(t){var u=m?p:e;if(t instanceof n.f)return t.styles.forEach(function(t){var e=t;Object.keys(e).forEach(function(t){i.insertAtTime(t,u,e[t])})}),void(f=t.styles);var y=_parseTransitionAnimation(t,u,i,s,a);if(r.i(o.c)(f)){if(t instanceof n.e){var v=new l.b(f);d.push(new l.i(v,[],0,0,""))}else{var b=y;(g=b.startingStyles.styles).push.apply(g,f)}f=null}var _=y.playTime;e+=_,c+=_,h=Math.max(_,h),d.push(y);var g}),r.i(o.c)(f)){var v=new l.b(f);d.push(new l.i(v,[],0,0,""))}m?(u=new l.j(d),c=h,e=p+c):u=new l.e(d)}else if(t instanceof n.g){var b=_parseTimeExpression(t.timings,a),_=t.styles,g=void 0;if(_ instanceof n.h)g=_parseAnimationKeyframes(_,e,i,s,a);else{var S=_,w=y,E=new l.b(S.styles),C=new l.h(w,E);g=[C]}u=new l.i(new l.b([]),g,b.duration,b.delay,b.easing),c=b.duration+b.delay,e+=c,g.forEach(function(t){return t.styles.styles.forEach(function(t){return Object.keys(t).forEach(function(r){i.insertAtTime(r,e,t[r])})})})}else u=new l.i(null,[],0,0,"");return u.playTime=c,u.startTime=p,u}function _fillAnimationAstStartingKeyframes(t,e,r){if(t instanceof l.i&&t.keyframes.length>0){var n=t.keyframes;if(1==n.length){var i=n[0],o=_createStartKeyframeFromEndKeyframe(i,t.startTime,t.playTime,e,r);t.keyframes=[o,i]}}else t instanceof l.d&&t.steps.forEach(function(t){return _fillAnimationAstStartingKeyframes(t,e,r)})}function _parseTimeExpression(t,e){var n,i=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,s=0,a=null;if("string"==typeof t){var u=t.match(i);if(null===u)return e.push(new b('The provided timing value "'+t+'" is invalid.')),new S(0,0,null);var c=parseFloat(u[1]),l=u[2];"s"==l&&(c*=v),n=Math.floor(c);var p=u[3],f=u[4];if(r.i(o.c)(p)){var h=parseFloat(p);r.i(o.c)(f)&&"s"==f&&(h*=v),s=Math.floor(h)}var d=u[5];r.i(o.d)(d)||(a=d)}else n=t;return new S(n,s,a)}function _createStartKeyframeFromEndKeyframe(t,e,n,i,s){var a={},c=e+n;return t.styles.styles.forEach(function(t){Object.keys(t).forEach(function(n){var l=t[n];if("offset"!=n){var p,f,h,d=i.indexOfAtOrBeforeTime(n,e);r.i(o.c)(d)?(p=i.getByIndex(n,d),h=p.value,f=i.getByIndex(n,d+1)):h=u.b,r.i(o.c)(f)&&!f.matches(c,l)&&s.push(new b('The animated CSS property "'+n+'" unexpectedly changes between steps "'+p.time+'ms" and "'+c+'ms" at "'+f.time+'ms"')),a[n]=h}})}),new l.h(m,new l.b([a]))}var n=r(12),i=r(69),o=r(6),s=r(17),a=r(33),u=r(14),c=r(62),l=r(278),p=r(470);r.d(e,"a",function(){return g});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var f=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},h=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},d=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},m=0,y=1,v=1e3,b=function(t){function AnimationParseError(e){t.call(this,null,e)}return f(AnimationParseError,t),AnimationParseError.prototype.toString=function(){return""+this.msg},AnimationParseError}(a.a),_=function(){function AnimationEntryParseResult(t,e){this.ast=t,this.errors=e}return AnimationEntryParseResult}(),g=function(){function AnimationParser(t){this._schema=t}return AnimationParser.prototype.parseComponent=function(t){var e=this,i=[],o=r.i(n.a)(t.type),s=new Set,a=t.template.animations.map(function(t){var r=e.parseEntry(t),n=r.ast,a=n.name;if(s.has(a)?r.errors.push(new b('The animation trigger "'+a+'" has already been registered for the '+o+" component")):s.add(a),r.errors.length>0){var u='- Unable to parse the animation sequence for "'+a+'" on the '+o+" component due to the following errors:";r.errors.forEach(function(t){u+="\n-- "+t.msg}),i.push(u)}return n});if(i.length>0){var u=i.join("\n");throw new Error("Animation parse errors:\n"+u)}return a},AnimationParser.prototype.parseEntry=function(t){var e=this,r=[],i={},o=[],s=[];t.definitions.forEach(function(t){t instanceof n.b?_parseAnimationDeclarationStates(t,e._schema,r).forEach(function(t){s.push(t),i[t.stateName]=t.styles}):o.push(t)});var a=o.map(function(t){return _parseAnimationStateTransition(t,i,e._schema,r)}),u=new l.a(t.name,s,a);return new _(u,r)},AnimationParser=h([r.i(s.a)(),d("design:paramtypes",[c.a])],AnimationParser)}(),S=function(){function _AnimationTimings(t,e,r){this.duration=t,this.delay=e,this.easing=r}return _AnimationTimings}()},function(t,e,r){"use strict";function isWhitespace(t){return t>=i&&t<=c||t==rt}function isDigit(t){return M<=t&&t<=I}function isAsciiLetter(t){return t>=W&&t<=Y||t>=D&&t<=V}function isAsciiHexDigit(t){return t>=W&&t<=q||t>=D&&t<=k||isDigit(t)}r.d(e,"m",function(){return n}),r.d(e,"Y",function(){return i}),r.d(e,"a",function(){return o}),r.d(e,"_0",function(){return s}),r.d(e,"U",function(){return a}),r.d(e,"W",function(){return u}),r.d(e,"n",function(){return c}),r.d(e,"B",function(){return l}),r.d(e,"q",function(){return p}),r.d(e,"r",function(){return f}),r.d(e,"N",function(){return h}),r.d(e,"v",function(){return d}),r.d(e,"C",function(){return m}),r.d(e,"p",function(){return y}),r.d(e,"h",function(){return v}),r.d(e,"i",function(){return b}),r.d(e,"u",function(){return _}),r.d(e,"s",function(){return g}),r.d(e,"k",function(){return S}),r.d(e,"t",function(){return w}),r.d(e,"e",function(){return E}),r.d(e,"b",function(){return C}),r.d(e,"d",function(){return A}),r.d(e,"c",function(){return x}),r.d(e,"y",function(){return T}),r.d(e,"A",function(){return O}),r.d(e,"z",function(){return P}),r.d(e,"x",function(){return R}),r.d(e,"_3",function(){return M}),r.d(e,"_4",function(){return I}),r.d(e,"K",function(){return D}),r.d(e,"Q",function(){return N}),r.d(e,"_2",function(){return j}),r.d(e,"L",function(){return V}),r.d(e,"f",function(){return L}),r.d(e,"G",function(){return F}),r.d(e,"g",function(){return B}),r.d(e,"w",function(){return U}),r.d(e,"M",function(){return H}),r.d(e,"I",function(){return W}),r.d(e,"P",function(){return z}),r.d(e,"T",function(){return q}),r.d(e,"S",function(){return G}),r.d(e,"V",function(){return K}),r.d(e,"X",function(){return X}),r.d(e,"H",function(){return J}),r.d(e,"Z",function(){return Q}),r.d(e,"_1",function(){return Z}),r.d(e,"J",function(){return Y}),r.d(e,"j",function(){return $}),r.d(e,"D",function(){return tt}),r.d(e,"l",function(){return et}),r.d(e,"E",function(){return rt}),r.d(e,"R",function(){return nt}),e.F=isWhitespace,e.o=isDigit,e.O=isAsciiLetter,e._5=isAsciiHexDigit;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=0,i=9,o=10,s=11,a=12,u=13,c=32,l=33,p=34,f=35,h=36,d=37,m=38,y=39,v=40,b=41,_=42,g=43,S=44,w=45,E=46,C=47,A=58,x=59,T=60,O=61,P=62,R=63,M=48,I=57,D=65,N=69,k=70,j=88,V=90,L=91,F=92,B=93,U=94,H=95,W=97,z=101,q=102,G=110,K=114,X=116,J=117,Q=118,Z=120,Y=122,$=123,tt=124,et=125,rt=160,nt=96},function(t,e,r){"use strict";r.d(e,"e",function(){return n}),r.d(e,"a",function(){return i}),r.d(e,"b",function(){return o}),r.d(e,"c",function(){return s}),r.d(e,"f",function(){return a}),r.d(e,"d",function(){return u}),r.d(e,"g",function(){return c});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function Message(t,e,r,n,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=r,this.meaning=n,this.description=i}return Message}(),i=function(){function Text(t,e){this.value=t,this.sourceSpan=e}return Text.prototype.visit=function(t,e){return t.visitText(this,e)},Text}(),o=function(){function Container(t,e){this.children=t,this.sourceSpan=e}return Container.prototype.visit=function(t,e){return t.visitContainer(this,e)},Container}(),s=function(){function Icu(t,e,r,n){this.expression=t,this.type=e,this.cases=r,this.sourceSpan=n}return Icu.prototype.visit=function(t,e){return t.visitIcu(this,e)},Icu}(),a=function(){function TagPlaceholder(t,e,r,n,i,o,s){this.tag=t,this.attrs=e,this.startName=r,this.closeName=n,this.children=i,this.isVoid=o,this.sourceSpan=s}return TagPlaceholder.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},TagPlaceholder}(),u=function(){function Placeholder(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return Placeholder.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},Placeholder}(),c=function(){function IcuPlaceholder(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return IcuPlaceholder.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},IcuPlaceholder}()},function(t,e,r){"use strict";var n=r(41),i=r(83),o=r(285),s=r(288),a=r(196),u=r(290),c=r(477);r.d(e,"a",function(){return l});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var l=function(){function I18NHtmlParser(t,e,r){this._htmlParser=t,this._translations=e,this._translationsFormat=r}return I18NHtmlParser.prototype.parse=function(t,e,s,a){void 0===s&&(s=!1),void 0===a&&(a=n.a);var u=this._htmlParser.parse(t,e,s,a);if(!this._translations||""===this._translations)return u;if(u.errors.length)return new i.b(u.rootNodes,u.errors);var l=this._createSerializer(),p=c.a.load(this._translations,e,l);return r.i(o.b)(u.rootNodes,p,a,[],{})},I18NHtmlParser.prototype._createSerializer=function(){var t=(this._translationsFormat||"xlf").toLowerCase();switch(t){case"xmb":return new a.c;case"xtb":return new u.a;case"xliff":case"xlf":default:return new s.a}},I18NHtmlParser}()},function(t,e,r){"use strict";var n=r(33);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},o=function(t){function I18nError(e,r){t.call(this,e,r)}return i(I18nError,t),I18nError}(n.a)},function(t,e,r){"use strict";r.d(e,"a",function(){return n});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function Serializer(){}return Serializer.prototype.write=function(t){},Serializer.prototype.load=function(t,e){},Serializer.prototype.digest=function(t){},Serializer.prototype.createNameMapper=function(t){return null},Serializer}()},function(t,e,r){"use strict";var n=r(12),i=r(40),o=r(6),s=r(16),a=r(17),u=r(199),c=r(9),l=r(293),p=r(33),f=r(14),h=r(294);r.d(e,"a",function(){return b});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var d=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},m=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},y=function(){function ComponentFactoryDependency(t,e){this.comp=t,this.placeholder=e}return ComponentFactoryDependency}(),v=function(){function NgModuleCompileResult(t,e,r){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=r}return NgModuleCompileResult}(),b=function(){function NgModuleCompiler(){}return NgModuleCompiler.prototype.compile=function(t,e){var i=r.i(n.i)(t.type),a=r.i(o.c)(i)?"in NgModule "+r.i(n.a)(t.type)+" in "+i:"in NgModule "+r.i(n.a)(t.type),u=new p.b("",a),l=new p.c(new p.d(u,null,null,null),new p.d(u,null,null,null)),f=[],d=[],m=t.transitiveModule.entryComponents.map(function(e){var r={reference:null};return t.bootstrapComponents.some(function(t){return t.reference===e.reference})&&d.push(r),f.push(new y(e,r)),r}),b=new _(t,m,d,l),g=new h.a(t,e,l);g.parse().forEach(function(t){return b.addProvider(t)});var S=b.build(),w=r.i(n.a)(t.type)+"NgFactory",E=c.a(w).set(c.g(r.i(s.a)(s.b.NgModuleFactory)).instantiate([c.a(S.name),c.g(t.type)],c.d(r.i(s.a)(s.b.NgModuleFactory),[c.d(t.type)],[c.j.Const]))).toDeclStmt(null,[c.k.Final]),C=[S,E];if(t.id){var A=c.g(r.i(s.a)(s.b.RegisterModuleFactoryFn)).callFn([c.f(t.id),c.a(w)]).toStmt();C.push(A)}return new v(C,w,f)},NgModuleCompiler=d([r.i(a.a)(),m("design:paramtypes",[])],NgModuleCompiler)}(),_=function(){function _InjectorBuilder(t,e,r,n){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=r,this._sourceSpan=n,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return _InjectorBuilder.prototype.addProvider=function(t){var e=this,i=t.providers.map(function(t){return e._getProviderValue(t)}),o="_"+r.i(n.k)(t.token)+"_"+this._instances.size,s=this._createProviderProperty(o,t,i,t.multiProvider,t.eager);t.lifecycleHooks.indexOf(f.G.OnDestroy)!==-1&&this._destroyStmts.push(s.callMethod("ngOnDestroy",[]).toStmt()),this._tokens.push(t.token),this._instances.set(r.i(n.j)(t.token),s)},_InjectorBuilder.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var o=t._instances.get(r.i(n.j)(e));return new c.u(S.token.identical(r.i(i.b)(e)),[new c.t(o)])}),o=[new c.q("createInternal",[],this._createStmts.concat(new c.t(this._instances.get(this._ngModuleMeta.type.reference))),c.d(this._ngModuleMeta.type)),new c.q("getInternal",[new c.o(S.token.name,c.m),new c.o(S.notFoundResult.name,c.m)],e.concat([new c.t(S.notFoundResult)]),c.m),new c.q("destroyInternal",[],this._destroyStmts)],a=[c.a(g.parent.name),c.h(this._entryComponentFactories.map(function(t){return c.g(t)})),c.h(this._bootstrapComponentFactories.map(function(t){return c.g(t)}))],l=r.i(n.a)(this._ngModuleMeta.type)+"Injector";return r.i(u.a)({name:l,ctorParams:[new c.o(g.parent.name,c.d(r.i(s.a)(s.b.Injector)))],parent:c.g(r.i(s.a)(s.b.NgModuleInjector),[c.d(this._ngModuleMeta.type)]),parentArgs:a,builders:[{methods:o},this]})},_InjectorBuilder.prototype._getProviderValue=function(t){var e,n=this;if(r.i(o.c)(t.useExisting))e=this._getDependency({token:t.useExisting});else if(r.i(o.c)(t.useFactory)){var i=t.deps||t.useFactory.diDeps,s=i.map(function(t){return n._getDependency(t)});e=c.g(t.useFactory).callFn(s)}else if(r.i(o.c)(t.useClass)){var i=t.deps||t.useClass.diDeps,s=i.map(function(t){return n._getDependency(t)});e=c.g(t.useClass).instantiate(s,c.d(t.useClass))}else e=r.i(l.a)(t.useValue);return e},_InjectorBuilder.prototype._createProviderProperty=function(t,e,r,n,i){var o,s;if(n?(o=c.h(r),s=new c.i(c.m)):(o=r[0],s=r[0].type),s||(s=c.m),i)this.fields.push(new c.c(t,s)),this._createStmts.push(c.e.prop(t).set(o).toStmt());else{var a="_"+t;this.fields.push(new c.c(a,s));var u=[new c.u(c.e.prop(a).isBlank(),[c.e.prop(a).set(o).toStmt()]),new c.t(c.e.prop(a))];this.getters.push(new c.H(t,u,s))}return c.e.prop(t)},_InjectorBuilder.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=c.f(t.value)),t.isSkipSelf||(!t.token||r.i(n.j)(t.token)!==r.i(s.e)(s.b.Injector)&&r.i(n.j)(t.token)!==r.i(s.e)(s.b.ComponentFactoryResolver)||(e=c.e),e||(e=this._instances.get(r.i(n.j)(t.token)))),!e){var o=[r.i(i.b)(t.token)];t.isOptional&&o.push(c.b),e=g.parent.callMethod("get",o)}return e},_InjectorBuilder}(),g=function(){function InjectorProps(){}return InjectorProps.parent=c.e.prop("parent"),InjectorProps}(),S=function(){function InjectMethodVars(){}return InjectMethodVars.token=c.a("token"),InjectMethodVars.notFoundResult=c.a("notFoundResult"),InjectMethodVars}()},function(t,e,r){"use strict";function _isPixelDimensionStyle(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var n=r(1),i=r(17),o=r(28),s=r(487),a=r(62);r.d(e,"a",function(){return v});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},c=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p="boolean",f="number",h="string",d="object",m=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],y={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},v=function(t){function DomElementSchemaRegistry(){var e=this;t.call(this),this._schema={},m.forEach(function(t){var r={},n=t.split("|"),i=n[0],o=n[1],s=o.split(","),a=i.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=r});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){r[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":r[t.substring(1)]=p;break;case"#":r[t.substring(1)]=f;break;case"%":r[t.substring(1)]=d;break;default:r[t]=h}})})}return u(DomElementSchemaRegistry,t),DomElementSchemaRegistry.prototype.hasProperty=function(t,e,r){if(r.some(function(t){return t.name===n.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!1;if(r.some(function(t){return t.name===n.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var i=this._schema[t.toLowerCase()]||this._schema.unknown;return!!i[e]},DomElementSchemaRegistry.prototype.hasElement=function(t,e){if(e.some(function(t){return t.name===n.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!0;if(e.some(function(t){return t.name===n.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},DomElementSchemaRegistry.prototype.securityContext=function(t,e,r){r&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();var i=s.a[t+"|"+e];return i?i:(i=s.a["*|"+e],i?i:n.SecurityContext.NONE)},DomElementSchemaRegistry.prototype.getMappedPropName=function(t){return y[t]||t},DomElementSchemaRegistry.prototype.getDefaultComponentElementName=function(){return"ng-component"},DomElementSchemaRegistry.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event property '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...")+("\nIf '"+t+"' is a directive input, make sure the directive is imported by the")+" current module.";return{error:!0,msg:e}}return{error:!1}},DomElementSchemaRegistry.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event attribute '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...");return{error:!0,msg:e}}return{error:!1}},DomElementSchemaRegistry.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},DomElementSchemaRegistry.prototype.normalizeAnimationStyleProperty=function(t){return r.i(o.d)(t)},DomElementSchemaRegistry.prototype.normalizeAnimationStyleValue=function(t,e,r){var n="",i=r.toString().trim(),o=null;if(_isPixelDimensionStyle(t)&&0!==r&&"0"!==r)if("number"==typeof r)n="px";else{var s=r.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+e+":"+r)}return{error:o,value:i+n}},DomElementSchemaRegistry=c([r.i(i.a)(),l("design:paramtypes",[])],DomElementSchemaRegistry)}(a.a)},function(t,e,r){"use strict";var n=r(197);r.d(e,"a",function(){return o}),r.d(e,"b",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)","g"),o=function(){function CssSelector(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return CssSelector.parse=function(t){var e,r=[],n=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new CssSelector,s=o,a=!1;for(i.lastIndex=0;e=i.exec(t);){if(e[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new CssSelector,o.notSelectors.push(s)}if(e[2]&&s.setElement(e[2]),e[3]&&s.addClassName(e[3]),e[4]&&s.addAttribute(e[4],e[5]),e[6]&&(a=!1,s=o),e[7]){if(a)throw new Error("Multiple selectors in :not are not supported");n(r,o),o=s=new CssSelector}}return n(r,o),r},CssSelector.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},CssSelector.prototype.hasElementSelector=function(){return!!this.element},CssSelector.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},CssSelector.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",i="",o=0;o":"<"+t+e+i+">"},CssSelector.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},CssSelector.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},CssSelector.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e1&&(r=new a(t),this._listContexts.push(r));for(var n=0;n0&&(!this.listContext||!this.listContext.alreadyMatched)){var n=s.createNotMatcher(this.notSelectors);r=!n.match(t,null)}return!r||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),r},SelectorContext}()},function(t,e,r){"use strict";function getStylesVarName(t){var e="styles";return t&&(e+="_"+r.i(i.a)(t.type)),e}var n=r(1),i=r(12),o=r(17),s=r(9),a=r(488),u=r(72);r.d(e,"a",function(){return v});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var c=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},l=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},p="%COMP%",f="_nghost-"+p,h="_ngcontent-"+p,d=function(){function StylesCompileDependency(t,e,r,n){this.name=t,this.moduleUrl=e,this.isShimmed=r,this.valuePlaceholder=n}return StylesCompileDependency}(),m=function(){function StylesCompileResult(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return StylesCompileResult}(),y=function(){function CompiledStylesheet(t,e,r,n,i){this.statements=t,this.stylesVar=e,this.dependencies=r,this.isShimmed=n,this.meta=i}return CompiledStylesheet}(),v=function(){function StyleCompiler(t){this._urlResolver=t,this._shadowCss=new a.a}return StyleCompiler.prototype.compileComponent=function(t){var e=this,n=[],o=this._compileStyles(t,new i.l({styles:t.template.styles,styleUrls:t.template.styleUrls,moduleUrl:r.i(i.i)(t.type)}),!0);return t.template.externalStylesheets.forEach(function(r){var i=e._compileStyles(t,r,!1);n.push(i)}),new m(o,n)},StyleCompiler.prototype._compileStyles=function(t,e,r){for(var i=this,o=t.template.encapsulation===n.ViewEncapsulation.Emulated,a=e.styles.map(function(t){return s.f(i._shimIfNeeded(t,o))}),u=[],c=0;c=200&&t<300}},function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - * @param {?=} rawParams - * @return {?} - */ -function paramParser(t){void 0===t&&(t="");var e=new Map;if(t.length>0){var r=t.split("&");r.forEach(function(t){var r=t.indexOf("="),n=r==-1?[t,""]:[t.slice(0,r),t.slice(r+1)],i=n[0],o=n[1],s=e.get(i)||[];s.push(o),e.set(i,s)})}return e}function standardEncoding(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});var n=function(){function QueryEncoder(){}return QueryEncoder.prototype.encodeKey=function(t){return standardEncoding(t)},QueryEncoder.prototype.encodeValue=function(t){return standardEncoding(t)},QueryEncoder}(),i=function(){function URLSearchParams(t,e){void 0===t&&(t=""),void 0===e&&(e=new n),this.rawParams=t,this.queryEncoder=e,this.paramsMap=paramParser(t)}return URLSearchParams.prototype.clone=function(){var t=new URLSearchParams("",this.queryEncoder);return t.appendAll(this),t},URLSearchParams.prototype.has=function(t){return this.paramsMap.has(t)},URLSearchParams.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},URLSearchParams.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},URLSearchParams.prototype.set=function(t,e){if(void 0===e||null===e)return void this.delete(t);var r=this.paramsMap.get(t)||[];r.length=0,r.push(e),this.paramsMap.set(t,r)},URLSearchParams.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){var n=e.paramsMap.get(r)||[];n.length=0,n.push(t[0]),e.paramsMap.set(r,n)})},URLSearchParams.prototype.append=function(t,e){if(void 0!==e&&null!==e){var r=this.paramsMap.get(t)||[];r.push(e),this.paramsMap.set(t,r)}},URLSearchParams.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){for(var n=e.paramsMap.get(r)||[],i=0;i=2&&(r=!0),this.lift(new o(t,e,r))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e.reduce=reduce;var o=function(){function ReduceOperator(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return ReduceOperator.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},ReduceOperator}();e.ReduceOperator=o;var s=function(t){function ReduceSubscriber(e,r,n,i){t.call(this,e),this.accumulator=r,this.hasSeed=i,this.hasValue=!1,this.acc=n}return n(ReduceSubscriber,t),ReduceSubscriber.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},ReduceSubscriber.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t)}catch(t){return void this.destination.error(t)}this.acc=e},ReduceSubscriber.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},ReduceSubscriber}(i.Subscriber);e.ReduceSubscriber=s},function(t,e,r){"use strict";var n=r(24),i=n.root.Symbol;e.$$rxSubscriber="function"==typeof i&&"function"==typeof i.for?i.for("rxSubscriber"):"@@rxSubscriber"},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=function(t){function ArgumentOutOfRangeError(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return n(ArgumentOutOfRangeError,t),ArgumentOutOfRangeError}(Error);e.ArgumentOutOfRangeError=i},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=function(t){function ObjectUnsubscribedError(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return n(ObjectUnsubscribedError,t),ObjectUnsubscribedError}(Error);e.ObjectUnsubscribedError=i},function(t,e,r){"use strict";function isDate(t){return t instanceof Date&&!isNaN(+t)}e.isDate=isDate},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(531);r.d(e,"VERSION",function(){return n.a}),r.d(e,"RESOURCE_CACHE_PROVIDER",function(){return n.b}),r.d(e,"platformBrowserDynamic",function(){return n.c}),r.d(e,"__platform_browser_dynamic_private__",function(){return n.d})},function(t,e,r){"use strict";function _stripBaseHref(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function _stripIndexHtml(t){return t.replace(/\/index.html$/,"")}var n=r(1),i=r(134);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function Location(t){var e=this;this._subject=new n.EventEmitter,this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._baseHref=Location.stripTrailingSlash(_stripIndexHtml(r)),this._platformStrategy.onPopState(function(t){e._subject.emit({url:e.path(!0),pop:!0,type:t.type})})}return Location.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},Location.prototype.isCurrentPathEqualTo=function(t,e){return void 0===e&&(e=""),this.path()==this.normalize(t+Location.normalizeQueryParams(e))},Location.prototype.normalize=function(t){return Location.stripTrailingSlash(_stripBaseHref(this._baseHref,_stripIndexHtml(t)))},Location.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},Location.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},Location.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},Location.prototype.forward=function(){this._platformStrategy.forward()},Location.prototype.back=function(){this._platformStrategy.back()},Location.prototype.subscribe=function(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),this._subject.subscribe({next:t,error:e,complete:r})},Location.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},Location.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,2==r?t+e.substring(1):1==r?t+e:t+"/"+e},Location.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},Location.decorators=[{type:n.Injectable}],Location.ctorParameters=function(){return[{type:i.a}]},Location}()},function(t,e,r){"use strict";r.d(e,"a",function(){return n});var n=function(){function PlatformLocation(){}return PlatformLocation.prototype.getBaseHrefFromDOM=function(){},PlatformLocation.prototype.onPopState=function(t){},PlatformLocation.prototype.onHashChange=function(t){},Object.defineProperty(PlatformLocation.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(PlatformLocation.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(PlatformLocation.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),PlatformLocation.prototype.replaceState=function(t,e,r){},PlatformLocation.prototype.pushState=function(t,e,r){},PlatformLocation.prototype.forward=function(){},PlatformLocation.prototype.back=function(){},PlatformLocation}()},function(t,e,r){"use strict";function _resolveViewStatements(t,e){return e.dependencies.forEach(function(e){if(e instanceof u.a){var n=e;n.placeholder.reference=t.getStaticSymbol(_ngfactoryModuleUrl(r.i(i.i)(n.comp)),e.name)}else if(e instanceof u.b){var o=e;o.placeholder.reference=t.getStaticSymbol(_ngfactoryModuleUrl(r.i(i.i)(o.comp)),_componentFactoryName(o.comp))}else if(e instanceof u.c){var s=e;s.placeholder.reference=t.getStaticSymbol(_ngfactoryModuleUrl(r.i(i.i)(s.dir)),s.name)}}),e.statements}function _resolveStyleStatements(t,e,r){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(_stylesModuleUrl(e.moduleUrl,e.isShimmed,r),e.name)}),e.statements}function _ngfactoryModuleUrl(t){var e=_splitTypescriptSuffix(t);return e[0]+".ngfactory"+e[1]}function _componentFactoryName(t){return r.i(i.a)(t)+"NgFactory"}function _stylesModuleUrl(t,e,r){return""+t+(e?".shim":"")+".ngstyle"+r}function _assertComponent(t){if(!t.isComponent)throw new Error("Could not compile '"+r.i(i.a)(t.type)+"' because it is not a component.")}function _splitTypescriptSuffix(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return e!==-1?[t.substring(0,e),t.substring(e)]:[t,""]}function analyzeNgModules(t,e,r){var n=_createNgModules(t,e,r),i=n.ngModules,o=n.symbolsMissingModule;return _analyzeNgModules(t,i,o,r)}function analyzeAndValidateNgModules(t,e,r){var n=analyzeNgModules(t,e,r);if(n.symbolsMissingModule&&n.symbolsMissingModule.length){var i=n.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"!"});throw new Error(i.join("\n"))}return n}function _analyzeNgModules(t,e,r,n){var i=new Map;e.forEach(function(t){return i.set(t.type.reference,t)});var o=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),n.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var r=e.reference.filePath;l.add(r),a.set(r,(a.get(r)||[]).concat(e.reference)),o.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var r=e.reference.filePath;l.add(r),u.set(r,(u.get(r)||[]).concat(e.reference)),o.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],r=u.get(t)||[],n=s.get(t)||[],i=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:r,ngModules:n,injectables:i})}),{ngModuleByPipeOrDirective:o,files:p,ngModules:e,symbolsMissingModule:r}}function extractProgramSymbols(t,e,r){var n=[];return e.filter(function(t){return r.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var r=t.resolveSymbol(e),i=r.metadata;i&&"error"!=i.__symbolic&&n.push(r.symbol)})}),n}function _createNgModules(t,e,r){var n=new Map,i=[],o=new Set,s=function(t){if(n.has(t)||!e.isSourceFile(t.filePath))return!1;var i=r.getNgModuleMetadata(t,!1);return i&&(n.set(i.type.reference,i),i.declaredDirectives.forEach(function(t){return o.add(t.reference)}),i.declaredPipes.forEach(function(t){return o.add(t.reference)}),i.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!i};t.forEach(function(t){s(t)||!r.isDirective(t)&&!r.isPipe(t)||i.push(t)});var a=i.filter(function(t){return!o.has(t)});return{ngModules:Array.from(n.values()),symbolsMissingModule:a}}var n=r(279),i=r(12),o=r(69),s=r(16),a=r(9),u=r(107),c=r(472),l=r(280);r.d(e,"c",function(){return p}),e.b=analyzeAndValidateNgModules,e.a=extractProgramSymbols;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var p=function(){function AotCompiler(t,e,r,i,o,s,a,u,c,l,p,f,h){this._host=t,this._metadataResolver=e,this._templateParser=r,this._styleCompiler=i,this._viewCompiler=o,this._dirWrapperCompiler=s,this._ngModuleCompiler=a,this._outputEmitter=u,this._summaryResolver=c,this._localeId=l,this._translationFormat=p,this._animationParser=f,this._symbolResolver=h,this._animationCompiler=new n.a}return AotCompiler.prototype.clearCache=function(){this._metadataResolver.clearCache()},AotCompiler.prototype.compileAll=function(t){var e=this,r=extractProgramSymbols(this._symbolResolver,t,this._host),n=analyzeAndValidateNgModules(r,this._host,this._metadataResolver),i=n.ngModuleByPipeOrDirective,s=n.files,a=n.ngModules;return Promise.all(a.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=s.map(function(t){return e._compileSrcFile(t.srcUrl,i,t.directives,t.pipes,t.ngModules,t.injectables)});return o.b.flatten(t)})},AotCompiler.prototype._compileSrcFile=function(t,e,n,o,s,a){var u=this,c=_splitTypescriptSuffix(t)[1],l=[],p=[],f=[];if(f.push(this._createSummary(t,n,o,s,a)),p.push.apply(p,s.map(function(t){return u._compileModule(t,l)})),p.push.apply(p,n.map(function(t){return u._compileDirectiveWrapper(t,l)})),n.forEach(function(n){var o=u._metadataResolver.getDirectiveMetadata(n);if(!o.isComponent)return Promise.resolve(null);var s=e.get(n);if(!s)throw new Error("Internal Error: cannot determine the module for component "+r.i(i.a)(o.type)+"!");_assertComponent(o);var a=u._styleCompiler.compileComponent(o);a.externalStylesheets.forEach(function(e){f.push(u._codgenStyles(t,e,c))}),p.push(u._compileComponentFactory(o,s,c,l),u._compileComponent(o,s,s.transitiveModule.directives,a.componentStylesheet,c,l))}),l.length>0){var h=this._codegenSourceModule(t,_ngfactoryModuleUrl(t),l,p);f.unshift(h)}return f},AotCompiler.prototype._createSummary=function(t,e,n,i,o){var s=this,a=this._symbolResolver.getSymbolsOf(t).map(function(t){return s._symbolResolver.resolveSymbol(t)}),u=i.map(function(t){return s._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return s._metadataResolver.getDirectiveSummary(t)}),n.map(function(t){return s._metadataResolver.getPipeSummary(t)}),o.map(function(t){return s._metadataResolver.getInjectableSummary(t)})),p=r.i(l.c)(this._host,this._summaryResolver,this._symbolResolver,a,u);return new c.a(t,r.i(l.a)(t),p)},AotCompiler.prototype._compileModule=function(t,e){var n=this,o=this._metadataResolver.getNgModuleMetadata(t),a=[];this._localeId&&a.push({token:r.i(s.f)(s.b.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&a.push({token:r.i(s.f)(s.b.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var u=this._ngModuleCompiler.compile(o,a);return u.dependencies.forEach(function(t){t.placeholder.reference=n._symbolResolver.getStaticSymbol(_ngfactoryModuleUrl(r.i(i.i)(t.comp)),_componentFactoryName(t.comp))}),e.push.apply(e,u.statements),u.ngModuleFactoryVar},AotCompiler.prototype._compileDirectiveWrapper=function(t,e){var r=this._metadataResolver.getDirectiveMetadata(t),n=this._dirWrapperCompiler.compile(r);return e.push.apply(e,n.statements),n.dirWrapperClassVar},AotCompiler.prototype._compileComponentFactory=function(t,e,n,o){var u=r.i(i.v)(this._symbolResolver.getStaticSymbol(r.i(i.i)(t.type),r.i(i.a)(t.type)+"_Host"),t),c=this._compileComponent(u,e,[t.type],null,n,o),l=_componentFactoryName(t.type);return o.push(a.a(l).set(a.g(r.i(s.a)(s.b.ComponentFactory),[a.d(t.type)]).instantiate([a.f(t.selector),a.a(c),a.g(t.type)],a.d(r.i(s.a)(s.b.ComponentFactory),[a.d(t.type)],[a.j.Const]))).toDeclStmt(null,[a.k.Final])),l},AotCompiler.prototype._compileComponent=function(t,e,n,o,s,u){var c=this,l=this._animationParser.parseComponent(t),p=n.map(function(t){return c._metadataResolver.getDirectiveSummary(t.reference)}),f=e.transitiveModule.pipes.map(function(t){return c._metadataResolver.getPipeSummary(t.reference)}),h=this._templateParser.parse(t,t.template.template,p,f,e.schemas,r.i(i.a)(t.type)),d=o?a.a(o.stylesVar):a.h([]),m=this._animationCompiler.compile(r.i(i.a)(t.type),l),y=this._viewCompiler.compileComponent(t,h,d,f,m);return o&&u.push.apply(u,_resolveStyleStatements(this._symbolResolver,o,s)),m.forEach(function(t){return u.push.apply(u,t.statements)}),u.push.apply(u,_resolveViewStatements(this._symbolResolver,y)),y.viewClassVar},AotCompiler.prototype._codgenStyles=function(t,e,r){return _resolveStyleStatements(this._symbolResolver,e,r),this._codegenSourceModule(t,_stylesModuleUrl(e.meta.moduleUrl,e.isShimmed,r),e.statements,[e.stylesVar])},AotCompiler.prototype._codegenSourceModule=function(t,e,r,n){return new c.a(t,e,this._outputEmitter.emitStatements(e,r,n))},AotCompiler}()},function(t,e,r){"use strict";function isStaticType(t){return"object"==typeof t&&t.name&&t.filePath}var n=r(14);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function StaticAndDynamicReflectionCapabilities(t){this.staticDelegate=t,this.dynamicDelegate=new n.L}return StaticAndDynamicReflectionCapabilities.install=function(t){n.c.updateCapabilities(new StaticAndDynamicReflectionCapabilities(t))},StaticAndDynamicReflectionCapabilities.prototype.isReflectionEnabled=function(){return!0},StaticAndDynamicReflectionCapabilities.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},StaticAndDynamicReflectionCapabilities.prototype.hasLifecycleHook=function(t,e){return isStaticType(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},StaticAndDynamicReflectionCapabilities.prototype.parameters=function(t){return isStaticType(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},StaticAndDynamicReflectionCapabilities.prototype.annotations=function(t){return isStaticType(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},StaticAndDynamicReflectionCapabilities.prototype.propMetadata=function(t){return isStaticType(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},StaticAndDynamicReflectionCapabilities.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},StaticAndDynamicReflectionCapabilities.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},StaticAndDynamicReflectionCapabilities.prototype.method=function(t){return this.dynamicDelegate.method(t)},StaticAndDynamicReflectionCapabilities.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},StaticAndDynamicReflectionCapabilities.prototype.resolveIdentifier=function(t,e,r){return this.staticDelegate.resolveIdentifier(t,e)},StaticAndDynamicReflectionCapabilities.prototype.resolveEnum=function(t,e){return isStaticType(t)?this.staticDelegate.resolveEnum(t,e):null},StaticAndDynamicReflectionCapabilities}()},function(t,e,r){"use strict";function expandedMessage(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":var e=t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F";return e+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function produceErrorMessage(t){return"Error encountered resolving symbol values statically. "+expandedMessage(t)}function mapStringMap(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){var i=e(t[n],n);shouldIgnore(i)||(u.test(n)?Object.defineProperty(r,n,{enumerable:!1,configurable:!0,value:i}):r[n]=i)}),r}function isPrimitive(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function shouldIgnore(t){return t&&"ignore"==t.__symbolic}function positionalError(t,e,r,n){var i=new Error(t);return i.fileName=e,i.line=r,i.column=n,i}var n=r(1),i=r(28),o=r(58);r.d(e,"a",function(){return c});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},a={coreDecorators:"@angular/core/src/metadata",diDecorators:"@angular/core/src/di/metadata",diMetadata:"@angular/core/src/di/metadata",diOpaqueToken:"@angular/core/src/di/opaque_token",animationMetadata:"@angular/core/src/animation/metadata",provider:"@angular/core/src/di/provider"},u=/^\$.*\$$/,c=function(){function StaticReflector(t,e,r,n){var i=this;void 0===e&&(e=[]),void 0===r&&(r=[]),this.symbolResolver=t,this.errorRecorder=n,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.initializeConversionMap(),e.forEach(function(t){return i._registerDecoratorOrConstructor(i.getStaticSymbol(t.filePath,t.name),t.ctor)}),r.forEach(function(t){return i._registerFunction(i.getStaticSymbol(t.filePath,t.name),t.fn)})}return StaticReflector.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},StaticReflector.prototype.resolveIdentifier=function(t,e){return this.findDeclaration(e,t)},StaticReflector.prototype.findDeclaration=function(t,e,r){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,r))},StaticReflector.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof o.a?this.findSymbolDeclaration(e.metadata):t},StaticReflector.prototype.resolveEnum=function(t,e){var r=t;return this.getStaticSymbol(r.filePath,r.name,[e])},StaticReflector.prototype.annotations=function(t){var e=this.annotationCache.get(t);if(!e){e=[];var r=this.getTypeMetadata(t);if(r.extends){var n=this.annotations(this.simplify(t,r.extends));e.push.apply(e,n)}if(r.decorators){var i=this.simplify(t,r.decorators);e.push.apply(e,i)}this.annotationCache.set(t,e.filter(function(t){return!!t}))}return e},StaticReflector.prototype.propMetadata=function(t){var e=this,r=this.propertyCache.get(t);if(!r){var n=this.getTypeMetadata(t);if(r={},n.extends){var i=this.propMetadata(this.simplify(t,n.extends));Object.keys(i).forEach(function(t){r[t]=i[t]})}var o=n.members||{};Object.keys(o).forEach(function(n){var i=o[n],s=i.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];r[n]&&a.push.apply(a,r[n]),r[n]=a,s&&s.decorators&&a.push.apply(a,e.simplify(t,s.decorators))}),this.propertyCache.set(t,r)}return r},StaticReflector.prototype.parameters=function(t){if(!(t instanceof o.a))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var r=this.getTypeMetadata(t),n=r?r.members:null,i=n?n.__ctor__:null;if(i){var s=i.find(function(t){return"constructor"==t.__symbolic}),a=this.simplify(t,s.parameters||[]),u=this.simplify(t,s.parameterDecorators||[]);e=[],a.forEach(function(t,r){var n=[];t&&n.push(t);var i=u?u[r]:null;i&&n.push.apply(n,i),e.push(n)})}else r.extends&&(e=this.parameters(this.simplify(t,r.extends)));e||(e=[]),this.parameterCache.set(t,e)}return e}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},StaticReflector.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var r=this.getTypeMetadata(t);if(e={},r.extends){var n=this._methodNames(this.simplify(t,r.extends));Object.keys(n).forEach(function(t){e[t]=n[t]})}var i=r.members||{};Object.keys(i).forEach(function(t){var r=i[t],n=r.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},StaticReflector.prototype.hasLifecycleHook=function(t,e){t instanceof o.a||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},StaticReflector.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,r){return new(e.bind.apply(e,[void 0].concat(r)))})},StaticReflector.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,r){return e.apply(void 0,r)})},StaticReflector.prototype.initializeConversionMap=function(){var t=a.coreDecorators,e=a.diDecorators,r=a.diMetadata,i=a.diOpaqueToken,o=a.animationMetadata;a.provider;this.opaqueToken=this.findDeclaration(i,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(e,"Host"),n.Host),this._registerDecoratorOrConstructor(this.findDeclaration(e,"Injectable"),n.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(e,"Self"),n.Self),this._registerDecoratorOrConstructor(this.findDeclaration(e,"SkipSelf"),n.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(e,"Inject"),n.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(e,"Optional"),n.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Attribute"),n.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ContentChild"),n.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ContentChildren"),n.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ViewChild"),n.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ViewChildren"),n.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Input"),n.Input),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Output"),n.Output),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Pipe"),n.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(t,"HostBinding"),n.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(t,"HostListener"),n.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Directive"),n.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Component"),n.Component),this._registerDecoratorOrConstructor(this.findDeclaration(t,"NgModule"),n.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Host"),n.Host),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Self"),n.Self),this._registerDecoratorOrConstructor(this.findDeclaration(r,"SkipSelf"),n.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Optional"),n.Optional),this._registerFunction(this.findDeclaration(o,"trigger"),n.trigger),this._registerFunction(this.findDeclaration(o,"state"),n.state),this._registerFunction(this.findDeclaration(o,"transition"),n.transition),this._registerFunction(this.findDeclaration(o,"style"),n.style),this._registerFunction(this.findDeclaration(o,"animate"),n.animate),this._registerFunction(this.findDeclaration(o,"keyframes"),n.keyframes),this._registerFunction(this.findDeclaration(o,"sequence"),n.sequence),this._registerFunction(this.findDeclaration(o,"group"),n.group)},StaticReflector.prototype.getStaticSymbol=function(t,e,r){return this.symbolResolver.getStaticSymbol(t,e,r)},StaticReflector.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},StaticReflector.prototype.simplify=function(t,e){function simplifyInContext(t,e,r){function resolveReferenceValue(t){var e=n.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function simplifyCall(e,n,i){if(n&&"function"==n.__symbolic){if(a.get(e))throw new Error("Recursion not supported");a.set(e,!0);try{var o=n.value;if(o&&(0!=r||"error"!=o.__symbolic)){var u=n.parameters,c=n.defaults;i=i.map(function(e){return simplifyInContext(t,e,r+1)}),c&&c.length>i.length&&i.push.apply(i,c.slice(i.length).map(function(t){return simplify(t)}));for(var p=l.build(),f=0;f":return b>_;case"<=":return b<=_;case">=":return b>=_;case"<<":return b<<_;case">>":return b>>_;case"+":return b+_;case"-":return b-_;case"*":return b*_;case"/":return b/_;case"%":return b%_}return null;case"if":var g=simplify(e.condition);return simplify(g?e.thenExpression:e.elseExpression);case"pre":var S=simplify(e.operand);if(shouldIgnore(S))return S;switch(e.operator){case"+":return S;case"-":return-S;case"!":return!S;case"~":return~S}return null;case"index":var w=simplify(e.expression),E=simplify(e.index);return w&&isPrimitive(E)?w[E]:null;case"select":var C=e.member,A=t,x=simplify(e.expression);if(x instanceof o.a){var T=x.members.concat(C);A=n.getStaticSymbol(x.filePath,x.name,T);var v=resolveReferenceValue(A);return v?simplifyInContext(A,v,r+1):A}return x&&isPrimitive(C)?simplifyInContext(A,x[C],r+1):null;case"reference":var O=e.name,P=s.resolve(O);if(P!=l.missing)return P;break;case"class":return t;case"function":return t;case"new":case"call":if(y=simplifyInContext(t,e.expression,r+1),y instanceof o.a){if(y===n.opaqueToken)return t;var R=e.arguments||[],M=n.conversionMap.get(y);if(M){var I=R.map(function(e){return simplifyInContext(t,e,r+1)});return M(t,I)}var D=resolveReferenceValue(y);return simplifyCall(y,D,R)}break;case"error":var N=produceErrorMessage(e);if(e.line)throw N=N+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",positionalError(N,t.filePath,e.line,e.character);throw new Error(N)}return null}return mapStringMap(e,function(t,e){return simplify(t)})}return null}try{return simplify(e)}catch(e){var u=t.members.length?"."+t.members.join("."):"",c=e.message+", resolving symbol "+t.name+u+" in "+t.filePath;if(e.fileName)throw positionalError(c,e.fileName,e.line,e.column);throw new i.e(c)}}var r=this,n=this,s=l.empty,a=new Map,u=function(t,e,n){try{return simplifyInContext(t,e,n)}catch(e){r.reportError(e,t)}},c=this.errorRecorder?u(t,e,0):simplifyInContext(t,e,0);if(!shouldIgnore(c))return c},StaticReflector.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},StaticReflector}(),l=function(){function BindingScope(){}return BindingScope.prototype.resolve=function(t){},BindingScope.build=function(){var t=new Map;return{define:function(e,r){return t.set(e,r),this},done:function(){return t.size>0?new p(t):BindingScope.empty}}},BindingScope.missing={},BindingScope.empty={resolve:function(t){return BindingScope.missing}},BindingScope}(),p=function(t){function PopulatedScope(e){t.call(this),this.bindings=e}return s(PopulatedScope,t),PopulatedScope.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):l.missing},PopulatedScope}(l)},function(t,e,r){"use strict";var n=r(28),i=r(58);r.d(e,"a",function(){return u});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},s=function(){function ResolvedStaticSymbol(t,e){this.symbol=t,this.metadata=e}return ResolvedStaticSymbol}(),a=3,u=function(){function StaticSymbolResolver(t,e,r,n){this.host=t,this.staticSymbolCache=e,this.summaryResolver=r,this.errorRecorder=n,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set}return StaticSymbolResolver.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this._resolveSymbolFromSummary(t);return e||(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t)),e},StaticSymbolResolver.prototype._resolveSymbolMembers=function(t){var e=t.members,r=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!r)return null;var n=r.metadata;if(n instanceof i.a)return new s(t,this.getStaticSymbol(n.filePath,n.name,e));if(!n||"class"!==n.__symbolic){for(var o=n,a=0;a=0;p||(l=t.filePath)}return l?i.getStaticSymbol(l,c):{__symbolic:"reference",name:c}}return e.prototype.visitStringMap.call(this,r,n)},ReferenceTransformer}(n.g),u=r.i(n.b)(e,new a,[]);return new s(t,u)},StaticSymbolResolver.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},StaticSymbolResolver.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var r=this.host.getMetadataFor(t);if(r){var n=-1;r.forEach(function(t){t.version>n&&(n=t.version,e=t)})}if(e||(e={__symbolic:"module",version:a,module:t,metadata:{}}),e.version!=a){var i=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected "+a;this.reportError(new Error(i),null)}this.metadataCache.set(t,e)}return e},StaticSymbolResolver.prototype.getSymbolByModule=function(t,e,r){var n=this.resolveModule(t,r);return n?this.getStaticSymbol(n,e):(this.reportError(new Error("Could not resolve module "+t+(r?" relative to $ {\n containingFile\n } ":"")),null),this.getStaticSymbol("ERROR:"+t,e))},StaticSymbolResolver.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(r){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(new r,null,e)}},StaticSymbolResolver}()},function(t,e,r){"use strict";var n=r(280);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function AotSummaryResolver(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set}return AotSummaryResolver.prototype._assertNoMembers=function(t){if(t.members.length)throw new Error("Internal state: StaticSymbols in summaries can't have members! "+JSON.stringify(t))},AotSummaryResolver.prototype.resolveSummary=function(t){this._assertNoMembers(t);var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},AotSummaryResolver.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},AotSummaryResolver.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),!this.host.isSourceFile(t))){var i=r.i(n.a)(t),o=void 0;try{o=this.host.loadSummary(i)}catch(t){throw console.error("Error loading summary file "+i),t}if(o){var s=r.i(n.b)(this.staticSymbolCache,o);s.forEach(function(t){e.summaryCache.set(t.symbol,t)})}}},AotSummaryResolver}()},function(t,e,r){"use strict";var n=r(6);r.d(e,"g",function(){return o}),r.d(e,"i",function(){return s}),r.d(e,"h",function(){return u}),r.d(e,"d",function(){return c}),r.d(e,"t",function(){return l}),r.d(e,"l",function(){return p}),r.d(e,"n",function(){return f}),r.d(e,"c",function(){return h}),r.d(e,"x",function(){return d}),r.d(e,"w",function(){return m}),r.d(e,"r",function(){return y}),r.d(e,"q",function(){return v}),r.d(e,"m",function(){return b}),r.d(e,"k",function(){return _}),r.d(e,"u",function(){return g}),r.d(e,"v",function(){return S}),r.d(e,"j",function(){return w}),r.d(e,"o",function(){return E}),r.d(e,"p",function(){return C}),r.d(e,"b",function(){return A}),r.d(e,"a",function(){return x}),r.d(e,"s",function(){return T}),r.d(e,"f",function(){return O}),r.d(e,"y",function(){return P}),r.d(e,"e",function(){return R});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},o=function(){function ParserError(t,e,r,n){this.input=e,this.errLocation=r,this.ctxLocation=n,this.message="Parser Error: "+t+" "+r+" ["+e+"] in "+n}return ParserError}(),s=function(){function ParseSpan(t,e){this.start=t,this.end=e}return ParseSpan}(),a=function(){function AST(t){this.span=t}return AST.prototype.visit=function(t,e){return void 0===e&&(e=null),null},AST.prototype.toString=function(){return"AST"},AST}(),u=function(t){function Quote(e,r,n,i){t.call(this,e),this.prefix=r,this.uninterpretedExpression=n,this.location=i}return i(Quote,t),Quote.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},Quote.prototype.toString=function(){return"Quote"},Quote}(a),c=function(t){function EmptyExpr(){t.apply(this,arguments)}return i(EmptyExpr,t),EmptyExpr.prototype.visit=function(t,e){void 0===e&&(e=null)},EmptyExpr}(a),l=function(t){function ImplicitReceiver(){t.apply(this,arguments)}return i(ImplicitReceiver,t),ImplicitReceiver.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},ImplicitReceiver}(a),p=function(t){function Chain(e,r){t.call(this,e),this.expressions=r}return i(Chain,t),Chain.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},Chain}(a),f=function(t){function Conditional(e,r,n,i){t.call(this,e),this.condition=r,this.trueExp=n,this.falseExp=i}return i(Conditional,t),Conditional.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},Conditional}(a),h=function(t){function PropertyRead(e,r,n){t.call(this,e),this.receiver=r,this.name=n}return i(PropertyRead,t),PropertyRead.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},PropertyRead}(a),d=function(t){function PropertyWrite(e,r,n,i){t.call(this,e),this.receiver=r,this.name=n,this.value=i}return i(PropertyWrite,t),PropertyWrite.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},PropertyWrite}(a),m=function(t){function SafePropertyRead(e,r,n){t.call(this,e),this.receiver=r,this.name=n}return i(SafePropertyRead,t),SafePropertyRead.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},SafePropertyRead}(a),y=function(t){function KeyedRead(e,r,n){t.call(this,e),this.obj=r,this.key=n}return i(KeyedRead,t),KeyedRead.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},KeyedRead}(a),v=function(t){function KeyedWrite(e,r,n,i){t.call(this,e),this.obj=r,this.key=n,this.value=i}return i(KeyedWrite,t),KeyedWrite.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},KeyedWrite}(a),b=function(t){function BindingPipe(e,r,n,i){t.call(this,e),this.exp=r,this.name=n,this.args=i}return i(BindingPipe,t),BindingPipe.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},BindingPipe}(a),_=function(t){function LiteralPrimitive(e,r){t.call(this,e),this.value=r}return i(LiteralPrimitive,t),LiteralPrimitive.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},LiteralPrimitive}(a),g=function(t){function LiteralArray(e,r){t.call(this,e),this.expressions=r}return i(LiteralArray,t),LiteralArray.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},LiteralArray}(a),S=function(t){function LiteralMap(e,r,n){t.call(this,e),this.keys=r,this.values=n}return i(LiteralMap,t),LiteralMap.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},LiteralMap}(a),w=function(t){function Interpolation(e,r,n){t.call(this,e),this.strings=r,this.expressions=n}return i(Interpolation,t),Interpolation.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},Interpolation}(a),E=function(t){function Binary(e,r,n,i){t.call(this,e),this.operation=r,this.left=n,this.right=i}return i(Binary,t),Binary.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},Binary}(a),C=function(t){function PrefixNot(e,r){t.call(this,e),this.expression=r}return i(PrefixNot,t),PrefixNot.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},PrefixNot}(a),A=function(t){function MethodCall(e,r,n,i){t.call(this,e),this.receiver=r,this.name=n,this.args=i}return i(MethodCall,t),MethodCall.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},MethodCall}(a),x=function(t){function SafeMethodCall(e,r,n,i){t.call(this,e),this.receiver=r,this.name=n,this.args=i}return i(SafeMethodCall,t),SafeMethodCall.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},SafeMethodCall}(a),T=function(t){function FunctionCall(e,r,n){t.call(this,e),this.target=r,this.args=n}return i(FunctionCall,t),FunctionCall.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},FunctionCall}(a),O=function(t){function ASTWithSource(e,i,o,a){t.call(this,new s(0,r.i(n.d)(i)?0:i.length)),this.ast=e,this.source=i,this.location=o,this.errors=a}return i(ASTWithSource,t),ASTWithSource.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},ASTWithSource.prototype.toString=function(){return this.source+" in "+this.location},ASTWithSource}(a),P=function(){function TemplateBinding(t,e,r,n,i){this.span=t,this.key=e,this.keyIsVar=r,this.name=n,this.expression=i}return TemplateBinding}(),R=function(){function RecursiveAstVisitor(){}return RecursiveAstVisitor.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},RecursiveAstVisitor.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},RecursiveAstVisitor.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},RecursiveAstVisitor.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},RecursiveAstVisitor.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},RecursiveAstVisitor.prototype.visitImplicitReceiver=function(t,e){return null},RecursiveAstVisitor.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},RecursiveAstVisitor.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},RecursiveAstVisitor.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},RecursiveAstVisitor.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},RecursiveAstVisitor.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},RecursiveAstVisitor.prototype.visitLiteralPrimitive=function(t,e){return null},RecursiveAstVisitor.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},RecursiveAstVisitor.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},RecursiveAstVisitor.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},RecursiveAstVisitor.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},RecursiveAstVisitor.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},RecursiveAstVisitor.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},RecursiveAstVisitor.prototype.visitAll=function(t,e){var r=this;return t.forEach(function(t){return t.visit(r,e)}),null},RecursiveAstVisitor.prototype.visitQuote=function(t,e){return null},RecursiveAstVisitor}();(function(){function AstTransformer(){}return AstTransformer.prototype.visitImplicitReceiver=function(t,e){return t},AstTransformer.prototype.visitInterpolation=function(t,e){return new w(t.span,t.strings,this.visitAll(t.expressions))},AstTransformer.prototype.visitLiteralPrimitive=function(t,e){return new _(t.span,t.value)},AstTransformer.prototype.visitPropertyRead=function(t,e){return new h(t.span,t.receiver.visit(this),t.name)},AstTransformer.prototype.visitPropertyWrite=function(t,e){return new d(t.span,t.receiver.visit(this),t.name,t.value)},AstTransformer.prototype.visitSafePropertyRead=function(t,e){return new m(t.span,t.receiver.visit(this),t.name)},AstTransformer.prototype.visitMethodCall=function(t,e){return new A(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},AstTransformer.prototype.visitSafeMethodCall=function(t,e){return new x(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},AstTransformer.prototype.visitFunctionCall=function(t,e){return new T(t.span,t.target.visit(this),this.visitAll(t.args))},AstTransformer.prototype.visitLiteralArray=function(t,e){return new g(t.span,this.visitAll(t.expressions))},AstTransformer.prototype.visitLiteralMap=function(t,e){return new S(t.span,t.keys,this.visitAll(t.values))},AstTransformer.prototype.visitBinary=function(t,e){return new E(t.span,t.operation,t.left.visit(this),t.right.visit(this))},AstTransformer.prototype.visitPrefixNot=function(t,e){return new C(t.span,t.expression.visit(this))},AstTransformer.prototype.visitConditional=function(t,e){return new f(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},AstTransformer.prototype.visitPipe=function(t,e){return new b(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},AstTransformer.prototype.visitKeyedRead=function(t,e){return new y(t.span,t.obj.visit(this),t.key.visit(this))},AstTransformer.prototype.visitKeyedWrite=function(t,e){return new v(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},AstTransformer.prototype.visitAll=function(t){for(var e=new Array(t.length),r=0;r")]),n=e.mapper.toPublicName(t.startName),i=new o.a(c,{name:n},[r]);if(t.isVoid)return[i];var s=new o.a(l,{},[new o.f("")]);n=e.mapper.toPublicName(t.closeName);var a=new o.a(c,{name:n},[s]);return[i].concat(this.serialize(t.children,e),[a])},_Visitor.prototype.visitPlaceholder=function(t,e){var r=e.mapper.toPublicName(t.name);return[new o.a(c,{name:r})]},_Visitor.prototype.visitIcuPlaceholder=function(t,e){var r=e.mapper.toPublicName(t.name);return[new o.a(c,{name:r})]},_Visitor.prototype.serialize=function(t,e){var r=this;return(n=[]).concat.apply(n,t.map(function(t){return t.visit(r,e)}));var n},_Visitor}(),d=function(){function ExampleVisitor(){}return ExampleVisitor.prototype.addDefaultExamples=function(t){return t.visit(this),t},ExampleVisitor.prototype.visitTag=function(t){var e=this;if(t.name===c){if(!t.children||0==t.children.length){var r=new o.f(t.attrs.name||"...");t.children=[new o.a(l,{},[r])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},ExampleVisitor.prototype.visitText=function(t){},ExampleVisitor.prototype.visitDeclaration=function(t){},ExampleVisitor.prototype.visitDoctype=function(t){},ExampleVisitor}(),m=function(){function XmbPlaceholderMapper(t){var e=this;this.internalToXmb={},this.xmbToNextId={},this.xmbToInternal={},t.nodes.forEach(function(t){return t.visit(e)})}return XmbPlaceholderMapper.prototype.toPublicName=function(t){return this.internalToXmb.hasOwnProperty(t)?this.internalToXmb[t]:null},XmbPlaceholderMapper.prototype.toInternalName=function(t){return this.xmbToInternal.hasOwnProperty(t)?this.xmbToInternal[t]:null},XmbPlaceholderMapper.prototype.visitText=function(t,e){return null},XmbPlaceholderMapper.prototype.visitContainer=function(t,e){var r=this;t.children.forEach(function(t){return t.visit(r)})},XmbPlaceholderMapper.prototype.visitIcu=function(t,e){var r=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(r)})},XmbPlaceholderMapper.prototype.visitTagPlaceholder=function(t,e){var r=this;this.addPlaceholder(t.startName),t.children.forEach(function(t){return t.visit(r)}),this.addPlaceholder(t.closeName)},XmbPlaceholderMapper.prototype.visitPlaceholder=function(t,e){this.addPlaceholder(t.name)},XmbPlaceholderMapper.prototype.visitIcuPlaceholder=function(t,e){this.addPlaceholder(t.name)},XmbPlaceholderMapper.prototype.addPlaceholder=function(t){if(t&&!this.internalToXmb.hasOwnProperty(t)){var e=t.toUpperCase().replace(/[^A-Z0-9_]/g,"_");if(this.xmbToInternal.hasOwnProperty(e)){var r=this.xmbToNextId[e];this.xmbToNextId[e]=r+1,e=e+"_"+r}else this.xmbToNextId[e]=1;this.internalToXmb[t]=e,this.xmbToInternal[e]=t}},XmbPlaceholderMapper}()},function(t,e,r){"use strict";function getHtmlTagDefinition(t){return o[t.toLowerCase()]||s}var n=r(71);e.a=getHtmlTagDefinition;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function HtmlTagDefinition(t){var e=this,r=void 0===t?{}:t,i=r.closedByChildren,o=r.requiredParents,s=r.implicitNamespacePrefix,a=r.contentType,u=void 0===a?n.a.PARSABLE_DATA:a,c=r.closedByParent,l=void 0!==c&&c,p=r.isVoid,f=void 0!==p&&p,h=r.ignoreFirstLf,d=void 0!==h&&h;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,i&&i.length>0&&i.forEach(function(t){return e.closedByChildren[t]=!0}),this.isVoid=f,this.closedByParent=l||f,o&&o.length>0&&(this.requiredParents={},this.parentToAdd=o[0],o.forEach(function(t){return e.requiredParents[t]=!0})),this.implicitNamespacePrefix=s,this.contentType=u,this.ignoreFirstLf=d}return HtmlTagDefinition.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return 1!=this.requiredParents[e]&&"template"!=e},HtmlTagDefinition.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},HtmlTagDefinition}(),o={base:new i({isVoid:!0}),meta:new i({isVoid:!0}),area:new i({isVoid:!0}),embed:new i({isVoid:!0}),link:new i({isVoid:!0}),img:new i({isVoid:!0}),input:new i({isVoid:!0}),param:new i({isVoid:!0}),hr:new i({isVoid:!0}),br:new i({isVoid:!0}),source:new i({isVoid:!0}),track:new i({isVoid:!0}),wbr:new i({isVoid:!0}),p:new i({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new i({closedByChildren:["tbody","tfoot"]}),tbody:new i({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new i({closedByChildren:["tbody"],closedByParent:!0}),tr:new i({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new i({closedByChildren:["td","th"],closedByParent:!0}),th:new i({closedByChildren:["td","th"],closedByParent:!0}),col:new i({requiredParents:["colgroup"],isVoid:!0}),svg:new i({implicitNamespacePrefix:"svg"}),math:new i({implicitNamespacePrefix:"math"}),li:new i({closedByChildren:["li"],closedByParent:!0}),dt:new i({closedByChildren:["dt","dd"]}),dd:new i({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new i({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new i({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new i({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new i({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new i({closedByChildren:["optgroup"],closedByParent:!0}),option:new i({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new i({ignoreFirstLf:!0}),listing:new i({ignoreFirstLf:!0}),style:new i({contentType:n.a.RAW_TEXT}),script:new i({contentType:n.a.RAW_TEXT}),title:new i({contentType:n.a.ESCAPABLE_RAW_TEXT}),textarea:new i({contentType:n.a.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},s=new i},function(t,e,r){"use strict";function escapeIdentifier(t,e,i){if(void 0===i&&(i=!0),r.i(n.d)(t))return null;var a=t.replace(o,function(){for(var t=[],r=0;r0&&this._currentLine.parts.push(t),e&&this._lines.push(new c(this._indent))},EmitterVisitorContext.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},EmitterVisitorContext.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},EmitterVisitorContext.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},EmitterVisitorContext.prototype.pushClass=function(t){this._classes.push(t)},EmitterVisitorContext.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(EmitterVisitorContext.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),EmitterVisitorContext.prototype.toSource=function(){var t=this._lines;return 0===t[t.length-1].parts.length&&(t=t.slice(0,t.length-1)),t.map(function(t){return t.parts.length>0?_createIndent(t.indent)+t.parts.join(""):""}).join("\n")},EmitterVisitorContext}(),p=function(){function AbstractEmitterVisitor(t){this._escapeDollarInStrings=t}return AbstractEmitterVisitor.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(";"),null},AbstractEmitterVisitor.prototype.visitReturnStmt=function(t,e){return e.print("return "),t.value.visitExpression(this,e),e.println(";"),null},AbstractEmitterVisitor.prototype.visitCastExpr=function(t,e){},AbstractEmitterVisitor.prototype.visitDeclareClassStmt=function(t,e){},AbstractEmitterVisitor.prototype.visitIfStmt=function(t,e){e.print("if ("),t.condition.visitExpression(this,e),e.print(") {");var i=r.i(n.c)(t.falseCase)&&t.falseCase.length>0;return t.trueCase.length<=1&&!i?(e.print(" "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(" ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),i&&(e.println("} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println("}"),null},AbstractEmitterVisitor.prototype.visitTryCatchStmt=function(t,e){},AbstractEmitterVisitor.prototype.visitThrowStmt=function(t,e){return e.print("throw "),t.error.visitExpression(this,e),e.println(";"),null},AbstractEmitterVisitor.prototype.visitCommentStmt=function(t,e){var r=t.comment.split("\n");return r.forEach(function(t){e.println("// "+t)}),null},AbstractEmitterVisitor.prototype.visitDeclareVarStmt=function(t,e){},AbstractEmitterVisitor.prototype.visitWriteVarExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print("("),e.print(t.name+" = "),t.value.visitExpression(this,e),r||e.print(")"),null},AbstractEmitterVisitor.prototype.visitWriteKeyExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print("("),t.receiver.visitExpression(this,e),e.print("["),t.index.visitExpression(this,e),e.print("] = "),t.value.visitExpression(this,e),r||e.print(")"),null},AbstractEmitterVisitor.prototype.visitWritePropExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print("("),t.receiver.visitExpression(this,e),e.print("."+t.name+" = "),t.value.visitExpression(this,e),r||e.print(")"),null},AbstractEmitterVisitor.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var i=t.name;return r.i(n.c)(t.builtin)&&(i=this.getBuiltinMethodName(t.builtin),r.i(n.d)(i))?null:(e.print("."+i+"("),this.visitAllExpressions(t.args,e,","),e.print(")"),null)},AbstractEmitterVisitor.prototype.getBuiltinMethodName=function(t){},AbstractEmitterVisitor.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print("("),this.visitAllExpressions(t.args,e,","),e.print(")"),null},AbstractEmitterVisitor.prototype.visitReadVarExpr=function(t,e){var o=t.name;if(r.i(n.c)(t.builtin))switch(t.builtin){case i.F.Super:o="super";break;case i.F.This:o="this";break;case i.F.CatchError:o=a.name;break;case i.F.CatchStack:o=u.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(o),null},AbstractEmitterVisitor.prototype.visitInstantiateExpr=function(t,e){return e.print("new "),t.classExpr.visitExpression(this,e),e.print("("),this.visitAllExpressions(t.args,e,","),e.print(")"),null},AbstractEmitterVisitor.prototype.visitLiteralExpr=function(t,e){var r=t.value;return"string"==typeof r?e.print(escapeIdentifier(r,this._escapeDollarInStrings)):e.print(""+r),null},AbstractEmitterVisitor.prototype.visitExternalExpr=function(t,e){},AbstractEmitterVisitor.prototype.visitConditionalExpr=function(t,e){return e.print("("),t.condition.visitExpression(this,e),e.print("? "),t.trueCase.visitExpression(this,e),e.print(": "),t.falseCase.visitExpression(this,e),e.print(")"),null},AbstractEmitterVisitor.prototype.visitNotExpr=function(t,e){return e.print("!"),t.condition.visitExpression(this,e),null},AbstractEmitterVisitor.prototype.visitFunctionExpr=function(t,e){},AbstractEmitterVisitor.prototype.visitDeclareFunctionStmt=function(t,e){},AbstractEmitterVisitor.prototype.visitBinaryOperatorExpr=function(t,e){var r;switch(t.operator){case i.y.Equals:r="==";break;case i.y.Identical:r="===";break;case i.y.NotEquals:r="!=";break;case i.y.NotIdentical:r="!==";break;case i.y.And:r="&&";break;case i.y.Or:r="||";break;case i.y.Plus:r="+";break;case i.y.Minus:r="-";break;case i.y.Divide:r="/";break;case i.y.Multiply:r="*";break;case i.y.Modulo:r="%";break;case i.y.Lower:r="<";break;case i.y.LowerEquals:r="<=";break;case i.y.Bigger:r=">";break;case i.y.BiggerEquals:r=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print("("),t.lhs.visitExpression(this,e),e.print(" "+r+" "),t.rhs.visitExpression(this,e),e.print(")"),null},AbstractEmitterVisitor.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print("."),e.print(t.name),null},AbstractEmitterVisitor.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print("["),t.index.visitExpression(this,e),e.print("]"),null},AbstractEmitterVisitor.prototype.visitLiteralArrayExpr=function(t,e){var r=t.entries.length>1;return e.print("[",r),e.incIndent(),this.visitAllExpressions(t.entries,e,",",r),e.decIndent(),e.print("]",r),null},AbstractEmitterVisitor.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.length>1;return e.print("{",n),e.incIndent(),this.visitAllObjects(function(t){e.print(escapeIdentifier(t.key,r._escapeDollarInStrings,t.quoted)+": "),t.value.visitExpression(r,e)},t.entries,e,",",n),e.decIndent(),e.print("}",n),null},AbstractEmitterVisitor.prototype.visitAllExpressions=function(t,e,r,n){var i=this;void 0===n&&(n=!1),this.visitAllObjects(function(t){return t.visitExpression(i,e)},t,e,r,n)},AbstractEmitterVisitor.prototype.visitAllObjects=function(t,e,r,n,i){void 0===i&&(i=!1);for(var o=0;o0&&r.print(n,i),t(e[o]);i&&r.println()},AbstractEmitterVisitor.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},AbstractEmitterVisitor}()},function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function createClassStmt(t){var e=t.parentArgs||[],r=t.parent?[n.D.callFn(e).toStmt()]:[],i=concatClassBuilderParts(Array.isArray(t.builders)?t.builders:[t.builders]),o=new n.q(null,t.ctorParams||[],r.concat(i.ctorStmts));return new n.E(t.name,t.parent,i.fields,i.getters,o,i.methods,t.modifiers||[])}function concatClassBuilderParts(t){return{fields:(e=[]).concat.apply(e,t.map(function(t){return t.fields||[]})),methods:(r=[]).concat.apply(r,t.map(function(t){return t.methods||[]})),getters:(n=[]).concat.apply(n,t.map(function(t){return t.getters||[]})),ctorStmts:(i=[]).concat.apply(i,t.map(function(t){return t.ctorStmts||[]}))};var e,r,n,i}var n=r(9);e.a=createClassStmt},function(t,e,r){"use strict";function debugOutputAstAsTypeScript(t){var e=new l(u),r=o.a.createRoot([]),n=Array.isArray(t)?t:[t];return n.forEach(function(t){if(t instanceof s.R)t.visitStatement(e,r);else if(t instanceof s.L)t.visitExpression(e,r);else{if(!(t instanceof s.S))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,r)}}),r.toSource()}var n=r(12),i=r(6),o=r(198),s=r(9);e.a=debugOutputAstAsTypeScript,r.d(e,"b",function(){return c});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var a=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},u="/debug/lib",c=function(){function TypeScriptEmitter(t){this._importGenerator=t}return TypeScriptEmitter.prototype.emitStatements=function(t,e,r){var n=this,i=new l(t),s=o.a.createRoot(r);i.visitAllStatements(e,s);var a=[];return i.importsWithPrefixes.forEach(function(e,r){a.push("imp"+("ort * as "+e+" from '"+n._importGenerator.fileNameToModuleName(r,t)+"';"))}),a.push(s.toSource()),a.join("\n")},TypeScriptEmitter}(),l=function(t){function _TsEmitterVisitor(e){t.call(this,!1),this._moduleUrl=e,this.importsWithPrefixes=new Map}return a(_TsEmitterVisitor,t),_TsEmitterVisitor.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),r.i(i.c)(t)?t.visitType(this,e):e.print(n)},_TsEmitterVisitor.prototype.visitLiteralExpr=function(e,n){var o=e.value;return r.i(i.d)(o)&&e.type!=s.T?(n.print("("+o+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},_TsEmitterVisitor.prototype.visitLiteralArrayExpr=function(e,r){0===e.entries.length&&r.print("(");var n=t.prototype.visitLiteralArrayExpr.call(this,e,r);return 0===e.entries.length&&r.print(" as any[])"),n},_TsEmitterVisitor.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},_TsEmitterVisitor.prototype.visitDeclareVarStmt=function(t,e){return e.isExportedVar(t.name)&&e.print("export "),t.hasModifier(s.k.Final)?e.print("const"):e.print("var"),e.print(" "+t.name+":"),this.visitType(t.type,e),e.print(" = "),t.value.visitExpression(this,e),e.println(";"),null},_TsEmitterVisitor.prototype.visitCastExpr=function(t,e){return e.print("(<"),t.type.visitType(this,e),e.print(">"),t.value.visitExpression(this,e),e.print(")"),null},_TsEmitterVisitor.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print("export "),e.print("class "+t.name),r.i(i.c)(t.parent)&&(e.print(" extends "),t.parent.visitExpression(this,e)),e.println(" {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),r.i(i.c)(t.constructorMethod)&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println("}"),e.popClass(),null},_TsEmitterVisitor.prototype._visitClassField=function(t,e){t.hasModifier(s.k.Private)&&e.print("/*private*/ "),e.print(t.name),e.print(":"),this.visitType(t.type,e),e.println(";")},_TsEmitterVisitor.prototype._visitClassGetter=function(t,e){t.hasModifier(s.k.Private)&&e.print("private "),e.print("get "+t.name+"()"),e.print(":"),this.visitType(t.type,e),e.println(" {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println("}")},_TsEmitterVisitor.prototype._visitClassConstructor=function(t,e){e.print("constructor("),this._visitParams(t.constructorMethod.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println("}")},_TsEmitterVisitor.prototype._visitClassMethod=function(t,e){t.hasModifier(s.k.Private)&&e.print("private "),e.print(t.name+"("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println("}")},_TsEmitterVisitor.prototype.visitFunctionExpr=function(t,e){return e.print("("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print("}"),null},_TsEmitterVisitor.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print("export "),e.print("function "+t.name+"("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println("}"),null},_TsEmitterVisitor.prototype.visitTryCatchStmt=function(t,e){e.println("try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println("} catch ("+o.b.name+") {"),e.incIndent();var r=[o.c.set(o.b.prop("stack")).toDeclStmt(null,[s.k.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println("}"),null},_TsEmitterVisitor.prototype.visitBuiltintType=function(t,e){var r;switch(t.name){case s.U.Bool:r="boolean";break;case s.U.Dynamic:r="any";break;case s.U.Function:r="Function";break;case s.U.Number:r="number";break;case s.U.Int:r="number";break;case s.U.String:r="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(r),null},_TsEmitterVisitor.prototype.visitExpressionType=function(t,e){var n=this;return t.value.visitExpression(this,e),r.i(i.c)(t.typeParams)&&t.typeParams.length>0&&(e.print("<"),this.visitAllObjects(function(t){return t.visitType(n,e)},t.typeParams,e,","),e.print(">")),null},_TsEmitterVisitor.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print("[]"),null},_TsEmitterVisitor.prototype.visitMapType=function(t,e){return e.print("{[key: string]:"),this.visitType(t.valueType,e),e.print("}"),null},_TsEmitterVisitor.prototype.getBuiltinMethodName=function(t){var e;switch(t){case s.O.ConcatArray:e="concat";break;case s.O.SubscribeObservable:e="subscribe";break;case s.O.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},_TsEmitterVisitor.prototype._visitParams=function(t,e){var r=this;this.visitAllObjects(function(t){e.print(t.name),e.print(":"),r.visitType(t.type,e)},t,e,",")},_TsEmitterVisitor.prototype._visitIdentifier=function(t,e,o){var s=this,a=r.i(n.a)(t),u=r.i(n.i)(t);if(r.i(i.d)(a))throw new Error("Internal error: unknown identifier "+t);if(r.i(i.c)(u)&&u!=this._moduleUrl){var c=this.importsWithPrefixes.get(u);r.i(i.d)(c)&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(u,c)),o.print(c+".")}t.reference&&t.reference.members&&t.reference.members.length?(o.print(t.reference.name),o.print("."),o.print(t.reference.members.join("."))):o.print(a),r.i(i.c)(e)&&e.length>0&&(o.print("<"),this.visitAllObjects(function(t){return t.visitType(s,o)},e,o,","),o.print(">"))},_TsEmitterVisitor}(o.d)},function(t,e,r){"use strict";r.d(e,"a",function(){return n});var n=function(){function ResourceLoader(){}return ResourceLoader.prototype.get=function(t){return null},ResourceLoader}()},function(t,e,r){"use strict";var n=r(17);r.d(e,"a",function(){return s});var i=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=function(){function SummaryResolver(){}return SummaryResolver.prototype.resolveSummary=function(t){return null},SummaryResolver.prototype.getSymbolsOf=function(t){return[]},SummaryResolver=i([r.i(n.a)(),o("design:paramtypes",[])],SummaryResolver)}()},function(t,e,r){"use strict";var n=r(9);r.d(e,"a",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function _DebugState(t,e){this.nodeIndex=t,this.sourceAst=e}return _DebugState}(),o=new i(null,null),s=function(){function CompileMethod(t){this._view=t,this._newState=o,this._currState=o,this._bodyStatements=[],this._debugEnabled=this._view.genConfig.genDebugInfo}return CompileMethod.prototype._updateDebugContextIfNeeded=function(){if(this._newState.nodeIndex!==this._currState.nodeIndex||this._newState.sourceAst!==this._currState.sourceAst){var t=this._updateDebugContext(this._newState);t&&this._bodyStatements.push(t.toStmt())}},CompileMethod.prototype._updateDebugContext=function(t){if(this._currState=this._newState=t,this._debugEnabled){var e=t.sourceAst?t.sourceAst.sourceSpan.start:null;return n.e.callMethod("debug",[n.f(t.nodeIndex),e?n.f(e.line):n.b,e?n.f(e.col):n.b])}return null},CompileMethod.prototype.resetDebugInfoExpr=function(t,e){var r=this._updateDebugContext(new i(t,e));return r||n.b},CompileMethod.prototype.resetDebugInfo=function(t,e){this._newState=new i(t,e)},CompileMethod.prototype.push=function(){for(var t=[],e=0;e0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+r.i(o.c)(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},PlatformRef_.decorators=[{type:l.j}],PlatformRef_.ctorParameters=function(){return[{type:l.c}]},PlatformRef_}(w),C=function(){function ApplicationRef(){}return ApplicationRef.prototype.bootstrap=function(t){},ApplicationRef.prototype.tick=function(){},ApplicationRef.prototype.componentTypes=function(){},ApplicationRef.prototype.components=function(){},ApplicationRef.prototype.attachView=function(t){},ApplicationRef.prototype.detachView=function(t){},ApplicationRef.prototype.viewCount=function(){},ApplicationRef}(),A=function(t){function ApplicationRef_(e,r,n,i,o,s,a,u){var c=this;t.call(this),this._zone=e,this._console=r,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._testabilityRegistry=a,this._testability=u,this._bootstrapListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._enforceNoNewChanges=isDevMode(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}})}return b(ApplicationRef_,t),ApplicationRef_.prototype.attachView=function(t){var e=t.internalView;this._views.push(e),e.attachToAppRef(this)},ApplicationRef_.prototype.detachView=function(t){var e=t.internalView;i.e.remove(this._views,e),e.detach()},ApplicationRef_.prototype.bootstrap=function(t){var e=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var r;r=t instanceof f.b?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(r.componentType);var n=r.create(this._injector,[],r.selector);n.onDestroy(function(){e._unloadComponent(n)});var i=n.injector.get(m.a,null);return i&&n.injector.get(m.b).registerApplication(n.location.nativeElement,i),this._loadComponent(n),isDevMode()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),n},ApplicationRef_.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t);var e=this._injector.get(u.d,[]).concat(this._bootstrapListeners);e.forEach(function(e){return e(t)})},ApplicationRef_.prototype._unloadComponent=function(t){this.detachView(t.hostView),i.e.remove(this._rootComponents,t)},ApplicationRef_.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=ApplicationRef_._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.ref.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.ref.checkNoChanges()})}finally{this._runningTick=!1,r.i(d.b)(t)}},ApplicationRef_.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(ApplicationRef_.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef_.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef_.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),ApplicationRef_._tickScope=r.i(d.a)("ApplicationRef#tick()"),ApplicationRef_.decorators=[{type:l.j}],ApplicationRef_.ctorParameters=function(){return[{type:y.a},{type:c.a},{type:l.c},{type:n.a},{type:h.b},{type:a.b},{type:m.b,decorators:[{type:l.i}]},{type:m.a,decorators:[{type:l.i}]}]},ApplicationRef_}(C)},function(t,e,r){"use strict";function getPreviousIndex(t,e,r){var n=t.previousIndex;if(null===n)return n;var i=0;return r&&n"+r.i(i.c)(this.currentIndex)+"]"},CollectionChangeRecord}(),c=function(){function _DuplicateItemRecordList(){this._head=null,this._tail=null}return _DuplicateItemRecordList.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},_DuplicateItemRecordList.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e=200&&this.status<=299,this.statusText=e.statusText,this.headers=e.headers,this.type=e.type,this.url=e.url}return i(Response,t),Response.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},Response}(n.a)},function(t,e,r){"use strict";var n=r(237);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function NoOpAnimationDriver(){}return NoOpAnimationDriver.prototype.animate=function(t,e,r,i,o,s,a){return void 0===a&&(a=[]),new n.b},NoOpAnimationDriver}(),o=function(){function AnimationDriver(){}return AnimationDriver.prototype.animate=function(t,e,r,n,i,o,s){},AnimationDriver.NOOP=new i,AnimationDriver}()},function(t,e,r){"use strict";function inspectNativeElement(t){return n.getDebugNode(t)}function _createConditionalRootRenderer(t,e,r){return n.isDevMode()?_createRootRenderer(t,(e||[]).concat(r||[])):t}function _createRootRenderer(t,e){return r.i(s.b)().setGlobalVar(c,inspectNativeElement),r.i(s.b)().setGlobalVar(l,i.a.merge(u,_ngProbeTokensToMap(e||[]))),new o.a(t)}function _ngProbeTokensToMap(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}var n=r(1),i=r(543),o=r(237),s=r(21),a=r(234);r.d(e,"a",function(){return p}),r.d(e,"b",function(){return f});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},c="ng.probe",l="ng.coreTokens",p=function(){function NgProbeToken(t,e){this.name=t,this.token=e}return NgProbeToken}(),f=[{provide:n.RootRenderer,useFactory:_createConditionalRootRenderer,deps:[a.b,[p,new n.Optional],[n.NgProbeToken,new n.Optional]]}]},function(t,e,r){"use strict";function moveNodesAfterSibling(t,e){var r=t.parentNode;if(e.length>0&&r){var n=t.nextSibling;if(n)for(var i=0;i-1},HammerGesturesPlugin.decorators=[{type:n.Injectable}],HammerGesturesPlugin.ctorParameters=function(){return[{type:u,decorators:[{type:n.Inject,args:[a]}]}]},HammerGesturesPlugin}(i.c)},function(t,e,r){"use strict";var n=r(1),i=r(21),o=r(168);r.d(e,"b",function(){return a}),r.d(e,"a",function(){return u});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},a=function(){function SharedStylesHost(){this._stylesSet=new Set}return SharedStylesHost.prototype.addStyles=function(t){var e=this,r=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),r.add(t))}),this.onStylesAdded(r)},SharedStylesHost.prototype.onStylesAdded=function(t){},SharedStylesHost.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},SharedStylesHost.decorators=[{type:n.Injectable}],SharedStylesHost.ctorParameters=function(){return[]},SharedStylesHost}(),u=function(t){function DomSharedStylesHost(e){t.call(this),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}return s(DomSharedStylesHost,t),DomSharedStylesHost.prototype._addStylesToHost=function(t,e){var r=this;t.forEach(function(t){var n=r._doc.createElement("style");n.textContent=t,r._styleNodes.add(e.appendChild(n))})},DomSharedStylesHost.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},DomSharedStylesHost.prototype.removeHost=function(t){this._hostNodes.delete(t)},DomSharedStylesHost.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(r){return e._addStylesToHost(t,r)})},DomSharedStylesHost.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return r.i(i.b)().remove(t)})},DomSharedStylesHost.decorators=[{type:n.Injectable}],DomSharedStylesHost.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[o.a]}]}]},DomSharedStylesHost}(a)},function(t,e,r){"use strict";var n=r(1);r.d(e,"a",function(){return i}),r.d(e,"b",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=(n.__core_private__.RenderDebugInfo,n.__core_private__.ReflectionCapabilities,n.__core_private__.DebugDomRootRenderer),o=(n.__core_private__.reflector,n.__core_private__.NoOpAnimationPlayer);n.__core_private__.AnimationPlayer,n.__core_private__.AnimationSequencePlayer,n.__core_private__.AnimationGroupPlayer,n.__core_private__.AnimationKeyframe,n.__core_private__.AnimationStyles,n.__core_private__.prepareFinalAnimationStyles,n.__core_private__.balanceAnimationKeyframes,n.__core_private__.clearStyles,n.__core_private__.collectAndResolveStyles},function(t,e,r){"use strict";function sanitizeUrl(t){return t=String(t),t.match(o)||t.match(s)?t:(r.i(n.isDevMode)()&&r.i(i.b)().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function sanitizeSrcset(t){return t=String(t),t.split(",").map(function(t){return sanitizeUrl(t.trim())}).join(", ")}var n=r(1),i=r(21);e.a=sanitizeUrl,e.b=sanitizeSrcset;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,s=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i},function(t,e,r){"use strict";function attrBoolValue(t){return""===t||!!t}var n=r(97),i=r(1),o=r(118),s=r(89);r.d(e,"a",function(){return a}),r.d(e,"b",function(){return u});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var a=function(){function RouterLink(t,e){this.router=t,this.route=e,this.commands=[]}return Object.defineProperty(RouterLink.prototype,"routerLink",{set:function(t){null!=t?this.commands=Array.isArray(t)?t:[t]:this.commands=[]},enumerable:!0,configurable:!0}),RouterLink.prototype.onClick=function(){var t={skipLocationChange:attrBoolValue(this.skipLocationChange),replaceUrl:attrBoolValue(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(RouterLink.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:attrBoolValue(this.preserveQueryParams),preserveFragment:attrBoolValue(this.preserveFragment)})},enumerable:!0,configurable:!0}),RouterLink.decorators=[{type:i.Directive,args:[{selector:":not(a)[routerLink]"}]}],RouterLink.ctorParameters=function(){return[{type:o.e},{type:s.a}]},RouterLink.propDecorators={queryParams:[{type:i.Input}],fragment:[{type:i.Input}],preserveQueryParams:[{type:i.Input}],preserveFragment:[{type:i.Input}],skipLocationChange:[{type:i.Input}],replaceUrl:[{type:i.Input}],routerLink:[{type:i.Input}],onClick:[{type:i.HostListener,args:["click"]}]},RouterLink}(),u=function(){function RouterLinkWithHref(t,e,r){var n=this;this.router=t,this.route=e,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof o.b&&n.updateTargetUrlAndHref()})}return Object.defineProperty(RouterLinkWithHref.prototype,"routerLink",{set:function(t){null!=t?this.commands=Array.isArray(t)?t:[t]:this.commands=[]},enumerable:!0,configurable:!0}),RouterLinkWithHref.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},RouterLinkWithHref.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},RouterLinkWithHref.prototype.onClick=function(t,e,r){if(0!==t||e||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var n={skipLocationChange:attrBoolValue(this.skipLocationChange),replaceUrl:attrBoolValue(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,n),!1},RouterLinkWithHref.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(RouterLinkWithHref.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:attrBoolValue(this.preserveQueryParams),preserveFragment:attrBoolValue(this.preserveFragment)})},enumerable:!0,configurable:!0}),RouterLinkWithHref.decorators=[{type:i.Directive,args:[{selector:"a[routerLink]"}]}],RouterLinkWithHref.ctorParameters=function(){return[{type:o.e},{type:s.a},{type:n.LocationStrategy}]},RouterLinkWithHref.propDecorators={target:[{type:i.HostBinding,args:["attr.target"]},{type:i.Input}],queryParams:[{type:i.Input}],fragment:[{type:i.Input}],preserveQueryParams:[{type:i.Input}],preserveFragment:[{type:i.Input}],skipLocationChange:[{type:i.Input}],replaceUrl:[{type:i.Input}],href:[{type:i.HostBinding}],routerLink:[{type:i.Input}],onClick:[{type:i.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},RouterLinkWithHref}()},function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function UrlHandlingStrategy(){}return UrlHandlingStrategy.prototype.shouldProcessUrl=function(t){},UrlHandlingStrategy.prototype.extract=function(t){},UrlHandlingStrategy.prototype.merge=function(t,e){},UrlHandlingStrategy}(),i=function(){function DefaultUrlHandlingStrategy(){}return DefaultUrlHandlingStrategy.prototype.shouldProcessUrl=function(t){return!0},DefaultUrlHandlingStrategy.prototype.extract=function(t){return t},DefaultUrlHandlingStrategy.prototype.merge=function(t,e){return t},DefaultUrlHandlingStrategy}()},function(t,e,r){"use strict";function findNode(t,e){if(t===e.value)return e;for(var r=0,n=e.children;r0)return a}return[]}r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function Tree(t){this._root=t}return Object.defineProperty(Tree.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),Tree.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},Tree.prototype.children=function(t){var e=findNode(t,this._root);return e?e.children.map(function(t){return t.value}):[]},Tree.prototype.firstChild=function(t){var e=findNode(t,this._root);return e&&e.children.length>0?e.children[0].value:null},Tree.prototype.siblings=function(t){var e=findPath(t,this._root,[]);if(e.length<2)return[];var r=e[e.length-2].children.map(function(t){return t.value});return r.filter(function(e){return e!==t})},Tree.prototype.pathFromRoot=function(t){return findPath(t,this._root,[]).map(function(t){return t.value})},Tree}(),i=function(){function TreeNode(t,e){this.value=t,this.children=e}return TreeNode.prototype.toString=function(){return"TreeNode("+this.value+")"},TreeNode}()},,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(13),o=r(415),s=r(20),a=r(270),u=r(185),c=r(398),l=function(t){function ReplaySubject(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY),t.call(this),this.scheduler=n,this._events=[],this._bufferSize=e<1?1:e,this._windowTime=r<1?1:r}return n(ReplaySubject,t),ReplaySubject.prototype.next=function(e){var r=this._getNow();this._events.push(new p(r,e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},ReplaySubject.prototype._subscribe=function(t){var e,r=this._trimBufferThenGetEvents(),n=this.scheduler;if(this.closed)throw new u.ObjectUnsubscribedError;this.hasError?e=s.Subscription.EMPTY:this.isStopped?e=s.Subscription.EMPTY:(this.observers.push(t),e=new c.SubjectSubscription(this,t)),n&&t.add(t=new a.ObserveOnSubscriber(t,n));for(var i=r.length,o=0;oe&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},ReplaySubject}(i.Subject);e.ReplaySubject=l;var p=function(){function ReplayEvent(t,e){this.time=t,this.value=e}return ReplayEvent}()},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(0),o=function(t){function ScalarObservable(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(ScalarObservable,t),ScalarObservable.create=function(t,e){return new ScalarObservable(t,e)},ScalarObservable.dispatch=function(t){var e=t.done,r=t.value,n=t.subscriber;return e?void n.complete():(n.next(r),void(n.closed||(t.done=!0,this.schedule(t))))},ScalarObservable.prototype._subscribe=function(t){var e=this.value,r=this.scheduler;return r?r.schedule(ScalarObservable.dispatch,0,{done:!1,value:e,subscriber:t}):(t.next(e),void(t.closed||t.complete()))},ScalarObservable}(i.Observable);e.ScalarObservable=o},function(t,e,r){"use strict";function _catch(t){var e=new s(t),r=this.lift(e);return e.caught=r}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(4),o=r(5);e._catch=_catch;var s=function(){function CatchOperator(t){this.selector=t}return CatchOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.selector,this.caught))},CatchOperator}(),a=function(t){function CatchSubscriber(e,r,n){t.call(this,e),this.selector=r,this.caught=n}return n(CatchSubscriber,t),CatchSubscriber.prototype.error=function(t){if(!this.isStopped){var e=void 0;try{e=this.selector(t,this.caught)}catch(t){return void this.destination.error(t)}this.unsubscribe(),this.destination.remove(this),o.subscribeToResult(this,e)}},CatchSubscriber}(i.OuterSubscriber)},function(t,e,r){"use strict";function combineLatest(){for(var t=[],e=0;ethis.index},StaticArrayIterator.prototype.hasCompleted=function(){return this.array.length===this.index},StaticArrayIterator}(),d=function(t){function ZipBufferIterator(e,r,n){t.call(this,e),this.parent=r,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return n(ZipBufferIterator,t),ZipBufferIterator.prototype[c.$$iterator]=function(){return this},ZipBufferIterator.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},ZipBufferIterator.prototype.hasValue=function(){return this.buffer.length>0},ZipBufferIterator.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},ZipBufferIterator.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},ZipBufferIterator.prototype.notifyNext=function(t,e,r,n,i){this.buffer.push(e),this.parent.checkIterators()},ZipBufferIterator.prototype.subscribe=function(t,e){return u.subscribeToResult(this,this.observable,this,e)},ZipBufferIterator}(a.OuterSubscriber)},function(t,e,r){"use strict";function isFunction(t){return"function"==typeof t}e.isFunction=isFunction},function(t,e,r){"use strict";function isNumeric(t){return!n.isArray(t)&&t-parseFloat(t)+1>=0}var n=r(47);e.isNumeric=isNumeric},function(t,e,r){"use strict";var n=r(448),i=r(449),o=r(450),s=r(451),a=r(452),u=r(275),c=r(453);r.d(e,"b",function(){return n.a}),r.d(e,"c",function(){return i.a}),r.d(e,"d",function(){return o.a}),r.d(e,"e",function(){return s.a}),r.d(e,"f",function(){return s.b}),r.d(e,"g",function(){return a.a}),r.d(e,"h",function(){return u.a}),r.d(e,"i",function(){return u.b}),r.d(e,"j",function(){return u.c}),r.d(e,"k",function(){return c.a}),r.d(e,"a",function(){return l});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var l=[n.a,i.a,o.a,c.a,a.a,u.a,u.b,u.c,s.a,s.b]},function(t,e,r){"use strict";var n=r(1);r.d(e,"d",function(){return i}),r.d(e,"a",function(){return o}),r.d(e,"b",function(){return s}),r.d(e,"c",function(){return a});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function SwitchView(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return SwitchView.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},SwitchView.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},SwitchView.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},SwitchView}(),o=function(){function NgSwitch(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(NgSwitch.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),NgSwitch.prototype._addCase=function(){return this._caseCount++},NgSwitch.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},NgSwitch.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},NgSwitch.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e1?"short":"narrow":r[t]="long",r}function combine(t){return(e=Object).assign.apply(e,[{}].concat(t));var e}function datePartGetterFactory(t){return function(e,r){return intlDateFormat(e,r,t)}}function dateFormatter(t,e,r){var n=s[t];if(n)return n(e,r);var i=t,c=u.get(i);if(!c){c=[];var l=void 0;for(o.exec(t);t;)l=o.exec(t),l?(c=c.concat(l.slice(1)),t=c.pop()):(c.push(t),t=null);u.set(i,c)}return c.reduce(function(t,n){var i=a[n];return t+(i?i(e,r):partToTime(n))},"")}function partToTime(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}r.d(e,"b",function(){return n}),r.d(e,"c",function(){return i}),r.d(e,"a",function(){return c});var n={};n.Decimal=0,n.Percent=1,n.Currency=2,n[n.Decimal]="Decimal",n[n.Percent]="Percent",n[n.Currency]="Currency";var i=function(){function NumberFormatter(){}return NumberFormatter.format=function(t,e,r,i){var o=void 0===i?{}:i,s=o.minimumIntegerDigits,a=o.minimumFractionDigits,u=o.maximumFractionDigits,c=o.currency,l=o.currencyAsSymbol,p=void 0!==l&&l,f={minimumIntegerDigits:s,minimumFractionDigits:a,maximumFractionDigits:u,style:n[r].toLowerCase()};return r==n.Currency&&(f.currency=c,f.currencyDisplay=p?"symbol":"code"),new Intl.NumberFormat(e,f).format(t)},NumberFormatter}(),o=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,s={yMMMdjms:datePartGetterFactory(combine([digitCondition("year",1),nameCondition("month",3),digitCondition("day",1),digitCondition("hour",1),digitCondition("minute",1),digitCondition("second",1)])),yMdjm:datePartGetterFactory(combine([digitCondition("year",1),digitCondition("month",1),digitCondition("day",1),digitCondition("hour",1),digitCondition("minute",1)])),yMMMMEEEEd:datePartGetterFactory(combine([digitCondition("year",1),nameCondition("month",4),nameCondition("weekday",4),digitCondition("day",1)])),yMMMMd:datePartGetterFactory(combine([digitCondition("year",1),nameCondition("month",4),digitCondition("day",1)])),yMMMd:datePartGetterFactory(combine([digitCondition("year",1),nameCondition("month",3),digitCondition("day",1)])),yMd:datePartGetterFactory(combine([digitCondition("year",1),digitCondition("month",1),digitCondition("day",1)])),jms:datePartGetterFactory(combine([digitCondition("hour",1),digitCondition("second",1),digitCondition("minute",1)])),jm:datePartGetterFactory(combine([digitCondition("hour",1),digitCondition("minute",1)]))},a={yyyy:datePartGetterFactory(digitCondition("year",4)),yy:datePartGetterFactory(digitCondition("year",2)),y:datePartGetterFactory(digitCondition("year",1)),MMMM:datePartGetterFactory(nameCondition("month",4)),MMM:datePartGetterFactory(nameCondition("month",3)),MM:datePartGetterFactory(digitCondition("month",2)),M:datePartGetterFactory(digitCondition("month",1)),LLLL:datePartGetterFactory(nameCondition("month",4)),L:datePartGetterFactory(nameCondition("month",1)),dd:datePartGetterFactory(digitCondition("day",2)),d:datePartGetterFactory(digitCondition("day",1)),HH:digitModifier(hourExtractor(datePartGetterFactory(hour12Modify(digitCondition("hour",2),!1)))),H:hourExtractor(datePartGetterFactory(hour12Modify(digitCondition("hour",1),!1))),hh:digitModifier(hourExtractor(datePartGetterFactory(hour12Modify(digitCondition("hour",2),!0)))),h:hourExtractor(datePartGetterFactory(hour12Modify(digitCondition("hour",1),!0))),jj:datePartGetterFactory(digitCondition("hour",2)),j:datePartGetterFactory(digitCondition("hour",1)),mm:digitModifier(datePartGetterFactory(digitCondition("minute",2))),m:datePartGetterFactory(digitCondition("minute",1)),ss:digitModifier(datePartGetterFactory(digitCondition("second",2))),s:datePartGetterFactory(digitCondition("second",1)),sss:datePartGetterFactory(digitCondition("second",3)),EEEE:datePartGetterFactory(nameCondition("weekday",4)),EEE:datePartGetterFactory(nameCondition("weekday",3)),EE:datePartGetterFactory(nameCondition("weekday",2)),E:datePartGetterFactory(nameCondition("weekday",1)),a:hourClockExtractor(datePartGetterFactory(hour12Modify(digitCondition("hour",1),!0))),Z:timeZoneGetter("short"),z:timeZoneGetter("long"),ww:datePartGetterFactory({}),w:datePartGetterFactory({}),G:datePartGetterFactory(nameCondition("era",1)),GG:datePartGetterFactory(nameCondition("era",2)),GGG:datePartGetterFactory(nameCondition("era",3)),GGGG:datePartGetterFactory(nameCondition("era",4))},u=new Map,c=function(){function DateFormatter(){}return DateFormatter.format=function(t,e,r){return dateFormatter(r,t,e)},DateFormatter}()},function(t,e,r){"use strict";r.d(e,"a",function(){return s}),r.d(e,"c",function(){return a}),r.d(e,"g",function(){return u}),r.d(e,"f",function(){return c}),r.d(e,"i",function(){return l}),r.d(e,"b",function(){return p}),r.d(e,"h",function(){return f}),r.d(e,"d",function(){return h}),r.d(e,"j",function(){return d}),r.d(e,"e",function(){return m});var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=function(){function AnimationAst(){this.startTime=0,this.playTime=0}return AnimationAst.prototype.visit=function(t,e){},AnimationAst}(),o=function(t){function AnimationStateAst(){t.apply(this,arguments)}return n(AnimationStateAst,t),AnimationStateAst.prototype.visit=function(t,e){},AnimationStateAst}(i),s=function(t){function AnimationEntryAst(e,r,n){t.call(this),this.name=e,this.stateDeclarations=r,this.stateTransitions=n}return n(AnimationEntryAst,t),AnimationEntryAst.prototype.visit=function(t,e){return t.visitAnimationEntry(this,e)},AnimationEntryAst}(i),a=function(t){function AnimationStateDeclarationAst(e,r){t.call(this),this.stateName=e,this.styles=r}return n(AnimationStateDeclarationAst,t),AnimationStateDeclarationAst.prototype.visit=function(t,e){return t.visitAnimationStateDeclaration(this,e)},AnimationStateDeclarationAst}(o),u=function(){function AnimationStateTransitionExpression(t,e){this.fromState=t,this.toState=e}return AnimationStateTransitionExpression}(),c=function(t){function AnimationStateTransitionAst(e,r){t.call(this),this.stateChanges=e,this.animation=r}return n(AnimationStateTransitionAst,t),AnimationStateTransitionAst.prototype.visit=function(t,e){return t.visitAnimationStateTransition(this,e)},AnimationStateTransitionAst}(o),l=function(t){function AnimationStepAst(e,r,n,i,o){t.call(this),this.startingStyles=e,this.keyframes=r,this.duration=n,this.delay=i,this.easing=o}return n(AnimationStepAst,t),AnimationStepAst.prototype.visit=function(t,e){return t.visitAnimationStep(this,e)},AnimationStepAst}(i),p=function(t){function AnimationStylesAst(e){t.call(this),this.styles=e}return n(AnimationStylesAst,t),AnimationStylesAst.prototype.visit=function(t,e){return t.visitAnimationStyles(this,e)},AnimationStylesAst}(i),f=function(t){function AnimationKeyframeAst(e,r){t.call(this),this.offset=e,this.styles=r}return n(AnimationKeyframeAst,t),AnimationKeyframeAst.prototype.visit=function(t,e){return t.visitAnimationKeyframe(this,e)},AnimationKeyframeAst}(i),h=function(t){function AnimationWithStepsAst(e){t.call(this),this.steps=e}return n(AnimationWithStepsAst,t),AnimationWithStepsAst}(i),d=function(t){function AnimationGroupAst(e){t.call(this,e)}return n(AnimationGroupAst,t),AnimationGroupAst.prototype.visit=function(t,e){return t.visitAnimationGroup(this,e)},AnimationGroupAst}(h),m=function(t){function AnimationSequenceAst(e){t.call(this,e)}return n(AnimationSequenceAst,t),AnimationSequenceAst.prototype.visit=function(t,e){return t.visitAnimationSequence(this,e)},AnimationSequenceAst}(h)},function(t,e,r){"use strict";function _compareToAnimationStateExpr(t,e){var r=o.f(s.H);switch(e){case s.H:return t.equals(r);case s.a:return o.f(!0);default:return t.equals(o.f(e))}}function _isEndStateAnimateStep(t){if(t instanceof a.i&&t.duration>0&&2==t.keyframes.length){var e=_getStylesArray(t.keyframes[0])[0],r=_getStylesArray(t.keyframes[1])[0];return 0===Object.keys(e).length&&0===Object.keys(r).length}return!1}function _getStylesArray(t){return t.styles.styles}var n=r(6),i=r(16),o=r(9),s=r(14),a=r(278);r.d(e,"a",function(){return c});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u=function(){function AnimationEntryCompileResult(t,e,r){this.name=t,this.statements=e,this.fnExp=r}return AnimationEntryCompileResult}(),c=function(){function AnimationCompiler(){}return AnimationCompiler.prototype.compile=function(t,e){return e.map(function(e){var r=t+"_"+e.name,n=new A(e.name,r);return n.build(e)})},AnimationCompiler}(),l=o.a("element"),p=o.a("defaultStateStyles"),f=o.a("view"),h=f.prop("animationContext"),d=f.prop("renderer"),m=o.a("currentState"),y=o.a("nextState"),v=o.a("player"),b=o.a("totalTime"),_=o.a("startStateStyles"),g=o.a("endStateStyles"),S=o.a("collectedStyles"),w=o.a("previousPlayers"),E=o.l([]),C=o.h([]),A=function(){function _AnimationBuilder(t,e){this.animationName=t,this._fnVarName=e+"_factory",this._statesMapVarName=e+"_states",this._statesMapVar=o.a(this._statesMapVarName)}return _AnimationBuilder.prototype.visitAnimationStyles=function(t,e){var n=[];return e.isExpectingFirstStyleStep&&(n.push(_),e.isExpectingFirstStyleStep=!1),t.styles.forEach(function(t){var e=Object.keys(t).map(function(e){return[e,o.f(t[e])]});n.push(o.l(e,null,!0))}),o.g(r.i(i.a)(i.b.AnimationStyles)).instantiate([o.g(r.i(i.a)(i.b.collectAndResolveStyles)).callFn([S,o.h(n)])])},_AnimationBuilder.prototype.visitAnimationKeyframe=function(t,e){return o.g(r.i(i.a)(i.b.AnimationKeyframe)).instantiate([o.f(t.offset),t.styles.visit(this,e)])},_AnimationBuilder.prototype.visitAnimationStep=function(t,e){var r=this;if(e.endStateAnimateStep===t)return this._visitEndStateAnimation(t,e);var n=t.startingStyles.visit(this,e),i=t.keyframes.map(function(t){return t.visit(r,e)});return this._callAnimateMethod(t,n,o.h(i),e)},_AnimationBuilder.prototype._visitEndStateAnimation=function(t,e){var n=this,s=t.startingStyles.visit(this,e),a=t.keyframes.map(function(t){return t.visit(n,e)}),u=o.g(r.i(i.a)(i.b.balanceAnimationKeyframes)).callFn([S,g,o.h(a)]);return this._callAnimateMethod(t,s,u,e)},_AnimationBuilder.prototype._callAnimateMethod=function(t,e,r,n){var i=C;return n.isExpectingFirstAnimateStep&&(i=w,n.isExpectingFirstAnimateStep=!1),n.totalTransitionTime+=t.duration+t.delay,d.callMethod("animate",[l,e,r,o.f(t.duration),o.f(t.delay),o.f(t.easing),i])},_AnimationBuilder.prototype.visitAnimationSequence=function(t,e){var n=this,s=t.steps.map(function(t){return t.visit(n,e)});return o.g(r.i(i.a)(i.b.AnimationSequencePlayer)).instantiate([o.h(s)])},_AnimationBuilder.prototype.visitAnimationGroup=function(t,e){var n=this,s=t.steps.map(function(t){return t.visit(n,e)});return o.g(r.i(i.a)(i.b.AnimationGroupPlayer)).instantiate([o.h(s)])},_AnimationBuilder.prototype.visitAnimationStateDeclaration=function(t,e){var r={};_getStylesArray(t).forEach(function(t){Object.keys(t).forEach(function(e){r[e]=t[e]})}),e.stateMap.registerState(t.stateName,r)},_AnimationBuilder.prototype.visitAnimationStateTransition=function(t,e){var r=t.animation.steps,n=r[r.length-1];_isEndStateAnimateStep(n)&&(e.endStateAnimateStep=n),e.totalTransitionTime=0,e.isExpectingFirstStyleStep=!0,e.isExpectingFirstAnimateStep=!0;var i=[];t.stateChanges.forEach(function(t){i.push(_compareToAnimationStateExpr(m,t.fromState).and(_compareToAnimationStateExpr(y,t.toState))),t.fromState!=s.a&&e.stateMap.registerState(t.fromState),t.toState!=s.a&&e.stateMap.registerState(t.toState)});var a=t.animation.visit(this,e),u=i.reduce(function(t,e){return t.or(e)}),c=v.equals(o.b).and(u),l=v.set(a).toStmt(),p=b.set(o.f(e.totalTransitionTime)).toStmt();return new o.u(c,[l,p])},_AnimationBuilder.prototype.visitAnimationEntry=function(t,e){var n=this;t.stateDeclarations.forEach(function(t){return t.visit(n,e)}),e.stateMap.registerState(s.M,{});var a=[];a.push(w.set(h.callMethod("getAnimationPlayers",[l,y.equals(o.f(s.H)).conditional(o.b,o.f(this.animationName))])).toDeclStmt()),a.push(S.set(E).toDeclStmt()),a.push(v.set(o.b).toDeclStmt()),a.push(b.set(o.f(0)).toDeclStmt()),a.push(p.set(this._statesMapVar.key(o.f(s.M))).toDeclStmt()),a.push(_.set(this._statesMapVar.key(m)).toDeclStmt()),a.push(new o.u(_.equals(o.b),[_.set(p).toStmt()])),a.push(g.set(this._statesMapVar.key(y)).toDeclStmt()),a.push(new o.u(g.equals(o.b),[g.set(p).toStmt()]));var u=o.g(r.i(i.a)(i.b.renderStyles));return t.stateTransitions.forEach(function(t){return a.push(t.visit(n,e))}),a.push(new o.u(v.equals(o.b),[v.set(o.g(r.i(i.a)(i.b.NoOpAnimationPlayer)).instantiate([])).toStmt()])),a.push(v.callMethod("onDone",[o.B([],[v.callMethod("destroy",[]).toStmt(),u.callFn([l,d,o.g(r.i(i.a)(i.b.prepareFinalAnimationStyles)).callFn([_,g])]).toStmt()])]).toStmt()),a.push(o.g(r.i(i.a)(i.b.AnimationSequencePlayer)).instantiate([w]).callMethod("destroy",[]).toStmt()),a.push(u.callFn([l,d,o.g(r.i(i.a)(i.b.clearStyles)).callFn([_])]).toStmt()),a.push(h.callMethod("queueAnimation",[l,o.f(this.animationName),v]).toStmt()),a.push(new o.t(o.g(r.i(i.a)(i.b.AnimationTransition)).instantiate([v,m,y,b]))),o.B([new o.o(f.name,o.d(r.i(i.a)(i.b.AppView),[o.m])),new o.o(l.name,o.m),new o.o(m.name,o.m),new o.o(y.name,o.m)],a,o.d(r.i(i.a)(i.b.AnimationTransition)))},_AnimationBuilder.prototype.build=function(t){var e=new x,i=t.visit(this,e).toDeclStmt(this._fnVarName),s=o.a(this._fnVarName),a=[];Object.keys(e.stateMap.states).forEach(function(t){var i=e.stateMap.states[t],s=E;if(r.i(n.c)(i)){var u=[];Object.keys(i).forEach(function(t){u.push([t,o.f(i[t])])}),s=o.l(u,null,!0)}a.push([t,s])});var c=this._statesMapVar.set(o.l(a,null,!0)).toDeclStmt(),l=[c,i];return new u(this.animationName,l,s)},_AnimationBuilder}(),x=function(){function _AnimationBuilderContext(){this.stateMap=new T,this.endStateAnimateStep=null,this.isExpectingFirstStyleStep=!1,this.isExpectingFirstAnimateStep=!1,this.totalTransitionTime=0}return _AnimationBuilderContext}(),T=function(){function _AnimationBuilderStateMap(){this._states={}}return Object.defineProperty(_AnimationBuilderStateMap.prototype,"states",{get:function(){return this._states},enumerable:!0,configurable:!0}),_AnimationBuilderStateMap.prototype.registerState=function(t,e){void 0===e&&(e=null);var r=this._states[t];r||(this._states[t]=e)},_AnimationBuilderStateMap}()},function(t,e,r){"use strict";function serializeSummaries(t,e,r,i,o){var s=new u(t);i.forEach(function(t){return s.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var a=0;a]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//]},function(t,e,r){"use strict";function createCheckBindingField(t){var e=""+t.fields.length,s=createBindFieldExpr(e);return t.fields.push(new i.c(s.name,null,[i.k.Private])),t.ctorStmts.push(i.e.prop(s.name).set(i.g(r.i(n.a)(n.b.UNINITIALIZED))).toStmt()),new o(s,e)}function createCheckBindingStmt(t,e,o,s){var a=i.g(r.i(n.a)(n.b.checkBinding)).callFn([o,e,t.currValExpr]);return t.forceUpdate&&(a=t.forceUpdate.or(a)),t.stmts.concat([new i.u(a,s.concat([i.e.prop(e.name).set(t.currValExpr).toStmt()]))])}function createBindFieldExpr(t){return i.e.prop("_expr_"+t)}var n=r(16),i=r(9);e.a=createCheckBindingField,e.b=createCheckBindingStmt;var o=function(){function CheckBindingField(t,e){this.expression=t,this.bindingId=e}return CheckBindingField}()},function(t,e,r){"use strict";function writeToRenderer(t,e,n,a,c,l){var p=[],f=t.prop("renderer");switch(a=sanitizedValue(t,e,a,l),e.type){case u.f.Property:c&&p.push(s.g(r.i(o.a)(o.b.setBindingDebugInfo)).callFn([f,n,s.f(e.name),a]).toStmt()),p.push(f.callMethod("setElementProperty",[n,s.f(e.name),a]).toStmt());break;case u.f.Attribute:a=a.isBlank().conditional(s.b,a.callMethod("toString",[])),p.push(f.callMethod("setElementAttribute",[n,s.f(e.name),a]).toStmt());break;case u.f.Class:p.push(f.callMethod("setElementClass",[n,s.f(e.name),a]).toStmt());break;case u.f.Style:var h=a.callMethod("toString",[]);r.i(i.c)(e.unit)&&(h=h.plus(s.f(e.unit))),a=a.isBlank().conditional(s.b,h),p.push(f.callMethod("setElementStyle",[n,s.f(e.name),a]).toStmt());break;case u.f.Animation:throw new Error("Illegal state: Should not come here!")}return p}function sanitizedValue(t,e,i,s){if(e.securityContext===n.SecurityContext.NONE)return i;if(e.needsRuntimeSecurityContext||(s=r.i(c.d)(o.b.SecurityContext,e.securityContext)),!s)throw new Error("internal error, no SecurityContext given "+e.name);var a=t.prop("viewUtils").prop("sanitizer"),u=[s,i];return a.callMethod("sanitize",u)}function triggerAnimation(t,e,n,i,c,l,p,f){var h=[],d=[],m=n.name,y=e.prop("componentType").prop("animations").key(s.f(m)),v=s.f(a.H),b=s.g(r.i(o.a)(o.b.UNINITIALIZED)),_=s.a("animationTransition_"+m);d.push(_.set(y.callFn([t,l,f.equals(b).conditional(v,f),p.equals(b).conditional(v,p)])).toDeclStmt()),h.push(_.set(y.callFn([t,l,f,v])).toDeclStmt());var g=[],S=i.find(function(t){return t.isAnimation&&t.name==m&&"start"==t.phase});S&&g.push(_.callMethod("onStart",[c.callMethod(s.O.Bind,[t,s.f(u.g.calcFullName(m,null,"start"))])]).toStmt());var w=i.find(function(t){return t.isAnimation&&t.name==m&&"done"==t.phase});return w&&g.push(_.callMethod("onDone",[c.callMethod(s.O.Bind,[t,s.f(u.g.calcFullName(m,null,"done"))])]).toStmt()),d.push.apply(d,g),h.push.apply(h,g),{updateStmts:d,detachStmts:h}}var n=r(1),i=r(6),o=r(16),s=r(9),a=r(14),u=r(42),c=r(40);e.b=writeToRenderer,e.a=triggerAnimation},function(t,e,r){"use strict";function digest(t){return sha1(serializeNodes(t.nodes).join("")+("["+t.meaning+"]"))}function decimalDigest(t){var e=new s,r=t.nodes.map(function(t){return t.visit(e,null)});return computeMsgId(r.join(""),t.meaning)}function serializeNodes(t){return t.map(function(t){return t.visit(o,null)})}function sha1(t){var e=utf8Encode(t),r=stringToWords32(e,a.Big),n=8*e.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],s=o[0],u=o[1],c=o[2],l=o[3],p=o[4];r[n>>5]|=128<<24-n%32,r[(n+64>>9<<4)+15]=n;for(var f=0;f>>13,r=sub32(r,n),r=sub32(r,e),r^=e<<8,n=sub32(n,e),n=sub32(n,r),n^=r>>>13,e=sub32(e,r),e=sub32(e,n),e^=n>>>12,r=sub32(r,n),r=sub32(r,e),r^=e<<16,n=sub32(n,e),n=sub32(n,r),n^=r>>>5,e=sub32(e,r),e=sub32(e,n),e^=n>>>3,r=sub32(r,n),r=sub32(r,e),r^=e<<10,n=sub32(n,e),n=sub32(n,r),n^=r>>>15,[e,r,n]}function utf8Encode(t){for(var e="",r=0;r>>6,128|63&n):n<=65535?e+=String.fromCharCode(224|n>>>12,128|n>>>6&63,128|63&n):n<=2097151&&(e+=String.fromCharCode(240|n>>>18,128|n>>>12&63,128|n>>>6&63,128|63&n))}return e}function decodeSurrogatePairs(t,e){if(e<0||e>=t.length)throw new Error("index="+e+' is out of range in "'+t+'"');var r=t.charCodeAt(e);if(r>=55296&&r<=57343&&t.length>e+1){var n=byteAt(t,e+1);if(n>=56320&&n<=57343)return 1024*(r-55296)+n-56320+65536}return r}function add32(t,e){return add32to64(t,e)[1]}function add32to64(t,e){var r=(65535&t)+(65535&e),n=(t>>>16)+(e>>>16)+(r>>>16);return[n>>>16,n<<16|65535&r]}function add64(t,e){var r=t[0],n=t[1],i=e[0],o=e[1],s=add32to64(n,o),a=s[0],u=s[1],c=add32(add32(r,i),a);return[c,u]}function sub32(t,e){var r=(65535&t)-(65535&e),n=(t>>16)-(e>>16)+(r>>16);return n<<16|65535&r}function rol32(t,e){return t<>>32-e}function rol64(t,e){var r=t[0],n=t[1],i=r<>>32-e,o=n<>>32-e;return[i,o]}function stringToWords32(t,e){for(var r=Array(t.length+3>>>2),n=0;n=t.length?0:255&t.charCodeAt(e)}function wordAt(t,e,r){var n=0;if(r===a.Big)for(var i=0;i<4;i++)n+=byteAt(t,e+i)<<24-8*i;else for(var i=0;i<4;i++)n+=byteAt(t,e+i)<<8*i;return n}function words32ToByteString(t){return t.reduce(function(t,e){return t+word32ToByteString(e)},"")}function word32ToByteString(t){for(var e="",r=0;r<4;r++)e+=String.fromCharCode(t>>>8*(3-r)&255);return e}function byteStringToHexString(t){for(var e="",r=0;r>>4).toString(16)+(15&n).toString(16)}return e.toLowerCase()}function byteStringToDecString(t){for(var e="",r="1",n=t.length-1;n>=0;n--)e=addBigInt(e,numberTimesBigInt(byteAt(t,n),r)),r=numberTimesBigInt(256,r);return e.split("").reverse().join("")}function addBigInt(t,e){for(var r="",n=Math.max(t.length,e.length),i=0,o=0;i=10?(o=1,r+=s-10):(o=0,r+=s)}return r}function numberTimesBigInt(t,e){for(var r="",n=e;0!==t;t>>>=1)1&t&&(r=addBigInt(r,n)),n=addBigInt(n,n);return r}e.b=digest,e.a=decimalDigest;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=function(){function _SerializerVisitor(){}return _SerializerVisitor.prototype.visitText=function(t,e){return t.value},_SerializerVisitor.prototype.visitContainer=function(t,e){var r=this;return"["+t.children.map(function(t){return t.visit(r)}).join(", ")+"]"},_SerializerVisitor.prototype.visitIcu=function(t,e){var r=this,n=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(r)+"}"});return"{"+t.expression+", "+t.type+", "+n.join(", ")+"}"},_SerializerVisitor.prototype.visitTagPlaceholder=function(t,e){var r=this;return t.isVoid?'':''+t.children.map(function(t){return t.visit(r)}).join(", ")+''},_SerializerVisitor.prototype.visitPlaceholder=function(t,e){return t.value?''+t.value+"":''},_SerializerVisitor.prototype.visitIcuPlaceholder=function(t,e){return''+t.value.visit(this)+""},_SerializerVisitor}(),o=new i,s=function(t){function _SerializerIgnoreIcuExpVisitor(){t.apply(this,arguments)}return n(_SerializerIgnoreIcuExpVisitor,t),_SerializerIgnoreIcuExpVisitor.prototype.visitIcu=function(t,e){var r=this,n=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(r)+"}"});return"{"+t.type+", "+n.join(", ")+"}"},_SerializerIgnoreIcuExpVisitor}(i),a={};a.Little=0,a.Big=1,a[a.Little]="Little",a[a.Big]="Big"},function(t,e,r){"use strict";function extractMessages(t,e,r,n){var i=new h(r,n);return i.extract(t,e)}function mergeTranslations(t,e,r,n,i){var o=new h(n,i);return o.merge(t,e,r)}function _isOpeningComment(t){return t instanceof n.a&&t.value&&t.value.startsWith("i18n")}function _isClosingComment(t){return t instanceof n.a&&t.value&&"/i18n"===t.value}function _getI18nAttr(t){return t.attrs.find(function(t){return t.name===u})||null}function _splitMeaningAndDesc(t){if(!t)return["",""];var e=t.indexOf("|");return e==-1?["",t]:[t.slice(0,e),t.slice(e+1)]}var n=r(61),i=r(83),o=r(138),s=r(475),a=r(140);e.a=extractMessages,e.b=mergeTranslations;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u="i18n",c="i18n-",l=/^i18n:?/,p=function(){function ExtractionResult(t,e){this.messages=t,this.errors=e}return ExtractionResult}(),f={};f.Extract=0,f.Merge=1,f[f.Extract]="Extract",f[f.Merge]="Merge";var h=function(){function _Visitor(t,e){this._implicitTags=t,this._implicitAttrs=e}return _Visitor.prototype.extract=function(t,e){var r=this;return this._init(f.Extract,e),t.forEach(function(t){return t.visit(r,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new p(this._messages,this._errors)},_Visitor.prototype.merge=function(t,e,r){this._init(f.Merge,r),this._translations=e;var o=new n.e("wrapper",[],t,null,null,null),s=o.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new i.b(s.children,this._errors)},_Visitor.prototype.visitExpansionCase=function(t,e){var r=n.g(this,t.expression,e);if(this._mode===f.Merge)return new n.c(t.value,r,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},_Visitor.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var r=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var i=n.g(this,t.cases,e);return this._mode===f.Merge&&(t=new n.b(t.switchValue,t.type,i,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=r,t},_Visitor.prototype.visitComment=function(t,e){var r=_isOpeningComment(t);if(r&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var i=_isClosingComment(t);if(i&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(i){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var o=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),s=this._translateMessage(t,o);return n.g(this,s)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else r&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(l,"").trim(),this._openTranslatableSection(t))},_Visitor.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},_Visitor.prototype.visitElement=function(t,e){var r=this;this._mayBeAddBlockChildren(t),this._depth++;var i,o=this._inI18nNode,s=this._inImplicitNode,a=[],u=_getI18nAttr(t),c=u?u.value:"",l=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,p=!s&&l;if(this._inImplicitNode=s||l,this._isInTranslatableSection||this._inIcu)(u||p)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==f.Extract&&n.g(this,t.children);else{if(u||p){this._inI18nNode=!0;var h=this._addMessage(t.children,c);i=this._translateMessage(t,h)}if(this._mode==f.Extract){var d=u||p;d&&this._openTranslatableSection(t),n.g(this,t.children),d&&this._closeTranslatableSection(t,t.children)}}if(this._mode===f.Merge){var m=i||t.children;m.forEach(function(t){var n=t.visit(r,e);n&&!r._isInTranslatableSection&&(a=a.concat(n))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=o,this._inImplicitNode=s,this._mode===f.Merge){var y=this._translateAttributes(t);return new n.e(t.name,y,a,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}},_Visitor.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},_Visitor.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=r.i(s.a)(e)},_Visitor.prototype._visitAttributesOf=function(t){var e=this,r={},n=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(c)}).forEach(function(t){return r[t.name.slice(c.length)]=t.value}),t.attrs.forEach(function(t){t.name in r?e._addMessage([t],r[t.name]):n.some(function(e){return t.name===e})&&e._addMessage([t])})},_Visitor.prototype._addMessage=function(t,e){if(!(0==t.length||1==t.length&&t[0]instanceof n.f&&!t[0].value)){var r=_splitMeaningAndDesc(e),i=r[0],o=r[1],s=this._createI18nMessage(t,i,o);return this._messages.push(s),s}},_Visitor.prototype._translateMessage=function(t,e){if(e&&this._mode===f.Merge){var r=this._translations.get(e);if(r)return r;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},_Visitor.prototype._translateAttributes=function(t){var e=this,r=t.attrs,i={};r.forEach(function(t){t.name.startsWith(c)&&(i[t.name.slice(c.length)]=_splitMeaningAndDesc(t.value)[0])});var o=[];return r.forEach(function(r){if(r.name!==u&&!r.name.startsWith(c))if(r.value&&""!=r.value&&i.hasOwnProperty(r.name)){var s=i[r.name],a=e._createI18nMessage([r],s,""),l=e._translations.get(a);if(l)if(0==l.length)o.push(new n.f(r.name,"",r.sourceSpan));else if(l[0]instanceof n.d){var p=l[0].value;o.push(new n.f(r.name,p,r.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+r.name+'" (id="'+e._translations.digest(a)+'")');else e._reportError(t,'Translation unavailable for attribute "'+r.name+'" (id="'+e._translations.digest(a)+'")')}else o.push(r)}),o},_Visitor.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},_Visitor.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(_Visitor.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),_Visitor.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var r=this._msgCountAtSectionStart,i=e.reduce(function(t,e){return t+(e instanceof n.a?0:1)},0);if(1==i)for(var s=this._messages.length-1;s>=r;s--){var a=this._messages[s].nodes;if(!(1==a.length&&a[0]instanceof o.a)){this._messages.splice(s,1);break}}this._msgCountAtSectionStart=void 0},_Visitor.prototype._reportError=function(t,e){this._errors.push(new a.a(t.sourceSpan,e))},_Visitor}()},function(t,e,r){"use strict";var n=(r(474),r(139));r.d(e,"a",function(){return n.a});r(287),r(141),r(288),r(196),r(290)},function(t,e,r){"use strict";var n=r(285);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function MessageBundle(t,e,r){this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=r,this._messages=[]}return MessageBundle.prototype.updateFromTemplate=function(t,e,i){var o=this._htmlParser.parse(t,e,!0,i);if(o.errors.length)return o.errors;var s=r.i(n.a)(o.rootNodes,i,this._implicitTags,this._implicitAttrs);if(s.errors.length)return s.errors;(a=this._messages).push.apply(a,s.messages);var a},MessageBundle.prototype.getMessages=function(){return this._messages},MessageBundle.prototype.write=function(t){return t.write(this._messages)},MessageBundle}()},function(t,e,r){"use strict";function getCtypeForTag(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}var n=r(61),i=r(292),o=r(284),s=r(138),a=r(140),u=r(141),c=r(289);r.d(e,"a",function(){return b});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var l=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},p="1.2",f="urn:oasis:names:tc:xliff:document:1.2",h="en",d="x",m="source",y="target",v="trans-unit",b=function(t){function Xliff(){t.apply(this,arguments)}return l(Xliff,t),Xliff.prototype.write=function(t){var e=this,r=new _,n={},i=[];t.forEach(function(t){var o=e.digest(t);if(!n[o]){n[o]=!0;var s=new c.a(v,{id:o,datatype:"html"});s.children.push(new c.b(8),new c.a(m,{},r.serialize(t.nodes)),new c.b(8),new c.a(y)),t.description&&s.children.push(new c.b(8),new c.a("note",{priority:"1",from:"description"},[new c.f(t.description)])),t.meaning&&s.children.push(new c.b(8),new c.a("note",{priority:"1",from:"meaning"},[new c.f(t.meaning)])),s.children.push(new c.b(6)),i.push(new c.b(6),s)}});var o=new c.a("body",{},i.concat([new c.b(4)])),s=new c.a("file",{"source-language":h,datatype:"plaintext",original:"ng2.template"},[new c.b(4),o,new c.b(2)]),a=new c.a("xliff",{version:p,xmlns:f},[new c.b(2),s,new c.b]);return c.c([new c.d({version:"1.0",encoding:"UTF-8"}),new c.b,a,new c.b])},Xliff.prototype.load=function(t,e){var r=new g,n=r.parse(t,e),i=n.mlNodesByMsgId,o=n.errors,s={},a=new S;if(Object.keys(i).forEach(function(t){var e=a.convert(i[t]),r=e.i18nNodes,n=e.errors;o.push.apply(o,n),s[t]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return s},Xliff.prototype.digest=function(t){return r.i(o.b)(t)},Xliff}(u.a),_=function(){function _WriteVisitor(){}return _WriteVisitor.prototype.visitText=function(t,e){return[new c.f(t.value)]},_WriteVisitor.prototype.visitContainer=function(t,e){var r=this,n=[];return t.children.forEach(function(t){return n.push.apply(n,t.visit(r))}),n},_WriteVisitor.prototype.visitIcu=function(t,e){if(this._isInIcu)throw new Error("xliff does not support nested ICU messages");this._isInIcu=!0;var r=[];return this._isInIcu=!1,r},_WriteVisitor.prototype.visitTagPlaceholder=function(t,e){var r=getCtypeForTag(t.tag),n=new c.a(d,{id:t.startName,ctype:r});if(t.isVoid)return[n];var i=new c.a(d,{id:t.closeName,ctype:r});return[n].concat(this.serialize(t.children),[i])},_WriteVisitor.prototype.visitPlaceholder=function(t,e){return[new c.a(d,{id:t.name})]},_WriteVisitor.prototype.visitIcuPlaceholder=function(t,e){return[new c.a(d,{id:t.name})]},_WriteVisitor.prototype.serialize=function(t){var e=this;return this._isInIcu=!1,(r=[]).concat.apply(r,t.map(function(t){return t.visit(e)}));var r},_WriteVisitor}(),g=function(){function XliffParser(){}return XliffParser.prototype.parse=function(t,e){this._unitMlNodes=[],this._mlNodesByMsgId={};var r=(new i.a).parse(t,e,!1);return this._errors=r.errors,n.g(this,r.rootNodes,null),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors}},XliffParser.prototype.visitElement=function(t,e){switch(t.name){case v:this._unitMlNodes=null;var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;this._mlNodesByMsgId.hasOwnProperty(i)?this._addError(t,"Duplicated translations for msg "+i):(n.g(this,t.children,null),this._unitMlNodes?this._mlNodesByMsgId[i]=this._unitMlNodes:this._addError(t,"Message "+i+" misses a translation"))}else this._addError(t,"<"+v+'> misses the "id" attribute');break;case m:break;case y:this._unitMlNodes=t.children;break;default:n.g(this,t.children,null)}},XliffParser.prototype.visitAttribute=function(t,e){},XliffParser.prototype.visitText=function(t,e){},XliffParser.prototype.visitComment=function(t,e){},XliffParser.prototype.visitExpansion=function(t,e){},XliffParser.prototype.visitExpansionCase=function(t,e){},XliffParser.prototype._addError=function(t,e){this._errors.push(new a.a(t.sourceSpan,e))},XliffParser}(),S=function(){function XmlToI18n(){}return XmlToI18n.prototype.convert=function(t){return this._errors=[],{i18nNodes:n.g(this,t),errors:this._errors}},XmlToI18n.prototype.visitText=function(t,e){return new s.a(t.value,t.sourceSpan)},XmlToI18n.prototype.visitElement=function(t,e){if(t.name===d){var r=t.attrs.find(function(t){return"id"===t.name});if(r)return new s.d("",r.value,t.sourceSpan);this._addError(t,"<"+d+'> misses the "id" attribute')}else this._addError(t,"Unexpected tag")},XmlToI18n.prototype.visitExpansion=function(t,e){},XmlToI18n.prototype.visitExpansionCase=function(t,e){},XmlToI18n.prototype.visitComment=function(t,e){},XmlToI18n.prototype.visitAttribute=function(t,e){},XmlToI18n.prototype._addError=function(t,e){this._errors.push(new a.a(t.sourceSpan,e))},XmlToI18n}()},function(t,e,r){"use strict";function serialize(t){return t.map(function(t){return t.visit(o)}).join("")}function _escapeXml(t){return p.reduce(function(t,e){return t.replace(e[0],e[1])},t)}e.c=serialize,r.d(e,"d",function(){return s}),r.d(e,"e",function(){return a}),r.d(e,"a",function(){return u}),r.d(e,"f",function(){return c}),r.d(e,"b",function(){return l});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=function(){function _Visitor(){}return _Visitor.prototype.visitTag=function(t){var e=this,r=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+r+"/>";var n=t.children.map(function(t){return t.visit(e)});return"<"+t.name+r+">"+n.join("")+""},_Visitor.prototype.visitText=function(t){return t.value},_Visitor.prototype.visitDeclaration=function(t){return""},_Visitor.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},_Visitor.prototype.visitDoctype=function(t){return""},_Visitor}(),o=new i,s=function(){function Declaration(t){var e=this;this.attrs={},Object.keys(t).forEach(function(r){e.attrs[r]=_escapeXml(t[r])})}return Declaration.prototype.visit=function(t){return t.visitDeclaration(this)},Declaration}(),a=function(){function Doctype(t,e){this.rootTag=t,this.dtd=e}return Doctype.prototype.visit=function(t){return t.visitDoctype(this)},Doctype}(),u=function(){function Tag(t,e,r){var n=this;void 0===e&&(e={}),void 0===r&&(r=[]),this.name=t,this.children=r,this.attrs={},Object.keys(e).forEach(function(t){n.attrs[t]=_escapeXml(e[t])})}return Tag.prototype.visit=function(t){return t.visitTag(this)},Tag}(),c=function(){function Text(t){this.value=_escapeXml(t)}return Text.prototype.visit=function(t){return t.visitText(this)},Text}(),l=function(t){function CR(e){void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))}return n(CR,t),CR}(c),p=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[//g,">"]]},function(t,e,r){"use strict";var n=r(61),i=r(292),o=r(138),s=r(140),a=r(141),u=r(196);r.d(e,"a",function(){return h});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var c=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},l="translationbundle",p="translation",f="ph",h=function(t){function Xtb(){t.apply(this,arguments)}return c(Xtb,t),Xtb.prototype.write=function(t){throw new Error("Unsupported")},Xtb.prototype.load=function(t,e){var r=new d,n=r.parse(t,e),i=n.mlNodesByMsgId,o=n.errors,s={},a=new m;if(Object.keys(i).forEach(function(t){var e=a.convert(i[t]),r=e.i18nNodes,n=e.errors;o.push.apply(o,n),s[t]=r}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return s},Xtb.prototype.digest=function(t){return r.i(u.a)(t)},Xtb.prototype.createNameMapper=function(t){return new u.b(t)},Xtb}(a.a),d=function(){function XtbParser(){}return XtbParser.prototype.parse=function(t,e){this._bundleDepth=0,this._mlNodesByMsgId={};var r=(new i.a).parse(t,e,!0);return this._errors=r.errors,n.g(this,r.rootNodes),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors}},XtbParser.prototype.visitElement=function(t,e){switch(t.name){case l:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+l+"> elements can not be nested"),n.g(this,t.children,null),this._bundleDepth--;break;case p:var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;this._mlNodesByMsgId.hasOwnProperty(i)?this._addError(t,"Duplicated translations for msg "+i):this._mlNodesByMsgId[i]=t.children}else this._addError(t,"<"+p+'> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},XtbParser.prototype.visitAttribute=function(t,e){},XtbParser.prototype.visitText=function(t,e){},XtbParser.prototype.visitComment=function(t,e){},XtbParser.prototype.visitExpansion=function(t,e){},XtbParser.prototype.visitExpansionCase=function(t,e){},XtbParser.prototype._addError=function(t,e){this._errors.push(new s.a(t.sourceSpan,e))},XtbParser}(),m=function(){function XmlToI18n(){}return XmlToI18n.prototype.convert=function(t){return this._errors=[],{i18nNodes:n.g(this,t),errors:this._errors}},XmlToI18n.prototype.visitText=function(t,e){return new o.a(t.value,t.sourceSpan)},XmlToI18n.prototype.visitExpansion=function(t,e){var r={};return n.g(this,t.cases).forEach(function(e){r[e.value]=new o.b(e.nodes,t.sourceSpan)}),new o.c(t.switchValue,t.type,r,t.sourceSpan)},XmlToI18n.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:n.g(this,t.expression)}},XmlToI18n.prototype.visitElement=function(t,e){if(t.name===f){var r=t.attrs.find(function(t){return"name"===t.name});if(r)return new o.d("",r.value,t.sourceSpan);this._addError(t,"<"+f+'> misses the "name" attribute')}else this._addError(t,"Unexpected tag")},XmlToI18n.prototype.visitComment=function(t,e){},XmlToI18n.prototype.visitAttribute=function(t,e){},XmlToI18n.prototype._addError=function(t,e){this._errors.push(new s.a(t.sourceSpan,e))},XmlToI18n}()},function(t,e,r){"use strict";function assertComponent(t){if(!t.isComponent)throw new Error("Could not compile '"+r.i(s.a)(t.type)+"' because it is not a component.")}var n=r(1),i=r(279),o=r(136),s=r(12),a=r(59),u=r(60),c=r(6),l=r(17),p=r(103),f=r(142),h=r(9),d=r(484),m=r(485),y=r(145),v=r(106),b=r(28),_=r(107);r.d(e,"a",function(){return w});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var g=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},S=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},w=function(){function JitCompiler(t,e,r,n,o,s,a,u,c){this._injector=t,this._metadataResolver=e,this._templateParser=r,this._styleCompiler=n,this._viewCompiler=o,this._ngModuleCompiler=s,this._directiveWrapperCompiler=a,this._compilerConfig=u,this._animationParser=c,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._animationCompiler=new i.a}return Object.defineProperty(JitCompiler.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),JitCompiler.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},JitCompiler.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},JitCompiler.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},JitCompiler.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},JitCompiler.prototype.getNgContentSelectors=function(t){var e=this._compiledTemplateCache.get(t);if(!e)throw new Error("The component "+r.i(c.e)(t)+" is not yet compiled!");return e.compMeta.template.ngContentSelectors},JitCompiler.prototype._compileModuleAndComponents=function(t,e){var r=this,n=this._loadModules(t,e),i=function(){return r._compileComponents(t,null),r._compileModule(t)};return e?new b.h(i()):new b.h(null,n.then(i))},JitCompiler.prototype._compileModuleAndAllComponents=function(t,e){var r=this,i=this._loadModules(t,e),o=function(){var e=[];return r._compileComponents(t,e),new n.ModuleWithComponentFactories(r._compileModule(t),e)};return e?new b.h(o()):new b.h(null,i.then(o))},JitCompiler.prototype._loadModules=function(t,e){var r=this,n=[],i=this._metadataResolver.getNgModuleMetadata(t);return i.transitiveModule.modules.forEach(function(t){n.push(r._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(n)},JitCompiler.prototype._compileModule=function(t){var e=this,i=this._compiledNgModuleCache.get(t);if(!i){var o=this._metadataResolver.getNgModuleMetadata(t),a=[this._metadataResolver.getProviderMetadata(new s.u(n.Compiler,{useFactory:function(){return new C(e,o.type.reference)}}))],u=this._ngModuleCompiler.compile(o,a);u.dependencies.forEach(function(t){t.placeholder.reference=e._assertComponentKnown(t.comp.reference,!0).proxyComponentFactory}),i=this._compilerConfig.useJit?r.i(m.a)("/"+r.i(s.a)(o.type)+"/module.ngfactory.js",u.statements,u.ngModuleFactoryVar):r.i(d.a)(u.statements,u.ngModuleFactoryVar),this._compiledNgModuleCache.set(o.type.reference,i)}return i},JitCompiler.prototype._compileComponents=function(t,e){var r=this,n=this._metadataResolver.getNgModuleMetadata(t),i=new Map,o=new Set;n.transitiveModule.modules.forEach(function(t){var n=r._metadataResolver.getNgModuleMetadata(t.reference);n.declaredDirectives.forEach(function(t){i.set(t.reference,n);var s=r._metadataResolver.getDirectiveMetadata(t.reference);if(r._compileDirectiveWrapper(s,n),s.isComponent&&(o.add(r._createCompiledTemplate(s,n)),e)){var a=r._createCompiledHostTemplate(s.type.reference,n);o.add(a),e.push(a.proxyComponentFactory)}})}),n.transitiveModule.modules.forEach(function(t){var e=r._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=r._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=i.get(t.reference);o.add(r._createCompiledHostTemplate(t.reference,e))})}),e.entryComponents.forEach(function(t){var e=i.get(t.reference);o.add(r._createCompiledHostTemplate(t.reference,e))})}),o.forEach(function(t){return r._compileTemplate(t)})},JitCompiler.prototype.clearCacheFor=function(t){this._compiledNgModuleCache.delete(t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache.delete(t);var e=this._compiledTemplateCache.get(t);e&&this._compiledTemplateCache.delete(t)},JitCompiler.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},JitCompiler.prototype._createCompiledHostTemplate=function(t,e){if(!e)throw new Error("Component "+r.i(c.e)(t)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(t);if(!n){var i=this._metadataResolver.getDirectiveMetadata(t);assertComponent(i);var o=function(){};o.overriddenName=r.i(s.a)(i.type)+"_Host";var a=r.i(s.v)(o,i);n=new E(!0,i.selector,i.type,a,e,[i.type]),this._compiledHostTemplateCache.set(t,n)}return n},JitCompiler.prototype._createCompiledTemplate=function(t,e){var r=this._compiledTemplateCache.get(t.type.reference);return r||(assertComponent(t),r=new E(!1,t.selector,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,r)),r},JitCompiler.prototype._assertComponentKnown=function(t,e){var n=e?this._compiledHostTemplateCache.get(t):this._compiledTemplateCache.get(t);if(!n)throw new Error("Illegal state: Compiled view for component "+r.i(c.e)(t)+" (host: "+e+") does not exist!");return n},JitCompiler.prototype._assertDirectiveWrapper=function(t){var e=this._compiledDirectiveWrapperCache.get(t);if(!e)throw new Error("Illegal state: Directive wrapper for "+r.i(c.e)(t)+" has not been compiled!");return e},JitCompiler.prototype._compileDirectiveWrapper=function(t,e){var n,i=this._directiveWrapperCompiler.compile(t),o=i.statements;n=this._compilerConfig.useJit?r.i(m.a)("/"+r.i(s.a)(e.type)+"/"+r.i(s.a)(t.type)+"/wrapper.ngfactory.js",o,i.dirWrapperClassVar):r.i(d.a)(o,i.dirWrapperClassVar),this._compiledDirectiveWrapperCache.set(t.type.reference,n)},JitCompiler.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,i=new Map,o=this._styleCompiler.compileComponent(n);o.externalStylesheets.forEach(function(t){i.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(o.componentStylesheet,i);var a=this._animationParser.parseComponent(n),u=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),c=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),l=this._templateParser.parse(n,n.template.template,u,c,t.ngModule.schemas,r.i(s.a)(n.type)),p=this._animationCompiler.compile(r.i(s.a)(n.type),a),f=this._viewCompiler.compileComponent(n,l,h.a(o.componentStylesheet.stylesVar),c,p);f.dependencies.forEach(function(t){var r;if(t instanceof _.a){var n=t;r=e._assertComponentKnown(n.comp.reference,!1),n.placeholder.reference=r.proxyViewClass}else if(t instanceof _.b){var i=t;r=e._assertComponentKnown(i.comp.reference,!0),i.placeholder.reference=r.proxyComponentFactory}else if(t instanceof _.c){var o=t;o.placeholder.reference=e._assertDirectiveWrapper(o.dir.reference)}});var y,v=(b=o.componentStylesheet.statements).concat.apply(b,p.map(function(t){return t.statements})).concat(f.statements);y=this._compilerConfig.useJit?r.i(m.a)("/"+r.i(s.a)(t.ngModule.type)+"/"+r.i(s.a)(t.compType)+"/"+(t.isHost?"host":"component")+".ngfactory.js",v,f.viewClassVar):r.i(d.a)(v,f.viewClassVar),t.compiled(y);var b}},JitCompiler.prototype._resolveStylesCompileResult=function(t,e){var r=this;t.dependencies.forEach(function(t,n){var i=e.get(t.moduleUrl),o=r._resolveAndEvalStylesCompileResult(i,e);t.valuePlaceholder.reference=o})},JitCompiler.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?r.i(m.a)("/"+t.meta.moduleUrl+".ngstyle.js",t.statements,t.stylesVar):r.i(d.a)(t.statements,t.stylesVar)},JitCompiler=g([r.i(l.a)(),S("design:paramtypes",[n.Injector,p.a,v.a,y.a,_.d,f.a,u.a,a.a,o.a])],JitCompiler)}(),E=function(){function CompiledTemplate(t,e,i,o,s,a){this.isHost=t,this.compType=i,this.compMeta=o,this.ngModule=s,this.directives=a,this._viewClass=null,this.isCompiled=!1;var u=this;this.proxyViewClass=function(){if(!u._viewClass)throw new Error("Illegal state: CompiledTemplate for "+r.i(c.e)(u.compType)+" is not compiled yet!");return u._viewClass.apply(this,arguments)},this.proxyComponentFactory=t?new n.ComponentFactory(e,this.proxyViewClass,i.reference):null}return CompiledTemplate.prototype.compiled=function(t){this._viewClass=t,this.proxyViewClass.prototype=t.prototype,this.isCompiled=!0},CompiledTemplate}(),C=function(){function ModuleBoundCompiler(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(ModuleBoundCompiler.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),ModuleBoundCompiler.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},ModuleBoundCompiler.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},ModuleBoundCompiler.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},ModuleBoundCompiler.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},ModuleBoundCompiler.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},ModuleBoundCompiler.prototype.clearCache=function(){this._delegate.clearCache()},ModuleBoundCompiler.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},ModuleBoundCompiler}()},function(t,e,r){"use strict";var n=r(83),i=r(482);r.d(e,"a",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},s=function(t){function XmlParser(){t.call(this,i.a)}return o(XmlParser,t),XmlParser.prototype.parse=function(e,r,n){return void 0===n&&(n=!1),t.prototype.parse.call(this,e,r,n,null)},XmlParser}(n.a)},function(t,e,r){"use strict";function convertValueToOutputAst(t,e){return void 0===e&&(e=null),r.i(n.b)(t,new s,e)}var n=r(28),i=r(9);e.a=convertValueToOutputAst;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o="$quoted$",s=function(){function _ValueOutputAstTransformer(){}return _ValueOutputAstTransformer.prototype.visitArray=function(t,e){var o=this;return i.h(t.map(function(t){return r.i(n.b)(t,o,null)}),e)},_ValueOutputAstTransformer.prototype.visitStringMap=function(t,e){var s=this,a=[],u=new Set(t&&t[o]);return Object.keys(t).forEach(function(e){a.push(new i.J(e,r.i(n.b)(t[e],s,null),u.has(e)))}),new i.K(a,e)},_ValueOutputAstTransformer.prototype.visitPrimitive=function(t,e){return i.f(t,e)},_ValueOutputAstTransformer.prototype.visitOther=function(t,e){return t instanceof i.L?t:i.g({reference:t})},_ValueOutputAstTransformer}()},function(t,e,r){"use strict";function _transformProvider(t,e){var r=e.useExisting,n=e.useValue,i=e.deps;return{token:t.token,useClass:t.useClass,useExisting:r,useFactory:t.useFactory,useValue:n,deps:i,multi:t.multi}}function _transformProviderAst(t,e){var r=e.eager,n=e.providers;return new a.b(t.token,t.multiProvider,t.eager||r,n,t.providerType,t.lifecycleHooks,t.sourceSpan)}function _resolveProvidersFromDirectives(t,e,r){var n=new Map;t.forEach(function(t){var i={token:{identifier:t.type},useClass:t.type};_resolveProviders([i],t.isComponent?a.c.Component:a.c.Directive,!0,e,r,n)});var i=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return i.forEach(function(t){_resolveProviders(t.providers,a.c.PublicService,!1,e,r,n),_resolveProviders(t.viewProviders,a.c.PrivateService,!1,e,r,n)}),n}function _resolveProviders(t,e,o,s,u,l){t.forEach(function(t){var p=l.get(r.i(n.j)(t.token));if(r.i(i.c)(p)&&!!p.multiProvider!=!!t.multi&&u.push(new c("Mixing multi and non multi provider is not possible for token "+r.i(n.k)(p.token),s)),p)t.multi||(p.providers.length=0),p.providers.push(t);else{var f=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[];p=new a.b(t.token,t.multi,o||f.length>0,[t],e,f,s),l.set(r.i(n.j)(t.token),p)}})}function _getViewQueries(t){var e=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return _addQueryToTokenMap(e,t)}),e}function _getContentQueries(t){var e=new Map;return t.forEach(function(t){t.queries&&t.queries.forEach(function(t){return _addQueryToTokenMap(e,t)})}),e}function _addQueryToTokenMap(t,e){e.selectors.forEach(function(i){var o=t.get(r.i(n.j)(i));o||(o=[],t.set(r.i(n.j)(i),o)),o.push(e)})}var n=r(12),i=r(6),o=r(16),s=r(33),a=r(42);r.d(e,"b",function(){return l}),r.d(e,"c",function(){return p}),r.d(e,"a",function(){return f});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},c=function(t){function ProviderError(e,r){t.call(this,r,e)}return u(ProviderError,t),ProviderError}(s.a),l=function(){function ProviderViewContext(t,e){var o=this;this.component=t,this.sourceSpan=e,this.errors=[],this.viewQueries=_getViewQueries(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){r.i(i.d)(o.viewProviders.get(r.i(n.j)(t.token)))&&o.viewProviders.set(r.i(n.j)(t.token),!0)})}return ProviderViewContext}(),p=function(){function ProviderElementContext(t,e,s,a,u,c,l){var p=this;this.viewContext=t,this._parent=e,this._isViewRoot=s,this._directiveAsts=a,this._sourceSpan=l,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._attrs={},u.forEach(function(t){return p._attrs[t.name]=t.value});var f=a.map(function(t){return t.directive});this._allProviders=_resolveProvidersFromDirectives(f,l,t.errors),this._contentQueries=_getContentQueries(f);var h=new Map;Array.from(this._allProviders.values()).forEach(function(t){p._addQueryReadsTo(t.token,h)}),c.forEach(function(t){p._addQueryReadsTo({value:t.name},h)}),r.i(i.c)(h.get(r.i(o.e)(o.b.ViewContainerRef)))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||r.i(i.c)(h.get(r.i(n.j)(t.token)));e&&p._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return ProviderElementContext.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(ProviderElementContext.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(ProviderElementContext.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,r){return t.indexOf(e.directive.type)-t.indexOf(r.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(ProviderElementContext.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),ProviderElementContext.prototype._addQueryReadsTo=function(t,e){this._getQueriesFor(t).forEach(function(o){var s=o.read||t;r.i(i.d)(e.get(r.i(n.j)(s)))&&e.set(r.i(n.j)(s),!0)})},ProviderElementContext.prototype._getQueriesFor=function(t){for(var e,i=[],o=this,s=0;null!==o;)e=o._contentQueries.get(r.i(n.j)(t)),e&&i.push.apply(i,e.filter(function(t){return t.descendants||s<=1})),o._directiveAsts.length>0&&s++,o=o._parent;return e=this.viewContext.viewQueries.get(r.i(n.j)(t)),e&&i.push.apply(i,e),i},ProviderElementContext.prototype._getOrCreateLocalProvider=function(t,e,o){var s=this,u=this._allProviders.get(r.i(n.j)(e));if(!u||(t===a.c.Directive||t===a.c.PublicService)&&u.providerType===a.c.PrivateService||(t===a.c.PrivateService||t===a.c.PublicService)&&u.providerType===a.c.Builtin)return null;var l=this._transformedProviders.get(r.i(n.j)(e));if(l)return l;if(r.i(i.c)(this._seenProviders.get(r.i(n.j)(e))))return this.viewContext.errors.push(new c("Cannot instantiate cyclic dependency! "+r.i(n.k)(e),this._sourceSpan)),null;this._seenProviders.set(r.i(n.j)(e),!0);var p=u.providers.map(function(t){var e,n=t.useValue,a=t.useExisting;if(r.i(i.c)(t.useExisting)){var c=s._getDependency(u.providerType,{token:t.useExisting},o);r.i(i.c)(c.token)?a=c.token:(a=null,n=c.value)}else if(t.useFactory){var l=t.deps||t.useFactory.diDeps;e=l.map(function(t){return s._getDependency(u.providerType,t,o)})}else if(t.useClass){var l=t.deps||t.useClass.diDeps;e=l.map(function(t){return s._getDependency(u.providerType,t,o)})}return _transformProvider(t,{useExisting:a,useValue:n,deps:e})});return l=_transformProviderAst(u,{eager:o,providers:p}),this._transformedProviders.set(r.i(n.j)(e),l),l},ProviderElementContext.prototype._getLocalDependency=function(t,e,s){if(void 0===s&&(s=null),e.isAttribute){var u=this._attrs[e.token.value];return{isValue:!0,value:null==u?null:u}}if(r.i(i.c)(e.token)){if(t===a.c.Directive||t===a.c.Component){if(r.i(n.j)(e.token)===r.i(o.e)(o.b.Renderer)||r.i(n.j)(e.token)===r.i(o.e)(o.b.ElementRef)||r.i(n.j)(e.token)===r.i(o.e)(o.b.ChangeDetectorRef)||r.i(n.j)(e.token)===r.i(o.e)(o.b.TemplateRef))return e;r.i(n.j)(e.token)===r.i(o.e)(o.b.ViewContainerRef)&&(this._hasViewContainer=!0)}if(r.i(n.j)(e.token)===r.i(o.e)(o.b.Injector))return e;if(r.i(i.c)(this._getOrCreateLocalProvider(t,e.token,s)))return e}return null},ProviderElementContext.prototype._getDependency=function(t,e,o){void 0===o&&(o=null);var s=this,u=o,l=null;if(e.isSkipSelf||(l=this._getLocalDependency(t,e,o)),e.isSelf)!l&&e.isOptional&&(l={isValue:!0,value:null});else{for(;!l&&s._parent;){var p=s;s=s._parent,p._isViewRoot&&(u=!1),l=s._getLocalDependency(a.c.PublicService,e,u)}l||(l=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===r.i(n.j)(e.token)||r.i(i.c)(this.viewContext.viewProviders.get(r.i(n.j)(e.token)))?e:e.isOptional?l={isValue:!0,value:null}:null)}return l||this.viewContext.errors.push(new c("No provider for "+r.i(n.k)(e.token),this._sourceSpan)),l},ProviderElementContext}(),f=function(){function NgModuleProviderAnalyzer(t,e,r){var n=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){var e={token:{identifier:t},useClass:t};_resolveProviders([e],a.c.PublicService,!0,r,n._errors,n._allProviders)}),_resolveProviders(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),a.c.PublicService,!1,r,this._errors,this._allProviders)}return NgModuleProviderAnalyzer.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},NgModuleProviderAnalyzer.prototype._getOrCreateLocalProvider=function(t,e){var o=this,s=this._allProviders.get(r.i(n.j)(t));if(!s)return null;var a=this._transformedProviders.get(r.i(n.j)(t));if(a)return a;if(r.i(i.c)(this._seenProviders.get(r.i(n.j)(t))))return this._errors.push(new c("Cannot instantiate cyclic dependency! "+r.i(n.k)(t),s.sourceSpan)),null;this._seenProviders.set(r.i(n.j)(t),!0);var u=s.providers.map(function(t){var n,a=t.useValue,u=t.useExisting;if(r.i(i.c)(t.useExisting)){var c=o._getDependency({token:t.useExisting},e,s.sourceSpan);r.i(i.c)(c.token)?u=c.token:(u=null,a=c.value)}else if(t.useFactory){var l=t.deps||t.useFactory.diDeps;n=l.map(function(t){return o._getDependency(t,e,s.sourceSpan)})}else if(t.useClass){var l=t.deps||t.useClass.diDeps;n=l.map(function(t){return o._getDependency(t,e,s.sourceSpan)})}return _transformProvider(t,{useExisting:u,useValue:a,deps:n})});return a=_transformProviderAst(s,{eager:e,providers:u}),this._transformedProviders.set(r.i(n.j)(t),a),a},NgModuleProviderAnalyzer.prototype._getDependency=function(t,e,s){void 0===e&&(e=null);var a=!1;!t.isSkipSelf&&r.i(i.c)(t.token)&&(r.i(n.j)(t.token)===r.i(o.e)(o.b.Injector)||r.i(n.j)(t.token)===r.i(o.e)(o.b.ComponentFactoryResolver)?a=!0:r.i(i.c)(this._getOrCreateLocalProvider(t.token,e))&&(a=!0));var u=t;return t.isSelf&&!a&&(t.isOptional?u={isValue:!0,value:null}:this._errors.push(new c("No provider for "+r.i(n.k)(t.token),s))),u},NgModuleProviderAnalyzer}()},function(t,e,r){"use strict";function isStyleUrlResolvable(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(s);return null===e||"package"==e[1]||"asset"==e[1]}function extractStyleUrls(t,e,r){var s=[],a=r.replace(o,"").replace(i,function(){for(var r=[],n=0;n1)if(l[0]==f){u=l[1],this._validatePropertyOrAttributeName(u,e.sourceSpan,!0),s=calcPossibleSecurityContexts(this._schemaRegistry,t,u,!0);var m=u.indexOf(":");if(m>-1){var y=u.substring(0,m),v=u.substring(m+1);u=r.i(o.b)(y,v)}i=c.f.Attribute}else l[0]==h?(u=l[1],i=c.f.Class,s=[n.SecurityContext.NONE]):l[0]==d&&(a=l.length>2?l[2]:null,u=l[1],i=c.f.Style,s=[n.SecurityContext.STYLE]);return null===u&&(u=this._schemaRegistry.getMappedPropName(e.name),s=calcPossibleSecurityContexts(this._schemaRegistry,t,u,!1),i=c.f.Property,this._validatePropertyOrAttributeName(u,e.sourceSpan,!1)),new c.e(u,i,1===s.length?s[0]:null,s.length>1,e.expression,a,e.sourceSpan)},BindingParser.prototype.parseEvent=function(t,e,r,n,i){_isAnimationLabel(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,r,i)):this._parseEvent(t,e,r,n,i)},BindingParser.prototype._parseAnimationEvent=function(t,e,n,i){var o=r.i(u.c)(t,[t,""]),s=o[0],a=o[1].toLowerCase();if(a)switch(a){case"start":case"done":var l=this._parseAction(e,n);i.push(new c.g(s,null,a,l,n));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+s+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+s+") is missing its phase value name (start or done are currently supported)",n)},BindingParser.prototype._parseEvent=function(t,e,n,i,o){var s=r.i(u.a)(t,[null,t]),a=s[0],l=s[1],p=this._parseAction(e,n);i.push([t,p.source]),o.push(new c.g(l,a,null,p,n))},BindingParser.prototype._parseAction=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseAction(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),!n||n.ast instanceof i.d?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",r)):(this._checkPipes(n,e),n)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},BindingParser.prototype._reportError=function(t,e,r){void 0===r&&(r=s.e.FATAL),this._targetErrors.push(new s.a(e,t,r))},BindingParser.prototype._reportExpressionParserErrors=function(t,e){for(var r=0,n=t;r0&&(_=t.value)}),e=normalizeNgContentSelect(e);var g=t.name.toLowerCase(),S=d.OTHER;return r.i(n.e)(g)[1]==o?S=d.NG_CONTENT:g==l?S=d.STYLE:g==p?S=d.SCRIPT:g==s&&v==c&&(S=d.STYLESHEET),new m(S,e,y,b,_)}function normalizeNgContentSelect(t){return null===t||0===t.length?"*":t}var n=r(71);e.a=preparseElement,r.d(e,"b",function(){return d});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i="select",o="ng-content",s="link",a="rel",u="href",c="stylesheet",l="style",p="script",f="ngNonBindable",h="ngProjectAs",d={};d.NG_CONTENT=0,d.STYLE=1,d.STYLESHEET=2,d.SCRIPT=3,d.OTHER=4,d[d.NG_CONTENT]="NG_CONTENT",d[d.STYLE]="STYLE",d[d.STYLESHEET]="STYLESHEET",d[d.SCRIPT]="SCRIPT",d[d.OTHER]="OTHER";var m=function(){function PreparsedElement(t,e,r,n,i){this.type=t,this.selectAttr=e,this.hrefAttr=r,this.nonBindable=n,this.projectAs=i}return PreparsedElement}()},function(t,e,r){"use strict";function createInjectInternalCondition(t,e,n,o){var s;return s=e>0?u.f(t).lowerEquals(h.f.requestNodeIndex).and(h.f.requestNodeIndex.lowerEquals(u.f(t+e))):u.f(t).identical(h.f.requestNodeIndex),new u.u(h.f.token.identical(r.i(i.b)(n.token)).and(s),[new u.t(o)])}function createProviderProperty(t,e,r,n,i){var o,s,a=i.view;if(r?(o=u.h(e),s=new u.i(u.m)):(o=e[0],s=e[0].type),s||(s=u.m),n)a.fields.push(new u.c(t,s)),a.createMethod.addStmt(u.e.prop(t).set(o).toStmt());else{var c="_"+t;a.fields.push(new u.c(c,s));var l=new p.a(a);l.resetDebugInfo(i.nodeIndex,i.sourceAst),l.addStmt(new u.u(u.e.prop(c).isBlank(),[u.e.prop(c).set(o).toStmt()])),l.addStmt(new u.t(u.e.prop(c))),a.getters.push(new u.H(t,l.finish(),s))}return u.e.prop(t)}var n=r(12),i=r(40),o=r(60),s=r(6),a=r(16),u=r(9),c=r(293),l=r(42),p=r(203),f=r(299),h=r(146),d=r(204),m=r(73);r.d(e,"b",function(){return v}),r.d(e,"a",function(){return b});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var y=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},v=function(){function CompileNode(t,e,r,n,i){this.parent=t,this.view=e,this.nodeIndex=r,this.renderNode=n,this.sourceAst=i}return CompileNode.prototype.isNull=function(){return!this.renderNode},CompileNode.prototype.isRootElement=function(){return this.view!=this.parent.view},CompileNode}(),b=function(t){function CompileElement(e,n,i,o,s,c,l,p,f,h,d){var m=this;t.call(this,e,n,i,o,s),this.component=c,this._directives=l,this._resolvedProvidersArray=p,this.hasViewContainer=f,this.hasEmbeddedView=h,this.compViewExpr=null,this.instances=new Map,this.directiveWrapperInstance=new Map,this._queryCount=0,this._queries=new Map,this.contentNodesByNgContentIndex=null,this.referenceTokens={},d.forEach(function(t){return m.referenceTokens[t.name]=t.value}),this.elementRef=u.g(r.i(a.a)(a.b.ElementRef)).instantiate([this.renderNode]),this.instances.set(r.i(a.e)(a.b.ElementRef),this.elementRef),this.instances.set(r.i(a.e)(a.b.Injector),u.e.callMethod("injector",[u.f(this.nodeIndex)])),this.instances.set(r.i(a.e)(a.b.Renderer),u.e.prop("renderer")),(this.hasViewContainer||this.hasEmbeddedView)&&this._createViewContainer(),this.component&&this._createComponentFactoryResolver()}return y(CompileElement,t),CompileElement.createNull=function(){return new CompileElement(null,null,null,null,null,null,[],[],!1,!1,[])},CompileElement.prototype._createViewContainer=function(){var t="_vc_"+this.nodeIndex,e=this.isRootElement()?null:this.parent.nodeIndex;this.view.fields.push(new u.c(t,u.d(r.i(a.a)(a.b.ViewContainer)),[u.k.Private]));var n=u.e.prop(t).set(u.g(r.i(a.a)(a.b.ViewContainer)).instantiate([u.f(this.nodeIndex),u.f(e),u.e,this.renderNode])).toStmt();this.view.createMethod.addStmt(n),this.viewContainer=u.e.prop(t),this.instances.set(r.i(a.e)(a.b.ViewContainer),this.viewContainer),this.view.viewContainers.push(this.viewContainer)},CompileElement.prototype._createComponentFactoryResolver=function(){var t=this,e=this.component.entryComponents.map(function(e){var r={reference:null};return t.view.targetDependencies.push(new d.b(e,r)),r});if(e&&0!==e.length){var n=u.g(r.i(a.a)(a.b.CodegenComponentFactoryResolver)).instantiate([u.h(e.map(function(t){return u.g(t)})),r.i(m.b)(this.view,r.i(a.f)(a.b.ComponentFactoryResolver),!1)]),i={token:r.i(a.f)(a.b.ComponentFactoryResolver),useValue:n};this._resolvedProvidersArray.unshift(new l.b(i.token,!1,!0,[i],l.c.PrivateService,[],this.sourceAst.sourceSpan))}},CompileElement.prototype.setComponentView=function(t){this.compViewExpr=t,this.contentNodesByNgContentIndex=new Array(this.component.template.ngContentSelectors.length);for(var e=0;e0&&a++,o=o.parent;return e=this.view.componentView.viewQueries.get(r.i(n.j)(t)),r.i(s.c)(e)&&i.push.apply(i,e),i},CompileElement.prototype._addQuery=function(t,e){var i="_query_"+r.i(n.k)(t.selectors[0])+"_"+this.nodeIndex+"_"+this._queryCount++,o=r.i(f.a)(i,this.view),s=new f.b(t,o,e,this.view);return r.i(f.c)(this._queries,s),s},CompileElement.prototype._getLocalDependency=function(t,e){var i=null;if(r.i(s.c)(e.token)){if(!i&&r.i(n.j)(e.token)===r.i(a.e)(a.b.ChangeDetectorRef))return t===l.c.Component?this.compViewExpr.prop("ref"):r.i(m.c)(u.e.prop("ref"),this.view,this.view.componentView);if(!i){var o=this._resolvedProviders.get(r.i(n.j)(e.token));if(o&&(t===l.c.Directive||t===l.c.PublicService)&&o.providerType===l.c.PrivateService)return null;i=this.instances.get(r.i(n.j)(e.token))}}return i},CompileElement.prototype._getDependency=function(t,e){var n=this,i=null;for(e.isValue&&(i=u.f(e.value)),i||e.isSkipSelf||(i=this._getLocalDependency(t,e));!i&&!n.parent.isNull();)n=n.parent,i=n._getLocalDependency(l.c.PublicService,{token:e.token});return i||(i=r.i(m.b)(this.view,e.token,e.isOptional)),i||(i=u.b),r.i(m.c)(i,this.view,n.view)},CompileElement}(v)},function(t,e,r){"use strict";function createQueryValues(t){return i.b.flatten(t.values.map(function(t){return t instanceof u?mapNestedViews(t.view.declarationElement.viewContainer,t.view,createQueryValues(t)):t}))}function mapNestedViews(t,e,r){var n=r.map(function(t){return s.I(s.e.name,s.a("nestedView"),t)});return t.callMethod("mapNestedViews",[s.a(e.className),s.B([new s.o("nestedView",e.classType)],[new s.t(s.h(n))],s.m)])}function createQueryList(t,e){e.fields.push(new s.c(t,s.d(r.i(o.a)(o.b.QueryList),[s.m])));var n=s.e.prop(t);return e.createMethod.addStmt(s.e.prop(t).set(s.g(r.i(o.a)(o.b.QueryList),[s.m]).instantiate([])).toStmt()),n}function addQueryToTokenMap(t,e){e.meta.selectors.forEach(function(i){var o=t.get(r.i(n.j)(i));o||(o=[],t.set(r.i(n.j)(i),o)),o.push(e)})}var n=r(12),i=r(69),o=r(16),s=r(9),a=r(73);r.d(e,"b",function(){return c}),e.a=createQueryList,e.c=addQueryToTokenMap;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u=function(){function ViewQueryValues(t,e){this.view=t,this.values=e}return ViewQueryValues}(),c=function(){function CompileQuery(t,e,r,n){this.meta=t,this.queryList=e,this.ownerDirectiveExpression=r,this.view=n,this._values=new u(n,[])}return CompileQuery.prototype.addValue=function(t,e){for(var n=e,i=[];n&&n!==this.view;){var o=n.declarationElement;i.unshift(o),n=o.view}var s=r.i(a.c)(this.queryList,e,this.view),c=this._values;i.forEach(function(t){var e=c.values.length>0?c.values[c.values.length-1]:null;if(e instanceof u&&e.view===t.embeddedView)c=e;else{var r=new u(t.embeddedView,[]);c.values.push(r),c=r}}),c.values.push(t),i.length>0&&e.dirtyParentQueriesMethod.addStmt(s.callMethod("setDirty",[]).toStmt())},CompileQuery.prototype._isStatic=function(){return!this._values.values.some(function(t){return t instanceof u})},CompileQuery.prototype.generateStatements=function(t,e){var r=createQueryValues(this._values),n=[this.queryList.callMethod("reset",[s.h(r)]).toStmt()];if(this.ownerDirectiveExpression){var i=this.meta.first?this.queryList.prop("first"):this.queryList;n.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(i).toStmt())}this.meta.first||n.push(this.queryList.callMethod("notifyOnChanges",[]).toStmt()),this.meta.first&&this._isStatic()?t.addStmts(n):e.addStmt(new s.u(this.queryList.prop("dirty"),n))},CompileQuery}()},function(t,e,r){"use strict";function getViewType(t,e){return e>0?a.n.EMBEDDED:t.isHost?a.n.HOST:a.n.COMPONENT}var n=r(12),i=r(99),o=r(6),s=r(9),a=r(14),u=r(203),c=r(490),l=r(299),p=r(73);r.d(e,"c",function(){return f}),r.d(e,"b",function(){return h}),r.d(e,"a",function(){return d});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var f={};f.Node=0,f.ViewContainer=1,f.NgContent=2,f[f.Node]="Node",f[f.ViewContainer]="ViewContainer",f[f.NgContent]="NgContent";var h=function(){function CompileViewRootNode(t,e,r){this.type=t,this.expr=e,this.ngContentIndex=r}return CompileViewRootNode}(),d=function(){function CompileView(t,e,i,o,c,f,h,d,m){var y=this;this.component=t,this.genConfig=e,this.pipeMetas=i,this.styles=o,this.animations=c,this.viewIndex=f,this.declarationElement=h,this.templateVariableBindings=d,this.targetDependencies=m,this.viewChildren=[],this.nodes=[],this.rootNodes=[],this.lastRenderNode=s.b,this.viewContainers=[],this.methods=[],this.ctorStmts=[],this.fields=[],this.getters=[],this.disposables=[],this.purePipes=new Map,this.pipes=[],this.locals=new Map,this.literalArrayCount=0,this.literalMapCount=0,this.pipeCount=0,this.createMethod=new u.a(this),this.animationBindingsMethod=new u.a(this),this.injectorGetMethod=new u.a(this),this.updateContentQueriesMethod=new u.a(this),this.dirtyParentQueriesMethod=new u.a(this),this.updateViewQueriesMethod=new u.a(this),this.detectChangesInInputsMethod=new u.a(this),this.detectChangesRenderPropertiesMethod=new u.a(this),this.afterContentLifecycleCallbacksMethod=new u.a(this),this.afterViewLifecycleCallbacksMethod=new u.a(this),this.destroyMethod=new u.a(this),this.detachMethod=new u.a(this),this.viewType=getViewType(t,f),this.className=r.i(p.a)(t,f),this.classType=s.P(s.a(this.className)),this.classExpr=s.a(this.className),this.viewType===a.n.COMPONENT||this.viewType===a.n.HOST?this.componentView=this:this.componentView=this.declarationElement.view.componentView,this.componentContext=r.i(p.c)(s.e.prop("context"),this,this.componentView);var v=new Map;if(this.viewType===a.n.COMPONENT){var b=s.e.prop("context");this.component.viewQueries.forEach(function(t,e){var i="_viewQuery_"+r.i(n.k)(t.selectors[0])+"_"+e,o=r.i(l.a)(i,y),s=new l.b(t,o,b,y);r.i(l.c)(v,s)})}this.viewQueries=v,d.forEach(function(t){y.locals.set(t[1],s.e.prop("context").prop(t[0]))}),this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}return CompileView.prototype.callPipe=function(t,e,r){return c.a.call(this,t,[e].concat(r))},CompileView.prototype.getLocal=function(t){if(t==i.d.event.name)return i.d.event;for(var e=this,n=e.locals.get(t);!n&&r.i(o.c)(e.declarationElement.view);)e=e.declarationElement.view,n=e.locals.get(t);return r.i(o.c)(n)?r.i(p.c)(n,this,e):null},CompileView.prototype.finish=function(){var t=this;Array.from(this.viewQueries.values()).forEach(function(e){return e.forEach(function(e){return e.generateStatements(t.createMethod,t.updateViewQueriesMethod)})})},CompileView}()},function(t,e,r){"use strict";r.d(e,"d",function(){return n}),r.d(e,"a",function(){return i}),r.d(e,"b",function(){return o}),r.d(e,"c",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n="true",i="*",o="*",s="void"},function(t,e,r){"use strict";var n=r(7);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function AnimationGroupPlayer(t){var e=this;this._players=t,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null;var i=0,o=this._players.length;0==o?r.i(n.a)(function(){return e._onFinish()}):this._players.forEach(function(t){t.parentPlayer=e,t.onDone(function(){++i>=o&&e._onFinish()})})}return AnimationGroupPlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},AnimationGroupPlayer.prototype.init=function(){this._players.forEach(function(t){return t.init()})},AnimationGroupPlayer.prototype.onStart=function(t){this._onStartFns.push(t)},AnimationGroupPlayer.prototype.onDone=function(t){this._onDoneFns.push(t)},AnimationGroupPlayer.prototype.hasStarted=function(){return this._started},AnimationGroupPlayer.prototype.play=function(){r.i(n.b)(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(t){return t.play()})},AnimationGroupPlayer.prototype.pause=function(){this._players.forEach(function(t){return t.pause()})},AnimationGroupPlayer.prototype.restart=function(){this._players.forEach(function(t){return t.restart()})},AnimationGroupPlayer.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},AnimationGroupPlayer.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._destroyed=!0)},AnimationGroupPlayer.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},AnimationGroupPlayer.prototype.setPosition=function(t){this._players.forEach(function(e){e.setPosition(t)})},AnimationGroupPlayer.prototype.getPosition=function(){var t=0;return this._players.forEach(function(e){var r=e.getPosition();t=Math.min(r,t)}),t},Object.defineProperty(AnimationGroupPlayer.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),AnimationGroupPlayer}()},function(t,e,r){"use strict";r.d(e,"a",function(){return n});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function AnimationKeyframe(t,e){this.offset=t,this.styles=e}return AnimationKeyframe}()},function(t,e,r){"use strict";var n=r(84),i=r(157);r.d(e,"a",function(){return o});var o=function(){function AnimationQueue(t){this._zone=t,this.entries=[]}return AnimationQueue.prototype.enqueue=function(t){this.entries.push(t)},AnimationQueue.prototype.flush=function(){var t=this;this.entries.length&&this._zone.runOutsideAngular(function(){Promise.resolve(null).then(function(){return t._triggerAnimations()})})},AnimationQueue.prototype._triggerAnimations=function(){for(i.a.assertNotInAngularZone();this.entries.length;){var t=this.entries.shift();t.hasStarted()||t.play()}},AnimationQueue.decorators=[{type:n.a}],AnimationQueue.ctorParameters=function(){return[{type:i.a}]},AnimationQueue}()},function(t,e,r){"use strict";var n=r(7),i=r(205);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function AnimationSequencePlayer(t){var e=this;this._players=t,this._currentIndex=0,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null,this._players.forEach(function(t){t.parentPlayer=e}),this._onNext(!1)}return AnimationSequencePlayer.prototype._onNext=function(t){var e=this;if(!this._finished)if(0==this._players.length)this._activePlayer=new i.b,r.i(n.a)(function(){return e._onFinish()});else if(this._currentIndex>=this._players.length)this._activePlayer=new i.b,this._onFinish();else{var o=this._players[this._currentIndex++];o.onDone(function(){return e._onNext(!0)}),this._activePlayer=o,t&&o.play()}},AnimationSequencePlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},AnimationSequencePlayer.prototype.init=function(){this._players.forEach(function(t){return t.init()})},AnimationSequencePlayer.prototype.onStart=function(t){this._onStartFns.push(t)},AnimationSequencePlayer.prototype.onDone=function(t){this._onDoneFns.push(t)},AnimationSequencePlayer.prototype.hasStarted=function(){return this._started},AnimationSequencePlayer.prototype.play=function(){r.i(n.b)(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._activePlayer.play()},AnimationSequencePlayer.prototype.pause=function(){this._activePlayer.pause()},AnimationSequencePlayer.prototype.restart=function(){this.reset(),this._players.length>0&&this._players[0].restart()},AnimationSequencePlayer.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},AnimationSequencePlayer.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},AnimationSequencePlayer.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._destroyed=!0,this._activePlayer=new i.b)},AnimationSequencePlayer.prototype.setPosition=function(t){this._players[0].setPosition(t)},AnimationSequencePlayer.prototype.getPosition=function(){return this._players[0].getPosition()},Object.defineProperty(AnimationSequencePlayer.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),AnimationSequencePlayer}()},function(t,e,r){"use strict";r.d(e,"a",function(){return n});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function AnimationStyles(t){this.styles=t}return AnimationStyles}()},function(t,e,r){"use strict";r.d(e,"a",function(){return n});var n=function(){function AnimationTransitionEvent(t){var e=t.fromState,r=t.toState,n=t.totalTime,i=t.phaseName;this.fromState=e,this.toState=r,this.totalTime=n,this.phaseName=i}return AnimationTransitionEvent}()},function(t,e,r){"use strict";function animate(t,e){void 0===e&&(e=null);var i=e;if(!r.i(n.b)(i)){var o={};i=new f([o],1)}return new h(t,i)}function group(t){return new y(t)}function sequence(t){return new m(t)}function style(t){var e,i=null;return"string"==typeof t?e=[t]:(e=Array.isArray(t)?t:[t],e.forEach(function(t){var e=t.offset;r.i(n.b)(e)&&(i=null==i?parseFloat(e):i)})),new f(e,i)}function state(t,e){return new u(t,e)}function keyframes(t){return new p(t)}function transition(t,e){var r=Array.isArray(e)?new m(e):e;return new c(t,r)}function trigger(t,e){return new s(t,e)}var n=r(7);r.d(e,"a",function(){return o}),r.d(e,"b",function(){return s}),r.d(e,"c",function(){return a}),r.d(e,"d",function(){return u}),r.d(e,"e",function(){return c}),r.d(e,"f",function(){return l}),r.d(e,"g",function(){return p}),r.d(e,"h",function(){return f}),r.d(e,"i",function(){return h}),r.d(e,"j",function(){return d}),r.d(e,"k",function(){return m}),r.d(e,"l",function(){return y}),e.m=animate,e.n=group,e.o=sequence,e.p=style,e.q=state,e.r=keyframes,e.s=transition,e.t=trigger;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},o="*",s=function(){function AnimationEntryMetadata(t,e){this.name=t,this.definitions=e}return AnimationEntryMetadata}(),a=function(){function AnimationStateMetadata(){}return AnimationStateMetadata}(),u=function(t){function AnimationStateDeclarationMetadata(e,r){t.call(this),this.stateNameExpr=e,this.styles=r}return i(AnimationStateDeclarationMetadata,t),AnimationStateDeclarationMetadata}(a),c=function(t){function AnimationStateTransitionMetadata(e,r){t.call(this),this.stateChangeExpr=e,this.steps=r}return i(AnimationStateTransitionMetadata,t),AnimationStateTransitionMetadata}(a),l=function(){function AnimationMetadata(){}return AnimationMetadata}(),p=function(t){function AnimationKeyframesSequenceMetadata(e){t.call(this),this.steps=e}return i(AnimationKeyframesSequenceMetadata,t),AnimationKeyframesSequenceMetadata}(l),f=function(t){function AnimationStyleMetadata(e,r){void 0===r&&(r=null),t.call(this),this.styles=e,this.offset=r}return i(AnimationStyleMetadata,t),AnimationStyleMetadata}(l),h=function(t){function AnimationAnimateMetadata(e,r){t.call(this),this.timings=e,this.styles=r}return i(AnimationAnimateMetadata,t),AnimationAnimateMetadata}(l),d=function(t){function AnimationWithStepsMetadata(){t.call(this)}return i(AnimationWithStepsMetadata,t),Object.defineProperty(AnimationWithStepsMetadata.prototype,"steps",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),AnimationWithStepsMetadata}(l),m=function(t){function AnimationSequenceMetadata(e){t.call(this),this._steps=e}return i(AnimationSequenceMetadata,t),Object.defineProperty(AnimationSequenceMetadata.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),AnimationSequenceMetadata}(d),y=function(t){function AnimationGroupMetadata(e){t.call(this),this._steps=e}return i(AnimationGroupMetadata,t),Object.defineProperty(AnimationGroupMetadata.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),AnimationGroupMetadata}(d)},function(t,e,r){"use strict";r.d(e,"a",function(){return n});var n=function(){function ChangeDetectorRef(){}return ChangeDetectorRef.prototype.markForCheck=function(){},ChangeDetectorRef.prototype.detach=function(){},ChangeDetectorRef.prototype.detectChanges=function(){},ChangeDetectorRef.prototype.checkNoChanges=function(){},ChangeDetectorRef.prototype.reattach=function(){},ChangeDetectorRef}()},function(t,e,r){"use strict";var n=r(7);r.d(e,"a",function(){return i}),r.d(e,"b",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function DefaultKeyValueDifferFactory(){}return DefaultKeyValueDifferFactory.prototype.supports=function(t){return t instanceof Map||r.i(n.d)(t)},DefaultKeyValueDifferFactory.prototype.create=function(t){return new o},DefaultKeyValueDifferFactory}(),o=function(){function DefaultKeyValueDiffer(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(DefaultKeyValueDiffer.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),DefaultKeyValueDiffer.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},DefaultKeyValueDiffer.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},DefaultKeyValueDiffer.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},DefaultKeyValueDiffer.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},DefaultKeyValueDiffer.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},DefaultKeyValueDiffer.prototype.diff=function(t){if(t){if(!(t instanceof Map||r.i(n.d)(t)))throw new Error("Error trying to diff '"+t+"'")}else t=new Map;return this.check(t)?this:null},DefaultKeyValueDiffer.prototype.onDestroy=function(){},DefaultKeyValueDiffer.prototype.check=function(t){var e=this;this._reset();var r=this._records,n=this._mapHead,i=null,o=null,a=!1;return this._forEach(t,function(t,u){var c;n&&u===n.key?(c=n,e._maybeAddToChanges(c,t)):(a=!0,null!==n&&(e._removeFromSeq(i,n),e._addToRemovals(n)),r.has(u)?(c=r.get(u),e._maybeAddToChanges(c,t)):(c=new s(u),r.set(u,c),c.currentValue=t,e._addToAdditions(c))),a&&(e._isInRemovals(c)&&e._removeFromRemovals(c),null==o?e._mapHead=c:o._next=c),i=n,o=c,n=n&&n._next}),this._truncate(i,n),this.isDirty},DefaultKeyValueDiffer.prototype._reset=function(){if(this.isDirty){var t=void 0;for(t=this._previousMapHead=this._mapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},DefaultKeyValueDiffer.prototype._truncate=function(t,e){for(;null!==e;){null===t?this._mapHead=null:t._next=null;var r=e._next;this._addToRemovals(e),t=e,e=r}for(var n=this._removalsHead;null!==n;n=n._nextRemoved)n.previousValue=n.currentValue,n.currentValue=null,this._records.delete(n.key)},DefaultKeyValueDiffer.prototype._maybeAddToChanges=function(t,e){r.i(n.j)(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},DefaultKeyValueDiffer.prototype._isInRemovals=function(t){return t===this._removalsHead||null!==t._nextRemoved||null!==t._prevRemoved},DefaultKeyValueDiffer.prototype._addToRemovals=function(t){null===this._removalsHead?this._removalsHead=this._removalsTail=t:(this._removalsTail._nextRemoved=t,t._prevRemoved=this._removalsTail,this._removalsTail=t)},DefaultKeyValueDiffer.prototype._removeFromSeq=function(t,e){var r=e._next;null===t?this._mapHead=r:t._next=r,e._next=null},DefaultKeyValueDiffer.prototype._removeFromRemovals=function(t){var e=t._prevRemoved,r=t._nextRemoved;null===e?this._removalsHead=r:e._nextRemoved=r,null===r?this._removalsTail=e:r._prevRemoved=e,t._prevRemoved=t._nextRemoved=null},DefaultKeyValueDiffer.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},DefaultKeyValueDiffer.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},DefaultKeyValueDiffer.prototype.toString=function(){var t,e=[],i=[],o=[],s=[],a=[];for(t=this._mapHead;null!==t;t=t._next)e.push(r.i(n.c)(t));for(t=this._previousMapHead;null!==t;t=t._nextPrevious)i.push(r.i(n.c)(t));for(t=this._changesHead;null!==t;t=t._nextChanged)o.push(r.i(n.c)(t));for(t=this._additionsHead;null!==t;t=t._nextAdded)s.push(r.i(n.c)(t));for(t=this._removalsHead;null!==t;t=t._nextRemoved)a.push(r.i(n.c)(t));return"map: "+e.join(", ")+"\nprevious: "+i.join(", ")+"\nadditions: "+s.join(", ")+"\nchanges: "+o.join(", ")+"\nremovals: "+a.join(", ")+"\n"},DefaultKeyValueDiffer.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(r){return e(t[r],r)})},DefaultKeyValueDiffer}(),s=function(){function KeyValueChangeRecord(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return KeyValueChangeRecord.prototype.toString=function(){return r.i(n.j)(this.previousValue,this.currentValue)?r.i(n.c)(this.key):r.i(n.c)(this.key)+"["+r.i(n.c)(this.previousValue)+"->"+r.i(n.c)(this.currentValue)+"]"},KeyValueChangeRecord}()},function(t,e,r){"use strict";var n=r(34),i=r(7);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function IterableDiffers(t){this.factories=t}return IterableDiffers.create=function(t,e){if(r.i(i.b)(e)){var n=e.factories.slice();return t=t.concat(n),new IterableDiffers(t)}return new IterableDiffers(t)},IterableDiffers.extend=function(t){return{provide:IterableDiffers,useFactory:function(e){if(!e)throw new Error("Cannot extend IterableDiffers without a parent injector");return IterableDiffers.create(t,e)},deps:[[IterableDiffers,new n.l,new n.i]]}},IterableDiffers.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(r.i(i.b)(e))return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+r.i(i.l)(t)+"'")},IterableDiffers}()},function(t,e,r){"use strict";var n=r(34),i=r(7);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function KeyValueDiffers(t){this.factories=t}return KeyValueDiffers.create=function(t,e){if(r.i(i.b)(e)){var n=e.factories.slice();return t=t.concat(n),new KeyValueDiffers(t)}return new KeyValueDiffers(t)},KeyValueDiffers.extend=function(t){return{provide:KeyValueDiffers,useFactory:function(e){if(!e)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return KeyValueDiffers.create(t,e)},deps:[[KeyValueDiffers,new n.l,new n.i]]}},KeyValueDiffers.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(r.i(i.b)(e))return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},KeyValueDiffers}()},function(t,e,r){"use strict";function asNativeElements(t){return t.map(function(t){return t.nativeElement})}function _queryElementChildren(t,e,r){t.childNodes.forEach(function(t){t instanceof s&&(e(t)&&r.push(t),_queryElementChildren(t,e,r))})}function _queryNodeChildren(t,e,r){t instanceof s&&t.childNodes.forEach(function(t){e(t)&&r.push(t),t instanceof s&&_queryNodeChildren(t,e,r)})}function getDebugNode(t){return a.get(t)}function indexDebugNode(t){a.set(t.nativeNode,t)}function removeDebugNodeFromIndex(t){a.delete(t.nativeNode)}r.d(e,"g",function(){return i}),r.d(e,"b",function(){return o}),r.d(e,"a",function(){return s}),e.c=asNativeElements,e.d=getDebugNode,e.e=indexDebugNode,e.f=removeDebugNodeFromIndex;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=function(){function EventListener(t,e){this.name=t,this.callback=e}return EventListener}(),o=function(){function DebugNode(t,e,r){this._debugInfo=r,this.nativeNode=t,e&&e instanceof s?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(DebugNode.prototype,"injector",{get:function(){return this._debugInfo?this._debugInfo.injector:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugNode.prototype,"componentInstance",{get:function(){return this._debugInfo?this._debugInfo.component:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugNode.prototype,"context",{get:function(){return this._debugInfo?this._debugInfo.context:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugNode.prototype,"references",{get:function(){return this._debugInfo?this._debugInfo.references:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugNode.prototype,"providerTokens",{get:function(){return this._debugInfo?this._debugInfo.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugNode.prototype,"source",{get:function(){return this._debugInfo?this._debugInfo.source:null},enumerable:!0,configurable:!0}),DebugNode}(),s=function(t){function DebugElement(e,r,n){t.call(this,e,r,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}return n(DebugElement,t),DebugElement.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},DebugElement.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);e!==-1&&(t.parent=null,this.childNodes.splice(e,1))},DebugElement.prototype.insertChildrenAfter=function(t,e){var r=this.childNodes.indexOf(t);if(r!==-1){var n=this.childNodes.slice(0,r+1),i=this.childNodes.slice(r+1);this.childNodes=n.concat(e,i);for(var o=0;o-1)return e.push(t[r]),e;e.push(t[r])}return e}function constructResolvingPath(t){if(t.length>1){var e=findFirstClosedCycle(t.slice().reverse()),n=e.map(function(t){return r.i(i.c)(t.token)});return" ("+n.join(" -> ")+")"}return""}var n=r(151),i=r(7);r.d(e,"f",function(){return s}),r.d(e,"h",function(){return a}),r.d(e,"e",function(){return u}),r.d(e,"g",function(){return c}),r.d(e,"b",function(){return l}),r.d(e,"c",function(){return p}),r.d(e,"d",function(){return f}),r.d(e,"a",function(){return h});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},s=function(t){function AbstractProviderError(e,r,n){t.call(this,"DI Error"),this.keys=[r],this.injectors=[e],this.constructResolvingMessage=n,this.message=this.constructResolvingMessage(this.keys)}return o(AbstractProviderError,t),AbstractProviderError.prototype.addKey=function(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)},AbstractProviderError}(n.a),a=function(t){function NoProviderError(e,n){t.call(this,e,n,function(t){var e=r.i(i.c)(t[0].token);return"No provider for "+e+"!"+constructResolvingPath(t)})}return o(NoProviderError,t),NoProviderError}(s),u=function(t){function CyclicDependencyError(e,r){t.call(this,e,r,function(t){return"Cannot instantiate cyclic dependency!"+constructResolvingPath(t)})}return o(CyclicDependencyError,t),CyclicDependencyError}(s),c=function(t){function InstantiationError(e,r,n,i){t.call(this,"DI Error",r),this.keys=[i],this.injectors=[e]}return o(InstantiationError,t),InstantiationError.prototype.addKey=function(t,e){this.injectors.push(t),this.keys.push(e)},Object.defineProperty(InstantiationError.prototype,"message",{get:function(){var t=r.i(i.c)(this.keys[0].token);return this.originalError.message+": Error during instantiation of "+t+"!"+constructResolvingPath(this.keys)+"."},enumerable:!0,configurable:!0}),Object.defineProperty(InstantiationError.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0}),InstantiationError}(n.b),l=function(t){function InvalidProviderError(e){t.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+e)}return o(InvalidProviderError,t),InvalidProviderError}(n.a),p=function(t){function NoAnnotationError(e,r){t.call(this,NoAnnotationError._genMessage(e,r))}return o(NoAnnotationError,t),NoAnnotationError._genMessage=function(t,e){for(var n=[],o=0,s=e.length;o=0;t--)this.remove(t)},ViewContainerRef_}()},function(t,e,r){"use strict";var n=r(309),i=r(150);r.d(e,"c",function(){return s}),r.d(e,"b",function(){return a}),r.d(e,"a",function(){return u});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},s=function(t){function ViewRef(){t.apply(this,arguments)}return o(ViewRef,t),ViewRef.prototype.destroy=function(){},ViewRef.prototype.destroyed=function(){},ViewRef.prototype.onDestroy=function(t){},ViewRef}(n.a),a=function(t){function EmbeddedViewRef(){t.apply(this,arguments)}return o(EmbeddedViewRef,t),EmbeddedViewRef.prototype.context=function(){},EmbeddedViewRef.prototype.rootNodes=function(){},EmbeddedViewRef}(s),u=function(){function ViewRef_(t,e){this._view=t,this.animationQueue=e,this._view=t,this._originalMode=this._view.cdMode}return Object.defineProperty(ViewRef_.prototype,"internalView",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(ViewRef_.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0}),Object.defineProperty(ViewRef_.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(ViewRef_.prototype,"destroyed",{get:function(){return this._view.destroyed},enumerable:!0,configurable:!0}),ViewRef_.prototype.markForCheck=function(){this._view.markPathToRootAsCheckOnce()},ViewRef_.prototype.detach=function(){this._view.cdMode=i.b.Detached},ViewRef_.prototype.detectChanges=function(){this._view.detectChanges(!1),this.animationQueue.flush()},ViewRef_.prototype.checkNoChanges=function(){this._view.detectChanges(!0)},ViewRef_.prototype.reattach=function(){this._view.cdMode=this._originalMode,this.markForCheck()},ViewRef_.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},ViewRef_.prototype.destroy=function(){this._view.detachAndDestroy()},ViewRef_}()},function(t,e,r){"use strict";var n=r(513);r.d(e,"a",function(){return n.a}),r.d(e,"b",function(){return n.b}),r.d(e,"c",function(){return n.c}),r.d(e,"d",function(){return n.d}),r.d(e,"e",function(){return n.e}),r.d(e,"f",function(){return n.f}),r.d(e,"g",function(){return n.g});var i=r(514);r.d(e,"h",function(){return i.a}),r.d(e,"i",function(){return i.b}),r.d(e,"j",function(){return i.c}),r.d(e,"k",function(){return i.d}),r.d(e,"l",function(){return i.e}),r.d(e,"m",function(){return i.f}),r.d(e,"n",function(){return i.g});var o=r(325);r.d(e,"o",function(){return o.c}),r.d(e,"p",function(){return o.d}),r.d(e,"q",function(){return o.e}),r.d(e,"r",function(){return o.f}),r.d(e,"s",function(){return o.g}),r.d(e,"t",function(){return o.h}),r.d(e,"u",function(){return o.i}),r.d(e,"v",function(){return o.j});var s=r(515);r.d(e,"w",function(){return s.a}),r.d(e,"x",function(){return s.b}),r.d(e,"y",function(){return s.c});var a=r(326);r.d(e,"z",function(){return a.b})},function(t,e,r){"use strict";r.d(e,"a",function(){return n}),r.d(e,"b",function(){return i}),r.d(e,"h",function(){return o}),r.d(e,"j",function(){return s}),r.d(e,"g",function(){return a}),r.d(e,"i",function(){return u}),r.d(e,"d",function(){return c}),r.d(e,"c",function(){return l}),r.d(e,"f",function(){return p}),r.d(e,"e",function(){return f});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n={};n.OnInit=0,n.OnDestroy=1,n.DoCheck=2,n.OnChanges=3,n.AfterContentInit=4,n.AfterContentChecked=5,n.AfterViewInit=6,n.AfterViewChecked=7,n[n.OnInit]="OnInit",n[n.OnDestroy]="OnDestroy",n[n.DoCheck]="DoCheck",n[n.OnChanges]="OnChanges",n[n.AfterContentInit]="AfterContentInit",n[n.AfterContentChecked]="AfterContentChecked",n[n.AfterViewInit]="AfterViewInit",n[n.AfterViewChecked]="AfterViewChecked";var i=[n.OnInit,n.OnDestroy,n.DoCheck,n.OnChanges,n.AfterContentInit,n.AfterContentChecked,n.AfterViewInit,n.AfterViewChecked],o=function(){function OnChanges(){}return OnChanges.prototype.ngOnChanges=function(t){},OnChanges}(),s=function(){function OnInit(){}return OnInit.prototype.ngOnInit=function(){},OnInit}(),a=function(){function DoCheck(){}return DoCheck.prototype.ngDoCheck=function(){},DoCheck}(),u=function(){function OnDestroy(){}return OnDestroy.prototype.ngOnDestroy=function(){},OnDestroy}(),c=function(){function AfterContentInit(){}return AfterContentInit.prototype.ngAfterContentInit=function(){},AfterContentInit}(),l=function(){function AfterContentChecked(){}return AfterContentChecked.prototype.ngAfterContentChecked=function(){},AfterContentChecked}(),p=function(){function AfterViewInit(){}return AfterViewInit.prototype.ngAfterViewInit=function(){},AfterViewInit}(),f=function(){function AfterViewChecked(){}return AfterViewChecked.prototype.ngAfterViewChecked=function(){},AfterViewChecked}()},function(t,e,r){"use strict";r.d(e,"b",function(){return n}),r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n={};n.Emulated=0,n.Native=1,n.None=2,n[n.Emulated]="Emulated",n[n.Native]="Native",n[n.None]="None";var i=function(){function ViewMetadata(t){var e=void 0===t?{}:t,r=e.templateUrl,n=e.template,i=e.encapsulation,o=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=r,this.template=n,this.styleUrls=s,this.styles=o,this.encapsulation=i,this.animations=a,this.interpolation=u}return ViewMetadata}()},function(t,e,r){"use strict";function convertTsickleDecoratorIntoMetadata(t){return t?t.map(function(t){var e=t.type,r=e.annotationCls,n=t.args?t.args:[];return new(r.bind.apply(r,[void 0].concat(n)))}):[]}function getParentCtor(t){var e=Object.getPrototypeOf(t.prototype),r=e?e.constructor:null;return r||Object}var n=r(7),i=r(220);r.d(e,"a",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,s=function(){function ReflectionCapabilities(t){this._reflect=t||n.h.Reflect}return ReflectionCapabilities.prototype.isReflectionEnabled=function(){return!0},ReflectionCapabilities.prototype.factory=function(t){return function(){for(var e=[],r=0;r-1?l=l.replace("=JSONP_CALLBACK&","="+c+"&"):l.lastIndexOf("=JSONP_CALLBACK")===l.length-"=JSONP_CALLBACK".length&&(l=l.substring(0,l.length-"=JSONP_CALLBACK".length)+("="+c));var f=a._script=r.build(l),h=function(e){if(a.readyState!==s.a.Cancelled){if(a.readyState=s.a.Done,r.cleanup(f),!a._finished){var i=new o.b({body:p,type:s.d.Error,url:l});return n&&(i=n.merge(i)),void t.error(new u.a(i))}var c=new o.b({body:a._responseData,url:l});a.baseResponseOptions&&(c=a.baseResponseOptions.merge(c)),t.next(new u.a(c)),t.complete()}},d=function(e){if(a.readyState!==s.a.Cancelled){a.readyState=s.a.Done,r.cleanup(f);var i=new o.b({body:e.message,type:s.d.Error});n&&(i=n.merge(i)),t.error(new u.a(i))}};return f.addEventListener("load",h),f.addEventListener("error",d),r.send(f),function(){a.readyState=s.a.Cancelled,f.removeEventListener("load",h),f.removeEventListener("error",d),a._dom.cleanup(f)}})}return l(JSONPConnection_,t),JSONPConnection_.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==s.a.Cancelled&&(this._responseData=t)},JSONPConnection_}(h),m=function(t){function JSONPBackend(){t.apply(this,arguments)}return l(JSONPBackend,t),JSONPBackend}(a.b),y=function(t){function JSONPBackend_(e,r){t.call(this),this._browserJSONP=e,this._baseResponseOptions=r}return l(JSONPBackend_,t),JSONPBackend_.prototype.createConnection=function(t){return new d(t,this._browserJSONP,this._baseResponseOptions)},JSONPBackend_.decorators=[{type:n.Injectable}],JSONPBackend_.ctorParameters=function(){return[{type:c.a},{type:o.b}]},JSONPBackend_}(m)},function(t,e,r){"use strict";var n=r(1),i=r(98),o=r(0),s=(r.n(o),r(165)),a=r(64),u=r(116),c=r(166),l=r(117),p=r(231),f=r(229);r.d(e,"c",function(){return d}),r.d(e,"a",function(){return m}),r.d(e,"b",function(){return y});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var h=/^\)\]\}',?\n/,d=function(){function XHRConnection(t,e,n){var i=this;this.request=t,this.response=new o.Observable(function(o){var l=e.build();l.open(a.b[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(l.withCredentials=t.withCredentials);var f=function(){var e=1223===l.status?204:l.status,i=null;204!==e&&(i="undefined"==typeof l.response?l.responseText:l.response,"string"==typeof i&&(i=i.replace(h,""))),0===e&&(e=i?200:0);var a=u.a.fromResponseHeaderString(l.getAllResponseHeaders()),f=r.i(c.c)(l)||t.url,d=l.statusText||"OK",m=new s.b({body:i,status:e,headers:a,statusText:d,url:f});null!=n&&(m=n.merge(m));var y=new p.a(m);return y.ok=r.i(c.d)(e),y.ok?(o.next(y),void o.complete()):void o.error(y)},d=function(t){var e=new s.b({body:t,type:a.d.Error,status:l.status,statusText:l.statusText});null!=n&&(e=n.merge(e)),o.error(new p.a(e))};if(i.setDetectedContentType(t,l),null==t.headers&&(t.headers=new u.a),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return l.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=l.responseType)switch(t.responseType){case a.c.ArrayBuffer:l.responseType="arraybuffer";break;case a.c.Json:l.responseType="json";break;case a.c.Text:l.responseType="text";break;case a.c.Blob:l.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return l.addEventListener("load",f),l.addEventListener("error",d),l.send(i.request.getBody()),function(){l.removeEventListener("load",f),l.removeEventListener("error",d),l.abort()}})}return XHRConnection.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case a.e.NONE:break;case a.e.JSON:e.setRequestHeader("content-type","application/json");break;case a.e.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case a.e.TEXT:e.setRequestHeader("content-type","text/plain");break;case a.e.BLOB:var r=t.blob();r.type&&e.setRequestHeader("content-type",r.type)}},XHRConnection}(),m=function(){function CookieXSRFStrategy(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return CookieXSRFStrategy.prototype.configureRequest=function(t){var e=i.__platform_browser_private__.getDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},CookieXSRFStrategy}(),y=function(){function XHRBackend(t,e,r){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=r}return XHRBackend.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new d(t,this._browserXHR,this._baseResponseOptions)},XHRBackend.decorators=[{type:n.Injectable}],XHRBackend.ctorParameters=function(){return[{type:f.a},{type:s.b},{type:l.c}]},XHRBackend}()},function(t,e,r){"use strict";var n=r(166),i=r(167);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function Body(){}return Body.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},Body.prototype.text=function(){return this._body instanceof i.b?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},Body.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:r.i(n.a)(this.text())},Body.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},Body}()},function(t,e,r){"use strict";function httpRequest(t,e){return t.createConnection(e).response}function mergeOptions(t,e,r,n){var o=t;return e?o.merge(new i.b({method:e.method||r,url:e.url||n,search:e.search,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType})):o.merge(new i.b({method:r,url:n}))}var n=r(1),i=r(230),o=r(64),s=r(117),a=r(342);r.d(e,"a",function(){return c}),r.d(e,"b",function(){return l});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},c=function(){function Http(t,e){this._backend=t,this._defaultOptions=e}return Http.prototype.request=function(t,e){var r;if("string"==typeof t)r=httpRequest(this._backend,new a.a(mergeOptions(this._defaultOptions,e,o.b.Get,t)));else{if(!(t instanceof a.a))throw new Error("First argument must be a url string or Request instance.");r=httpRequest(this._backend,t)}return r},Http.prototype.get=function(t,e){return this.request(new a.a(mergeOptions(this._defaultOptions,e,o.b.Get,t)))},Http.prototype.post=function(t,e,r){return this.request(new a.a(mergeOptions(this._defaultOptions.merge(new i.b({body:e})),r,o.b.Post,t)))},Http.prototype.put=function(t,e,r){return this.request(new a.a(mergeOptions(this._defaultOptions.merge(new i.b({body:e})),r,o.b.Put,t)))},Http.prototype.delete=function(t,e){return this.request(new a.a(mergeOptions(this._defaultOptions,e,o.b.Delete,t)))},Http.prototype.patch=function(t,e,r){return this.request(new a.a(mergeOptions(this._defaultOptions.merge(new i.b({body:e})),r,o.b.Patch,t)))},Http.prototype.head=function(t,e){return this.request(new a.a(mergeOptions(this._defaultOptions,e,o.b.Head,t)))},Http.prototype.options=function(t,e){return this.request(new a.a(mergeOptions(this._defaultOptions,e,o.b.Options,t)))},Http.decorators=[{type:n.Injectable}],Http.ctorParameters=function(){return[{type:s.b},{type:i.b}]},Http}(),l=function(t){function Jsonp(e,r){t.call(this,e,r)}return u(Jsonp,t),Jsonp.prototype.request=function(t,e){var r;if("string"==typeof t&&(t=new a.a(mergeOptions(this._defaultOptions,e,o.b.Get,t))),!(t instanceof a.a))throw new Error("First argument must be a url string or Request instance.");if(t.method!==o.b.Get)throw new Error("JSONP requests must use GET request method.");return r=httpRequest(this._backend,t)},Jsonp.decorators=[{type:n.Injectable}],Jsonp.ctorParameters=function(){return[{type:s.b},{type:i.b}]},Jsonp}(c)},function(t,e,r){"use strict";var n=r(340),i=r(64),o=r(116),s=r(166),a=r(167);r.d(e,"a",function(){return c});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},c=function(t){function Request(e){t.call(this);var n=e.url;if(this.url=e.url,e.search){var i=e.search.toString();if(i.length>0){var a="?";this.url.indexOf("?")!=-1&&(a="&"==this.url[this.url.length-1]?"":"&"),this.url=n+a+i}}this._body=e.body,this.method=r.i(s.b)(e.method),this.headers=new o.a(e.headers),this.contentType=this.detectContentType(),this.withCredentials=e.withCredentials,this.responseType=e.responseType}return u(Request,t),Request.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return i.e.JSON;case"application/x-www-form-urlencoded":return i.e.FORM;case"multipart/form-data":return i.e.FORM_DATA;case"text/plain":case"text/html":return i.e.TEXT;case"application/octet-stream":return this._body instanceof d?i.e.ARRAY_BUFFER:i.e.BLOB;default:return this.detectContentTypeFromBody()}},Request.prototype.detectContentTypeFromBody=function(){return null==this._body?i.e.NONE:this._body instanceof a.b?i.e.FORM:this._body instanceof f?i.e.FORM_DATA:this._body instanceof h?i.e.BLOB:this._body instanceof d?i.e.ARRAY_BUFFER:this._body&&"object"==typeof this._body?i.e.JSON:i.e.TEXT},Request.prototype.getBody=function(){switch(this.contentType){case i.e.JSON:return this.text();case i.e.FORM:return this.text();case i.e.FORM_DATA:return this._body;case i.e.TEXT:return this.text();case i.e.BLOB:return this.blob();case i.e.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},Request}(n.a),l=function(){},p="object"==typeof window?window:l,f=p.FormData||l,h=p.Blob||l,d=p.ArrayBuffer||l},function(t,e,r){"use strict";var n=r(135),i=r(1),o=r(533),s=r(344);r.d(e,"a",function(){return a});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var a=[o.a,{provide:i.COMPILER_OPTIONS,useValue:{providers:[{provide:n.a,useClass:s.a}]},multi:!0}]},function(t,e,r){"use strict";var n=r(135),i=r(1);r.d(e,"a",function(){return s});var o=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},s=function(t){function ResourceLoaderImpl(){t.apply(this,arguments)}return o(ResourceLoaderImpl,t),ResourceLoaderImpl.prototype.get=function(t){var e,r,n=new Promise(function(t,n){e=t,r=n}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var n=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=n?200:0),200<=o&&o<=300?e(n):r("Failed to load "+t)},i.onerror=function(){r("Failed to load "+t)},i.send(),n},ResourceLoaderImpl.decorators=[{type:i.Injectable}],ResourceLoaderImpl.ctorParameters=function(){return[]},ResourceLoaderImpl}(n.a)},function(t,e,r){"use strict";function initDomAdapter(){a.a.makeCurrent(),c.a.init()}function errorHandler(){return new i.ErrorHandler}function _document(){return r.i(f.b)().defaultDoc()}function _resolveDefaultAnimationDriver(){return r.i(f.b)().supportsWebAnimation()?new s.a:o.a.NOOP}var n=r(97),i=r(1),o=r(232),s=r(352),a=r(346),u=r(347),c=r(348),l=r(349),p=r(233),f=r(21),h=r(234),d=r(168),m=r(350),y=r(88),v=r(235),b=r(351),_=r(236),g=r(353);r.d(e,"d",function(){return S}),r.d(e,"e",function(){return w}),r.d(e,"b",function(){return E}),e.c=initDomAdapter,r.d(e,"a",function(){return C});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var S=[{provide:i.PLATFORM_INITIALIZER,useValue:initDomAdapter,multi:!0},{provide:n.PlatformLocation,useClass:u.a}],w=[{provide:i.Sanitizer,useExisting:g.a},{provide:g.a,useClass:g.b}],E=r.i(i.createPlatformFactory)(i.platformCore,"browser",S),C=function(){function BrowserModule(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return BrowserModule.decorators=[{type:i.NgModule,args:[{providers:[w,{provide:i.ErrorHandler,useFactory:errorHandler,deps:[]},{provide:d.a,useFactory:_document,deps:[]},{provide:y.a,useClass:m.a,multi:!0},{provide:y.a,useClass:b.a,multi:!0},{provide:y.a,useClass:v.c,multi:!0},{provide:v.a,useClass:v.b},{provide:h.b,useClass:h.a},{provide:i.RootRenderer,useExisting:h.b},{provide:_.b,useExisting:_.a},{provide:o.a,useFactory:_resolveDefaultAnimationDriver},_.a,i.Testability,y.b,p.b,l.a],exports:[n.CommonModule,i.ApplicationModule]}]}],BrowserModule.ctorParameters=function(){return[{type:BrowserModule,decorators:[{type:i.Optional},{type:i.SkipSelf}]}]},BrowserModule}()},function(t,e,r){"use strict";function getBaseElementHref(){return h||(h=document.querySelector("base"))?h.getAttribute("href"):null}function relativePath(t){return s||(s=document.createElement("a")),s.setAttribute("href",t),"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}function parseCookieValue(t,e){e=encodeURIComponent(e);for(var r=0,n=t.split(";");r0},BrowserDomAdapter.prototype.tagName=function(t){return t.tagName},BrowserDomAdapter.prototype.attributeMap=function(t){for(var e=new Map,r=t.attributes,n=0;n-1&&(e.splice(r,1),i+=t+".")}),i+=n,0!=e.length||0===n.length)return null;var o={};return o.domEventName=r,o.fullKey=i,o},KeyEventsPlugin.getEventFullKey=function(t){var e="",n=r.i(i.b)().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),a.forEach(function(r){if(r!=n){var i=u[r];i(t)&&(e+=r+".")}}),e+=n},KeyEventsPlugin.eventCallback=function(t,e,r){return function(n){KeyEventsPlugin.getEventFullKey(n)===t&&r.runGuarded(function(){return e(n)})}},KeyEventsPlugin._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},KeyEventsPlugin.decorators=[{type:n.Injectable}],KeyEventsPlugin.ctorParameters=function(){return[]},KeyEventsPlugin}(o.c)},function(t,e,r){"use strict";function _populateStyles(t,e){var i={};return t.styles.forEach(function(t){Object.keys(t).forEach(function(e){i[e]=t[e]})}),Object.keys(e).forEach(function(t){r.i(n.a)(i[t])||(i[t]=e[t])}),i}function filterWebAnimationPlayerFn(t){return t instanceof i.a}var n=r(44),i=r(541);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function WebAnimationsDriver(){}return WebAnimationsDriver.prototype.animate=function(t,e,o,s,a,u,c){void 0===c&&(c=[]);var l=[],p={};if(r.i(n.a)(e)&&(p=_populateStyles(e,{})),o.forEach(function(t){var e=_populateStyles(t.styles,p);e.offset=Math.max(0,Math.min(1,t.offset)),l.push(e)}),0==l.length)l=[p,p];else if(1==l.length){var f=p,h=l[0];h.offset=null,l=[f,h]}var d={duration:s,delay:a,fill:"both"};return u&&(d.easing=u),c=c.filter(filterWebAnimationPlayerFn),new i.a(t,l,d,c)},WebAnimationsDriver}()},function(t,e,r){"use strict";var n=r(1),i=r(546),o=r(547),s=r(238);r.d(e,"a",function(){return u}),r.d(e,"b",function(){return c});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var a=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},u=function(){function DomSanitizer(){}return DomSanitizer.prototype.sanitize=function(t,e){},DomSanitizer.prototype.bypassSecurityTrustHtml=function(t){},DomSanitizer.prototype.bypassSecurityTrustStyle=function(t){},DomSanitizer.prototype.bypassSecurityTrustScript=function(t){},DomSanitizer.prototype.bypassSecurityTrustUrl=function(t){},DomSanitizer.prototype.bypassSecurityTrustResourceUrl=function(t){},DomSanitizer}(),c=function(t){function DomSanitizerImpl(){t.apply(this,arguments)}return a(DomSanitizerImpl,t),DomSanitizerImpl.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof p?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),r.i(i.a)(String(e)));case n.SecurityContext.STYLE:return e instanceof f?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),r.i(o.a)(e));case n.SecurityContext.SCRIPT:if(e instanceof h)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof m||e instanceof d?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),r.i(s.a)(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof m)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},DomSanitizerImpl.prototype.checkNotSafeValue=function(t,e){if(t instanceof l)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},DomSanitizerImpl.prototype.bypassSecurityTrustHtml=function(t){return new p(t)},DomSanitizerImpl.prototype.bypassSecurityTrustStyle=function(t){return new f(t)},DomSanitizerImpl.prototype.bypassSecurityTrustScript=function(t){return new h(t)},DomSanitizerImpl.prototype.bypassSecurityTrustUrl=function(t){return new d(t)},DomSanitizerImpl.prototype.bypassSecurityTrustResourceUrl=function(t){return new m(t)},DomSanitizerImpl.decorators=[{type:n.Injectable}],DomSanitizerImpl.ctorParameters=function(){return[]},DomSanitizerImpl}(u),l=function(){function SafeValueImpl(t){this.changingThisBreaksApplicationSecurity=t}return SafeValueImpl.prototype.getTypeName=function(){},SafeValueImpl.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},SafeValueImpl}(),p=function(t){function SafeHtmlImpl(){t.apply(this,arguments)}return a(SafeHtmlImpl,t),SafeHtmlImpl.prototype.getTypeName=function(){return"HTML"},SafeHtmlImpl}(l),f=function(t){function SafeStyleImpl(){t.apply(this,arguments)}return a(SafeStyleImpl,t),SafeStyleImpl.prototype.getTypeName=function(){return"Style"},SafeStyleImpl}(l),h=function(t){function SafeScriptImpl(){t.apply(this,arguments)}return a(SafeScriptImpl,t),SafeScriptImpl.prototype.getTypeName=function(){return"Script"},SafeScriptImpl}(l),d=function(t){function SafeUrlImpl(){t.apply(this,arguments)}return a(SafeUrlImpl,t),SafeUrlImpl.prototype.getTypeName=function(){return"URL"},SafeUrlImpl}(l),m=function(t){function SafeResourceUrlImpl(){t.apply(this,arguments)}return a(SafeResourceUrlImpl,t),SafeResourceUrlImpl.prototype.getTypeName=function(){return"ResourceURL"},SafeResourceUrlImpl}(l)},function(t,e,r){"use strict";var n=r(1),i=r(118),o=r(239);r.d(e,"a",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=function(){function RouterLinkActive(t,e,r,n){var o=this;this.router=t,this.element=e,this.renderer=r,this.cdr=n,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof i.b&&o.update()})}return Object.defineProperty(RouterLinkActive.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),RouterLinkActive.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(RouterLinkActive.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),RouterLinkActive.prototype.ngOnChanges=function(t){this.update()},RouterLinkActive.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},RouterLinkActive.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.active=e,this.classes.forEach(function(r){return t.renderer.setElementClass(t.element.nativeElement,r,e)}),this.cdr.detectChanges())}},RouterLinkActive.prototype.isLinkActive=function(t){var e=this;return function(r){return t.isActive(r.urlTree,e.routerLinkActiveOptions.exact)}},RouterLinkActive.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},RouterLinkActive.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],RouterLinkActive.ctorParameters=function(){return[{type:i.e},{type:n.ElementRef},{type:n.Renderer},{type:n.ChangeDetectorRef}]},RouterLinkActive.propDecorators={links:[{type:n.ContentChildren,args:[o.a,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[o.b,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]},RouterLinkActive}()},function(t,e,r){"use strict";var n=r(1),i=r(169),o=r(45);r.d(e,"a",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=function(){function RouterOutlet(t,e,r,i){this.parentOutletMap=t,this.location=e,this.resolver=r,this.name=i,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,t.registerOutlet(i?i:o.a,this)}return RouterOutlet.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:o.a)},Object.defineProperty(RouterOutlet.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(RouterOutlet.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(RouterOutlet.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(RouterOutlet.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(RouterOutlet.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),RouterOutlet.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},RouterOutlet.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},RouterOutlet.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},RouterOutlet.prototype.activate=function(t,e,r,i,o){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=o,this._activatedRoute=t;var s=t._futureSnapshot,a=s._routeConfig.component,u=e.resolveComponentFactory(a),c=n.ReflectiveInjector.fromResolvedProviders(i,r);this.activated=this.location.createComponent(u,this.location.length,c,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},RouterOutlet.decorators=[{type:n.Directive,args:[{selector:"router-outlet"}]}],RouterOutlet.ctorParameters=function(){return[{type:i.a},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]}]},RouterOutlet.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]},RouterOutlet}()},function(t,e,r){"use strict";r.d(e,"a",function(){return n});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function RouteReuseStrategy(){}return RouteReuseStrategy.prototype.shouldDetach=function(t){},RouteReuseStrategy.prototype.store=function(t,e){},RouteReuseStrategy.prototype.shouldAttach=function(t){},RouteReuseStrategy.prototype.retrieve=function(t){},RouteReuseStrategy.prototype.shouldReuseRoute=function(t,e){},RouteReuseStrategy}()},function(t,e,r){"use strict";function routerNgProbeToken(){return new i.NgProbeToken("Router",l.e)}function provideLocationStrategy(t,e,r){return void 0===r&&(r={}),r.useHash?new n.HashLocationStrategy(t,e):new n.PathLocationStrategy(t,e)}function provideForRootGuard(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function provideRoutes(t){return[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:p.a,multi:!0,useValue:t}]}function setupRouter(t,e,n,i,o,s,a,c,p,f,h){void 0===p&&(p={});var d=new l.e(null,e,n,i,o,s,a,r.i(v.a)(c));if(f&&(d.urlHandlingStrategy=f),h&&(d.routeReuseStrategy=h),p.errorHandler&&(d.errorHandler=p.errorHandler),p.enableTracing){var m=r.i(u.a)();d.events.subscribe(function(t){m.logGroup("Router Event: "+t.constructor.name),m.log(t.toString()),m.log(t),m.logGroupEnd()})}return d}function rootRoute(t){return t.routerState.root}function initialRouterNavigation(t,e,r,n){return function(i){i===e.components[0]&&(t.resetRootComponentType(e.componentTypes[0]),r.setUpPreloading(),n.initialNavigation===!1?t.setUpLocationChangeListener():t.initialNavigation())}}function provideRouterInitializer(){return[{provide:E,useFactory:initialRouterNavigation,deps:[l.e,i.ApplicationRef,h.d,_]},{provide:i.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:E}]}var n=r(97),i=r(1),o=r(239),s=r(354),a=r(355),u=r(556),c=r(356),l=r(118),p=r(119),f=r(169),h=r(358),d=r(89),m=r(240),y=r(75),v=r(49);r.d(e,"a",function(){return _}),r.d(e,"e",function(){return S}),r.d(e,"c",function(){return w}),e.d=provideRoutes,r.d(e,"b",function(){return E});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var b=[a.a,o.a,o.b,s.a],_=new i.OpaqueToken("ROUTER_CONFIGURATION"),g=new i.OpaqueToken("ROUTER_FORROOT_GUARD"),S=[n.Location,{provide:y.d,useClass:y.a},{provide:l.e,useFactory:setupRouter,deps:[i.ApplicationRef,y.d,f.a,n.Location,i.Injector,i.NgModuleFactoryLoader,i.Compiler,p.a,_,[m.a,new i.Optional],[c.a,new i.Optional]]},f.a,{provide:d.a,useFactory:rootRoute,deps:[l.e]},{provide:i.NgModuleFactoryLoader,useClass:i.SystemJsNgModuleLoader},h.d,h.a,h.b,{provide:_,useValue:{enableTracing:!1}}],w=function(){function RouterModule(t){}return RouterModule.forRoot=function(t,e){return{ngModule:RouterModule,providers:[S,provideRoutes(t),{provide:g,useFactory:provideForRootGuard,deps:[[l.e,new i.Optional,new i.SkipSelf]]},{provide:_,useValue:e?e:{}},{provide:n.LocationStrategy,useFactory:provideLocationStrategy,deps:[n.PlatformLocation,[new i.Inject(n.APP_BASE_HREF),new i.Optional],_]},{provide:h.c,useExisting:e&&e.preloadingStrategy?e.preloadingStrategy:h.a},{provide:i.NgProbeToken,multi:!0,useFactory:routerNgProbeToken},provideRouterInitializer()]}},RouterModule.forChild=function(t){return{ngModule:RouterModule,providers:[provideRoutes(t)]}},RouterModule.decorators=[{type:i.NgModule,args:[{declarations:b,exports:b}]}],RouterModule.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[g]}]}]},RouterModule}(),E=new i.OpaqueToken("Router Initializer")},function(t,e,r){"use strict";var n=r(1),i=r(180),o=(r.n(i),r(80)),s=(r.n(o),r(262)),a=(r.n(s),r(266)),u=(r.n(a),r(268)),c=(r.n(u),r(94)),l=(r.n(c),r(95)),p=(r.n(l),r(118)),f=r(119);r.d(e,"c",function(){return h}),r.d(e,"b",function(){return d}),r.d(e,"a",function(){return m}),r.d(e,"d",function(){return y});/** -*@license -*Copyright Google Inc. All Rights Reserved. -* -*Use of this source code is governed by an MIT-style license that can be -*found in the LICENSE file at https://angular.io/license -*/ -var h=function(){function PreloadingStrategy(){}return PreloadingStrategy.prototype.preload=function(t,e){},PreloadingStrategy}(),d=function(){function PreloadAllModules(){}return PreloadAllModules.prototype.preload=function(t,e){return s._catch.call(e(),function(){return r.i(o.of)(null)})},PreloadAllModules}(),m=function(){function NoPreloading(){}return NoPreloading.prototype.preload=function(t,e){return r.i(o.of)(null)},NoPreloading}(),y=function(){function RouterPreloader(t,e,r,n,i){this.router=t,this.injector=n,this.preloadingStrategy=i,this.loader=new f.b(e,r)}return RouterPreloader.prototype.setUpPreloading=function(){var t=this,e=u.filter.call(this.router.events,function(t){return t instanceof p.b});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(t){})},RouterPreloader.prototype.preload=function(){return this.processRoutes(this.injector,this.router.config)},RouterPreloader.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},RouterPreloader.prototype.processRoutes=function(t,e){for(var n=[],o=0,s=e;o1)return void(this.connection=null);var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()},RefCountSubscriber}(s.Subscriber)},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(47),o=r(422),s=r(401),a=r(837),u=r(55),c=r(826),l=r(130),p=r(0),f=r(270),h=r(131),d=function(t){return t&&"number"==typeof t.length},m=function(t){function FromObservable(e,r){t.call(this,null),this.ish=e,this.scheduler=r}return n(FromObservable,t),FromObservable.create=function(t,e){if(null!=t){if("function"==typeof t[h.$$observable])return t instanceof p.Observable&&!e?t:new FromObservable(t,e);if(i.isArray(t))return new u.ArrayObservable(t,e);if(o.isPromise(t))return new s.PromiseObservable(t,e);if("function"==typeof t[l.$$iterator]||"string"==typeof t)return new a.IteratorObservable(t,e);if(d(t))return new c.ArrayLikeObservable(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},FromObservable.prototype._subscribe=function(t){var e=this.ish,r=this.scheduler;return null==r?e[h.$$observable]().subscribe(t):e[h.$$observable]().subscribe(new f.ObserveOnSubscriber(t,r,0))},FromObservable}(p.Observable);e.FromObservable=m},function(t,e,r){"use strict";function dispatchNext(t){var e=t.value,r=t.subscriber;r.closed||(r.next(e),r.complete())}function dispatchError(t){var e=t.err,r=t.subscriber;r.closed||r.error(e)}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(24),o=r(0),s=function(t){function PromiseObservable(e,r){t.call(this),this.promise=e,this.scheduler=r}return n(PromiseObservable,t),PromiseObservable.create=function(t,e){return new PromiseObservable(t,e)},PromiseObservable.prototype._subscribe=function(t){var e=this,r=this.promise,n=this.scheduler;if(null==n)this._isScalar?t.closed||(t.next(this.value),t.complete()):r.then(function(r){e.value=r,e._isScalar=!0,t.closed||(t.next(r),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){i.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return n.schedule(dispatchNext,0,{value:this.value,subscriber:t})}else r.then(function(r){e.value=r,e._isScalar=!0,t.closed||t.add(n.schedule(dispatchNext,0,{value:r,subscriber:t}))},function(e){t.closed||t.add(n.schedule(dispatchError,0,{err:e,subscriber:t}))}).then(null,function(t){i.root.setTimeout(function(){throw t})})},PromiseObservable}(o.Observable);e.PromiseObservable=s},function(t,e,r){"use strict";function getCORSRequest(){if(i.root.XMLHttpRequest){var t=new i.root.XMLHttpRequest;return"withCredentials"in t&&(t.withCredentials=!!this.withCredentials),t}if(i.root.XDomainRequest)return new i.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function getXMLHttpRequest(){if(i.root.XMLHttpRequest)return new i.root.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r=0;r<3;r++)try{if(t=e[r],new i.root.ActiveXObject(t))break}catch(t){}return new i.root.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}function ajaxGet(t,e){return void 0===e&&(e=null),new l({method:"GET",url:t,headers:e})}function ajaxPost(t,e,r){return new l({method:"POST",url:t,body:e,headers:r})}function ajaxDelete(t,e){return new l({method:"DELETE",url:t,headers:e})}function ajaxPut(t,e,r){return new l({method:"PUT",url:t,body:e,headers:r})}function ajaxGetJSON(t,e){return new l({method:"GET",url:t,responseType:"json",headers:e}).lift(new c.MapOperator(function(t,e){return t.response},null))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(24),o=r(25),s=r(23),a=r(0),u=r(3),c=r(81);e.ajaxGet=ajaxGet,e.ajaxPost=ajaxPost,e.ajaxDelete=ajaxDelete,e.ajaxPut=ajaxPut,e.ajaxGetJSON=ajaxGetJSON;var l=function(t){function AjaxObservable(e){t.call(this);var r={async:!0,createXHR:function(){return this.crossDomain?getCORSRequest.call(this):getXMLHttpRequest()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)r.url=e;else for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);this.request=r}return n(AjaxObservable,t),AjaxObservable.prototype._subscribe=function(t){return new p(t,this.request)},AjaxObservable.create=function(){var t=function(t){return new AjaxObservable(t)};return t.get=ajaxGet,t.post=ajaxPost,t.delete=ajaxDelete,t.put=ajaxPut,t.getJSON=ajaxGetJSON,t}(),AjaxObservable}(a.Observable);e.AjaxObservable=l;var p=function(t){function AjaxSubscriber(e,r){t.call(this,e),this.request=r,this.done=!1;var n=r.headers=r.headers||{};r.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in n||i.root.FormData&&r.body instanceof i.root.FormData||"undefined"==typeof r.body||(n["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=this.serializeBody(r.body,r.headers["Content-Type"]),this.send()}return n(AjaxSubscriber,t),AjaxSubscriber.prototype.next=function(t){this.done=!0;var e=this,r=e.xhr,n=e.request,i=e.destination,o=new f(t,r,n);i.next(o)},AjaxSubscriber.prototype.send=function(){var t=this,e=t.request,r=t.request,n=r.user,i=r.method,a=r.url,u=r.async,c=r.password,l=r.headers,p=r.body,f=e.createXHR,h=o.tryCatch(f).call(e);if(h===s.errorObject)this.error(s.errorObject.e);else{this.xhr=h;var d=void 0;if(d=n?o.tryCatch(h.open).call(h,i,a,u,n,c):o.tryCatch(h.open).call(h,i,a,u),d===s.errorObject)return this.error(s.errorObject.e),null;if(h.timeout=e.timeout,h.responseType=e.responseType,this.setHeaders(h,l),this.setupEvents(h,e),d=p?o.tryCatch(h.send).call(h,p):o.tryCatch(h.send).call(h),d===s.errorObject)return this.error(s.errorObject.e),null}return h},AjaxSubscriber.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(i.root.FormData&&t instanceof i.root.FormData)return t;if(e){var r=e.indexOf(";");r!==-1&&(e=e.substring(0,r))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURI(e)+"="+encodeURI(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},AjaxSubscriber.prototype.setHeaders=function(t,e){for(var r in e)e.hasOwnProperty(r)&&t.setRequestHeader(r,e[r])},AjaxSubscriber.prototype.setupEvents=function(t,e){function xhrTimeout(t){var e=xhrTimeout,r=e.subscriber,n=e.progressSubscriber,i=e.request;n&&n.error(t),r.error(new d(this,i))}function xhrReadyStateChange(t){var e=xhrReadyStateChange,r=e.subscriber,n=e.progressSubscriber,i=e.request;if(4===this.readyState){var o=1223===this.status?204:this.status,s="text"===this.responseType?this.response||this.responseText:this.response;0===o&&(o=s?200:0),200<=o&&o<300?(n&&n.complete(),r.next(t),r.complete()):(n&&n.error(t),r.error(new h("ajax error "+o,this,i)))}}var r=e.progressSubscriber;if(t.ontimeout=xhrTimeout,xhrTimeout.request=e,xhrTimeout.subscriber=this,xhrTimeout.progressSubscriber=r,t.upload&&"withCredentials"in t&&i.root.XDomainRequest){if(r){var n;n=function(t){var e=n.progressSubscriber;e.next(t)},t.onprogress=n,n.progressSubscriber=r}var o;o=function(t){var e=o,r=e.progressSubscriber,n=e.subscriber,i=e.request;r&&r.error(t),n.error(new h("ajax error",this,i))},t.onerror=o,o.request=e,o.subscriber=this,o.progressSubscriber=r}t.onreadystatechange=xhrReadyStateChange,xhrReadyStateChange.subscriber=this,xhrReadyStateChange.progressSubscriber=r,xhrReadyStateChange.request=e},AjaxSubscriber.prototype.unsubscribe=function(){var e=this,r=e.done,n=e.xhr;!r&&n&&4!==n.readyState&&"function"==typeof n.abort&&n.abort(),t.prototype.unsubscribe.call(this)},AjaxSubscriber}(u.Subscriber);e.AjaxSubscriber=p;var f=function(){function AjaxResponse(t,e,r){switch(this.originalEvent=t,this.xhr=e,this.request=r,this.status=e.status,this.responseType=e.responseType||r.responseType,this.responseType){case"json":"response"in e?this.response=e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):this.response=JSON.parse(e.responseText||"null");break;case"xml":this.response=e.responseXML;break;case"text":default:this.response="response"in e?e.response:e.responseText}}return AjaxResponse}();e.AjaxResponse=f;var h=function(t){function AjaxError(e,r,n){t.call(this,e),this.message=e,this.xhr=r,this.request=n,this.status=r.status}return n(AjaxError,t),AjaxError}(Error);e.AjaxError=h;var d=function(t){function AjaxTimeoutError(e,r){t.call(this,"ajax timeout",e,r)}return n(AjaxTimeoutError,t),AjaxTimeoutError}(h);e.AjaxTimeoutError=d},function(t,e,r){"use strict";function distinctUntilChanged(t,e){return this.lift(new a(t,e))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(25),s=r(23);e.distinctUntilChanged=distinctUntilChanged;var a=function(){function DistinctUntilChangedOperator(t,e){this.compare=t,this.keySelector=e}return DistinctUntilChangedOperator.prototype.call=function(t,e){return e.subscribe(new u(t,this.compare,this.keySelector))},DistinctUntilChangedOperator}(),u=function(t){function DistinctUntilChangedSubscriber(e,r,n){t.call(this,e),this.keySelector=n,this.hasKey=!1,"function"==typeof r&&(this.compare=r)}return n(DistinctUntilChangedSubscriber,t),DistinctUntilChangedSubscriber.prototype.compare=function(t,e){return t===e},DistinctUntilChangedSubscriber.prototype._next=function(t){var e=this.keySelector,r=t;if(e&&(r=o.tryCatch(this.keySelector)(t),r===s.errorObject))return this.destination.error(s.errorObject.e);var n=!1;if(this.hasKey){if(n=o.tryCatch(this.compare)(this.key,r),n===s.errorObject)return this.destination.error(s.errorObject.e)}else this.hasKey=!0;Boolean(n)===!1&&(this.key=r,this.destination.next(t))},DistinctUntilChangedSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function find(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return this.lift(new o(t,this,!1,e))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e.find=find;var o=function(){function FindValueOperator(t,e,r,n){this.predicate=t,this.source=e,this.yieldIndex=r,this.thisArg=n}return FindValueOperator.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},FindValueOperator}();e.FindValueOperator=o;var s=function(t){function FindValueSubscriber(e,r,n,i,o){t.call(this,e),this.predicate=r,this.source=n,this.yieldIndex=i,this.thisArg=o,this.index=0}return n(FindValueSubscriber,t),FindValueSubscriber.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},FindValueSubscriber.prototype._next=function(t){var e=this,r=e.predicate,n=e.thisArg,i=this.index++;try{var o=r.call(n||this,t,i,this.source);o&&this.notifyComplete(this.yieldIndex?i:t)}catch(t){this.destination.error(t)}},FindValueSubscriber.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},FindValueSubscriber}(i.Subscriber);e.FindValueSubscriber=s},function(t,e,r){"use strict";function last(t,e,r){return this.lift(new s(t,e,r,this))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(132);e.last=last;var s=function(){function LastOperator(t,e,r,n){this.predicate=t,this.resultSelector=e,this.defaultValue=r,this.source=n}return LastOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},LastOperator}(),a=function(t){function LastSubscriber(e,r,n,i,o){t.call(this,e),this.predicate=r,this.resultSelector=n,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,"undefined"!=typeof i&&(this.lastValue=i,this.hasValue=!0)}return n(LastSubscriber,t),LastSubscriber.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},LastSubscriber.prototype._tryPredicate=function(t,e){var r;try{r=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(r){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},LastSubscriber.prototype._tryResultSelector=function(t,e){var r;try{r=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=r,this.hasValue=!0},LastSubscriber.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new o.EmptyError)},LastSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function merge(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof a&&(r=t.pop()),null===s&&1===t.length?t[0]:new n.ArrayObservable(t,s).lift(new i.MergeAllOperator(r))}var n=r(55),i=r(94),o=r(68);e.merge=merge,e.mergeStatic=mergeStatic},function(t,e,r){"use strict";function mergeMapTo(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof e&&(r=e,e=null),this.lift(new s(t,e,r))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(4),o=r(5);e.mergeMapTo=mergeMapTo;var s=function(){function MergeMapToOperator(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.ish=t,this.resultSelector=e,this.concurrent=r}return MergeMapToOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.ish,this.resultSelector,this.concurrent))},MergeMapToOperator}();e.MergeMapToOperator=s;var a=function(t){function MergeMapToSubscriber(e,r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.ish=r,this.resultSelector=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(MergeMapToSubscriber,t),MergeMapToSubscriber.prototype._next=function(t){if(this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapToSubscriber}(i.OuterSubscriber);e.MergeMapToSubscriber=a},function(t,e,r){"use strict";function onErrorResumeNext(){for(var t=[],e=0;ee.index?1:-1:t.delay>e.delay?1:-1},VirtualAction}(i.AsyncAction);e.VirtualAction=a},function(t,e,r){"use strict";var n=r(944),i=r(945);e.asap=new i.AsapScheduler(n.AsapAction)},function(t,e,r){"use strict";var n=r(946),i=r(947);e.queue=new i.QueueScheduler(n.QueueAction)},function(t,e,r){"use strict";var n=function(){function SubscriptionLog(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.subscribedFrame=t,this.unsubscribedFrame=e}return SubscriptionLog}();e.SubscriptionLog=n},function(t,e,r){"use strict";var n=r(416),i=function(){function SubscriptionLoggable(){this.subscriptions=[]}return SubscriptionLoggable.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new n.SubscriptionLog(this.scheduler.now())),this.subscriptions.length-1},SubscriptionLoggable.prototype.logUnsubscribedFrame=function(t){var e=this.subscriptions,r=e[t];e[t]=new n.SubscriptionLog(r.subscribedFrame,this.scheduler.now())},SubscriptionLoggable}();e.SubscriptionLoggable=i},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=function(t){function TimeoutError(){var e=t.call(this,"Timeout has occurred");this.name=e.name="TimeoutError",this.stack=e.stack,this.message=e.message}return n(TimeoutError,t),TimeoutError}(Error);e.TimeoutError=i},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=function(t){function UnsubscriptionError(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return n(UnsubscriptionError,t),UnsubscriptionError}(Error);e.UnsubscriptionError=i},function(t,e,r){"use strict";function applyMixins(t,e){for(var r=0,n=e.length;r=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r(961),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e){function webpackEmptyContext(t){throw new Error("Cannot find module '"+t+"'.")}webpackEmptyContext.keys=function(){return[]},webpackEmptyContext.resolve=webpackEmptyContext,t.exports=webpackEmptyContext,webpackEmptyContext.id=425},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(528);r.d(e,"BrowserXhr",function(){return n.a}),r.d(e,"JSONPBackend",function(){return n.b}),r.d(e,"JSONPConnection",function(){return n.c}),r.d(e,"CookieXSRFStrategy",function(){ -return n.d}),r.d(e,"XHRBackend",function(){return n.e}),r.d(e,"XHRConnection",function(){return n.f}),r.d(e,"BaseRequestOptions",function(){return n.g}),r.d(e,"RequestOptions",function(){return n.h}),r.d(e,"BaseResponseOptions",function(){return n.i}),r.d(e,"ResponseOptions",function(){return n.j}),r.d(e,"ReadyState",function(){return n.k}),r.d(e,"RequestMethod",function(){return n.l}),r.d(e,"ResponseContentType",function(){return n.m}),r.d(e,"ResponseType",function(){return n.n}),r.d(e,"Headers",function(){return n.o}),r.d(e,"Http",function(){return n.p}),r.d(e,"Jsonp",function(){return n.q}),r.d(e,"HttpModule",function(){return n.r}),r.d(e,"JsonpModule",function(){return n.s}),r.d(e,"Connection",function(){return n.t}),r.d(e,"ConnectionBackend",function(){return n.u}),r.d(e,"XSRFStrategy",function(){return n.v}),r.d(e,"Request",function(){return n.w}),r.d(e,"Response",function(){return n.x}),r.d(e,"QueryEncoder",function(){return n.y}),r.d(e,"URLSearchParams",function(){return n.z}),r.d(e,"VERSION",function(){return n.A})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(553);r.d(e,"RouterLink",function(){return n.a}),r.d(e,"RouterLinkWithHref",function(){return n.b}),r.d(e,"RouterLinkActive",function(){return n.c}),r.d(e,"RouterOutlet",function(){return n.d}),r.d(e,"RouteReuseStrategy",function(){return n.e}),r.d(e,"NavigationCancel",function(){return n.f}),r.d(e,"NavigationEnd",function(){return n.g}),r.d(e,"NavigationError",function(){return n.h}),r.d(e,"NavigationStart",function(){return n.i}),r.d(e,"Router",function(){return n.j}),r.d(e,"RoutesRecognized",function(){return n.k}),r.d(e,"ROUTER_CONFIGURATION",function(){return n.l}),r.d(e,"ROUTER_INITIALIZER",function(){return n.m}),r.d(e,"RouterModule",function(){return n.n}),r.d(e,"provideRoutes",function(){return n.o}),r.d(e,"RouterOutletMap",function(){return n.p}),r.d(e,"NoPreloading",function(){return n.q}),r.d(e,"PreloadAllModules",function(){return n.r}),r.d(e,"PreloadingStrategy",function(){return n.s}),r.d(e,"RouterPreloader",function(){return n.t}),r.d(e,"ActivatedRoute",function(){return n.u}),r.d(e,"ActivatedRouteSnapshot",function(){return n.v}),r.d(e,"RouterState",function(){return n.w}),r.d(e,"RouterStateSnapshot",function(){return n.x}),r.d(e,"PRIMARY_OUTLET",function(){return n.y}),r.d(e,"UrlHandlingStrategy",function(){return n.z}),r.d(e,"DefaultUrlSerializer",function(){return n.A}),r.d(e,"UrlSegment",function(){return n.B}),r.d(e,"UrlSegmentGroup",function(){return n.C}),r.d(e,"UrlSerializer",function(){return n.D}),r.d(e,"UrlTree",function(){return n.E}),r.d(e,"VERSION",function(){return n.F}),r.d(e,"__router_private__",function(){return n.G})},,,,,,,,,,,,,,,,,function(t,e,r){"use strict";var n=r(13);e.Subject=n.Subject,e.AnonymousSubject=n.AnonymousSubject;var i=r(0);e.Observable=i.Observable,r(699),r(700),r(701),r(702),r(703),r(706),r(707),r(708),r(709),r(710),r(711),r(712),r(713),r(714),r(715),r(720),r(716),r(717),r(718),r(719),r(721),r(724),r(722),r(723),r(725),r(704),r(705),r(728),r(729),r(730),r(731),r(732),r(733),r(734),r(735),r(736),r(737),r(738),r(739),r(740),r(746),r(741),r(742),r(743),r(744),r(745),r(747),r(748),r(749),r(750),r(753),r(754),r(755),r(751),r(756),r(757),r(758),r(759),r(760),r(761),r(762),r(763),r(726),r(727),r(764),r(765),r(752),r(766),r(767),r(768),r(769),r(770),r(771),r(772),r(773),r(774),r(775),r(776),r(777),r(778),r(779),r(780),r(781),r(782),r(783),r(785),r(784),r(786),r(787),r(788),r(789),r(790),r(791),r(792),r(793),r(794),r(795),r(796),r(797),r(798),r(799),r(800),r(801),r(802),r(803),r(804),r(805),r(806),r(807),r(808),r(809),r(810),r(811),r(812),r(813),r(814),r(815),r(816),r(817),r(818),r(819),r(820),r(821),r(822),r(823),r(824),r(825);var o=r(20);e.Subscription=o.Subscription;var s=r(3);e.Subscriber=s.Subscriber;var a=r(179);e.AsyncSubject=a.AsyncSubject;var u=r(260);e.ReplaySubject=u.ReplaySubject;var c=r(126);e.BehaviorSubject=c.BehaviorSubject;var l=r(399);e.ConnectableObservable=l.ConnectableObservable;var p=r(127);e.Notification=p.Notification;var f=r(132);e.EmptyError=f.EmptyError;var h=r(184);e.ArgumentOutOfRangeError=h.ArgumentOutOfRangeError;var d=r(185);e.ObjectUnsubscribedError=d.ObjectUnsubscribedError;var m=r(418);e.TimeoutError=m.TimeoutError;var y=r(419);e.UnsubscriptionError=y.UnsubscriptionError;var v=r(410);e.TimeInterval=v.TimeInterval;var b=r(411);e.Timestamp=b.Timestamp;var _=r(951);e.TestScheduler=_.TestScheduler;var g=r(413);e.VirtualTimeScheduler=g.VirtualTimeScheduler;var S=r(402);e.AjaxResponse=S.AjaxResponse,e.AjaxError=S.AjaxError,e.AjaxTimeoutError=S.AjaxTimeoutError;var w=r(414),E=r(27),C=r(415),A=r(948),x=r(183),T=r(130),O=r(131),P={asap:w.asap,queue:C.queue,animationFrame:A.animationFrame,async:E.async};e.Scheduler=P;var R={rxSubscriber:x.$$rxSubscriber,observable:O.$$observable,iterator:T.$$iterator};e.Symbol=R},,function(t,e,r){"use strict";var n=r(457);r.d(e,"b",function(){return n.a}),r.d(e,"A",function(){return n.b}),r.d(e,"B",function(){return n.c}),r.d(e,"C",function(){return n.d}),r.d(e,"D",function(){return n.e}),r.d(e,"E",function(){return n.f});var i=r(133);r.d(e,"c",function(){return i.b});var o=r(447);r.d(e,"a",function(){return o.a});var s=r(274);r.d(e,"d",function(){return s.b}),r.d(e,"e",function(){return s.c}),r.d(e,"f",function(){return s.d}),r.d(e,"g",function(){return s.e}),r.d(e,"h",function(){return s.f}),r.d(e,"i",function(){return s.g}),r.d(e,"j",function(){return s.h}),r.d(e,"k",function(){return s.i}),r.d(e,"l",function(){return s.j}),r.d(e,"m",function(){return s.k});var a=r(276);r.d(e,"n",function(){return a.b}),r.d(e,"o",function(){return a.c}),r.d(e,"p",function(){return a.d}),r.d(e,"q",function(){return a.e}),r.d(e,"r",function(){return a.f}),r.d(e,"s",function(){return a.g}),r.d(e,"t",function(){return a.h}),r.d(e,"u",function(){return a.i}),r.d(e,"v",function(){return a.j}),r.d(e,"w",function(){return a.k}),r.d(e,"x",function(){return a.l});var u=r(469);r.d(e,"y",function(){return u.a});var c=r(1);r.d(e,"z",function(){return c.Version})},function(t,e,r){"use strict";var n=r(1),i=r(274),o=r(133),s=r(276);r.d(e,"a",function(){return a});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var a=function(){function CommonModule(){}return CommonModule.decorators=[{type:n.NgModule,args:[{declarations:[i.a,s.a],exports:[i.a,s.a],providers:[{provide:o.b,useClass:o.c}]}]}],CommonModule.ctorParameters=function(){return[]},CommonModule}()},function(t,e,r){"use strict";var n=r(1),i=r(454),o=r(39);r.d(e,"a",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=function(){function NgClass(t,e,r,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=r,this._renderer=n,this._initialClasses=[]}return Object.defineProperty(NgClass.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(NgClass.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(r.i(i.a)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create(null):this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create(null))},enumerable:!0,configurable:!0}),NgClass.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},NgClass.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},NgClass.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},NgClass.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+r.i(o.a)(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},NgClass.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(r){return e._toggleClass(r,!t)})},NgClass.prototype._applyClasses=function(t,e){var r=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return r._toggleClass(t,!e)}):Object.keys(t).forEach(function(n){null!=t[n]&&r._toggleClass(n,!e)}))},NgClass.prototype._toggleClass=function(t,e){var r=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){r._renderer.setElementClass(r._ngEl.nativeElement,t,e)})},NgClass.decorators=[{type:n.Directive,args:[{selector:"[ngClass]"}]}],NgClass.ctorParameters=function(){return[{type:n.IterableDiffers},{type:n.KeyValueDiffers},{type:n.ElementRef},{type:n.Renderer}]},NgClass.propDecorators={klass:[{type:n.Input,args:["class"]}],ngClass:[{type:n.Input}]},NgClass}()},function(t,e,r){"use strict";var n=r(1),i=r(39);r.d(e,"a",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function NgForRow(t,e,r){this.$implicit=t,this.index=e,this.count=r}return Object.defineProperty(NgForRow.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(NgForRow.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(NgForRow.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(NgForRow.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),NgForRow}(),s=function(){function NgFor(t,e,r,n){this._viewContainer=t,this._template=e,this._differs=r,this._cdr=n,this._differ=null}return Object.defineProperty(NgFor.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){r.i(n.isDevMode)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(NgFor.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),NgFor.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this._cdr,this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+r.i(i.d)(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},NgFor.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},NgFor.prototype._applyChanges=function(t){var e=this,r=[];t.forEachOperation(function(t,n,i){if(null==t.previousIndex){var s=e._viewContainer.createEmbeddedView(e._template,new o(null,null,null),i),u=new a(t,s);r.push(u)}else if(null==i)e._viewContainer.remove(n);else{var s=e._viewContainer.get(n);e._viewContainer.move(s,i);var u=new a(t,s);r.push(u)}});for(var n=0;n=0;r--)if(e(t[r]))return t[r];return null},ListWrapper.removeAll=function(t,e){for(var r=0;r-1&&t.splice(n,1)}},ListWrapper.remove=function(t,e){var r=t.indexOf(e);return r>-1&&(t.splice(r,1),!0)},ListWrapper.equals=function(t,e){if(t.length!=e.length)return!1;for(var r=0;r0?e.substring(1):e},HashLocationStrategy.prototype.prepareExternalUrl=function(t){var e=o.a.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},HashLocationStrategy.prototype.pushState=function(t,e,r,n){var i=this.prepareExternalUrl(r+o.a.normalizeQueryParams(n));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},HashLocationStrategy.prototype.replaceState=function(t,e,r,n){var i=this.prepareExternalUrl(r+o.a.normalizeQueryParams(n));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},HashLocationStrategy.prototype.forward=function(){this._platformLocation.forward()},HashLocationStrategy.prototype.back=function(){this._platformLocation.back()},HashLocationStrategy.decorators=[{type:n.Injectable}],HashLocationStrategy.ctorParameters=function(){return[{type:a.a},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[s.b]}]}]},HashLocationStrategy}(s.a)},function(t,e,r){"use strict";var n=r(189);r.d(e,"a",function(){return n.a});var i=r(134);r.d(e,"b",function(){return i.a}),r.d(e,"c",function(){return i.b});var o=r(456);r.d(e,"d",function(){return o.a});var s=r(458);r.d(e,"e",function(){return s.a});var a=r(188);r.d(e,"f",function(){return a.a})},function(t,e,r){"use strict";var n=r(1),i=r(39),o=r(188),s=r(134),a=r(189);r.d(e,"a",function(){return c});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},c=function(t){function PathLocationStrategy(e,n){if(t.call(this),this._platformLocation=e,r.i(i.c)(n)&&(n=this._platformLocation.getBaseHrefFromDOM()),r.i(i.c)(n))throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=n}return u(PathLocationStrategy,t),PathLocationStrategy.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},PathLocationStrategy.prototype.getBaseHref=function(){return this._baseHref},PathLocationStrategy.prototype.prepareExternalUrl=function(t){return o.a.joinWithSlash(this._baseHref,t)},PathLocationStrategy.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+o.a.normalizeQueryParams(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?""+e+r:e},PathLocationStrategy.prototype.pushState=function(t,e,r,n){var i=this.prepareExternalUrl(r+o.a.normalizeQueryParams(n));this._platformLocation.pushState(t,e,i)},PathLocationStrategy.prototype.replaceState=function(t,e,r,n){var i=this.prepareExternalUrl(r+o.a.normalizeQueryParams(n));this._platformLocation.replaceState(t,e,i)},PathLocationStrategy.prototype.forward=function(){this._platformLocation.forward()},PathLocationStrategy.prototype.back=function(){this._platformLocation.back()},PathLocationStrategy.decorators=[{type:n.Injectable}],PathLocationStrategy.ctorParameters=function(){return[{type:a.a},{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[s.b]}]}]},PathLocationStrategy}(s.a)},function(t,e,r){"use strict";var n=r(1),i=r(468),o=r(57);r.d(e,"a",function(){return l});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=function(){function ObservableStrategy(){}return ObservableStrategy.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},ObservableStrategy.prototype.dispose=function(t){t.unsubscribe()},ObservableStrategy.prototype.onDestroy=function(t){t.unsubscribe()},ObservableStrategy}(),a=function(){function PromiseStrategy(){}return PromiseStrategy.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},PromiseStrategy.prototype.dispose=function(t){},PromiseStrategy.prototype.onDestroy=function(t){},PromiseStrategy}(),u=new a,c=new s,l=function(){function AsyncPipe(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return AsyncPipe.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},AsyncPipe.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,n.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},AsyncPipe.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(r){return e._updateLatestValue(t,r)})},AsyncPipe.prototype._selectStrategy=function(t){if(r.i(i.a)(t))return u;if(r.i(i.b)(t))return c;throw new o.a(AsyncPipe,t)},AsyncPipe.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},AsyncPipe.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},AsyncPipe.decorators=[{type:n.Pipe,args:[{name:"async",pure:!1}]}],AsyncPipe.ctorParameters=function(){return[{type:n.ChangeDetectorRef}]},AsyncPipe}()},function(t,e,r){"use strict";function isBlank(t){return null==t||""===t}function isDate(t){return t instanceof Date&&!isNaN(t.valueOf())}function isoStringToDate(t){var e=new Date(0),r=0,n=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=toInt(t[9]+t[10]),n=toInt(t[9]+t[11])),i.call(e,toInt(t[1]),toInt(t[2])-1,toInt(t[3]));var s=toInt(t[4]||"0")-r,a=toInt(t[5]||"0")-n,u=toInt(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function toInt(t){return parseInt(t,10)}var n=r(1),i=r(39),o=r(277),s=r(57);r.d(e,"a",function(){return u});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var a=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,u=function(){function DatePipe(t){this._locale=t}return DatePipe.prototype.transform=function(t,e){void 0===e&&(e="mediumDate");var r;if(isBlank(t)||t!==t)return null;if("string"==typeof t&&(t=t.trim()),isDate(t))r=t;else if(i.b.isNumeric(t))r=new Date(parseFloat(t));else if("string"==typeof t&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var n=t.split("-").map(function(t){return parseInt(t,10)}),u=n[0],c=n[1],l=n[2];r=new Date(u,c-1,l)}else r=new Date(t);if(!isDate(r)){var p=void 0;if("string"!=typeof t||!(p=t.match(a)))throw new s.a(DatePipe,t);r=isoStringToDate(p)}return o.a.format(r,this._locale,DatePipe._ALIASES[e]||e)},DatePipe._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},DatePipe.decorators=[{type:n.Pipe,args:[{name:"date",pure:!0}]}],DatePipe.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[n.LOCALE_ID]}]}]},DatePipe}()},function(t,e,r){"use strict";var n=r(1),i=r(133),o=r(57);r.d(e,"a",function(){return a});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=/#/g,a=function(){function I18nPluralPipe(t){this._localization=t}return I18nPluralPipe.prototype.transform=function(t,e){if(null==t)return"";if("object"!=typeof e||null===e)throw new o.a(I18nPluralPipe,e);var n=r.i(i.a)(t,Object.keys(e),this._localization);return e[n].replace(s,t.toString())},I18nPluralPipe.decorators=[{type:n.Pipe,args:[{name:"i18nPlural",pure:!0}]}],I18nPluralPipe.ctorParameters=function(){return[{type:i.b}]},I18nPluralPipe}()},function(t,e,r){"use strict";var n=r(1),i=r(57);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function I18nSelectPipe(){}return I18nSelectPipe.prototype.transform=function(t,e){if(null==t)return"";if("object"!=typeof e||"string"!=typeof t)throw new i.a(I18nSelectPipe,e);return e.hasOwnProperty(t)?e[t]:e.hasOwnProperty("other")?e.other:""},I18nSelectPipe.decorators=[{type:n.Pipe,args:[{name:"i18nSelect",pure:!0}]}],I18nSelectPipe.ctorParameters=function(){return[]},I18nSelectPipe}()},function(t,e,r){"use strict";var n=r(1);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function JsonPipe(){}return JsonPipe.prototype.transform=function(t){return JSON.stringify(t,null,2)},JsonPipe.decorators=[{type:n.Pipe,args:[{name:"json",pure:!1}]}],JsonPipe.ctorParameters=function(){return[]},JsonPipe}()},function(t,e,r){"use strict";var n=r(1),i=r(39),o=r(57);r.d(e,"a",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=function(){function LowerCasePipe(){}return LowerCasePipe.prototype.transform=function(t){if(r.i(i.c)(t))return t;if("string"!=typeof t)throw new o.a(LowerCasePipe,t);return t.toLowerCase()},LowerCasePipe.decorators=[{type:n.Pipe,args:[{name:"lowercase"}]}],LowerCasePipe.ctorParameters=function(){return[]},LowerCasePipe}()},function(t,e,r){"use strict";function formatNumber(t,e,r,n,u,c,l){if(void 0===c&&(c=null),void 0===l&&(l=!1),null==r)return null;if(r="string"==typeof r&&i.b.isNumeric(r)?+r:r,"number"!=typeof r)throw new s.a(t,r);var p,f,h;if(n!==o.b.Currency&&(p=1,f=0,h=3),u){var d=u.match(a);if(null===d)throw new Error(u+" is not a valid digit info for number pipes");null!=d[1]&&(p=i.b.parseIntAutoRadix(d[1])),null!=d[3]&&(f=i.b.parseIntAutoRadix(d[3])),null!=d[5]&&(h=i.b.parseIntAutoRadix(d[5]))}return o.c.format(r,e,n,{minimumIntegerDigits:p,minimumFractionDigits:f,maximumFractionDigits:h,currency:c,currencyAsSymbol:l})}var n=r(1),i=r(39),o=r(277),s=r(57);r.d(e,"a",function(){return u}),r.d(e,"b",function(){return c}),r.d(e,"c",function(){return l});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var a=/^(\d+)?\.((\d+)(-(\d+))?)?$/,u=function(){function DecimalPipe(t){this._locale=t}return DecimalPipe.prototype.transform=function(t,e){return void 0===e&&(e=null),formatNumber(DecimalPipe,this._locale,t,o.b.Decimal,e)},DecimalPipe.decorators=[{type:n.Pipe,args:[{name:"number"}]}],DecimalPipe.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[n.LOCALE_ID]}]}]},DecimalPipe}(),c=function(){function PercentPipe(t){this._locale=t}return PercentPipe.prototype.transform=function(t,e){return void 0===e&&(e=null),formatNumber(PercentPipe,this._locale,t,o.b.Percent,e)},PercentPipe.decorators=[{type:n.Pipe,args:[{name:"percent"}]}],PercentPipe.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[n.LOCALE_ID]}]}]},PercentPipe}(),l=function(){function CurrencyPipe(t){this._locale=t}return CurrencyPipe.prototype.transform=function(t,e,r,n){return void 0===e&&(e="USD"),void 0===r&&(r=!1),void 0===n&&(n=null),formatNumber(CurrencyPipe,this._locale,t,o.b.Currency,n,e,r)},CurrencyPipe.decorators=[{type:n.Pipe,args:[{name:"currency"}]}],CurrencyPipe.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[n.LOCALE_ID]}]}]},CurrencyPipe}()},function(t,e,r){"use strict";var n=r(1),i=r(57);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function SlicePipe(){}return SlicePipe.prototype.transform=function(t,e,r){if(null==t)return t;if(!this.supports(t))throw new i.a(SlicePipe,t);return t.slice(e,r)},SlicePipe.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},SlicePipe.decorators=[{type:n.Pipe,args:[{name:"slice",pure:!1}]}],SlicePipe.ctorParameters=function(){return[]},SlicePipe}()},function(t,e,r){"use strict";var n=r(1),i=r(39),o=r(57);r.d(e,"a",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=function(){function UpperCasePipe(){}return UpperCasePipe.prototype.transform=function(t){if(r.i(i.c)(t))return t;if("string"!=typeof t)throw new o.a(UpperCasePipe,t);return t.toUpperCase()},UpperCasePipe.decorators=[{type:n.Pipe,args:[{name:"uppercase"}]}],UpperCasePipe.ctorParameters=function(){return[]},UpperCasePipe}()},function(t,e,r){"use strict";var n=r(1);r.d(e,"a",function(){return i}),r.d(e,"b",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=n.__core_private__.isPromise,o=n.__core_private__.isObservable},function(t,e,r){"use strict";var n=r(1);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=new n.Version("2.4.6")},function(t,e,r){"use strict";var n=r(6);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function StylesCollectionEntry(t,e){this.time=t,this.value=e}return StylesCollectionEntry.prototype.matches=function(t,e){return t==this.time&&e==this.value},StylesCollectionEntry}(),o=function(){function StylesCollection(){this.styles={}}return StylesCollection.prototype.insertAtTime=function(t,e,o){var s=new i(e,o),a=this.styles[t];r.i(n.c)(a)||(a=this.styles[t]=[]);for(var u=0,c=a.length-1;c>=0;c--)if(a[c].time<=e){u=c+1;break}a.splice(u,0,s)},StylesCollection.prototype.getByIndex=function(t,e){var i=this.styles[t];return r.i(n.c)(i)?e>=i.length?null:i[e]:null},StylesCollection.prototype.indexOfAtOrBeforeTime=function(t,e){var i=this.styles[t];if(r.i(n.c)(i))for(var o=i.length-1;o>=0;o--)if(i[o].time<=e)return o;return null},StylesCollection}()},function(t,e,r){"use strict";r(1),r(136),r(59),r(100),r(101),r(60),r(102),r(82),r(139),r(103),r(70),r(142),r(104),r(200),r(105),r(14),r(143),r(145),r(106),r(72),r(107),r(190),r(191),r(192),r(58),r(193),r(194)},function(t,e,r){"use strict";r.d(e,"a",function(){return n});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n=function(){function GeneratedFile(t,e,r){this.srcFileUrl=t,this.genFileUrl=e,this.source=r}return GeneratedFile}()},function(t,e,r){"use strict";r.d(e,"a",function(){return i});var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=function(t){function BaseError(e){t.call(this,e);var r=new Error(e);this._nativeError=r}return n(BaseError,t),Object.defineProperty(BaseError.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(BaseError.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(BaseError.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),BaseError.prototype.toString=function(){return this._nativeError.toString()},BaseError}(Error);(function(t){function WrappedError(e,r){t.call(this,e+" caused by: "+(r instanceof Error?r.message:r)),this.originalError=r}return n(WrappedError,t),Object.defineProperty(WrappedError.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),WrappedError})(i)},function(t,e,r){"use strict";var n=r(1),i=r(190),o=r(191),s=r(192),a=r(58),u=r(193),c=r(194),l=r(59),p=r(100),f=r(101),h=r(103),d=r(70),m=r(41),y=r(104),v=r(105),b=r(143),_=r(72),g=r(139),S=r(287);(function(){function Extractor(t,e,r,n){this.host=t,this.staticSymbolResolver=e,this.messageBundle=r,this.metadataResolver=n}return Extractor.prototype.extract=function(t){var e=this,n=r.i(i.a)(this.staticSymbolResolver,t,this.host),o=r.i(i.b)(n,this.host,this.metadataResolver),s=o.files,a=o.ngModules;return Promise.all(a.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(s.forEach(function(r){var n=[];r.directives.forEach(function(t){var r=e.metadataResolver.getDirectiveMetadata(t);r&&r.isComponent&&n.push(r)}),n.forEach(function(n){var i=n.template.template,o=m.b.fromArray(n.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,r.srcUrl,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},Extractor.create=function(t){var e=new g.a(new d.a),i=r.i(_.c)(),m=new a.b,w=new c.a(t,m),E=new u.a(t,m,w),C=new s.a(E);o.a.install(C);var A=new l.a({genDebugInfo:!1,defaultEncapsulation:n.ViewEncapsulation.Emulated,logBindingUpdate:!1,useJit:!1}),x=new p.a({get:function(e){return t.loadResource(e)}},i,e,A),T=new b.a,O=new h.a(new y.a(C),new f.a(C),new v.a(C),w,T,x,C),P=new S.a(e,[],{}),R=new Extractor(t,E,P,O);return{extractor:R,staticReflector:C}},Extractor})()},function(t,e,r){"use strict";function createI18nMessageFactory(t){var e=new l(c,t);return function(t,r,n){return e.toI18nMessage(t,r,n)}}function _extractPlaceholderName(t){return t.split(p)[1]}var n=r(102),i=r(82),o=r(61),s=r(197),a=r(138),u=r(476);e.a=createI18nMessageFactory;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var c=new i.a(new n.c),l=function(){function _I18nVisitor(t,e){this._expressionParser=t,this._interpolationConfig=e}return _I18nVisitor.prototype.toI18nMessage=function(t,e,r){this._isIcu=1==t.length&&t[0]instanceof o.b,this._icuDepth=0,this._placeholderRegistry=new u.a,this._placeholderToContent={},this._placeholderToMessage={};var n=o.g(this,t,{});return new a.e(n,this._placeholderToContent,this._placeholderToMessage,e,r)},_I18nVisitor.prototype.visitElement=function(t,e){var n=o.g(this,t.children),i={};t.attrs.forEach(function(t){i[t.name]=t.value});var u=r.i(s.a)(t.name).isVoid,c=this._placeholderRegistry.getStartTagPlaceholderName(t.name,i,u);this._placeholderToContent[c]=t.sourceSpan.toString();var l="";return u||(l=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[l]=""),new a.f(t.name,i,c,l,n,u,t.sourceSpan)},_I18nVisitor.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},_I18nVisitor.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},_I18nVisitor.prototype.visitComment=function(t,e){return null},_I18nVisitor.prototype.visitExpansion=function(t,e){var r=this;this._icuDepth++;var n={},i=new a.c(t.switchValue,t.type,n,t.sourceSpan);if(t.cases.forEach(function(t){n[t.value]=new a.b(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var o=this._placeholderRegistry.getUniquePlaceholder("VAR_"+t.type);return i.expressionPlaceholder=o,this._placeholderToContent[o]=t.switchValue,i}var s=this._placeholderRegistry.getPlaceholderName("ICU",t.sourceSpan.toString()),u=new _I18nVisitor(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=u.toI18nMessage([t],"",""),new a.g(i,s,t.sourceSpan)},_I18nVisitor.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},_I18nVisitor.prototype._visitTextWithInterpolation=function(t,e){var r=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!r)return new a.a(t,e);for(var n=[],i=new a.b(n,e),o=this._interpolationConfig,s=o.start,u=o.end,c=0;c":">";return n+i+o},PlaceholderRegistry.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},PlaceholderRegistry.prototype._generateUniqueName=function(t){var e=this._placeHolderNameCounts.hasOwnProperty(t);if(!e)return this._placeHolderNameCounts[t]=1,t;var r=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=r+1,t+"_"+r},PlaceholderRegistry}()},function(t,e,r){"use strict";var n=r(70),i=r(140);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function TranslationBundle(t,e,r){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this.digest=e,this.mapperFactory=r,this._i18nToHtml=new s(t,e,r)}return TranslationBundle.load=function(t,e,r){var n=r.load(t,e),i=function(t){return r.digest(t)},o=function(t){return r.createNameMapper(t)};return new TranslationBundle(n,i,o)},TranslationBundle.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},TranslationBundle.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},TranslationBundle}(),s=function(){function I18nToHtmlVisitor(t,e,r){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._digest=e,this._mapperFactory=r,this._contextStack=[],this._errors=[]}return I18nToHtmlVisitor.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),r=t.nodes[0].sourceSpan.start.file.url,i=(new n.a).parse(e,r,!0);return{nodes:i.rootNodes,errors:this._errors.concat(i.errors)}},I18nToHtmlVisitor.prototype.visitText=function(t,e){return t.value},I18nToHtmlVisitor.prototype.visitContainer=function(t,e){var r=this;return t.children.map(function(t){return t.visit(r)}).join("")},I18nToHtmlVisitor.prototype.visitIcu=function(t,e){var r=this,n=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(r)+"}"}),i=this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression;return"{"+i+", "+t.type+", "+n.join(" ")+"}"},I18nToHtmlVisitor.prototype.visitPlaceholder=function(t,e){var r=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(r)?this._srcMsg.placeholders[r]:this._srcMsg.placeholderToMessage.hasOwnProperty(r)?this._convertToText(this._srcMsg.placeholderToMessage[r]):(this._addError(t,"Unknown placeholder"),"")},I18nToHtmlVisitor.prototype.visitTagPlaceholder=function(t,e){throw"unreachable code"},I18nToHtmlVisitor.prototype.visitIcuPlaceholder=function(t,e){throw"unreachable code"},I18nToHtmlVisitor.prototype._convertToText=function(t){var e=this,r=this._digest(t),n=this._mapperFactory?this._mapperFactory(t):null;if(this._i18nNodesByMsgId.hasOwnProperty(r)){this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._mapper=function(t){return n?n.toInternalName(t):t};var i=this._i18nNodesByMsgId[r],o=i.map(function(t){return t.visit(e)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,o}return this._addError(t.nodes[0],"Missing translation for message "+r),""},I18nToHtmlVisitor.prototype._addError=function(t,e){this._errors.push(new i.a(t.sourceSpan,e))},I18nToHtmlVisitor}()},function(t,e,r){"use strict";function _initReflector(){b.c.reflectionCapabilities=new b.L}function _mergeOptions(t){return{useDebug:_lastDefined(t.map(function(t){return t.useDebug})),useJit:_lastDefined(t.map(function(t){return t.useJit})),defaultEncapsulation:_lastDefined(t.map(function(t){return t.defaultEncapsulation})),providers:_mergeArrays(t.map(function(t){return t.providers}))}}function _lastDefined(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}function _mergeArrays(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var n=r(1),i=r(136),o=r(59),s=r(100),a=r(101),u=r(60),c=r(102),l=r(82),p=r(286),f=r(17),h=r(103),d=r(70),m=r(142),y=r(104),v=r(105),b=r(14),_=r(201),g=r(143),S=r(62),w=r(145),E=r(202),C=r(106),A=r(72),x=r(107),T=r(291);r.d(e,"a",function(){return N});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var O=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},P=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},R={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},M=new n.OpaqueToken("HtmlParser"),I=[{provide:b.N,useValue:b.c},{provide:b.K,useExisting:b.N},{provide:_.a,useValue:R},E.a,b.F,c.c,l.a,{provide:M,useClass:d.a},{provide:p.a,useFactory:function(t,e,r){return new p.a(t,e,r)},deps:[M,[new n.Optional,new n.Inject(n.TRANSLATIONS)],[new n.Optional,new n.Inject(n.TRANSLATIONS_FORMAT)]]},{provide:d.a,useExisting:p.a},C.a,s.a,h.a,A.d,w.a,x.d,m.a,u.a,{provide:o.a,useValue:new o.a},T.a,{provide:n.Compiler,useExisting:T.a},g.a,{provide:S.a,useExisting:g.a},A.a,a.a,v.a,y.a,i.a],D=function(){function JitCompilerFactory(t){this._defaultOptions=[{useDebug:r.i(n.isDevMode)(),useJit:!0,defaultEncapsulation:n.ViewEncapsulation.Emulated}].concat(t)}return JitCompilerFactory.prototype.createCompiler=function(t){void 0===t&&(t=[]);var e=_mergeOptions(this._defaultOptions.concat(t)),r=n.ReflectiveInjector.resolveAndCreate([I,{provide:o.a,useFactory:function(){return new o.a({genDebugInfo:e.useDebug,useJit:e.useJit,defaultEncapsulation:e.defaultEncapsulation,logBindingUpdate:e.useDebug})},deps:[]},e.providers]);return r.get(n.Compiler)},JitCompilerFactory.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[n.COMPILER_OPTIONS]}]}]},JitCompilerFactory=O([r.i(f.a)(),P("design:paramtypes",[Array])],JitCompilerFactory)}(),N=r.i(n.createPlatformFactory)(n.platformCore,"coreDynamic",[{provide:n.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:n.CompilerFactory,useClass:D},{provide:n.PLATFORM_INITIALIZER,useValue:_initReflector,multi:!0}])},function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function hasLifecycleHook(t,e){return n.c.hasLifecycleHook(e,getHookName(t))}function getHookName(t){switch(t){case n.G.OnInit:return"ngOnInit";case n.G.OnDestroy:return"ngOnDestroy";case n.G.DoCheck:return"ngDoCheck";case n.G.OnChanges:return"ngOnChanges";case n.G.AfterContentInit:return"ngAfterContentInit";case n.G.AfterContentChecked:return"ngAfterContentChecked";case n.G.AfterViewInit:return"ngAfterViewInit";case n.G.AfterViewChecked:return"ngAfterViewChecked"}}var n=r(14);e.a=hasLifecycleHook},function(t,e,r){"use strict";function expandNodes(t){var e=new c;return new a(i.g(e,t),e.isExpanded,e.errors)}function _expandPluralForm(t,e){var r=t.cases.map(function(t){s.indexOf(t.value)!=-1||t.value.match(/^=\d+$/)||e.push(new u(t.valueSourceSpan,'Plural cases should be "=" or one of '+s.join(", ")));var r=expandNodes(t.expression);return e.push.apply(e,r.errors),new i.e("template",[new i.f("ngPluralCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new i.f("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new i.e("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function _expandDefaultForm(t,e){var r=t.cases.map(function(t){var r=expandNodes(t.expression);return e.push.apply(e,r.errors),"other"===t.value?new i.e("template",[new i.f("ngSwitchDefault","",t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new i.e("template",[new i.f("ngSwitchCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new i.f("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new i.e("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}var n=r(33),i=r(61);e.a=expandNodes;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},s=["zero","one","two","few","many","other"],a=function(){function ExpansionResult(t,e,r){this.nodes=t,this.expanded=e,this.errors=r}return ExpansionResult}(),u=function(t){function ExpansionError(e,r){t.call(this,e,r)}return o(ExpansionError,t),ExpansionError}(n.a),c=function(){function _Expander(){this.isExpanded=!1,this.errors=[]}return _Expander.prototype.visitElement=function(t,e){return new i.e(t.name,t.attrs,i.g(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},_Expander.prototype.visitAttribute=function(t,e){return t},_Expander.prototype.visitText=function(t,e){return t},_Expander.prototype.visitComment=function(t,e){return t},_Expander.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?_expandPluralForm(t,this.errors):_expandDefaultForm(t,this.errors)},_Expander.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},_Expander}()},function(t,e,r){"use strict";function tokenize(t,e,r,n,s){return void 0===n&&(n=!1),void 0===s&&(s=o.a),new d(new i.b(t,e),r,n,s).tokenize()}function _unexpectedCharacterErrorMsg(t){var e=t===n.m?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function _unknownEntityErrorMsg(t){return'Unknown entity "'+t+'" - use the "&#;" or "&#x;" syntax'}function isNotWhitespace(t){return!n.F(t)||t===n.m}function isNameEnd(t){return n.F(t)||t===n.z||t===n.b||t===n.p||t===n.q||t===n.A}function isPrefixEnd(t){return(tn._4)}function isDigitEntityEnd(t){return t==n.c||t==n.m||!n._5(t)}function isNamedEntityEnd(t){return t==n.c||t==n.m||!n.O(t)}function isExpansionFormStart(t,e,r){var i=!!r&&t.indexOf(r.start,e)==e;return t.charCodeAt(e)==n.j&&!i}function isExpansionCaseStart(t){return t===n.A||n.O(t)}function compareCharCodeCaseInsensitive(t,e){return toUpperCaseCharCode(t)==toUpperCaseCharCode(e)}function toUpperCaseCharCode(t){return t>=n.I&&t<=n.J?t-n.I+n.K:t}function mergeTextTokens(t){for(var e,r=[],n=0;n=this._length)throw this._createError(_unexpectedCharacterErrorMsg(n.m),this._getSpan());this._peek===n.a?(this._line++,this._column=0):this._peek!==n.a&&this._peek!==n.W&&this._column++,this._index++,this._peek=this._index>=this._length?n.m:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?n.m:this._input.charCodeAt(this._index+1)},_Tokenizer.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},_Tokenizer.prototype._attemptCharCodeCaseInsensitive=function(t){return!!compareCharCodeCaseInsensitive(this._peek,t)&&(this._advance(),!0)},_Tokenizer.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(_unexpectedCharacterErrorMsg(this._peek),this._getSpan(e,e))},_Tokenizer.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var r=this._savePosition(),n=0;nn.offset&&o.push(this._input.substring(n.offset,this._index));this._peek!==e;)o.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(o.join(""))],n)},_Tokenizer.prototype._consumeComment=function(t){var e=this;this._beginToken(u.COMMENT_START,t),this._requireCharCode(n.t),this._endToken([]);var r=this._consumeRawText(!1,n.t,function(){return e._attemptStr("->")});this._beginToken(u.COMMENT_END,r.sourceSpan.end),this._endToken([])},_Tokenizer.prototype._consumeCdata=function(t){var e=this;this._beginToken(u.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var r=this._consumeRawText(!1,n.g,function(){return e._attemptStr("]>")});this._beginToken(u.CDATA_END,r.sourceSpan.end),this._endToken([])},_Tokenizer.prototype._consumeDocType=function(t){this._beginToken(u.DOC_TYPE,t),this._attemptUntilChar(n.z),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},_Tokenizer.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;this._peek!==n.d&&!isPrefixEnd(this._peek);)this._advance();var r;this._peek===n.d?(this._advance(),e=this._input.substring(t,this._index-1),r=this._index):r=t,this._requireCharCodeUntilFn(isNameEnd,this._index===r?1:0);var i=this._input.substring(r,this._index);return[e,i]},_Tokenizer.prototype._consumeTagOpen=function(t){var e,r,i=this._savePosition();try{if(!n.O(this._peek))throw this._createError(_unexpectedCharacterErrorMsg(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(o,this._index),r=e.toLowerCase(),this._attemptCharCodeUntilFn(isNotWhitespace);this._peek!==n.b&&this._peek!==n.z;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(isNotWhitespace),this._attemptCharCode(n.A)&&(this._attemptCharCodeUntilFn(isNotWhitespace),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(isNotWhitespace);this._consumeTagOpenEnd()}catch(e){if(e instanceof h)return this._restorePosition(i),this._beginToken(u.TEXT,t),void this._endToken(["<"]);throw e}var a=this._getTagDefinition(e).contentType;a===s.a.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):a===s.a.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},_Tokenizer.prototype._consumeRawTextWithTagClose=function(t,e){var r=this,i=this._consumeRawText(e,n.y,function(){return!!r._attemptCharCode(n.b)&&(r._attemptCharCodeUntilFn(isNotWhitespace),!!r._attemptStrCaseInsensitive(t)&&(r._attemptCharCodeUntilFn(isNotWhitespace),r._attemptCharCode(n.z)))});this._beginToken(u.TAG_CLOSE,i.sourceSpan.end),this._endToken([null,t])},_Tokenizer.prototype._consumeTagOpenStart=function(t){this._beginToken(u.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},_Tokenizer.prototype._consumeAttributeName=function(){this._beginToken(u.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},_Tokenizer.prototype._consumeAttributeValue=function(){this._beginToken(u.ATTR_VALUE);var t;if(this._peek===n.p||this._peek===n.q){var e=this._peek;this._advance();for(var r=[];this._peek!==e;)r.push(this._readChar(!0));t=r.join(""),this._advance()}else{var i=this._index;this._requireCharCodeUntilFn(isNameEnd,1),t=this._input.substring(i,this._index)}this._endToken([this._processCarriageReturns(t)])},_Tokenizer.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(n.b)?u.TAG_OPEN_END_VOID:u.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(n.z),this._endToken([])},_Tokenizer.prototype._consumeTagClose=function(t){this._beginToken(u.TAG_CLOSE,t),this._attemptCharCodeUntilFn(isNotWhitespace);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(isNotWhitespace),this._requireCharCode(n.z),this._endToken(e)},_Tokenizer.prototype._consumeExpansionFormStart=function(){this._beginToken(u.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(n.j),this._endToken([]),this._expansionCaseStack.push(u.EXPANSION_FORM_START),this._beginToken(u.RAW_TEXT,this._getLocation());var t=this._readUntil(n.k);this._endToken([t],this._getLocation()),this._requireCharCode(n.k),this._attemptCharCodeUntilFn(isNotWhitespace),this._beginToken(u.RAW_TEXT,this._getLocation());var e=this._readUntil(n.k);this._endToken([e],this._getLocation()),this._requireCharCode(n.k),this._attemptCharCodeUntilFn(isNotWhitespace)},_Tokenizer.prototype._consumeExpansionCaseStart=function(){this._beginToken(u.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(n.j).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._beginToken(u.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(n.j),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._expansionCaseStack.push(u.EXPANSION_CASE_EXP_START)},_Tokenizer.prototype._consumeExpansionCaseEnd=function(){this._beginToken(u.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(n.l),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._expansionCaseStack.pop()},_Tokenizer.prototype._consumeExpansionFormEnd=function(){this._beginToken(u.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(n.l),this._endToken([]),this._expansionCaseStack.pop()},_Tokenizer.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(u.TEXT,t);var e=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},_Tokenizer.prototype._isTextEnd=function(){if(this._peek===n.y||this._peek===n.m)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(isExpansionFormStart(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===n.l&&this._isInExpansionCase())return!0}return!1},_Tokenizer.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},_Tokenizer.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},_Tokenizer.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===u.EXPANSION_CASE_EXP_START},_Tokenizer.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===u.EXPANSION_FORM_START},_Tokenizer}()},function(t,e,r){"use strict";function getXmlTagDefinition(t){return o}var n=r(71);e.a=getXmlTagDefinition;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function XmlTagDefinition(){this.closedByParent=!1,this.contentType=n.a.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return XmlTagDefinition.prototype.requireExtraParent=function(t){return!1},XmlTagDefinition.prototype.isClosedByChild=function(t){return!1},XmlTagDefinition}(),o=new i},function(t,e,r){"use strict";var n=r(6),i=r(198),o=r(9);r.d(e,"a",function(){return a});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},a=function(t){function AbstractJsEmitterVisitor(){t.call(this,!1)}return s(AbstractJsEmitterVisitor,t),AbstractJsEmitterVisitor.prototype.visitDeclareClassStmt=function(t,e){var i=this;return e.pushClass(t),this._visitClassConstructor(t,e),r.i(n.c)(t.parent)&&(e.print(t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(".prototype);")),t.getters.forEach(function(r){return i._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return i._visitClassMethod(t,r,e)}),e.popClass(),null},AbstractJsEmitterVisitor.prototype._visitClassConstructor=function(t,e){e.print("function "+t.name+"("),r.i(n.c)(t.constructorMethod)&&this._visitParams(t.constructorMethod.params,e),e.println(") {"),e.incIndent(),r.i(n.c)(t.constructorMethod)&&t.constructorMethod.body.length>0&&(e.println("var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println("}")},AbstractJsEmitterVisitor.prototype._visitClassGetter=function(t,e,r){r.println("Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),r.incIndent(),e.body.length>0&&(r.println("var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println("}});")},AbstractJsEmitterVisitor.prototype._visitClassMethod=function(t,e,r){r.print(t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,r),r.println(") {"),r.incIndent(),e.body.length>0&&(r.println("var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println("};")},AbstractJsEmitterVisitor.prototype.visitReadVarExpr=function(e,r){if(e.builtin===o.F.This)r.print("self");else{if(e.builtin===o.F.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,r)}return null},AbstractJsEmitterVisitor.prototype.visitDeclareVarStmt=function(t,e){return e.print("var "+t.name+" = "),t.value.visitExpression(this,e),e.println(";"),null},AbstractJsEmitterVisitor.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},AbstractJsEmitterVisitor.prototype.visitInvokeFunctionExpr=function(e,r){var n=e.fn;return n instanceof o.A&&n.builtin===o.F.Super?(r.currentClass.parent.visitExpression(this,r),r.print(".call(this"),e.args.length>0&&(r.print(", "),this.visitAllExpressions(e.args,r,",")),r.print(")")):t.prototype.visitInvokeFunctionExpr.call(this,e,r),null},AbstractJsEmitterVisitor.prototype.visitFunctionExpr=function(t,e){return e.print("function("),this._visitParams(t.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print("}"),null},AbstractJsEmitterVisitor.prototype.visitDeclareFunctionStmt=function(t,e){return e.print("function "+t.name+"("),this._visitParams(t.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println("}"),null},AbstractJsEmitterVisitor.prototype.visitTryCatchStmt=function(t,e){e.println("try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println("} catch ("+i.b.name+") {"),e.incIndent();var r=[i.c.set(i.b.prop("stack")).toDeclStmt(null,[o.k.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println("}"),null},AbstractJsEmitterVisitor.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(t.name)},t,e,",")},AbstractJsEmitterVisitor.prototype.getBuiltinMethodName=function(t){var e;switch(t){case o.O.ConcatArray:e="concat";break;case o.O.SubscribeObservable:e="subscribe";break;case o.O.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},AbstractJsEmitterVisitor}(i.d)},function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function interpretStatements(t,e){var o=t.concat([new i.t(i.a(e))]),a=new s(null,null,null,new Map),c=new u,l=c.visitAllStatements(o,a);return r.i(n.c)(l)?l.value:null}function _executeFunctionStatements(t,e,i,o,s){for(var a=o.createChildWihtLocalVars(),u=0;uo();case i.y.BiggerEquals:return n()>=o();default:throw new Error("Unknown operator "+t.operator)}},StatementInterpreter.prototype.visitReadPropExpr=function(t,e){var r,n=t.receiver.visitExpression(this,e);return r=n[t.name]},StatementInterpreter.prototype.visitReadKeyExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.index.visitExpression(this,e);return r[n]},StatementInterpreter.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},StatementInterpreter.prototype.visitLiteralMapExpr=function(t,e){var r=this,n={};return t.entries.forEach(function(t){return n[t.key]=t.value.visitExpression(r,e)}),n},StatementInterpreter.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},StatementInterpreter.prototype.visitAllStatements=function(t,e){for(var r=0;r0?o.push(a):(o.length>0&&(n.push(o.join("")),r.push(T),o=[]),r.push(a)),a==A&&i++}return o.length>0&&(n.push(o.join("")),r.push(T)),new P(r.join(""),n)}r.d(e,"a",function(){return n});var n=function(){function ShadowCss(){this.strictStyling=!0}return ShadowCss.prototype.shimCssText=function(t,e,r){void 0===r&&(r="");var n=extractSourceMappingUrl(t);return t=stripComments(t),t=this._insertDirectives(t),this._scopeCssText(t,e,r)+n},ShadowCss.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},ShadowCss.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(o,function(){for(var t=[],e=0;e-1?this._colonHostPartReplacer(t,e,r):t+e+r+", "+e+" "+t+r},ShadowCss.prototype._colonHostPartReplacer=function(t,e,r){return t+e.replace(u,"")+r},ShadowCss.prototype._convertShadowDOMSelectors=function(t){return m.reduce(function(t,e){return t.replace(e," ")},t)},ShadowCss.prototype._scopeSelectors=function(t,e,r){var n=this;return processRules(t,function(t){var i=t.selector,o=t.content;return"@"!=t.selector[0]?i=n._scopeSelector(t.selector,e,r,n.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(o=n._scopeSelectors(t.content,e,r)),new O(i,o)})},ShadowCss.prototype._scopeSelector=function(t,e,r,n){var i=this;return t.split(",").map(function(t){return t.trim().split(y)}).map(function(t){var o=t[0],s=t.slice(1),a=function(t){return i._selectorNeedsScoping(t,e)?n?i._applyStrictSelectorScope(t,e,r):i._applySelectorScope(t,e,r):t};return[a(o)].concat(s).join(" ")}).join(", ")},ShadowCss.prototype._selectorNeedsScoping=function(t,e){var r=this._makeScopeMatcher(e);return!r.test(t)},ShadowCss.prototype._makeScopeMatcher=function(t){var e=/\[/g,r=/\]/g;return t=t.replace(e,"\\[").replace(r,"\\]"),new RegExp("^("+t+")"+v,"m")},ShadowCss.prototype._applySelectorScope=function(t,e,r){return this._applySimpleSelectorScope(t,e,r)},ShadowCss.prototype._applySimpleSelectorScope=function(t,e,r){if(b.lastIndex=0,b.test(t)){var n=this.strictStyling?"["+r+"]":e;return t.replace(d,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,r,i){return e+n+r+i})}).replace(b,n+" ")}return e+" "+t},ShadowCss.prototype._applyStrictSelectorScope=function(t,e,r){var n=this,o=/\[is=([^\]]*)\]/g;e=e.replace(o,function(t){for(var e=[],r=1;r-1)i=n._applySimpleSelectorScope(t,e,r);else{var o=t.replace(b,"");if(o.length>0){var a=o.match(/([^:]*)(:*)(.*)/);a&&(i=a[1]+s+a[2]+a[3])}}return i},u=new i(t);t=u.content();for(var c,l="",p=0,f=/( |>|\+|~(?!=))\s*/g,d=t.indexOf(h);null!==(c=f.exec(t));){var m=c[1],y=t.slice(p,c.index).trim(),v=p>=d?a(y):y;l+=v+" "+m+" ",p=f.lastIndex}return l+=a(t.substring(p)),u.restore(l)},ShadowCss.prototype._insertPolyfillHostInCssText=function(t){return t.replace(g,c).replace(_,u)},ShadowCss}(),i=function(){function SafeSelector(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,r){var n="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,r,n){var i="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r+i})}return SafeSelector.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,r){return e.placeholders[+r]})},SafeSelector.prototype.content=function(){return this._content},SafeSelector}(),o=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,s=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,a=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,u="-shadowcsshost",c="-shadowcsscontext",l=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",p=new RegExp("("+u+l,"gim"),f=new RegExp("("+c+l,"gim"),h=u+"-no-combinator",d=/-shadowcsshost-no-combinator([^\s]*)/,m=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],y=/(?:>>>)|(?:\/deep\/)/g,v="([>\\s~+[.,{:][\\s\\S]*)?$",b=/-shadowcsshost/gim,_=/:host/gim,g=/:host-context/gim,S=/\/\*\s*[\s\S]*?\*\//g,w=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,E=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,C=/([{}])/g,A="{",x="}",T="%BLOCK%",O=function(){function CssRule(t,e){this.selector=t,this.content=e}return CssRule}(),P=function(){function StringWithEscapedBlocks(t,e){this.escapedString=t,this.blocks=e}return StringWithEscapedBlocks}()},function(t,e,r){"use strict";var n=r(1);new n.Version("2.4.6")},function(t,e,r){"use strict";function _findPipeMeta(t,e){for(var r=null,n=t.pipeMetas.length-1;n>=0;n--){var i=t.pipeMetas[n];if(i.name==e){r=i;break}}if(!r)throw new Error("Illegal state: Could not find pipe "+e+" although the parser should have detected this error!");return r}var n=r(12),i=r(40),o=r(16),s=r(9),a=r(73);r.d(e,"a",function(){return u});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u=function(){function CompilePipe(t,e){var i=this;this.view=t,this.meta=e,this._purePipeProxyCount=0,this.instance=s.e.prop("_pipe_"+e.name+"_"+t.pipeCount++);var u=this.meta.type.diDeps.map(function(e){return r.i(n.j)(e.token)===r.i(o.e)(o.b.ChangeDetectorRef)?r.i(a.c)(s.e.prop("ref"),i.view,i.view.componentView):r.i(a.b)(t,e.token,!1)});this.view.fields.push(new s.c(this.instance.name,s.d(this.meta.type))),this.view.createMethod.resetDebugInfo(null,null),this.view.createMethod.addStmt(s.e.prop(this.instance.name).set(s.g(this.meta.type).instantiate(u)).toStmt())}return CompilePipe.call=function(t,e,r){var n,i=t.componentView,o=_findPipeMeta(i,e);return o.pure?(n=i.purePipes.get(e),n||(n=new CompilePipe(i,o),i.purePipes.set(e,n),i.pipes.push(n))):(n=new CompilePipe(t,o),t.pipes.push(n)),n._call(t,r)},Object.defineProperty(CompilePipe.prototype,"pure",{get:function(){return this.meta.pure},enumerable:!0,configurable:!0}),CompilePipe.prototype._call=function(t,e){if(this.meta.pure){var n=s.e.prop(this.instance.name+"_"+this._purePipeProxyCount++),u=r.i(a.c)(this.instance,t,this.view);return r.i(i.c)(u.prop("transform").callMethod(s.O.Bind,[u]),e.length,n,{fields:t.fields,ctorStmts:t.createMethod}),s.g(r.i(o.a)(o.b.castByValue)).callFn([n,u.prop("transform")]).callFn(e)}return r.i(a.c)(this.instance,t,this.view).callMethod("transform",e)},CompilePipe}()},function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function bindOutputs(t,e,r,n){var i=collectEvents(t,e);return!!i.size&&(n&&subscribeToRenderEvents(i,r),subscribeToDirectiveEvents(i,e,r),generateHandleEventMethod(t,e,r),!0)}function collectEvents(t,e){var r=new Map;return t.forEach(function(t){r.set(t.fullName,t)}),e.forEach(function(t){t.hostEvents.forEach(function(t){r.set(t.fullName,t)})}),r}function subscribeToRenderEvents(t,e){var n=[];if(t.forEach(function(t){t.phase||n.push(a.f(t.name),a.f(t.target))}),n.length){var o=a.a("disposable_"+e.view.disposables.length);e.view.disposables.push(o),e.view.createMethod.addStmt(o.set(a.g(r.i(s.a)(s.b.subscribeToRenderElement)).callFn([a.e,e.renderNode,r.i(i.a)(n),handleEventExpr(e)])).toDeclStmt(a.M,[a.k.Private]))}}function subscribeToDirectiveEvents(t,e,r){var n=Array.from(t.keys());e.forEach(function(t){var e=r.directiveWrapperInstance.get(t.directive.type.reference);r.view.createMethod.addStmts(o.b.subscribe(t.directive,t.hostProperties,n,e,a.e,handleEventExpr(r)))})}function generateHandleEventMethod(t,e,i){var s=e.some(function(t){return t.hostEvents.some(function(e){return t.directive.isComponent})}),l=s?i.compViewExpr:a.e,p=new u.a(i.view);p.resetDebugInfo(i.nodeIndex,i.sourceAst),p.push(l.callMethod("markPathToRootAsCheckOnce",[]).toStmt());var f=a.a("eventName"),h=a.a("result");p.push(h.set(a.f(!0)).toDeclStmt(a.s)),e.forEach(function(t,e){var r=i.directiveWrapperInstance.get(t.directive.type.reference);t.hostEvents.length>0&&p.push(h.set(o.b.handleEvent(t.hostEvents,r,f,n.d.event).and(h)).toStmt())}),t.forEach(function(t,e){var o=r.i(n.c)(i.view,i.view,i.view.componentContext,t.handler,"sub_"+e),s=o.stmts;o.preventDefault&&s.push(h.set(o.preventDefault.and(h)).toStmt()),p.push(new a.u(f.equals(a.f(t.fullName)),s))}),p.push(new a.t(h)),i.view.methods.push(new a.q(r.i(c.d)(i.nodeIndex),[new a.o(f.name,a.r),new a.o(n.d.event.name,a.m)],p.finish(),a.s))}function handleEventExpr(t){var e=r.i(c.d)(t.nodeIndex);return a.e.callMethod("eventHandler",[a.e.prop(e)])}var n=r(99),i=r(40),o=r(60),s=r(16),a=r(9),u=r(203),c=r(73);e.a=bindOutputs},function(t,e,r){"use strict";function bindDirectiveAfterContentLifecycleCallbacks(t,e,r){var n=r.view,s=t.type.lifecycleHooks,a=n.afterContentLifecycleCallbacksMethod;a.resetDebugInfo(r.nodeIndex,r.sourceAst),s.indexOf(o.G.AfterContentInit)!==-1&&a.addStmt(new i.u(u,[e.callMethod("ngAfterContentInit",[]).toStmt()])),s.indexOf(o.G.AfterContentChecked)!==-1&&a.addStmt(e.callMethod("ngAfterContentChecked",[]).toStmt())}function bindDirectiveAfterViewLifecycleCallbacks(t,e,r){var n=r.view,s=t.type.lifecycleHooks,a=n.afterViewLifecycleCallbacksMethod;a.resetDebugInfo(r.nodeIndex,r.sourceAst),s.indexOf(o.G.AfterViewInit)!==-1&&a.addStmt(new i.u(u,[e.callMethod("ngAfterViewInit",[]).toStmt()])),s.indexOf(o.G.AfterViewChecked)!==-1&&a.addStmt(e.callMethod("ngAfterViewChecked",[]).toStmt())}function bindDirectiveWrapperLifecycleCallbacks(t,e,r){r.view.destroyMethod.addStmts(n.b.ngOnDestroy(t.directive,e)),r.view.detachMethod.addStmts(n.b.ngOnDetach(t.hostProperties,e,i.e,r.compViewExpr||i.e,r.renderNode))}function bindInjectableDestroyLifecycleCallbacks(t,e,r){var n=r.view.destroyMethod;n.resetDebugInfo(r.nodeIndex,r.sourceAst),t.providerType!==s.c.Directive&&t.providerType!==s.c.Component&&t.lifecycleHooks.indexOf(o.G.OnDestroy)!==-1&&n.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function bindPipeDestroyLifecycleCallbacks(t,e,r){var n=r.destroyMethod;t.type.lifecycleHooks.indexOf(o.G.OnDestroy)!==-1&&n.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}var n=r(60),i=r(9),o=r(14),s=r(42),a=r(146);e.b=bindDirectiveAfterContentLifecycleCallbacks,e.c=bindDirectiveAfterViewLifecycleCallbacks,e.d=bindDirectiveWrapperLifecycleCallbacks,e.e=bindInjectableDestroyLifecycleCallbacks,e.a=bindPipeDestroyLifecycleCallbacks;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var u=i.e.prop("numberOfChecks").identical(new i.N(0));i.v(a.g.throwOnChange)},function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function bindRenderText(t,e,o){var s=r.i(n.a)(o),a=r.i(i.b)(o,o,o.componentContext,t.value,s.bindingId);return a?(o.detectChangesRenderPropertiesMethod.resetDebugInfo(e.nodeIndex,t),void o.detectChangesRenderPropertiesMethod.addStmts(r.i(n.b)(a,s.expression,f.g.throwOnChange,[c.e.prop("renderer").callMethod("setText",[e.renderNode,a.currValExpr]).toStmt()]))):null}function bindRenderInputs(t,e,o,a){var l=a.view,d=a.renderNode;t.forEach(function(t){var m=r.i(n.a)(l);l.detectChangesRenderPropertiesMethod.resetDebugInfo(a.nodeIndex,t);var y=r.i(i.b)(l,l,a.view.componentContext,t.value,m.bindingId);if(y){var v=[],b=l.detectChangesRenderPropertiesMethod;switch(t.type){case p.f.Property:case p.f.Attribute:case p.f.Class:case p.f.Style:v.push.apply(v,r.i(s.b)(c.e,t,d,y.currValExpr,l.genConfig.logBindingUpdate));break;case p.f.Animation:b=l.animationBindingsMethod;var _=r.i(s.a)(c.e,c.e,t,e,(o?c.e.prop(r.i(h.d)(a.nodeIndex)):c.g(r.i(u.a)(u.b.noop))).callMethod(c.O.Bind,[c.e]),a.renderNode,y.currValExpr,m.expression),g=_.updateStmts,S=_.detachStmts;v.push.apply(v,g),l.detachMethod.addStmts(S)}b.addStmts(r.i(n.b)(y,m.expression,f.g.throwOnChange,v))}})}function bindDirectiveHostProps(t,e,n,i,s){var l=t.hostProperties.filter(function(t){return t.needsRuntimeSecurityContext}).map(function(t){var e;switch(t.type){case p.f.Property:e=s.securityContext(i,t.name,!1);break;case p.f.Attribute:e=s.securityContext(i,t.name,!0);break;default:throw new Error("Illegal state: Only property / attribute bindings can have an unknown security context! Binding "+t.name)}return r.i(o.d)(u.b.SecurityContext,e)});n.view.detectChangesRenderPropertiesMethod.addStmts(a.b.checkHost(t.hostProperties,e,c.e,n.compViewExpr||c.e,n.renderNode,f.g.throwOnChange,l))}function bindDirectiveInputs(t,e,n,o){var s=o.view,u=s.detectChangesInInputsMethod;u.resetDebugInfo(o.nodeIndex,o.sourceAst),t.inputs.forEach(function(t,a){var l=o.nodeIndex+"_"+n+"_"+a;u.resetDebugInfo(o.nodeIndex,t);var p=r.i(i.b)(s,s,s.componentContext,t.value,l);p&&(u.addStmts(p.stmts),u.addStmt(e.callMethod("check_"+t.directiveName,[p.currValExpr,f.g.throwOnChange,p.forceUpdate||c.f(!1)]).toStmt()))});var p=t.directive.isComponent&&!r.i(l.E)(t.directive.changeDetection),h=a.b.ngDoCheck(e,c.e,o.renderNode,f.g.throwOnChange),d=p?new c.u(h,[o.compViewExpr.callMethod("markAsCheckOnce",[]).toStmt()]):h.toStmt();u.addStmt(d)}var n=r(282),i=r(99),o=r(40),s=r(283),a=r(60),u=r(16),c=r(9),l=r(14),p=r(42),f=r(146),h=r(73);e.a=bindRenderText,e.b=bindRenderInputs,e.d=bindDirectiveHostProps,e.c=bindDirectiveInputs},function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function bindQueryValues(t){var e=[];t.getProviderTokens().forEach(function(r){var n=t.getQueriesFor(r);e.push.apply(e,n.map(function(t){return new i(t,r)}))}),Object.keys(t.referenceTokens).forEach(function(r){var n={value:r};e.push.apply(e,t.getQueriesFor(n).map(function(t){return new i(t,n)}))}),e.forEach(function(e){var i;if(e.read.identifier)i=t.instances.get(r.i(n.j)(e.read));else{var o=t.referenceTokens[e.read.value];i=o?t.instances.get(r.i(n.j)(o)):t.elementRef}i&&e.query.addValue(i,t.view)})}var n=r(12);e.a=bindQueryValues;var i=function(){function _QueryWithRead(t,e){this.query=t,this.read=t.meta.read||e}return _QueryWithRead}()},function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function bindView(t,e,n){var o=new c(t,n);r.i(i.a)(o,e),t.pipes.forEach(function(t){r.i(s.a)(t.meta,t.instance,t.view)})}var n=r(12),i=r(42),o=r(491),s=r(492),a=r(493),u=r(494);e.a=bindView;var c=function(){function ViewBinderVisitor(t,e){this.view=t,this._schemaRegistry=e,this._nodeIndex=0}return ViewBinderVisitor.prototype.visitBoundText=function(t,e){var n=this.view.nodes[this._nodeIndex++];return r.i(a.a)(t,n,this.view),null},ViewBinderVisitor.prototype.visitText=function(t,e){return this._nodeIndex++,null},ViewBinderVisitor.prototype.visitNgContent=function(t,e){return null},ViewBinderVisitor.prototype.visitElement=function(t,e){var c=this,l=this.view.nodes[this._nodeIndex++];r.i(u.a)(l);var p=r.i(o.a)(t.outputs,t.directives,l,!0);return r.i(a.b)(t.inputs,t.outputs,p,l),t.directives.forEach(function(e,n){var i=l.directiveWrapperInstance.get(e.directive.type.reference);r.i(a.c)(e,i,n,l),r.i(a.d)(e,i,l,t.name,c._schemaRegistry)}),r.i(i.a)(this,t.children,l),t.directives.forEach(function(t){var e=l.instances.get(t.directive.type.reference),n=l.directiveWrapperInstance.get(t.directive.type.reference);r.i(s.b)(t.directive,e,l),r.i(s.c)(t.directive,e,l),r.i(s.d)(t,n,l)}),t.providers.forEach(function(t){var e=l.instances.get(r.i(n.j)(t.token));r.i(s.e)(t,e,l)}),null},ViewBinderVisitor.prototype.visitEmbeddedTemplate=function(t,e){var i=this.view.nodes[this._nodeIndex++];return r.i(u.a)(i),r.i(o.a)(t.outputs,t.directives,i,!1),t.directives.forEach(function(t,e){var n=i.instances.get(t.directive.type.reference),o=i.directiveWrapperInstance.get(t.directive.type.reference);r.i(a.c)(t,o,e,i),r.i(s.b)(t.directive,n,i),r.i(s.c)(t.directive,n,i),r.i(s.d)(t,o,i)}),t.providers.forEach(function(t){var e=i.instances.get(r.i(n.j)(t.token));r.i(s.e)(t,e,i)}),bindView(i.embeddedView,t.children,this._schemaRegistry),null},ViewBinderVisitor.prototype.visitAttr=function(t,e){return null},ViewBinderVisitor.prototype.visitDirective=function(t,e){return null},ViewBinderVisitor.prototype.visitEvent=function(t,e){return null},ViewBinderVisitor.prototype.visitReference=function(t,e){return null},ViewBinderVisitor.prototype.visitVariable=function(t,e){return null},ViewBinderVisitor.prototype.visitDirectiveProperty=function(t,e){return null},ViewBinderVisitor.prototype.visitElementProperty=function(t,e){return null},ViewBinderVisitor}()},function(t,e,r){"use strict";function buildView(t,e,n){var i=new C(t,n),o=t.declarationElement.isNull()?t.declarationElement:t.declarationElement.parent;return r.i(f.a)(i,e,o),t.viewType!==p.n.EMBEDDED&&t.viewType!==p.n.HOST||(t.lastRenderNode=i.getOrCreateLastRenderNode()),i.nestedViewCount}function finishView(t,e){t.nodes.forEach(function(t){t instanceof h.a&&(t.finish(),t.hasEmbeddedView&&finishView(t.embeddedView,e))}),t.finish(),createViewTopLevelStmts(t,e)}function _getOuterContainerOrSelf(t){for(var e=t.view;_isNgContainer(t.parent,e);)t=t.parent;return t}function _getOuterContainerParentOrSelf(t){for(var e=t.view;_isNgContainer(t,e);)t=t.parent;return t}function _isNgContainer(t,e){return!t.isNull()&&t.sourceAst.name===S&&t.view===e}function _mergeHtmlAndDirectiveAttrs(t,e){var n={};Object.keys(t).forEach(function(e){n[e]=t[e]}),e.forEach(function(t){Object.keys(t.hostAttributes).forEach(function(e){var i=t.hostAttributes[e],o=n[e];n[e]=r.i(a.c)(o)?mergeAttributeValue(e,o,i):i})});var i=[];return Object.keys(n).sort().forEach(function(t){i.push(t,n[t])}),i}function _readHtmlAttrs(t){var e={};return t.forEach(function(t){e[t.name]=t.value}),e}function mergeAttributeValue(t,e,r){return t==_||t==g?e+" "+r:r}function createViewTopLevelStmts(t,e){var n=l.b;t.genConfig.genDebugInfo&&(n=l.a("nodeDebugInfos_"+r.i(i.a)(t.component.type)+t.viewIndex),e.push(n.set(l.h(t.nodes.map(createStaticNodeDebugInfo),new l.i(l.d(r.i(u.a)(u.b.StaticNodeDebugInfo)),[l.j.Const]))).toDeclStmt(null,[l.k.Final])));var o=l.a("renderType_"+r.i(i.a)(t.component.type));if(0===t.viewIndex){var s=void 0;s=t.component.template.templateUrl==r.i(i.i)(t.component.type)?r.i(i.i)(t.component.type)+" class "+r.i(i.a)(t.component.type)+" - inline template":t.component.template.templateUrl,e.push(o.set(l.g(r.i(u.a)(u.b.createRenderComponentType)).callFn([t.genConfig.genDebugInfo?l.f(s):l.f(""),l.f(t.component.template.ngContentSelectors.length),m.b.fromValue(t.component.template.encapsulation),t.styles,l.l(t.animations.map(function(t){return[t.name,t.fnExp]}),null,!0)])).toDeclStmt(l.d(r.i(u.a)(u.b.RenderComponentType))))}var a=createViewClass(t,o,n);e.push(a)}function createStaticNodeDebugInfo(t){var e=t instanceof h.a?t:null,n=[],i=l.b,o=[];return r.i(a.c)(e)&&(n=e.getProviderTokens().map(function(t){return r.i(s.b)(t)}),r.i(a.c)(e.component)&&(i=r.i(s.b)(r.i(u.c)(e.component.type))),Object.keys(e.referenceTokens).forEach(function(t){var n=e.referenceTokens[t];o.push([t,r.i(a.c)(n)?r.i(s.b)(n):l.b])})),l.g(r.i(u.a)(u.b.StaticNodeDebugInfo)).instantiate([l.h(n,new l.i(l.m,[l.j.Const])),i,l.l(o,new l.n(l.m,[l.j.Const]))],l.d(r.i(u.a)(u.b.StaticNodeDebugInfo),null,[l.j.Const]))}function createViewClass(t,e,n){var i=[new l.o(m.c.viewUtils.name,l.d(r.i(u.a)(u.b.ViewUtils))),new l.o(m.c.parentView.name,l.d(r.i(u.a)(u.b.AppView),[l.m])),new l.o(m.c.parentIndex.name,l.p),new l.o(m.c.parentElement.name,l.m)],o=[l.a(t.className),e,m.d.fromValue(t.viewType),m.c.viewUtils,m.c.parentView,m.c.parentIndex,m.c.parentElement,m.e.fromValue(getChangeDetectionMode(t))];t.genConfig.genDebugInfo&&o.push(n),t.viewType===p.n.EMBEDDED&&(i.push(new l.o("declaredViewContainer",l.d(r.i(u.a)(u.b.ViewContainer)))),o.push(l.a("declaredViewContainer")));var s=[new l.q("createInternal",[new l.o(E.name,l.r)],generateCreateMethod(t),l.d(r.i(u.a)(u.b.ComponentRef),[l.m])),new l.q("injectorGetInternal",[new l.o(m.f.token.name,l.m),new l.o(m.f.requestNodeIndex.name,l.p),new l.o(m.f.notFoundResult.name,l.m)],addReturnValuefNotEmpty(t.injectorGetMethod.finish(),m.f.notFoundResult),l.m),new l.q("detectChangesInternal",[new l.o(m.g.throwOnChange.name,l.s)],generateDetectChangesMethod(t)),new l.q("dirtyParentQueriesInternal",[],t.dirtyParentQueriesMethod.finish()),new l.q("destroyInternal",[],generateDestroyMethod(t)),new l.q("detachInternal",[],t.detachMethod.finish()),generateVisitRootNodesMethod(t),generateVisitProjectableNodesMethod(t),generateCreateEmbeddedViewsMethod(t)].filter(function(t){return t.body.length>0}),a=t.genConfig.genDebugInfo?u.b.DebugAppView:u.b.AppView,f=r.i(c.a)({name:t.className,parent:l.g(r.i(u.a)(a),[getContextType(t)]),parentArgs:o,ctorParams:i,builders:[{methods:s},t]});return f}function generateDestroyMethod(t){var e=[];return t.viewContainers.forEach(function(t){e.push(t.callMethod("destroyNestedViews",[]).toStmt())}),t.viewChildren.forEach(function(t){e.push(t.callMethod("destroy",[]).toStmt())}),e.push.apply(e,t.destroyMethod.finish()),e}function generateCreateMethod(t){var e=l.b,n=[];t.viewType===p.n.COMPONENT&&(e=m.a.renderer.callMethod("createViewRoot",[l.e.prop("parentElement")]),n=[w.set(e).toDeclStmt(l.d(t.genConfig.renderTypes.renderNode),[l.k.Final])]);var i;if(t.viewType===p.n.HOST){var o=t.nodes[0];i=l.g(r.i(u.a)(u.b.ComponentRef_),[l.m]).instantiate([l.f(o.nodeIndex),l.e,o.renderNode,o.getComponent()])}else i=l.b;var s=m.a.renderer.cast(l.m).prop("directRenderer").conditional(l.b,l.h(t.nodes.map(function(t){return t.renderNode})));return n.concat(t.createMethod.finish(),[l.e.callMethod("init",[t.lastRenderNode,s,t.disposables.length?l.h(t.disposables):l.b]).toStmt(),new l.t(i)])}function generateDetectChangesMethod(t){var e=[];if(t.animationBindingsMethod.isEmpty()&&t.detectChangesInInputsMethod.isEmpty()&&t.updateContentQueriesMethod.isEmpty()&&t.afterContentLifecycleCallbacksMethod.isEmpty()&&t.detectChangesRenderPropertiesMethod.isEmpty()&&t.updateViewQueriesMethod.isEmpty()&&t.afterViewLifecycleCallbacksMethod.isEmpty()&&0===t.viewContainers.length&&0===t.viewChildren.length)return e;e.push.apply(e,t.animationBindingsMethod.finish()),e.push.apply(e,t.detectChangesInInputsMethod.finish()),t.viewContainers.forEach(function(t){e.push(t.callMethod("detectChangesInNestedViews",[m.g.throwOnChange]).toStmt())});var n=t.updateContentQueriesMethod.finish().concat(t.afterContentLifecycleCallbacksMethod.finish());n.length>0&&e.push(new l.u(l.v(m.g.throwOnChange),n)),e.push.apply(e,t.detectChangesRenderPropertiesMethod.finish()),t.viewChildren.forEach(function(t){e.push(t.callMethod("internalDetectChanges",[m.g.throwOnChange]).toStmt())});var i=t.updateViewQueriesMethod.finish().concat(t.afterViewLifecycleCallbacksMethod.finish());i.length>0&&e.push(new l.u(l.v(m.g.throwOnChange),i));var s=[],a=l.w(e);return a.has(m.g.changed.name)&&s.push(m.g.changed.set(l.f(!0)).toDeclStmt(l.s)),a.has(m.g.changes.name)&&s.push(m.g.changes.set(l.b).toDeclStmt(new l.n(l.d(r.i(u.a)(u.b.SimpleChange))))),s.push.apply(s,r.i(o.a)(e)),s.concat(e)}function addReturnValuefNotEmpty(t,e){return t.length>0?t.concat([new l.t(e)]):t}function getContextType(t){return t.viewType===p.n.COMPONENT?l.d(t.component.type):l.m}function getChangeDetectionMode(t){var e;return e=t.viewType===p.n.COMPONENT?r.i(p.E)(t.component.changeDetection)?p.r.CheckAlways:p.r.CheckOnce:p.r.CheckAlways}function generateVisitRootNodesMethod(t){var e=l.a("cb"),r=l.a("ctx"),n=generateVisitNodesStmts(t.rootNodes,e,r);return new l.q("visitRootNodesInternal",[new l.o(e.name,l.m),new l.o(r.name,l.m)],n)}function generateVisitProjectableNodesMethod(t){var e=l.a("nodeIndex"),r=l.a("ngContentIndex"),n=l.a("cb"),i=l.a("ctx"),o=[];return t.nodes.forEach(function(t){t instanceof h.a&&t.component&&t.contentNodesByNgContentIndex.forEach(function(s,a){o.push(new l.u(e.equals(l.f(t.nodeIndex)).and(r.equals(l.f(a))),generateVisitNodesStmts(s,n,i)))})}),new l.q("visitProjectableNodesInternal",[new l.o(e.name,l.p),new l.o(r.name,l.p),new l.o(n.name,l.m),new l.o(i.name,l.m)],o)}function generateVisitNodesStmts(t,e,r){var n=[];return t.forEach(function(t){switch(t.type){case d.c.Node:n.push(e.callFn([t.expr,r]).toStmt());break;case d.c.ViewContainer:n.push(e.callFn([t.expr.prop("nativeElement"),r]).toStmt()),n.push(t.expr.callMethod("visitNestedViewRootNodes",[e,r]).toStmt());break;case d.c.NgContent:n.push(l.e.callMethod("visitProjectedNodes",[l.f(t.ngContentIndex),e,r]).toStmt())}}),n}function generateCreateEmbeddedViewsMethod(t){var e=l.a("nodeIndex"),n=[];return t.nodes.forEach(function(t){t instanceof h.a&&t.embeddedView&&n.push(new l.u(e.equals(l.f(t.nodeIndex)),[new l.t(t.embeddedView.classExpr.instantiate([m.a.viewUtils,l.e,l.f(t.nodeIndex),t.renderNode,t.viewContainer]))]))}),n.length>0&&n.push(new l.t(l.b)),new l.q("createEmbeddedViewInternal",[new l.o(e.name,l.p)],n,l.d(r.i(u.a)(u.b.AppView),[l.m]))}var n=r(1),i=r(12),o=r(99),s=r(40),a=r(6),u=r(16),c=r(199),l=r(9),p=r(14),f=r(42),h=r(298),d=r(300),m=r(146),y=r(204),v=r(73);e.a=buildView,e.b=finishView;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var b="$implicit",_="class",g="style",S="ng-container",w=l.a("parentRenderNode"),E=l.a("rootSelector"),C=function(){function ViewBuilderVisitor(t,e){this.view=t,this.targetDependencies=e,this.nestedViewCount=0}return ViewBuilderVisitor.prototype._isRootNode=function(t){return t.view!==this.view},ViewBuilderVisitor.prototype._addRootNodeAndProject=function(t){var e=_getOuterContainerOrSelf(t),n=e.parent,i=e.sourceAst.ngContentIndex,o=t instanceof h.a&&t.hasViewContainer?t.viewContainer:null;this._isRootNode(n)?this.view.viewType!==p.n.COMPONENT&&this.view.rootNodes.push(new d.b(o?d.c.ViewContainer:d.c.Node,o||t.renderNode)):r.i(a.c)(n.component)&&r.i(a.c)(i)&&n.addContentNode(i,new d.b(o?d.c.ViewContainer:d.c.Node,o||t.renderNode))},ViewBuilderVisitor.prototype._getParentRenderNode=function(t){return t=_getOuterContainerParentOrSelf(t),this._isRootNode(t)?this.view.viewType===p.n.COMPONENT?w:l.b:r.i(a.c)(t.component)&&t.component.template.encapsulation!==n.ViewEncapsulation.Native?l.b:t.renderNode},ViewBuilderVisitor.prototype.getOrCreateLastRenderNode=function(){var t=this.view;if(0===t.rootNodes.length||t.rootNodes[t.rootNodes.length-1].type!==d.c.Node){var e="_el_"+t.nodes.length;t.fields.push(new l.c(e,l.d(t.genConfig.renderTypes.renderElement))),t.createMethod.addStmt(l.e.prop(e).set(m.a.renderer.callMethod("createTemplateAnchor",[l.b,l.b])).toStmt()),t.rootNodes.push(new d.b(d.c.Node,l.e.prop(e)))}return t.rootNodes[t.rootNodes.length-1].expr},ViewBuilderVisitor.prototype.visitBoundText=function(t,e){return this._visitText(t,"",e)},ViewBuilderVisitor.prototype.visitText=function(t,e){return this._visitText(t,t.value,e)},ViewBuilderVisitor.prototype._visitText=function(t,e,r){var n="_text_"+this.view.nodes.length;this.view.fields.push(new l.c(n,l.d(this.view.genConfig.renderTypes.renderText)));var i=l.e.prop(n),o=new h.b(r,this.view,this.view.nodes.length,i,t),s=l.e.prop(n).set(m.a.renderer.callMethod("createText",[this._getParentRenderNode(r),l.f(e),this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length,t)])).toStmt();return this.view.nodes.push(o),this.view.createMethod.addStmt(s),this._addRootNodeAndProject(o),i},ViewBuilderVisitor.prototype.visitNgContent=function(t,e){this.view.createMethod.resetDebugInfo(null,t);var n=this._getParentRenderNode(e);return n!==l.b?this.view.createMethod.addStmt(l.e.callMethod("projectNodes",[n,l.f(t.index)]).toStmt()):this._isRootNode(e)?this.view.viewType!==p.n.COMPONENT&&this.view.rootNodes.push(new d.b(d.c.NgContent,null,t.index)):r.i(a.c)(e.component)&&r.i(a.c)(t.ngContentIndex)&&e.addContentNode(t.ngContentIndex,new d.b(d.c.NgContent,null,t.index)),null},ViewBuilderVisitor.prototype.visitElement=function(t,e){var n,i=this.view.nodes.length,o=this.view.createMethod.resetDebugInfoExpr(i,t),c=t.directives.map(function(t){return t.directive}),d=c.find(function(t){return t.isComponent});if(t.name===S)n=m.a.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(e),o]);else{var b=_readHtmlAttrs(t.attrs),_=r.i(s.a)(_mergeHtmlAndDirectiveAttrs(b,c).map(function(t){return l.f(t)}));n=0===i&&this.view.viewType===p.n.HOST?l.g(r.i(u.a)(u.b.selectOrCreateRenderHostElement)).callFn([m.a.renderer,l.f(t.name),_,E,o]):l.g(r.i(u.a)(u.b.createRenderElement)).callFn([m.a.renderer,this._getParentRenderNode(e),l.f(t.name),_,o])}var g="_el_"+i;this.view.fields.push(new l.c(g,l.d(this.view.genConfig.renderTypes.renderElement))),this.view.createMethod.addStmt(l.e.prop(g).set(n).toStmt());var w=l.e.prop(g),C=new h.a(e,this.view,i,w,t,d,c,t.providers,t.hasViewContainer,!1,t.references);this.view.nodes.push(C);var A=null;if(r.i(a.c)(d)){var x={reference:null};this.targetDependencies.push(new y.a(d.type,r.i(v.a)(d,0),x)),A=l.e.prop("compView_"+i),this.view.fields.push(new l.c(A.name,l.d(r.i(u.a)(u.b.AppView),[l.d(d.type)]))),this.view.viewChildren.push(A),C.setComponentView(A),this.view.createMethod.addStmt(A.set(l.g(x).instantiate([m.a.viewUtils,l.e,l.f(i),w])).toStmt())}return C.beforeChildren(),this._addRootNodeAndProject(C),r.i(f.a)(this,t.children,C),C.afterChildren(this.view.nodes.length-i-1),r.i(a.c)(A)&&this.view.createMethod.addStmt(A.callMethod("create",[C.getComponent()]).toStmt()),null},ViewBuilderVisitor.prototype.visitEmbeddedTemplate=function(t,e){var r=this.view.nodes.length,n="_anchor_"+r;this.view.fields.push(new l.c(n,l.d(this.view.genConfig.renderTypes.renderComment))),this.view.createMethod.addStmt(l.e.prop(n).set(m.a.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(e),this.view.createMethod.resetDebugInfoExpr(r,t)])).toStmt());var i=l.e.prop(n),o=t.variables.map(function(t){return[t.value.length>0?t.value:b,t.name]}),s=t.directives.map(function(t){return t.directive}),a=new h.a(e,this.view,r,i,t,null,s,t.providers,t.hasViewContainer,!0,t.references);this.view.nodes.push(a),this.nestedViewCount++;var u=new d.a(this.view.component,this.view.genConfig,this.view.pipeMetas,l.b,this.view.animations,this.view.viewIndex+this.nestedViewCount,a,o,this.targetDependencies);return this.nestedViewCount+=buildView(u,t.children,this.targetDependencies),a.beforeChildren(),this._addRootNodeAndProject(a),a.afterChildren(0),null},ViewBuilderVisitor.prototype.visitAttr=function(t,e){return null},ViewBuilderVisitor.prototype.visitDirective=function(t,e){return null},ViewBuilderVisitor.prototype.visitEvent=function(t,e){return null},ViewBuilderVisitor.prototype.visitReference=function(t,e){return null},ViewBuilderVisitor.prototype.visitVariable=function(t,e){return null},ViewBuilderVisitor.prototype.visitDirectiveProperty=function(t,e){return null},ViewBuilderVisitor.prototype.visitElementProperty=function(t,e){return null},ViewBuilderVisitor}()},function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function prepareFinalAnimationStyles(t,e,n){void 0===n&&(n=null);var o={};return Object.keys(e).forEach(function(t){var r=e[t];o[t]=r==s.a?n:r.toString()}),Object.keys(t).forEach(function(t){r.i(i.b)(o[t])||(o[t]=n)}),o}function balanceAnimationKeyframes(t,e,o){var a=o.length-1,u=o[0],c=flattenStyles(u.styles.styles),l={},p=!1;Object.keys(t).forEach(function(e){var r=t[e];c[e]||(c[e]=r,l[e]=r,p=!0)});var f=n.a.merge({},c),h=o[a];h.styles.styles.unshift(e);var d=flattenStyles(h.styles.styles),m={},y=!1;return Object.keys(f).forEach(function(t){r.i(i.b)(d[t])||(m[t]=s.a,y=!0)}),y&&h.styles.styles.push(m),Object.keys(d).forEach(function(t){r.i(i.b)(c[t])||(l[t]=s.a,p=!0)}),p&&u.styles.styles.push(l),collectAndResolveStyles(t,[e]),o}function clearStyles(t){var e={};return Object.keys(t).forEach(function(t){e[t]=null}),e}function collectAndResolveStyles(t,e){return e.map(function(e){var n={};return Object.keys(e).forEach(function(a){var u=e[a];u==o.d&&(u=t[a],r.i(i.b)(u)||(u=s.a)),t[a]=u,n[a]=u}),n})}function renderStyles(t,e,r){Object.keys(r).forEach(function(n){e.setElementStyle(t,n,r[n])})}function flattenStyles(t){var e={};return t.forEach(function(t){Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}var n=r(109),i=r(7),o=r(301),s=r(308);e.a=prepareFinalAnimationStyles,e.b=balanceAnimationKeyframes,e.d=clearStyles,e.f=collectAndResolveStyles,e.e=renderStyles,e.c=flattenStyles},function(t,e,r){"use strict";var n=r(307);r.d(e,"a",function(){return i});var i=function(){function AnimationTransition(t,e,r,n){this._player=t,this._fromState=e,this._toState=r,this._totalTime=n}return AnimationTransition.prototype._createEvent=function(t){return new n.a({fromState:this._fromState,toState:this._toState,totalTime:this._totalTime,phaseName:t})},AnimationTransition.prototype.onStart=function(t){var e=this,r=Zone.current.wrap(function(){return t(e._createEvent("start"))},"player.onStart");this._player.onStart(r)},AnimationTransition.prototype.onDone=function(t){var e=this,r=Zone.current.wrap(function(){return t(e._createEvent("done"))},"player.onDone");this._player.onDone(r)},AnimationTransition}()},function(t,e,r){"use strict";var n=r(7);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=function(){function ViewAnimationMap(){this._map=new Map,this._allPlayers=[]}return ViewAnimationMap.prototype.find=function(t,e){var i=this._map.get(t);if(r.i(n.b)(i))return i[e]},ViewAnimationMap.prototype.findAllPlayersByElement=function(t){var e=this._map.get(t);return e?Object.keys(e).map(function(t){return e[t]}):[]},ViewAnimationMap.prototype.set=function(t,e,i){var o=this._map.get(t);r.i(n.b)(o)||(o={});var s=o[e];r.i(n.b)(s)&&this.remove(t,e),o[e]=i,this._allPlayers.push(i),this._map.set(t,o)},ViewAnimationMap.prototype.getAllPlayers=function(){return this._allPlayers},ViewAnimationMap.prototype.remove=function(t,e,r){void 0===r&&(r=null);var n=this._map.get(t);if(n){var i=n[e];if(!r||i===r){delete n[e];var o=this._allPlayers.indexOf(i);this._allPlayers.splice(o,1),0===Object.keys(n).length&&this._map.delete(t)}}},ViewAnimationMap}()},function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function _iterableDiffersFactory(){return a.c}function _keyValueDiffersFactory(){return a.d}function _localeFactory(t){return t||"en-US"}var n=r(304),i=r(206),o=r(207),s=r(147),a=r(148),u=r(84),c=r(316),l=r(110),p=r(155),f=r(324);r.d(e,"a",function(){return h});var h=function(){function ApplicationModule(){}return ApplicationModule.decorators=[{type:f.y,args:[{providers:[o.k,{provide:o.f,useExisting:o.k},i.b,l.b,s.e,p.ViewUtils,n.a,{provide:a.e,useFactory:_iterableDiffersFactory},{provide:a.f,useFactory:_keyValueDiffersFactory},{provide:c.c,useFactory:_localeFactory,deps:[[new u.b(c.c),new u.c,new u.e]]}]}]}],ApplicationModule.ctorParameters=function(){return[]},ApplicationModule}()},function(t,e,r){"use strict";var n=r(148);r.d(e,"a",function(){return n.g}),r.d(e,"b",function(){return n.h}),r.d(e,"c",function(){return n.i}),r.d(e,"d",function(){return n.j}),r.d(e,"e",function(){return n.e}),r.d(e,"f",function(){return n.k}),r.d(e,"g",function(){return n.f}),r.d(e,"h",function(){return n.l}),r.d(e,"i",function(){return n.m})},function(t,e,r){"use strict";var n=r(324);r.d(e,"O",function(){return n.a}),r.d(e,"P",function(){return n.b}),r.d(e,"Q",function(){return n.c}),r.d(e,"R",function(){return n.d}),r.d(e,"S",function(){return n.e}),r.d(e,"T",function(){return n.f}),r.d(e,"U",function(){return n.g}),r.d(e,"V",function(){return n.h}),r.d(e,"W",function(){return n.i}),r.d(e,"X",function(){return n.j}),r.d(e,"Y",function(){return n.k}),r.d(e,"Z",function(){return n.l}),r.d(e,"_0",function(){return n.m}),r.d(e,"_1",function(){return n.n}),r.d(e,"_2",function(){return n.o}),r.d(e,"_3",function(){return n.p}),r.d(e,"_4",function(){return n.q}),r.d(e,"_5",function(){return n.r}),r.d(e,"_6",function(){return n.s}),r.d(e,"_7",function(){return n.t}),r.d(e,"_8",function(){return n.u}),r.d(e,"_9",function(){return n.v}),r.d(e,"_10",function(){return n.w}),r.d(e,"_11",function(){return n.x}),r.d(e,"_12",function(){return n.y}),r.d(e,"_13",function(){return n.z});var i=r(330);r.d(e,"_14",function(){return i.a}),r.d(e,"_15",function(){return i.b});var o=r(519);r.d(e,"_16",function(){return o.a});var s=r(34);r.d(e,"_17",function(){return s.a}),r.d(e,"_18",function(){return s.b}),r.d(e,"_19",function(){return s.c}),r.d(e,"_20",function(){return s.d}),r.d(e,"_21",function(){return s.e}),r.d(e,"_22",function(){return s.f}),r.d(e,"_23",function(){return s.g}),r.d(e,"_24",function(){return s.h}),r.d(e,"_25",function(){return s.i}),r.d(e,"_26",function(){return s.j}),r.d(e,"_27",function(){return s.k}),r.d(e,"_28",function(){return s.l}),r.d(e,"_29",function(){return s.m});var a=r(207);r.d(e,"a",function(){return a.a}),r.d(e,"b",function(){return a.b}),r.d(e,"c",function(){return a.c}),r.d(e,"d",function(){return a.d}),r.d(e,"e",function(){return a.e}),r.d(e,"f",function(){return a.f}),r.d(e,"g",function(){return a.g}),r.d(e,"h",function(){return a.h}),r.d(e,"i",function(){return a.i}),r.d(e,"j",function(){return a.j});var u=r(147);r.d(e,"k",function(){return u.a}),r.d(e,"l",function(){return u.b}),r.d(e,"m",function(){return u.c}),r.d(e,"n",function(){return u.d});var c=r(206);r.d(e,"o",function(){return c.a}),r.d(e,"p",function(){return c.b});var l=r(520);r.d(e,"_30",function(){return l.a});var p=r(518);r.d(e,"_31",function(){return p.a}),r.d(e,"_32",function(){return p.b}),r.d(e,"_33",function(){return p.c});var f=r(506);r.d(e,"_34",function(){return f.a}),r.d(e,"_35",function(){return f.b}),r.d(e,"_36",function(){return f.c}),r.d(e,"_37",function(){return f.d}),r.d(e,"_38",function(){return f.e}),r.d(e,"_39",function(){return f.f}),r.d(e,"_40",function(){return f.g}),r.d(e,"_41",function(){return f.h}),r.d(e,"_42",function(){return f.i}),r.d(e,"_43",function(){return f.j}),r.d(e,"_44",function(){return f.k}),r.d(e,"_45",function(){return f.l}),r.d(e,"_46",function(){return f.m}),r.d(e,"_47",function(){return f.n}),r.d(e,"_48",function(){return f.o}),r.d(e,"_49",function(){return f.p}),r.d(e,"_50",function(){return f.q}),r.d(e,"_51",function(){return f.r}),r.d(e,"_52",function(){return f.s});var h=r(313);r.d(e,"q",function(){return h.a}),r.d(e,"r",function(){return h.b}),r.d(e,"s",function(){return h.c}),r.d(e,"t",function(){return h.d});var d=r(219);r.d(e,"u",function(){return d.a}),r.d(e,"v",function(){return d.b}),r.d(e,"w",function(){return d.c});var m=r(501);r.d(e,"_53",function(){return m.a}),r.d(e,"_54",function(){return m.b}),r.d(e,"_55",function(){return m.c}),r.d(e,"_56",function(){return m.d}),r.d(e,"_57",function(){return m.e}),r.d(e,"_58",function(){return m.f}),r.d(e,"_59",function(){return m.g}),r.d(e,"_60",function(){return m.h}),r.d(e,"_61",function(){return m.i});var y=r(516);r.d(e,"_62",function(){return y.a});var v=r(316);r.d(e,"x",function(){return v.a}),r.d(e,"y",function(){return v.b}),r.d(e,"z",function(){return v.c});var b=r(500);r.d(e,"A",function(){return b.a});var _=r(156);r.d(e,"B",function(){return _.a}),r.d(e,"C",function(){return _.b}),r.d(e,"D",function(){return _.c}),r.d(e,"E",function(){return _.d});var g=r(220);r.d(e,"F",function(){return g.a});var S=r(214);r.d(e,"G",function(){return S.a});var w=r(315);r.d(e,"H",function(){return w.a});var E=r(503);r.d(e,"_63",function(){return E.a});var C=r(308);r.d(e,"_64",function(){return C.a}),r.d(e,"_65",function(){return C.b}),r.d(e,"_66",function(){return C.c}),r.d(e,"_67",function(){return C.d}),r.d(e,"_68",function(){return C.e}),r.d(e,"_69",function(){return C.f}),r.d(e,"_70",function(){return C.g}),r.d(e,"_71",function(){return C.h}),r.d(e,"_72",function(){return C.i}),r.d(e,"_73",function(){return C.j}),r.d(e,"_74",function(){return C.k}),r.d(e,"_75",function(){return C.l}),r.d(e,"_76",function(){return C.m}),r.d(e,"_77",function(){return C.n}),r.d(e,"_78",function(){return C.o}),r.d(e,"_79",function(){return C.p}),r.d(e,"_80",function(){return C.q}),r.d(e,"_81",function(){return C.r}),r.d(e,"_82",function(){return C.s}),r.d(e,"_83",function(){return C.t});var A=r(307);r.d(e,"I",function(){return A.a});var x=r(205);r.d(e,"J",function(){return x.a});var T=r(306);r.d(e,"K",function(){return T.a});var O=r(303);r.d(e,"L",function(){return O.a});var P=r(329);r.d(e,"M",function(){return P.a}),r.d(e,"N",function(){return P.b})},function(t,e,r){"use strict";var n=r(301),i=r(302),o=r(303),s=r(205),a=r(305),u=r(497),c=r(306),l=r(498),p=r(147),f=r(149),h=r(150),d=r(209),m=r(504),y=r(213),v=r(110),b=r(215),_=r(152),g=r(317),S=r(319),w=r(320),E=r(321),C=r(511),A=r(512),x=r(154),T=r(155),O=r(325),P=r(326),R=r(216),M=r(327),I=r(217),D=r(218),N=r(85),k=r(221);r.d(e,"a",function(){return j});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var j={isDefaultChangeDetectionStrategy:h.a,ChangeDetectorStatus:h.b,constructDependencies:y.a,LifecycleHooks:O.a,LIFECYCLE_HOOKS_VALUES:O.b,ReflectorReader:I.a,CodegenComponentFactoryResolver:_.a,ComponentRef_:b.a,ViewContainer:A.a,AppView:C.a,DebugAppView:C.b,NgModuleInjector:S.a,registerModuleFactory:w.a,ViewType:x.a,view_utils:T,ViewMetadata:P.a,DebugContext:g.a,StaticNodeDebugInfo:g.b,devModeEqual:f.a,UNINITIALIZED:f.b,ValueUnwrapper:f.c,RenderDebugInfo:D.a,TemplateRef_:E.a,ReflectionCapabilities:M.a,makeDecorator:N.a,DebugDomRootRenderer:m.a,Console:d.a,reflector:R.a,Reflector:R.b,NoOpAnimationPlayer:s.b,AnimationPlayer:s.a,AnimationSequencePlayer:a.a,AnimationGroupPlayer:i.a,AnimationKeyframe:o.a,prepareFinalAnimationStyles:u.a,balanceAnimationKeyframes:u.b,flattenStyles:u.c,clearStyles:u.d,renderStyles:u.e,collectAndResolveStyles:u.f,APP_ID_RANDOM_PROVIDER:p.e,AnimationStyles:c.a,ANY_STATE:n.a,DEFAULT_STATE:n.b,EMPTY_STATE:n.c,FILL_STYLE_FLAG:n.d,ComponentStillLoadingError:v.a,isPromise:k.a,isObservable:k.b,AnimationTransition:l.a}},function(t,e,r){"use strict";var n=r(7),i=r(313);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=function(){function DebugDomRootRenderer(t){this._delegate=t}return DebugDomRootRenderer.prototype.renderComponent=function(t){return new s(this._delegate.renderComponent(t))},DebugDomRootRenderer}(),s=function(){function DebugDomRenderer(t){this._delegate=t}return DebugDomRenderer.prototype.selectRootElement=function(t,e){var n=this._delegate.selectRootElement(t,e),o=new i.a(n,null,e);return r.i(i.e)(o),n},DebugDomRenderer.prototype.createElement=function(t,e,n){var o=this._delegate.createElement(t,e,n),s=new i.a(o,r.i(i.d)(t),n);return s.name=e,r.i(i.e)(s),o},DebugDomRenderer.prototype.createViewRoot=function(t){return this._delegate.createViewRoot(t)},DebugDomRenderer.prototype.createTemplateAnchor=function(t,e){var n=this._delegate.createTemplateAnchor(t,e),o=new i.b(n,r.i(i.d)(t),e);return r.i(i.e)(o),n},DebugDomRenderer.prototype.createText=function(t,e,n){var o=this._delegate.createText(t,e,n),s=new i.b(o,r.i(i.d)(t),n);return r.i(i.e)(s),o},DebugDomRenderer.prototype.projectNodes=function(t,e){var o=r.i(i.d)(t);if(r.i(n.b)(o)&&o instanceof i.a){var s=o;e.forEach(function(t){s.addChild(r.i(i.d)(t))})}this._delegate.projectNodes(t,e)},DebugDomRenderer.prototype.attachViewAfter=function(t,e){var o=r.i(i.d)(t);if(r.i(n.b)(o)){var s=o.parent;if(e.length>0&&r.i(n.b)(s)){var a=[];e.forEach(function(t){return a.push(r.i(i.d)(t))}),s.insertChildrenAfter(o,a)}}this._delegate.attachViewAfter(t,e)},DebugDomRenderer.prototype.detachView=function(t){t.forEach(function(t){var e=r.i(i.d)(t);r.i(n.b)(e)&&r.i(n.b)(e.parent)&&e.parent.removeChild(e)}),this._delegate.detachView(t)},DebugDomRenderer.prototype.destroyView=function(t,e){e=e||[],e.forEach(function(t){r.i(i.f)(r.i(i.d)(t))}),this._delegate.destroyView(t,e)},DebugDomRenderer.prototype.listen=function(t,e,o){var s=r.i(i.d)(t);return r.i(n.b)(s)&&s.listeners.push(new i.g(e,o)),this._delegate.listen(t,e,o)},DebugDomRenderer.prototype.listenGlobal=function(t,e,r){return this._delegate.listenGlobal(t,e,r)},DebugDomRenderer.prototype.setElementProperty=function(t,e,o){var s=r.i(i.d)(t);r.i(n.b)(s)&&s instanceof i.a&&(s.properties[e]=o),this._delegate.setElementProperty(t,e,o)},DebugDomRenderer.prototype.setElementAttribute=function(t,e,o){var s=r.i(i.d)(t);r.i(n.b)(s)&&s instanceof i.a&&(s.attributes[e]=o),this._delegate.setElementAttribute(t,e,o)},DebugDomRenderer.prototype.setBindingDebugInfo=function(t,e,r){this._delegate.setBindingDebugInfo(t,e,r)},DebugDomRenderer.prototype.setElementClass=function(t,e,o){var s=r.i(i.d)(t);r.i(n.b)(s)&&s instanceof i.a&&(s.classes[e]=o),this._delegate.setElementClass(t,e,o)},DebugDomRenderer.prototype.setElementStyle=function(t,e,o){var s=r.i(i.d)(t);r.i(n.b)(s)&&s instanceof i.a&&(s.styles[e]=o),this._delegate.setElementStyle(t,e,o)},DebugDomRenderer.prototype.invokeElementMethod=function(t,e,r){this._delegate.invokeElementMethod(t,e,r)},DebugDomRenderer.prototype.setText=function(t,e){this._delegate.setText(t,e)},DebugDomRenderer.prototype.animate=function(t,e,r,n,i,o,s){return void 0===s&&(s=[]),this._delegate.animate(t,e,r,n,i,o,s)},DebugDomRenderer}()},function(t,e,r){"use strict";function _mapProviders(t,e){for(var r=new Array(t._providers.length),n=0;n=this._providers.length)throw new o.d(t);return this._providers[t]},ReflectiveInjector_.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw new o.e(this,t.key);return this._instantiateProvider(t)},ReflectiveInjector_.prototype._getMaxNumberOfObjects=function(){return this.objs.length},ReflectiveInjector_.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),r=0;r=e.length-1?e.pop():e.splice(r,1)}this.appRef=null,this.viewContainer=null,this.dirtyParentQueriesInternal()},AppView.prototype._renderDetach=function(){this._directRenderer?this.visitRootNodesInternal(this._directRenderer.remove,null):this.renderer.detachView(this.flatRootNodes)},AppView.prototype.attachToAppRef=function(t){if(this.viewContainer)throw new Error("This view is already attached to a ViewContainer!");this.appRef=t,this.dirtyParentQueriesInternal()},AppView.prototype.attachAfter=function(t,e){if(this.appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._renderAttach(t,e),this.viewContainer=t,this.declaredViewContainer&&this.declaredViewContainer!==t&&(this.declaredViewContainer.projectedViews||(this.declaredViewContainer.projectedViews=[]),this.declaredViewContainer.projectedViews.push(this)),this.dirtyParentQueriesInternal()},AppView.prototype.moveAfter=function(t,e){this._renderAttach(t,e),this.dirtyParentQueriesInternal()},AppView.prototype._renderAttach=function(t,e){var r=e?e.lastRootNode:t.nativeElement;if(this._directRenderer){var n=this._directRenderer.nextSibling(r);if(n)this.visitRootNodesInternal(this._directRenderer.insertBefore,n);else{var i=this._directRenderer.parentElement(r);i&&this.visitRootNodesInternal(this._directRenderer.appendChild,i)}}else this.renderer.attachViewAfter(r,this.flatRootNodes)},Object.defineProperty(AppView.prototype,"changeDetectorRef",{get:function(){return this.ref},enumerable:!0,configurable:!0}),Object.defineProperty(AppView.prototype,"flatRootNodes",{get:function(){var t=[];return this.visitRootNodesInternal(h.addToArray,t),t},enumerable:!0,configurable:!0}),AppView.prototype.projectNodes=function(t,e){if(this._directRenderer)this.visitProjectedNodes(e,this._directRenderer.appendChild,t);else{var r=[];this.visitProjectedNodes(e,h.addToArray,r),this.renderer.projectNodes(t,r)}},AppView.prototype.visitProjectedNodes=function(t,e,r){switch(this.type){case f.a.EMBEDDED:this.parentView.visitProjectedNodes(t,e,r);break;case f.a.COMPONENT:if(this.parentView.type===f.a.HOST)for(var n=this.parentView._hostProjectableNodes[t]||[],i=0;i0?n[e-1]:null;t.moveAfter(this,i)},ViewContainer.prototype.attachView=function(t,e){if(t.type===o.a.COMPONENT)throw new Error("Component views can't be moved!");var r=this.nestedViews;null==r&&(r=[],this.nestedViews=r),e>=r.length?r.push(t):r.splice(e,0,t);var n=e>0?r[e-1]:null;t.attachAfter(this,n)},ViewContainer.prototype.detachView=function(t){var e=this.nestedViews[t];if(t>=this.nestedViews.length-1?this.nestedViews.pop():this.nestedViews.splice(t,1),e.type===o.a.COMPONENT)throw new Error("Component views can't be moved!");return e.detach(),e},ViewContainer}()},function(t,e,r){"use strict";var n=r(211),i=r(85);r.d(e,"a",function(){return o}),r.d(e,"b",function(){return s}),r.d(e,"e",function(){return a}),r.d(e,"d",function(){return u}),r.d(e,"c",function(){return c}),r.d(e,"g",function(){return l}),r.d(e,"f",function(){return p});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=new n.a("AnalyzeForEntryComponents"),s=r.i(i.b)("Attribute",[["attributeName",void 0]]),a=function(){function Query(){}return Query}(),u=r.i(i.d)("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],a),c=r.i(i.d)("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],a),l=r.i(i.d)("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],a),p=r.i(i.d)("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],a)},function(t,e,r){"use strict";var n=r(150),i=r(85);r.d(e,"b",function(){return o}),r.d(e,"a",function(){return s}),r.d(e,"g",function(){return a}),r.d(e,"e",function(){return u}),r.d(e,"f",function(){return c}),r.d(e,"c",function(){return l}),r.d(e,"d",function(){return p});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=r.i(i.a)("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),s=r.i(i.a)("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:n.c.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},o),a=r.i(i.a)("Pipe",{name:void 0,pure:!0}),u=r.i(i.d)("Input",[["bindingPropertyName",void 0]]),c=r.i(i.d)("Output",[["bindingPropertyName",void 0]]),l=r.i(i.d)("HostBinding",[["hostPropertyName",void 0]]),p=r.i(i.d)("HostListener",[["eventName",void 0],["args",[]]])},function(t,e,r){"use strict";var n=r(85);r.d(e,"a",function(){return i}),r.d(e,"b",function(){return o}),r.d(e,"c",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i={name:"custom-elements"},o={name:"no-errors-schema"},s=r.i(n.a)("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0})},function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function _reflector(){return o.a}var n=r(207),i=r(209),o=r(216),s=r(217),a=r(219);r.d(e,"a",function(){return c});var u=[n.l,{provide:n.e,useExisting:n.l},{provide:o.b,useFactory:_reflector,deps:[]},{provide:s.a,useExisting:o.b},a.b,i.a],c=r.i(n.i)(null,"core",u)},function(t,e,r){"use strict";function detectWTF(){var t=n.h.wtf;return!(!t||!(i=t.trace))&&(o=i.events,!0)}function createScope(t,e){return void 0===e&&(e=null),o.createScope(t,e)}function leave(t,e){return i.leaveScope(t,e),e}function startTimeRange(t,e){return i.beginTimeRange(t,e)}function endTimeRange(t){i.endTimeRange(t)}var n=r(7);e.a=detectWTF,e.b=createScope,e.c=leave,e.d=startTimeRange,e.e=endTimeRange;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i,o},function(t,e,r){"use strict";var n=r(218);r.d(e,"a",function(){return n.c}),r.d(e,"b",function(){return n.d}),r.d(e,"c",function(){return n.b})},function(t,e,r){"use strict";var n=r(85);r.d(e,"a",function(){return n.c})},function(t,e,r){"use strict";var n=r(157);r.d(e,"a",function(){return n.a})},,,,,,,function(t,e,r){"use strict";/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -function _createDefaultCookieXSRFStrategy(){return new a.a}function httpFactory(t,e){return new l.a(t,e)}function jsonpFactory(t,e){return new l.b(t,e)}var n=r(1),i=r(337),o=r(229),s=r(338),a=r(339),u=r(230),c=r(165),l=r(341),p=r(117);r.d(e,"a",function(){return f}),r.d(e,"b",function(){return h});var f=function(){function HttpModule(){}return HttpModule.decorators=[{type:n.NgModule,args:[{providers:[{provide:l.a,useFactory:httpFactory,deps:[a.b,u.b]},o.a,{provide:u.b,useClass:u.a},{provide:c.b,useClass:c.a},a.b,{provide:p.c,useFactory:_createDefaultCookieXSRFStrategy}]}]}],HttpModule.ctorParameters=function(){return[]},HttpModule}(),h=function(){function JsonpModule(){}return JsonpModule.decorators=[{type:n.NgModule,args:[{providers:[{provide:l.b,useFactory:jsonpFactory,deps:[s.a,u.b]},i.a,{provide:u.b,useClass:u.a},{provide:c.b,useClass:c.a},{provide:s.a,useClass:s.c}]}]}],JsonpModule.ctorParameters=function(){return[]},JsonpModule}()},function(t,e,r){"use strict";var n=r(229);r.d(e,"a",function(){return n.a});var i=r(338);r.d(e,"b",function(){return i.a}),r.d(e,"c",function(){return i.b});var o=r(339);r.d(e,"d",function(){return o.a}),r.d(e,"e",function(){return o.b}),r.d(e,"f",function(){return o.c});var s=r(230);r.d(e,"g",function(){return s.a}),r.d(e,"h",function(){return s.b});var a=r(165);r.d(e,"i",function(){return a.a}),r.d(e,"j",function(){return a.b});var u=r(64);r.d(e,"k",function(){return u.a}),r.d(e,"l",function(){return u.b}),r.d(e,"m",function(){return u.c}),r.d(e,"n",function(){return u.d});var c=r(116);r.d(e,"o",function(){return c.a});var l=r(341);r.d(e,"p",function(){return l.a}),r.d(e,"q",function(){return l.b});var p=r(527);r.d(e,"r",function(){return p.a}),r.d(e,"s",function(){return p.b});var f=r(117);r.d(e,"t",function(){return f.a}),r.d(e,"u",function(){return f.b}),r.d(e,"v",function(){return f.c});var h=r(342);r.d(e,"w",function(){return h.a});var d=r(231);r.d(e,"x",function(){return d.a});var m=r(167);r.d(e,"y",function(){return m.a}),r.d(e,"z",function(){return m.b});var y=r(529);r.d(e,"A",function(){return y.a})},function(t,e,r){"use strict";var n=r(1);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=new n.Version("2.4.6")},function(t,e,r){"use strict";(function(t){r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var n;n="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:t:window;var i=n;i.assert=function(t){};Object.getPrototypeOf({}),function(){function NumberWrapper(){}return NumberWrapper.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},NumberWrapper.isNumeric=function(t){return!isNaN(t-parseFloat(t))},NumberWrapper}()}).call(e,r(56))},function(t,e,r){"use strict";var n=r(135),i=r(1),o=r(343),s=r(534),a=r(532);r.d(e,"d",function(){return a.a});var u=r(535);r.d(e,"a",function(){return u.a}),r.d(e,"b",function(){return c}),r.d(e,"c",function(){return l});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var c=[{provide:n.a,useClass:s.a}],l=r.i(i.createPlatformFactory)(n.b,"browserDynamic",o.a)},function(t,e,r){"use strict";var n=r(343),i=r(344);r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o={INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:n.a,ResourceLoaderImpl:i.a}},function(t,e,r){"use strict";var n=r(98);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=n.__platform_browser_private__.INTERNAL_BROWSER_PLATFORM_PROVIDERS;n.__platform_browser_private__.getDOM},function(t,e,r){"use strict";var n=r(135),i=r(530);r.d(e,"a",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},s=function(t){function CachedResourceLoader(){if(t.call(this),this._cache=i.a.$templateCache,null==this._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.")}return o(CachedResourceLoader,t),CachedResourceLoader.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},CachedResourceLoader}(n.a)},function(t,e,r){"use strict";var n=r(1);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=new n.Version("2.4.6")},function(t,e,r){"use strict";var n=r(21),i=r(44);r.d(e,"a",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var o=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},s=function(t){function GenericBrowserDomAdapter(){var e=this;t.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var n=this.createElement("div",this.defaultDoc());if(r.i(i.a)(this.getStyle(n,"animationName")))this._animationPrefix="";else for(var o=["Webkit","Moz","O","ms"],s=0;s=0;r--)if(e(t[r]))return t[r];return null},ListWrapper.removeAll=function(t,e){for(var r=0;r-1&&t.splice(n,1)}},ListWrapper.remove=function(t,e){var r=t.indexOf(e);return r>-1&&(t.splice(r,1),!0)},ListWrapper.equals=function(t,e){if(t.length!=e.length)return!1;for(var r=0;r/g,">")}function stripCustomNsAttrs(t){a.attributeMap(t).forEach(function(e,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||a.removeAttribute(t,r)});for(var e=0,r=a.childNodesAsList(t);e")):void(this.sanitizedSomething=!0)},SanitizingHtmlSerializer.prototype.endElement=function(t){var e=a.nodeName(t).toLowerCase();d.hasOwnProperty(e)&&!u.hasOwnProperty(e)&&(this.buf.push(""))},SanitizingHtmlSerializer.prototype.chars=function(t){this.buf.push(encodeEntities(t))},SanitizingHtmlSerializer}(),g=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,S=/([^\#-~ |!])/g},function(t,e,r){"use strict";function hasBalancedQuotes(t){for(var e=!0,r=!0,n=0;n0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=e.matcher||h.c,o=i(r,t,e);return o?{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,positionalParamSegments:o.posParams}:n}function split(t,e,r,n){if(r.length>0&&containsEmptyPathRedirectsWithNamedOutlets(t,r,n)){var i=new d.c(e,createChildrenForEmptySegments(n,new d.c(r,t.children)));return{segmentGroup:mergeTrivialChildren(i),slicedSegments:[]}}if(0===r.length&&containsEmptyPathRedirects(t,r,n)){var i=new d.c(t.segments,addEmptySegmentsToChildrenIfNeeded(t,r,n,t.children));return{segmentGroup:mergeTrivialChildren(i),slicedSegments:r}}return{segmentGroup:t,slicedSegments:r}}function mergeTrivialChildren(t){if(1===t.numberOfChildren&&t.children[h.a]){var e=t.children[h.a];return new d.c(t.segments.concat(e.segments),e.children)}return t}function addEmptySegmentsToChildrenIfNeeded(t,e,n,i){for(var o={},s=0,a=n;s0}function containsEmptyPathRedirects(t,e,r){return r.filter(function(r){return emptyPathRedirect(t,e,r)}).length>0}function emptyPathRedirect(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&(""===r.path&&void 0!==r.redirectTo)}function getOutlet(t){return t.outlet?t.outlet:h.a}var n=r(0),i=(r.n(n),r(180)),o=(r.n(i),r(80)),s=(r.n(o),r(262)),a=(r.n(s),r(265)),u=(r.n(a),r(269)),c=(r.n(u),r(81)),l=(r.n(c),r(95)),p=(r.n(l),r(132)),f=(r.n(p),r(119)),h=r(45),d=r(75),m=r(49);e.a=applyRedirects;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var y=function(){function NoMatch(t){void 0===t&&(t=null),this.segmentGroup=t}return NoMatch}(),v=function(){function AbsoluteRedirect(t){this.urlTree=t}return AbsoluteRedirect}(),b=function(){function ApplyRedirects(t,e,r,n,i){this.injector=t,this.configLoader=e,this.urlSerializer=r,this.urlTree=n,this.config=i,this.allowRedirects=!0}return ApplyRedirects.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.injector,this.config,this.urlTree.root,h.a),r=c.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return s._catch.call(r,function(e){if(e instanceof v)return t.allowRedirects=!1,t.match(e.urlTree);throw e instanceof y?t.noMatchError(e):e})},ApplyRedirects.prototype.match=function(t){var e=this,r=this.expandSegmentGroup(this.injector,this.config,t.root,h.a),n=c.map.call(r,function(r){return e.createUrlTree(r,t.queryParams,t.fragment)});return s._catch.call(n,function(t){throw t instanceof y?e.noMatchError(t):t})},ApplyRedirects.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},ApplyRedirects.prototype.createUrlTree=function(t,e,r){var n=t.segments.length>0?new d.c([],(i={},i[h.a]=t,i)):t;return new d.e(n,e,r);var i},ApplyRedirects.prototype.expandSegmentGroup=function(t,e,r,n){return 0===r.segments.length&&r.hasChildren()?c.map.call(this.expandChildren(t,e,r),function(t){return new d.c([],t)}):this.expandSegment(t,r,e,r.segments,n,!0)},ApplyRedirects.prototype.expandChildren=function(t,e,n){var i=this;return r.i(m.h)(n.children,function(r,n){return i.expandSegmentGroup(t,e,n,r)})},ApplyRedirects.prototype.expandSegment=function(t,e,n,i,l,f){var h=this,m=o.of.apply(void 0,n),v=c.map.call(m,function(a){var u=h.expandSegmentAgainstRoute(t,e,n,a,i,l,f);return s._catch.call(u,function(t){if(t instanceof y)return r.i(o.of)(null);throw t})}),b=a.concatAll.call(v),_=u.first.call(b,function(t){return!!t});return s._catch.call(_,function(t,n){if(t instanceof p.EmptyError){if(h.noLeftoversInUrl(e,i,l))return r.i(o.of)(new d.c([],{}));throw new y(e)}throw t})},ApplyRedirects.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},ApplyRedirects.prototype.expandSegmentAgainstRoute=function(t,e,r,n,i,o,s){return getOutlet(n)!==o?noMatch(e):void 0===n.redirectTo||s&&this.allowRedirects?void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,i):this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,i,o):noMatch(e)},ApplyRedirects.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,r,n,i,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,i,o)},ApplyRedirects.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,r,n){var i=this,o=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?absoluteRedirect(o):l.mergeMap.call(this.lineralizeSegments(r,o),function(r){var o=new d.c(r,{});return i.expandSegment(t,o,e,r,n,!1)})},ApplyRedirects.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,r,n,i,o){var s=this,a=match(e,n,i),u=a.matched,c=a.consumedSegments,p=a.lastChild,f=a.positionalParamSegments;if(!u)return noMatch(e);var h=this.applyRedirectCommands(c,n.redirectTo,f);return n.redirectTo.startsWith("/")?absoluteRedirect(h):l.mergeMap.call(this.lineralizeSegments(n,h),function(n){return s.expandSegment(t,e,r,n.concat(i.slice(p)),o,!1)})},ApplyRedirects.prototype.matchSegmentAgainstRoute=function(t,e,n,i){var s=this;if("**"===n.path)return n.loadChildren?c.map.call(this.configLoader.load(t,n.loadChildren),function(t){return n._loadedConfig=t,new d.c(i,{})}):r.i(o.of)(new d.c(i,{}));var a=match(e,n,i),u=a.matched,p=a.consumedSegments,f=a.lastChild;if(!u)return noMatch(e);var m=i.slice(f),y=this.getChildConfig(t,n);return l.mergeMap.call(y,function(t){var n=t.injector,i=t.routes,a=split(e,p,m,i),u=a.segmentGroup,l=a.slicedSegments;if(0===l.length&&u.hasChildren()){var f=s.expandChildren(n,i,u);return c.map.call(f,function(t){return new d.c(p,t)})}if(0===i.length&&0===l.length)return r.i(o.of)(new d.c(p,{}));var f=s.expandSegment(n,u,i,l,h.a,!0);return c.map.call(f,function(t){return new d.c(p.concat(t.segments),t.children)})})},ApplyRedirects.prototype.getChildConfig=function(t,e){var n=this;return e.children?r.i(o.of)(new f.c(e.children,t,null,null)):e.loadChildren?l.mergeMap.call(runGuards(t,e),function(i){return i?e._loadedConfig?r.i(o.of)(e._loadedConfig):c.map.call(n.configLoader.load(t,e.loadChildren),function(t){return e._loadedConfig=t,t}):canLoadFails(e)}):r.i(o.of)(new f.c([],t,null,null))},ApplyRedirects.prototype.lineralizeSegments=function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return r.i(o.of)(n);if(i.numberOfChildren>1||!i.children[h.a])return namedOutletsRedirect(t.redirectTo);i=i.children[h.a]}},ApplyRedirects.prototype.applyRedirectCommands=function(t,e,r){this.urlSerializer.parse(e);return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,r)},ApplyRedirects.prototype.applyRedirectCreatreUrlTree=function(t,e,r,n){var i=this.createSegmentGroup(t,e.root,r,n);return new d.e(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},ApplyRedirects.prototype.createQueryParams=function(t,e){var n={};return r.i(m.d)(t,function(t,r){t.startsWith(":")?n[r]=e[t.substring(1)]:n[r]=t}),n},ApplyRedirects.prototype.createSegmentGroup=function(t,e,n,i){var o=this,s=this.createSegments(t,e.segments,n,i),a={};return r.i(m.d)(e.children,function(e,r){a[r]=o.createSegmentGroup(t,e,n,i)}),new d.c(s,a)},ApplyRedirects.prototype.createSegments=function(t,e,r,n){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,n):i.findOrReturn(e,r)})},ApplyRedirects.prototype.findPosParam=function(t,e,r){var n=r[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return n},ApplyRedirects.prototype.findOrReturn=function(t,e){for(var r=0,n=0,i=e;ni;){if(o-=i,n=n.parent,!n)throw new Error("Invalid number of '../'");i=n.segments.length}return new a(n,!1,i-o)}function getPath(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[n.a]:""+t}function getOutlets(t){return"object"!=typeof t[0]?(e={},e[n.a]=t,e):void 0===t[0].outlets?(r={},r[n.a]=t,r):t[0].outlets;var e,r}function updateSegmentGroup(t,e,r){if(t||(t=new i.c([],{})),0===t.segments.length&&t.hasChildren())return updateSegmentGroupChildren(t,e,r);var o=prefixedWith(t,e,r),s=r.slice(o.commandIndex);if(o.match&&o.pathIndex=r.length)return o;var s=t.segments[i],a=getPath(r[n]),u=n0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!compare(a,u,s))return o;n+=2}else{if(!compare(a,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function createNewSegmentGroup(t,e,r){for(var n=t.segments.slice(0,e),o=0;o0&&isMatrixParams(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(i&&i!==r.i(o.i)(n))throw new Error("{outlets:{}} has to be the last command")}return Navigation.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},Navigation}(),a=function(){function Position(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r}return Position}()},function(t,e,r){"use strict";var n=r(239);r.d(e,"a",function(){return n.a}),r.d(e,"b",function(){return n.b});var i=r(354);r.d(e,"c",function(){return i.a});var o=r(355);r.d(e,"d",function(){return o.a});var s=r(356);r.d(e,"e",function(){return s.a});var a=r(118);r.d(e,"f",function(){return a.a}),r.d(e,"g",function(){return a.b}),r.d(e,"h",function(){return a.c}),r.d(e,"i",function(){return a.d}),r.d(e,"j",function(){return a.e}),r.d(e,"k",function(){return a.f});var u=r(357);r.d(e,"l",function(){return u.a}),r.d(e,"m",function(){return u.b}),r.d(e,"n",function(){return u.c}),r.d(e,"o",function(){return u.d});var c=r(169);r.d(e,"p",function(){return c.a});var l=r(358);r.d(e,"q",function(){return l.a}),r.d(e,"r",function(){return l.b}),r.d(e,"s",function(){return l.c}),r.d(e,"t",function(){return l.d});var p=r(89);r.d(e,"u",function(){return p.a}),r.d(e,"v",function(){return p.b}),r.d(e,"w",function(){return p.c}),r.d(e,"x",function(){return p.d});var f=r(45);r.d(e,"y",function(){return f.a});var h=r(240);r.d(e,"z",function(){return h.a});var d=r(75);r.d(e,"A",function(){return d.a}),r.d(e,"B",function(){return d.b}),r.d(e,"C",function(){return d.c}),r.d(e,"D",function(){return d.d}),r.d(e,"E",function(){return d.e});var m=r(558);r.d(e,"F",function(){return m.a});var y=r(554);r.d(e,"G",function(){return y.a})},function(t,e,r){"use strict";var n=r(119),i=r(357),o=r(49);r.d(e,"a",function(){return s});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var s={ROUTER_PROVIDERS:i.e,ROUTES:n.a,flatten:o.a}},function(t,e,r){"use strict";var n=r(1);r.d(e,"b",function(){return i}),r.d(e,"a",function(){return o});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=n.__core_private__.isPromise,o=n.__core_private__.isObservable},function(t,e,r){"use strict";var n=r(98);r.d(e,"a",function(){return i});var i=n.__platform_browser_private__.getDOM},function(t,e,r){"use strict";function recognize(t,e,r,n){return new p(t,e,r,n).recognize()}function sortActivatedRouteSnapshots(t){t.sort(function(t,e){return t.value.outlet===s.a?-1:e.value.outlet===s.a?1:t.value.outlet.localeCompare(e.value.outlet)})}function getChildConfig(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function match(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new l;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=e.matcher||s.c,o=i(n,t,e);if(!o)throw new l;var a={};r.i(u.d)(o.posParams,function(t,e){a[e]=t.path});var c=r.i(u.e)(a,o.consumed[o.consumed.length-1].parameters);return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:c}}function checkOutletNameUniqueness(t){var e={};t.forEach(function(t){var r=e[t.value.outlet];if(r){var n=r.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+n+"' and '"+i+"'.")}e[t.value.outlet]=t.value})}function getSourceSegmentGroup(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function getPathIndexShift(t){for(var e=t,r=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,r+=e._segmentIndexShift?e._segmentIndexShift:0;return r-1}function split(t,e,r,n){if(r.length>0&&containsEmptyPathMatchesWithNamedOutlets(t,r,n)){var i=new a.c(e,createChildrenForEmptyPaths(t,e,n,new a.c(r,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===r.length&&containsEmptyPathMatches(t,r,n)){var i=new a.c(t.segments,addEmptyPathsToChildrenIfNeeded(t,r,n,t.children));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:r}}var i=new a.c(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:r}}function addEmptyPathsToChildrenIfNeeded(t,e,n,i){for(var o={},s=0,c=n;s0}function containsEmptyPathMatches(t,e,r){return r.filter(function(r){return emptyPathMatch(t,e,r)}).length>0}function emptyPathMatch(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&(""===r.path&&void 0===r.redirectTo)}function getOutlet(t){return t.outlet?t.outlet:s.a}function getData(t){return t.data?t.data:{}}function getResolve(t){return t.resolve?t.resolve:{}}var n=r(0),i=(r.n(n),r(80)),o=(r.n(i),r(89)),s=r(45),a=r(75),u=r(49),c=r(241);e.a=recognize;/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var l=function(){function NoMatch(){}return NoMatch}(),p=function(){function Recognizer(t,e,r,n){this.rootComponentType=t,this.config=e,this.urlTree=r,this.url=n}return Recognizer.prototype.recognize=function(){try{var t=split(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,s.a),a=new o.b([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},s.a,this.rootComponentType,null,this.urlTree.root,-1,{}),u=new c.b(a,e),l=new o.d(this.url,u);return this.inheriteParamsAndData(l._root),r.i(i.of)(l)}catch(t){return new n.Observable(function(e){return e.error(t)})}},Recognizer.prototype.inheriteParamsAndData=function(t){var e=this,n=t.value,i=r.i(o.g)(n);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach(function(t){return e.inheriteParamsAndData(t)})},Recognizer.prototype.processSegmentGroup=function(t,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,r)},Recognizer.prototype.processChildren=function(t,e){var n=this,i=r.i(a.i)(e,function(e,r){return n.processSegmentGroup(t,e,r)});return checkOutletNameUniqueness(i),sortActivatedRouteSnapshots(i),i},Recognizer.prototype.processSegment=function(t,e,r,n){for(var i=0,o=t;i0?r.i(u.i)(n).parameters:{},p=new o.b(n,a,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,getData(t),i,t.component,t,getSourceSegmentGroup(e),getPathIndexShift(e)+n.length,getResolve(t));return[new c.b(p,[])]}var f=match(e,t,n),h=f.consumedSegments,d=f.parameters,m=f.lastChild,y=n.slice(m),v=getChildConfig(t),b=split(e,h,y,v),_=b.segmentGroup,g=b.slicedSegments,S=new o.b(h,d,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,getData(t),i,t.component,t,getSourceSegmentGroup(e),getPathIndexShift(e)+h.length,getResolve(t));if(0===g.length&&_.hasChildren()){var w=this.processChildren(v,_);return[new c.b(S,w)]}if(0===v.length&&0===g.length)return[new c.b(S,[])];var w=this.processSegment(v,_,g,s.a);return[new c.b(S,w)]},Recognizer}()},function(t,e,r){"use strict";var n=r(1);r.d(e,"a",function(){return i});/** - * @license - * Copyright Google Inc. All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ -var i=new n.Version("3.4.6")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=function(t){function InnerSubscriber(e,r,n){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=n,this.index=0}return n(InnerSubscriber,t),InnerSubscriber.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},InnerSubscriber.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},InnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},InnerSubscriber}(i.Subscriber);e.InnerSubscriber=o},function(t,e,r){"use strict";var n=function(){function Scheduler(t,e){void 0===e&&(e=Scheduler.now),this.SchedulerAction=t,this.now=e}return Scheduler.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},Scheduler.now=Date.now?Date.now:function(){return+new Date},Scheduler}();e.Scheduler=n},function(t,e,r){"use strict";var n=r(0),i=r(844);n.Observable.bindCallback=i.bindCallback},function(t,e,r){"use strict";var n=r(0),i=r(845);n.Observable.bindNodeCallback=i.bindNodeCallback},function(t,e,r){"use strict";var n=r(0),i=r(846);n.Observable.combineLatest=i.combineLatest},function(t,e,r){"use strict";var n=r(0),i=r(847);n.Observable.concat=i.concat},function(t,e,r){"use strict";var n=r(0),i=r(848);n.Observable.defer=i.defer},function(t,e,r){"use strict";var n=r(0),i=r(850);n.Observable.ajax=i.ajax},function(t,e,r){"use strict";var n=r(0),i=r(851);n.Observable.webSocket=i.webSocket},function(t,e,r){"use strict";var n=r(0),i=r(852);n.Observable.empty=i.empty},function(t,e,r){"use strict";var n=r(0),i=r(853);n.Observable.forkJoin=i.forkJoin},function(t,e,r){"use strict";var n=r(0),i=r(180);n.Observable.from=i.from},function(t,e,r){"use strict";var n=r(0),i=r(854);n.Observable.fromEvent=i.fromEvent},function(t,e,r){"use strict";var n=r(0),i=r(855);n.Observable.fromEventPattern=i.fromEventPattern},function(t,e,r){"use strict";var n=r(0),i=r(181);n.Observable.fromPromise=i.fromPromise},function(t,e,r){"use strict";var n=r(0),i=r(834);n.Observable.generate=i.GenerateObservable.create},function(t,e,r){"use strict";var n=r(0),i=r(856);n.Observable.if=i._if},function(t,e,r){"use strict";var n=r(0),i=r(857);n.Observable.interval=i.interval},function(t,e,r){"use strict";var n=r(0),i=r(858);n.Observable.merge=i.merge},function(t,e,r){"use strict";var n=r(0),i=r(859);n.Observable.never=i.never},function(t,e,r){"use strict";var n=r(0),i=r(80);n.Observable.of=i.of},function(t,e,r){"use strict";var n=r(0),i=r(408);n.Observable.onErrorResumeNext=i.onErrorResumeNextStatic},function(t,e,r){"use strict";var n=r(0),i=r(860);n.Observable.pairs=i.pairs},function(t,e,r){"use strict";var n=r(0),i=r(409);n.Observable.race=i.raceStatic},function(t,e,r){"use strict";var n=r(0),i=r(861);n.Observable.range=i.range},function(t,e,r){"use strict";var n=r(0),i=r(862);n.Observable.throw=i._throw},function(t,e,r){"use strict";var n=r(0),i=r(863);n.Observable.timer=i.timer},function(t,e,r){"use strict";var n=r(0),i=r(864);n.Observable.using=i.using},function(t,e,r){"use strict";var n=r(0),i=r(865);n.Observable.zip=i.zip},function(t,e,r){"use strict";var n=r(0),i=r(866);n.Observable.prototype.audit=i.audit},function(t,e,r){"use strict";var n=r(0),i=r(867);n.Observable.prototype.auditTime=i.auditTime},function(t,e,r){"use strict";var n=r(0),i=r(868);n.Observable.prototype.buffer=i.buffer},function(t,e,r){"use strict";var n=r(0),i=r(869);n.Observable.prototype.bufferCount=i.bufferCount},function(t,e,r){"use strict";var n=r(0),i=r(870);n.Observable.prototype.bufferTime=i.bufferTime},function(t,e,r){"use strict";var n=r(0),i=r(871);n.Observable.prototype.bufferToggle=i.bufferToggle},function(t,e,r){"use strict";var n=r(0),i=r(872);n.Observable.prototype.bufferWhen=i.bufferWhen},function(t,e,r){"use strict";var n=r(0),i=r(262);n.Observable.prototype.catch=i._catch,n.Observable.prototype._catch=i._catch},function(t,e,r){"use strict";var n=r(0),i=r(873);n.Observable.prototype.combineAll=i.combineAll},function(t,e,r){"use strict";var n=r(0),i=r(263);n.Observable.prototype.combineLatest=i.combineLatest},function(t,e,r){"use strict";var n=r(0),i=r(264);n.Observable.prototype.concat=i.concat},function(t,e,r){"use strict";var n=r(0),i=r(265);n.Observable.prototype.concatAll=i.concatAll},function(t,e,r){"use strict";var n=r(0),i=r(266);n.Observable.prototype.concatMap=i.concatMap},function(t,e,r){"use strict";var n=r(0),i=r(874);n.Observable.prototype.concatMapTo=i.concatMapTo},function(t,e,r){"use strict";var n=r(0),i=r(875);n.Observable.prototype.count=i.count},function(t,e,r){"use strict";var n=r(0),i=r(876);n.Observable.prototype.debounce=i.debounce},function(t,e,r){"use strict";var n=r(0),i=r(877);n.Observable.prototype.debounceTime=i.debounceTime},function(t,e,r){"use strict";var n=r(0),i=r(878);n.Observable.prototype.defaultIfEmpty=i.defaultIfEmpty},function(t,e,r){"use strict";var n=r(0),i=r(879);n.Observable.prototype.delay=i.delay},function(t,e,r){"use strict";var n=r(0),i=r(880);n.Observable.prototype.delayWhen=i.delayWhen},function(t,e,r){"use strict";var n=r(0),i=r(881);n.Observable.prototype.dematerialize=i.dematerialize},function(t,e,r){"use strict";var n=r(0),i=r(882);n.Observable.prototype.distinct=i.distinct},function(t,e,r){"use strict";var n=r(0),i=r(403);n.Observable.prototype.distinctUntilChanged=i.distinctUntilChanged},function(t,e,r){"use strict";var n=r(0),i=r(883);n.Observable.prototype.distinctUntilKeyChanged=i.distinctUntilKeyChanged},function(t,e,r){"use strict";var n=r(0),i=r(884);n.Observable.prototype.do=i._do,n.Observable.prototype._do=i._do},function(t,e,r){"use strict";var n=r(0),i=r(885);n.Observable.prototype.elementAt=i.elementAt},function(t,e,r){"use strict";var n=r(0),i=r(267);n.Observable.prototype.every=i.every},function(t,e,r){"use strict";var n=r(0),i=r(886);n.Observable.prototype.exhaust=i.exhaust},function(t,e,r){"use strict";var n=r(0),i=r(887);n.Observable.prototype.exhaustMap=i.exhaustMap},function(t,e,r){"use strict";var n=r(0),i=r(888);n.Observable.prototype.expand=i.expand},function(t,e,r){"use strict";var n=r(0),i=r(268);n.Observable.prototype.filter=i.filter},function(t,e,r){"use strict";var n=r(0),i=r(889);n.Observable.prototype.finally=i._finally,n.Observable.prototype._finally=i._finally},function(t,e,r){"use strict";var n=r(0),i=r(404);n.Observable.prototype.find=i.find},function(t,e,r){"use strict";var n=r(0),i=r(890);n.Observable.prototype.findIndex=i.findIndex},function(t,e,r){"use strict";var n=r(0),i=r(269);n.Observable.prototype.first=i.first},function(t,e,r){"use strict";var n=r(0),i=r(891);n.Observable.prototype.groupBy=i.groupBy},function(t,e,r){"use strict";var n=r(0),i=r(892);n.Observable.prototype.ignoreElements=i.ignoreElements},function(t,e,r){"use strict";var n=r(0),i=r(893);n.Observable.prototype.isEmpty=i.isEmpty},function(t,e,r){"use strict";var n=r(0),i=r(405);n.Observable.prototype.last=i.last},function(t,e,r){"use strict";var n=r(0),i=r(894);n.Observable.prototype.let=i.letProto,n.Observable.prototype.letBind=i.letProto},function(t,e,r){"use strict";var n=r(0),i=r(81);n.Observable.prototype.map=i.map},function(t,e,r){"use strict";var n=r(0),i=r(895);n.Observable.prototype.mapTo=i.mapTo},function(t,e,r){"use strict";var n=r(0),i=r(896);n.Observable.prototype.materialize=i.materialize},function(t,e,r){"use strict";var n=r(0),i=r(897);n.Observable.prototype.max=i.max},function(t,e,r){"use strict";var n=r(0),i=r(406);n.Observable.prototype.merge=i.merge},function(t,e,r){"use strict";var n=r(0),i=r(94);n.Observable.prototype.mergeAll=i.mergeAll},function(t,e,r){"use strict";var n=r(0),i=r(95);n.Observable.prototype.mergeMap=i.mergeMap,n.Observable.prototype.flatMap=i.mergeMap},function(t,e,r){"use strict";var n=r(0),i=r(407);n.Observable.prototype.flatMapTo=i.mergeMapTo,n.Observable.prototype.mergeMapTo=i.mergeMapTo},function(t,e,r){"use strict";var n=r(0),i=r(898);n.Observable.prototype.mergeScan=i.mergeScan},function(t,e,r){"use strict";var n=r(0),i=r(899);n.Observable.prototype.min=i.min},function(t,e,r){"use strict";var n=r(0),i=r(96);n.Observable.prototype.multicast=i.multicast},function(t,e,r){"use strict";var n=r(0),i=r(270);n.Observable.prototype.observeOn=i.observeOn},function(t,e,r){"use strict";var n=r(0),i=r(408);n.Observable.prototype.onErrorResumeNext=i.onErrorResumeNext},function(t,e,r){"use strict";var n=r(0),i=r(900);n.Observable.prototype.pairwise=i.pairwise},function(t,e,r){"use strict";var n=r(0),i=r(901);n.Observable.prototype.partition=i.partition},function(t,e,r){"use strict";var n=r(0),i=r(902);n.Observable.prototype.pluck=i.pluck},function(t,e,r){"use strict";var n=r(0),i=r(903);n.Observable.prototype.publish=i.publish},function(t,e,r){"use strict";var n=r(0),i=r(904);n.Observable.prototype.publishBehavior=i.publishBehavior},function(t,e,r){"use strict";var n=r(0),i=r(905);n.Observable.prototype.publishLast=i.publishLast},function(t,e,r){"use strict";var n=r(0),i=r(906);n.Observable.prototype.publishReplay=i.publishReplay},function(t,e,r){"use strict";var n=r(0),i=r(409);n.Observable.prototype.race=i.race},function(t,e,r){"use strict";var n=r(0),i=r(182);n.Observable.prototype.reduce=i.reduce},function(t,e,r){"use strict";var n=r(0),i=r(907);n.Observable.prototype.repeat=i.repeat},function(t,e,r){"use strict";var n=r(0),i=r(908);n.Observable.prototype.repeatWhen=i.repeatWhen},function(t,e,r){"use strict";var n=r(0),i=r(909);n.Observable.prototype.retry=i.retry},function(t,e,r){"use strict";var n=r(0),i=r(910);n.Observable.prototype.retryWhen=i.retryWhen},function(t,e,r){"use strict";var n=r(0),i=r(911);n.Observable.prototype.sample=i.sample},function(t,e,r){"use strict";var n=r(0),i=r(912);n.Observable.prototype.sampleTime=i.sampleTime},function(t,e,r){"use strict";var n=r(0),i=r(913);n.Observable.prototype.scan=i.scan},function(t,e,r){"use strict";var n=r(0),i=r(914);n.Observable.prototype.sequenceEqual=i.sequenceEqual},function(t,e,r){"use strict";var n=r(0),i=r(915);n.Observable.prototype.share=i.share},function(t,e,r){"use strict";var n=r(0),i=r(916);n.Observable.prototype.single=i.single},function(t,e,r){"use strict";var n=r(0),i=r(917);n.Observable.prototype.skip=i.skip},function(t,e,r){"use strict";var n=r(0),i=r(918);n.Observable.prototype.skipUntil=i.skipUntil},function(t,e,r){"use strict";var n=r(0),i=r(919);n.Observable.prototype.skipWhile=i.skipWhile},function(t,e,r){"use strict";var n=r(0),i=r(920);n.Observable.prototype.startWith=i.startWith},function(t,e,r){"use strict";var n=r(0),i=r(921);n.Observable.prototype.subscribeOn=i.subscribeOn},function(t,e,r){"use strict";var n=r(0),i=r(922);n.Observable.prototype.switch=i._switch,n.Observable.prototype._switch=i._switch},function(t,e,r){"use strict";var n=r(0),i=r(923);n.Observable.prototype.switchMap=i.switchMap},function(t,e,r){"use strict";var n=r(0),i=r(924);n.Observable.prototype.switchMapTo=i.switchMapTo},function(t,e,r){"use strict";var n=r(0),i=r(925);n.Observable.prototype.take=i.take},function(t,e,r){"use strict";var n=r(0),i=r(926);n.Observable.prototype.takeLast=i.takeLast},function(t,e,r){"use strict";var n=r(0),i=r(927);n.Observable.prototype.takeUntil=i.takeUntil},function(t,e,r){"use strict";var n=r(0),i=r(928);n.Observable.prototype.takeWhile=i.takeWhile},function(t,e,r){"use strict";var n=r(0),i=r(929);n.Observable.prototype.throttle=i.throttle},function(t,e,r){"use strict";var n=r(0),i=r(930);n.Observable.prototype.throttleTime=i.throttleTime},function(t,e,r){"use strict";var n=r(0),i=r(410);n.Observable.prototype.timeInterval=i.timeInterval},function(t,e,r){"use strict";var n=r(0),i=r(931);n.Observable.prototype.timeout=i.timeout},function(t,e,r){"use strict";var n=r(0),i=r(932);n.Observable.prototype.timeoutWith=i.timeoutWith},function(t,e,r){"use strict";var n=r(0),i=r(411);n.Observable.prototype.timestamp=i.timestamp},function(t,e,r){"use strict";var n=r(0),i=r(933);n.Observable.prototype.toArray=i.toArray},function(t,e,r){"use strict";var n=r(0),i=r(412);n.Observable.prototype.toPromise=i.toPromise},function(t,e,r){"use strict";var n=r(0),i=r(934);n.Observable.prototype.window=i.window},function(t,e,r){"use strict";var n=r(0),i=r(935);n.Observable.prototype.windowCount=i.windowCount},function(t,e,r){"use strict";var n=r(0),i=r(936);n.Observable.prototype.windowTime=i.windowTime},function(t,e,r){"use strict";var n=r(0),i=r(937);n.Observable.prototype.windowToggle=i.windowToggle},function(t,e,r){"use strict";var n=r(0),i=r(938);n.Observable.prototype.windowWhen=i.windowWhen},function(t,e,r){"use strict";var n=r(0),i=r(939);n.Observable.prototype.withLatestFrom=i.withLatestFrom},function(t,e,r){"use strict";var n=r(0),i=r(271);n.Observable.prototype.zip=i.zipProto},function(t,e,r){"use strict";var n=r(0),i=r(940);n.Observable.prototype.zipAll=i.zipAll},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(0),o=r(261),s=r(67),a=function(t){function ArrayLikeObservable(e,r){t.call(this),this.arrayLike=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(ArrayLikeObservable,t),ArrayLikeObservable.create=function(t,e){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new o.ScalarObservable(t[0],e):new ArrayLikeObservable(t,e)},ArrayLikeObservable.dispatch=function(t){var e=t.arrayLike,r=t.index,n=t.length,i=t.subscriber;if(!i.closed){if(r>=n)return void i.complete();i.next(e[r]),t.index=r+1,this.schedule(t)}},ArrayLikeObservable.prototype._subscribe=function(t){var e=0,r=this,n=r.arrayLike,i=r.scheduler,o=n.length;if(i)return i.schedule(ArrayLikeObservable.dispatch,0,{arrayLike:n,index:e,length:o,subscriber:t});for(var s=0;sl?l:e):e}function numberIsFinite(t){return"number"==typeof t&&i.root.isFinite(t)}function sign(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(24),o=r(0),s=r(130),a=function(t){function IteratorObservable(e,r){if(t.call(this),this.scheduler=r,null==e)throw new Error("iterator cannot be null.");this.iterator=getIterator(e)}return n(IteratorObservable,t),IteratorObservable.create=function(t,e){return new IteratorObservable(t,e)},IteratorObservable.dispatch=function(t){var e=t.index,r=t.hasError,n=t.iterator,i=t.subscriber;if(r)return void i.error(t.error);var o=n.next();return o.done?void i.complete():(i.next(o.value),t.index=e+1,i.closed?void("function"==typeof n.return&&n.return()):void this.schedule(t))},IteratorObservable.prototype._subscribe=function(t){var e=0,r=this,n=r.iterator,i=r.scheduler;if(i)return i.schedule(IteratorObservable.dispatch,0,{index:e,iterator:n,subscriber:t});for(;;){var o=n.next();if(o.done){t.complete();break}if(t.next(o.value),t.closed){"function"==typeof n.return&&n.return();break}}},IteratorObservable}(o.Observable);e.IteratorObservable=a;var u=function(){function StringIterator(t,e,r){void 0===e&&(e=0),void 0===r&&(r=t.length),this.str=t,this.idx=e,this.len=r}return StringIterator.prototype[s.$$iterator]=function(){return this},StringIterator.prototype.next=function(){return this.idx=n?void i.complete():(i.next(e),void(i.closed||(t.index=r+1,t.start=e+1,this.schedule(t))))},RangeObservable.prototype._subscribe=function(t){var e=0,r=this.start,n=this._count,i=this.scheduler;if(i)return i.schedule(RangeObservable.dispatch,0,{index:e,count:n,start:r,subscriber:t});for(;;){if(e++>=n){t.complete();break}if(t.next(r++),t.closed)break}},RangeObservable}(i.Observable);e.RangeObservable=o},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(0),o=r(414),s=r(273),a=function(t){function SubscribeOnObservable(e,r,n){void 0===r&&(r=0),void 0===n&&(n=o.asap),t.call(this),this.source=e,this.delayTime=r,this.scheduler=n,(!s.isNumeric(r)||r<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=o.asap)}return n(SubscribeOnObservable,t),SubscribeOnObservable.create=function(t,e,r){return void 0===e&&(e=0),void 0===r&&(r=o.asap),new SubscribeOnObservable(t,e,r)},SubscribeOnObservable.dispatch=function(t){var e=t.source,r=t.subscriber;return this.add(e.subscribe(r))},SubscribeOnObservable.prototype._subscribe=function(t){var e=this.delayTime,r=this.source,n=this.scheduler;return n.schedule(SubscribeOnObservable.dispatch,e,{source:r,subscriber:t})},SubscribeOnObservable}(i.Observable);e.SubscribeOnObservable=a},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(273),o=r(0),s=r(27),a=r(68),u=r(186),c=function(t){function TimerObservable(e,r,n){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,i.isNumeric(r)?this.period=Number(r)<1&&1||Number(r):a.isScheduler(r)&&(n=r),a.isScheduler(n)||(n=s.async),this.scheduler=n,this.dueTime=u.isDate(e)?+e-this.scheduler.now():e}return n(TimerObservable,t),TimerObservable.create=function(t,e,r){return void 0===t&&(t=0),new TimerObservable(t,e,r)},TimerObservable.dispatch=function(t){var e=t.index,r=t.period,n=t.subscriber,i=this;if(n.next(e),!n.closed){if(r===-1)return n.complete();t.index=e+1,i.schedule(t,r)}},TimerObservable.prototype._subscribe=function(t){var e=0,r=this,n=r.period,i=r.dueTime,o=r.scheduler;return o.schedule(TimerObservable.dispatch,i,{index:e,period:n,subscriber:t})},TimerObservable}(o.Observable);e.TimerObservable=c},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(0),o=r(5),s=r(4),a=function(t){function UsingObservable(e,r){t.call(this),this.resourceFactory=e,this.observableFactory=r}return n(UsingObservable,t),UsingObservable.create=function(t,e){return new UsingObservable(t,e)},UsingObservable.prototype._subscribe=function(t){var e,r=this,n=r.resourceFactory,i=r.observableFactory;try{return e=n(),new u(t,e,i)}catch(e){t.error(e)}},UsingObservable}(i.Observable);e.UsingObservable=a;var u=function(t){function UsingSubscriber(e,r,n){t.call(this,e),this.resource=r,this.observableFactory=n,e.add(r),this.tryUse()}return n(UsingSubscriber,t),UsingSubscriber.prototype.tryUse=function(){try{var t=this.observableFactory.call(this,this.resource);t&&this.add(o.subscribeToResult(this,t))}catch(t){this._error(t)}},UsingSubscriber}(s.OuterSubscriber)},function(t,e,r){"use strict";var n=r(827);e.bindCallback=n.BoundCallbackObservable.create},function(t,e,r){"use strict";var n=r(828);e.bindNodeCallback=n.BoundNodeCallbackObservable.create},function(t,e,r){"use strict";function combineLatest(){for(var t=[],e=0;e0;){var n=r.shift();n.length>0&&e.next(n)}t.prototype._complete.call(this)},BufferCountSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function bufferTime(t){var e=arguments.length,r=i.async;s.isScheduler(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var o=Number.POSITIVE_INFINITY;return e>=3&&(o=arguments[2]),this.lift(new a(t,n,o,r))}function dispatchBufferTimeSpanOnly(t){var e=t.subscriber,r=t.context;r&&e.closeContext(r),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function dispatchBufferCreation(t){var e=t.bufferCreationInterval,r=t.bufferTimeSpan,n=t.subscriber,i=t.scheduler,o=n.openContext(),s=this;n.closed||(n.add(o.closeAction=i.schedule(dispatchBufferClose,r,{subscriber:n,context:o})),s.schedule(t,e))}function dispatchBufferClose(t){var e=t.subscriber,r=t.context;e.closeContext(r)}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(27),o=r(3),s=r(68);e.bufferTime=bufferTime;var a=function(){function BufferTimeOperator(t,e,r,n){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=r,this.scheduler=n}return BufferTimeOperator.prototype.call=function(t,e){return e.subscribe(new c(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},BufferTimeOperator}(),u=function(){function Context(){this.buffer=[]}return Context}(),c=function(t){function BufferTimeSubscriber(e,r,n,i,o){t.call(this,e),this.bufferTimeSpan=r,this.bufferCreationInterval=n,this.maxBufferSize=i,this.scheduler=o,this.contexts=[];var s=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly){var a={subscriber:this,context:s,bufferTimeSpan:r};this.add(s.closeAction=o.schedule(dispatchBufferTimeSpanOnly,r,a))}else{var u={subscriber:this,context:s},c={bufferTimeSpan:r,bufferCreationInterval:n,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(dispatchBufferClose,r,u)),this.add(o.schedule(dispatchBufferCreation,n,c))}}return n(BufferTimeSubscriber,t),BufferTimeSubscriber.prototype._next=function(t){for(var e,r=this.contexts,n=r.length,i=0;i0;){var i=r.shift();n.next(i.buffer)}t.prototype._complete.call(this)},BufferTimeSubscriber.prototype._unsubscribe=function(){this.contexts=null},BufferTimeSubscriber.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var r=this.bufferTimeSpan,n={subscriber:this,context:t,bufferTimeSpan:r};this.add(t.closeAction=this.scheduler.schedule(dispatchBufferTimeSpanOnly,r,n))}},BufferTimeSubscriber.prototype.openContext=function(){var t=new u;return this.contexts.push(t),t},BufferTimeSubscriber.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts,r=e?e.indexOf(t):-1;r>=0&&e.splice(e.indexOf(t),1)},BufferTimeSubscriber}(o.Subscriber)},function(t,e,r){"use strict";function bufferToggle(t,e){return this.lift(new a(t,e))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(20),o=r(5),s=r(4);e.bufferToggle=bufferToggle;var a=function(){function BufferToggleOperator(t,e){this.openings=t,this.closingSelector=e}return BufferToggleOperator.prototype.call=function(t,e){return e.subscribe(new u(t,this.openings,this.closingSelector))},BufferToggleOperator}(),u=function(t){function BufferToggleSubscriber(e,r,n){t.call(this,e),this.openings=r,this.closingSelector=n,this.contexts=[],this.add(o.subscribeToResult(this,r))}return n(BufferToggleSubscriber,t),BufferToggleSubscriber.prototype._next=function(t){for(var e=this.contexts,r=e.length,n=0;n0;){var n=r.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},BufferToggleSubscriber.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var r=e.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._complete.call(this)},BufferToggleSubscriber.prototype.notifyNext=function(t,e,r,n,i){t?this.closeBuffer(t):this.openBuffer(e)},BufferToggleSubscriber.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},BufferToggleSubscriber.prototype.openBuffer=function(t){try{var e=this.closingSelector,r=e.call(this,t);r&&this.trySubscribe(r)}catch(t){this._error(t)}},BufferToggleSubscriber.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var r=t.buffer,n=t.subscription;this.destination.next(r),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},BufferToggleSubscriber.prototype.trySubscribe=function(t){var e=this.contexts,r=[],n=new i.Subscription,s={buffer:r,subscription:n};e.push(s);var a=o.subscribeToResult(this,t,s);!a||a.closed?this.closeBuffer(s):(a.context=s,this.add(a),n.add(a))},BufferToggleSubscriber}(s.OuterSubscriber)},function(t,e,r){"use strict";function bufferWhen(t){return this.lift(new c(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(20),o=r(25),s=r(23),a=r(4),u=r(5);e.bufferWhen=bufferWhen;var c=function(){function BufferWhenOperator(t){this.closingSelector=t}return BufferWhenOperator.prototype.call=function(t,e){return e.subscribe(new l(t,this.closingSelector))},BufferWhenOperator}(),l=function(t){function BufferWhenSubscriber(e,r){t.call(this,e),this.closingSelector=r,this.subscribing=!1,this.openBuffer()}return n(BufferWhenSubscriber,t),BufferWhenSubscriber.prototype._next=function(t){this.buffer.push(t)},BufferWhenSubscriber.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},BufferWhenSubscriber.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},BufferWhenSubscriber.prototype.notifyNext=function(t,e,r,n,i){this.openBuffer()},BufferWhenSubscriber.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},BufferWhenSubscriber.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];var r=o.tryCatch(this.closingSelector)();r===s.errorObject?this.error(s.errorObject.e):(t=new i.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(u.subscribeToResult(this,r)),this.subscribing=!1)},BufferWhenSubscriber}(a.OuterSubscriber)},function(t,e,r){"use strict";function combineAll(t){return this.lift(new n.CombineLatestOperator(t))}var n=r(263);e.combineAll=combineAll},function(t,e,r){"use strict";function concatMapTo(t,e){return this.lift(new n.MergeMapToOperator(t,e,1))}var n=r(407);e.concatMapTo=concatMapTo},function(t,e,r){"use strict";function count(t){return this.lift(new o(t,this))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e.count=count;var o=function(){function CountOperator(t,e){this.predicate=t,this.source=e}return CountOperator.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source))},CountOperator}(),s=function(t){function CountSubscriber(e,r,n){t.call(this,e),this.predicate=r,this.source=n,this.count=0,this.index=0}return n(CountSubscriber,t),CountSubscriber.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},CountSubscriber.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},CountSubscriber.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},CountSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function debounce(t){return this.lift(new s(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(4),o=r(5);e.debounce=debounce;var s=function(){function DebounceOperator(t){this.durationSelector=t}return DebounceOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.durationSelector))},DebounceOperator}(),a=function(t){function DebounceSubscriber(e,r){t.call(this,e),this.durationSelector=r,this.hasValue=!1,this.durationSubscription=null}return n(DebounceSubscriber,t),DebounceSubscriber.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},DebounceSubscriber.prototype._complete=function(){this.emitValue(),this.destination.complete()},DebounceSubscriber.prototype._tryNext=function(t,e){var r=this.durationSubscription;this.value=t,this.hasValue=!0,r&&(r.unsubscribe(),this.remove(r)),r=o.subscribeToResult(this,e),r.closed||this.add(this.durationSubscription=r)},DebounceSubscriber.prototype.notifyNext=function(t,e,r,n,i){this.emitValue()},DebounceSubscriber.prototype.notifyComplete=function(){this.emitValue()},DebounceSubscriber.prototype.emitValue=function(){if(this.hasValue){var e=this.value,r=this.durationSubscription;r&&(this.durationSubscription=null,r.unsubscribe(),this.remove(r)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},DebounceSubscriber}(i.OuterSubscriber)},function(t,e,r){"use strict";function debounceTime(t,e){return void 0===e&&(e=o.async),this.lift(new s(t,e))}function dispatchNext(t){t.debouncedNext()}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(27);e.debounceTime=debounceTime;var s=function(){function DebounceTimeOperator(t,e){this.dueTime=t,this.scheduler=e}return DebounceTimeOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))},DebounceTimeOperator}(),a=function(t){function DebounceTimeSubscriber(e,r,n){t.call(this,e),this.dueTime=r,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return n(DebounceTimeSubscriber,t),DebounceTimeSubscriber.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(dispatchNext,this.dueTime,this))},DebounceTimeSubscriber.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},DebounceTimeSubscriber.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},DebounceTimeSubscriber.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},DebounceTimeSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function defaultIfEmpty(t){return void 0===t&&(t=null),this.lift(new o(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e.defaultIfEmpty=defaultIfEmpty;var o=function(){function DefaultIfEmptyOperator(t){this.defaultValue=t}return DefaultIfEmptyOperator.prototype.call=function(t,e){return e.subscribe(new s(t,this.defaultValue))},DefaultIfEmptyOperator}(),s=function(t){function DefaultIfEmptySubscriber(e,r){t.call(this,e),this.defaultValue=r,this.isEmpty=!0}return n(DefaultIfEmptySubscriber,t),DefaultIfEmptySubscriber.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},DefaultIfEmptySubscriber.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},DefaultIfEmptySubscriber}(i.Subscriber)},function(t,e,r){"use strict";function delay(t,e){void 0===e&&(e=i.async);var r=o.isDate(t),n=r?+t-e.now():Math.abs(t);return this.lift(new u(n,e))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(27),o=r(186),s=r(3),a=r(127);e.delay=delay;var u=function(){function DelayOperator(t,e){this.delay=t,this.scheduler=e}return DelayOperator.prototype.call=function(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))},DelayOperator}(),c=function(t){function DelaySubscriber(e,r,n){t.call(this,e),this.delay=r,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}return n(DelaySubscriber,t),DelaySubscriber.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,i=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var o=Math.max(0,r[0].time-n.now());this.schedule(t,o)}else e.active=!1},DelaySubscriber.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(DelaySubscriber.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},DelaySubscriber.prototype.scheduleNotification=function(t){if(this.errored!==!0){var e=this.scheduler,r=new l(e.now()+this.delay,t);this.queue.push(r),this.active===!1&&this._schedule(e)}},DelaySubscriber.prototype._next=function(t){this.scheduleNotification(a.Notification.createNext(t))},DelaySubscriber.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},DelaySubscriber.prototype._complete=function(){this.scheduleNotification(a.Notification.createComplete())},DelaySubscriber}(s.Subscriber),l=function(){function DelayMessage(t,e){this.time=t,this.notification=e}return DelayMessage}()},function(t,e,r){"use strict";function delayWhen(t,e){return e?new l(this,e).lift(new u(t)):this.lift(new u(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(0),s=r(4),a=r(5);e.delayWhen=delayWhen;var u=function(){function DelayWhenOperator(t){this.delayDurationSelector=t}return DelayWhenOperator.prototype.call=function(t,e){return e.subscribe(new c(t,this.delayDurationSelector))},DelayWhenOperator}(),c=function(t){function DelayWhenSubscriber(e,r){t.call(this,e),this.delayDurationSelector=r,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return n(DelayWhenSubscriber,t),DelayWhenSubscriber.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},DelayWhenSubscriber.prototype.notifyError=function(t,e){this._error(t)},DelayWhenSubscriber.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},DelayWhenSubscriber.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},DelayWhenSubscriber.prototype._complete=function(){this.completed=!0,this.tryComplete()},DelayWhenSubscriber.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),r=null;return e!==-1&&(r=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),r},DelayWhenSubscriber.prototype.tryDelay=function(t,e){var r=a.subscribeToResult(this,t,e);this.add(r),this.delayNotifierSubscriptions.push(r),this.values.push(e)},DelayWhenSubscriber.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},DelayWhenSubscriber}(s.OuterSubscriber),l=function(t){function SubscriptionDelayObservable(e,r){t.call(this),this.source=e,this.subscriptionDelay=r}return n(SubscriptionDelayObservable,t),SubscriptionDelayObservable.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new p(t,this.source))},SubscriptionDelayObservable}(o.Observable),p=function(t){function SubscriptionDelaySubscriber(e,r){t.call(this),this.parent=e,this.source=r,this.sourceSubscribed=!1}return n(SubscriptionDelaySubscriber,t),SubscriptionDelaySubscriber.prototype._next=function(t){this.subscribeToSource()},SubscriptionDelaySubscriber.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},SubscriptionDelaySubscriber.prototype._complete=function(){this.subscribeToSource()},SubscriptionDelaySubscriber.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},SubscriptionDelaySubscriber}(i.Subscriber)},function(t,e,r){"use strict";function dematerialize(){return this.lift(new o)}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e.dematerialize=dematerialize;var o=function(){function DeMaterializeOperator(){} -return DeMaterializeOperator.prototype.call=function(t,e){return e.subscribe(new s(t))},DeMaterializeOperator}(),s=function(t){function DeMaterializeSubscriber(e){t.call(this,e)}return n(DeMaterializeSubscriber,t),DeMaterializeSubscriber.prototype._next=function(t){t.observe(this.destination)},DeMaterializeSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function distinct(t,e){return this.lift(new a(t,e))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(4),o=r(5),s=r(957);e.distinct=distinct;var a=function(){function DistinctOperator(t,e){this.keySelector=t,this.flushes=e}return DistinctOperator.prototype.call=function(t,e){return e.subscribe(new u(t,this.keySelector,this.flushes))},DistinctOperator}(),u=function(t){function DistinctSubscriber(e,r,n){t.call(this,e),this.keySelector=r,this.values=new s.Set,n&&this.add(o.subscribeToResult(this,n))}return n(DistinctSubscriber,t),DistinctSubscriber.prototype.notifyNext=function(t,e,r,n,i){this.values.clear()},DistinctSubscriber.prototype.notifyError=function(t,e){this._error(t)},DistinctSubscriber.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},DistinctSubscriber.prototype._useKeySelector=function(t){var e,r=this.destination;try{e=this.keySelector(t)}catch(t){return void r.error(t)}this._finalizeNext(e,t)},DistinctSubscriber.prototype._finalizeNext=function(t,e){var r=this.values;r.has(t)||(r.add(t),this.destination.next(e))},DistinctSubscriber}(i.OuterSubscriber);e.DistinctSubscriber=u},function(t,e,r){"use strict";function distinctUntilKeyChanged(t,e){return n.distinctUntilChanged.call(this,function(r,n){return e?e(r[t],n[t]):r[t]===n[t]})}var n=r(403);e.distinctUntilKeyChanged=distinctUntilKeyChanged},function(t,e,r){"use strict";function _do(t,e,r){return this.lift(new o(t,e,r))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e._do=_do;var o=function(){function DoOperator(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return DoOperator.prototype.call=function(t,e){return e.subscribe(new s(t,this.nextOrObserver,this.error,this.complete))},DoOperator}(),s=function(t){function DoSubscriber(e,r,n,o){t.call(this,e);var s=new i.Subscriber(r,n,o);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return n(DoSubscriber,t),DoSubscriber.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},DoSubscriber.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},DoSubscriber.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},DoSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function elementAt(t,e){return this.lift(new s(t,e))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(184);e.elementAt=elementAt;var s=function(){function ElementAtOperator(t,e){if(this.index=t,this.defaultValue=e,t<0)throw new o.ArgumentOutOfRangeError}return ElementAtOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.index,this.defaultValue))},ElementAtOperator}(),a=function(t){function ElementAtSubscriber(e,r,n){t.call(this,e),this.index=r,this.defaultValue=n}return n(ElementAtSubscriber,t),ElementAtSubscriber.prototype._next=function(t){0===this.index--&&(this.destination.next(t),this.destination.complete())},ElementAtSubscriber.prototype._complete=function(){var t=this.destination;this.index>=0&&("undefined"!=typeof this.defaultValue?t.next(this.defaultValue):t.error(new o.ArgumentOutOfRangeError)),t.complete()},ElementAtSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function exhaust(){return this.lift(new s)}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(4),o=r(5);e.exhaust=exhaust;var s=function(){function SwitchFirstOperator(){}return SwitchFirstOperator.prototype.call=function(t,e){return e.subscribe(new a(t))},SwitchFirstOperator}(),a=function(t){function SwitchFirstSubscriber(e){t.call(this,e),this.hasCompleted=!1,this.hasSubscription=!1}return n(SwitchFirstSubscriber,t),SwitchFirstSubscriber.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(o.subscribeToResult(this,t)))},SwitchFirstSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},SwitchFirstSubscriber.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},SwitchFirstSubscriber}(i.OuterSubscriber)},function(t,e,r){"use strict";function exhaustMap(t,e){return this.lift(new s(t,e))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(4),o=r(5);e.exhaustMap=exhaustMap;var s=function(){function SwitchFirstMapOperator(t,e){this.project=t,this.resultSelector=e}return SwitchFirstMapOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector))},SwitchFirstMapOperator}(),a=function(t){function SwitchFirstMapSubscriber(e,r,n){t.call(this,e),this.project=r,this.resultSelector=n,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return n(SwitchFirstMapSubscriber,t),SwitchFirstMapSubscriber.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},SwitchFirstMapSubscriber.prototype.tryNext=function(t){var e=this.index++,r=this.destination;try{var n=this.project(t,e);this.hasSubscription=!0,this.add(o.subscribeToResult(this,n,t,e))}catch(t){r.error(t)}},SwitchFirstMapSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},SwitchFirstMapSubscriber.prototype.notifyNext=function(t,e,r,n,i){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(t,e,r,n):a.next(e)},SwitchFirstMapSubscriber.prototype.trySelectResult=function(t,e,r,n){var i=this,o=i.resultSelector,s=i.destination;try{var a=o(t,e,r,n);s.next(a)}catch(t){s.error(t)}},SwitchFirstMapSubscriber.prototype.notifyError=function(t){this.destination.error(t)},SwitchFirstMapSubscriber.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},SwitchFirstMapSubscriber}(i.OuterSubscriber)},function(t,e,r){"use strict";function expand(t,e,r){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,this.lift(new u(t,e,r))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(25),o=r(23),s=r(4),a=r(5);e.expand=expand;var u=function(){function ExpandOperator(t,e,r){this.project=t,this.concurrent=e,this.scheduler=r}return ExpandOperator.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.concurrent,this.scheduler))},ExpandOperator}();e.ExpandOperator=u;var c=function(t){function ExpandSubscriber(e,r,n,i){t.call(this,e),this.project=r,this.concurrent=n,this.scheduler=i,this.index=0,this.active=0,this.hasCompleted=!1,n0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},ExpandSubscriber}(s.OuterSubscriber);e.ExpandSubscriber=c},function(t,e,r){"use strict";function _finally(t){return this.lift(new s(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(20);e._finally=_finally;var s=function(){function FinallyOperator(t){this.callback=t}return FinallyOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.callback))},FinallyOperator}(),a=function(t){function FinallySubscriber(e,r){t.call(this,e),this.add(new o.Subscription(r))}return n(FinallySubscriber,t),FinallySubscriber}(i.Subscriber)},function(t,e,r){"use strict";function findIndex(t,e){return this.lift(new n.FindValueOperator(t,this,!0,e))}var n=r(404);e.findIndex=findIndex},function(t,e,r){"use strict";function groupBy(t,e,r,n){return this.lift(new l(t,e,r,n))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(20),s=r(0),a=r(13),u=r(955),c=r(953);e.groupBy=groupBy;var l=function(){function GroupByOperator(t,e,r,n){this.keySelector=t,this.elementSelector=e,this.durationSelector=r,this.subjectSelector=n}return GroupByOperator.prototype.call=function(t,e){return e.subscribe(new p(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},GroupByOperator}(),p=function(t){function GroupBySubscriber(e,r,n,i,o){t.call(this,e),this.keySelector=r,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=o,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return n(GroupBySubscriber,t),GroupBySubscriber.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},GroupBySubscriber.prototype._group=function(t,e){var r=this.groups;r||(r=this.groups="string"==typeof e?new c.FastMap:new u.Map);var n,i=r.get(e);if(this.elementSelector)try{n=this.elementSelector(t)}catch(t){this.error(t)}else n=t;if(!i){i=this.subjectSelector?this.subjectSelector():new a.Subject,r.set(e,i);var o=new h(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new h(e,i))}catch(t){return void this.error(t)}this.add(s.subscribe(new f(e,i,this)))}}i.closed||i.next(n)},GroupBySubscriber.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,r){e.error(t)}),e.clear()),this.destination.error(t)},GroupBySubscriber.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},GroupBySubscriber.prototype.removeGroup=function(t){this.groups.delete(t)},GroupBySubscriber.prototype.unsubscribe=function(){this.closed||this.attemptedToUnsubscribe||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},GroupBySubscriber}(i.Subscriber),f=function(t){function GroupDurationSubscriber(e,r,n){t.call(this),this.key=e,this.group=r,this.parent=n}return n(GroupDurationSubscriber,t),GroupDurationSubscriber.prototype._next=function(t){this._complete()},GroupDurationSubscriber.prototype._error=function(t){var e=this.group;e.closed||e.error(t),this.parent.removeGroup(this.key)},GroupDurationSubscriber.prototype._complete=function(){var t=this.group;t.closed||t.complete(),this.parent.removeGroup(this.key)},GroupDurationSubscriber}(i.Subscriber),h=function(t){function GroupedObservable(e,r,n){t.call(this),this.key=e,this.groupSubject=r,this.refCountSubscription=n}return n(GroupedObservable,t),GroupedObservable.prototype._subscribe=function(t){var e=new o.Subscription,r=this,n=r.refCountSubscription,i=r.groupSubject;return n&&!n.closed&&e.add(new d(n)),e.add(i.subscribe(t)),e},GroupedObservable}(s.Observable);e.GroupedObservable=h;var d=function(t){function InnerRefCountSubscription(e){t.call(this),this.parent=e,e.count++}return n(InnerRefCountSubscription,t),InnerRefCountSubscription.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},InnerRefCountSubscription}(o.Subscription)},function(t,e,r){"use strict";function ignoreElements(){return this.lift(new s)}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(423);e.ignoreElements=ignoreElements;var s=function(){function IgnoreElementsOperator(){}return IgnoreElementsOperator.prototype.call=function(t,e){return e.subscribe(new a(t))},IgnoreElementsOperator}(),a=function(t){function IgnoreElementsSubscriber(){t.apply(this,arguments)}return n(IgnoreElementsSubscriber,t),IgnoreElementsSubscriber.prototype._next=function(t){o.noop()},IgnoreElementsSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function isEmpty(){return this.lift(new o)}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e.isEmpty=isEmpty;var o=function(){function IsEmptyOperator(){}return IsEmptyOperator.prototype.call=function(t,e){return e.subscribe(new s(t))},IsEmptyOperator}(),s=function(t){function IsEmptySubscriber(e){t.call(this,e)}return n(IsEmptySubscriber,t),IsEmptySubscriber.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},IsEmptySubscriber.prototype._next=function(t){this.notifyComplete(!1)},IsEmptySubscriber.prototype._complete=function(){this.notifyComplete(!0)},IsEmptySubscriber}(i.Subscriber)},function(t,e,r){"use strict";function letProto(t){return t(this)}e.letProto=letProto},function(t,e,r){"use strict";function mapTo(t){return this.lift(new o(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e.mapTo=mapTo;var o=function(){function MapToOperator(t){this.value=t}return MapToOperator.prototype.call=function(t,e){return e.subscribe(new s(t,this.value))},MapToOperator}(),s=function(t){function MapToSubscriber(e,r){t.call(this,e),this.value=r}return n(MapToSubscriber,t),MapToSubscriber.prototype._next=function(t){this.destination.next(this.value)},MapToSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function materialize(){return this.lift(new s)}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(127);e.materialize=materialize;var s=function(){function MaterializeOperator(){}return MaterializeOperator.prototype.call=function(t,e){return e.subscribe(new a(t))},MaterializeOperator}(),a=function(t){function MaterializeSubscriber(e){t.call(this,e)}return n(MaterializeSubscriber,t),MaterializeSubscriber.prototype._next=function(t){this.destination.next(o.Notification.createNext(t))},MaterializeSubscriber.prototype._error=function(t){var e=this.destination;e.next(o.Notification.createError(t)),e.complete()},MaterializeSubscriber.prototype._complete=function(){var t=this.destination;t.next(o.Notification.createComplete()),t.complete()},MaterializeSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function max(t){var e="function"==typeof t?function(e,r){return t(e,r)>0?e:r}:function(t,e){return t>e?t:e};return this.lift(new n.ReduceOperator(e))}var n=r(182);e.max=max},function(t,e,r){"use strict";function mergeScan(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),this.lift(new u(t,e,r))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(25),o=r(23),s=r(5),a=r(4);e.mergeScan=mergeScan;var u=function(){function MergeScanOperator(t,e,r){this.project=t,this.seed=e,this.concurrent=r}return MergeScanOperator.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.seed,this.concurrent))},MergeScanOperator}();e.MergeScanOperator=u;var c=function(t){function MergeScanSubscriber(e,r,n,i){t.call(this,e),this.project=r,this.acc=n,this.concurrent=i,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(MergeScanSubscriber,t),MergeScanSubscriber.prototype._next=function(t){if(this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},MergeScanSubscriber}(a.OuterSubscriber);e.MergeScanSubscriber=c},function(t,e,r){"use strict";function min(t){var e="function"==typeof t?function(e,r){return t(e,r)<0?e:r}:function(t,e){return t-1&&(this.count=n-1),this.unsubscribe(),this.isStopped=!1,this.closed=!1,r.subscribe(this)}},RepeatSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function repeatWhen(t){return this.lift(new c(t,this))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(13),o=r(25),s=r(23),a=r(4),u=r(5);e.repeatWhen=repeatWhen;var c=function(){function RepeatWhenOperator(t,e){this.notifier=t,this.source=e}return RepeatWhenOperator.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,this.source))},RepeatWhenOperator}(),l=function(t){function RepeatWhenSubscriber(e,r,n){t.call(this,e),this.notifier=r,this.source=n}return n(RepeatWhenSubscriber,t),RepeatWhenSubscriber.prototype.complete=function(){if(!this.isStopped){var e=this.notifications,r=this.retries,n=this.retriesSubscription;if(r)this.notifications=null,this.retriesSubscription=null;else{if(e=new i.Subject,r=o.tryCatch(this.notifier)(e),r===s.errorObject)return t.prototype.complete.call(this);n=u.subscribeToResult(this,r)}this.unsubscribe(),this.closed=!1,this.notifications=e,this.retries=r,this.retriesSubscription=n,e.next()}},RepeatWhenSubscriber.prototype._unsubscribe=function(){var t=this,e=t.notifications,r=t.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),r&&(r.unsubscribe(),this.retriesSubscription=null),this.retries=null},RepeatWhenSubscriber.prototype.notifyNext=function(t,e,r,n,i){var o=this,s=o.notifications,a=o.retries,u=o.retriesSubscription;this.notifications=null,this.retries=null,this.retriesSubscription=null,this.unsubscribe(),this.isStopped=!1,this.closed=!1,this.notifications=s,this.retries=a,this.retriesSubscription=u,this.source.subscribe(this)},RepeatWhenSubscriber}(a.OuterSubscriber)},function(t,e,r){"use strict";function retry(t){return void 0===t&&(t=-1),this.lift(new o(t,this))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e.retry=retry;var o=function(){function RetryOperator(t,e){this.count=t,this.source=e}return RetryOperator.prototype.call=function(t,e){return e.subscribe(new s(t,this.count,this.source))},RetryOperator}(),s=function(t){function RetrySubscriber(e,r,n){t.call(this,e),this.count=r,this.source=n}return n(RetrySubscriber,t),RetrySubscriber.prototype.error=function(e){if(!this.isStopped){var r=this,n=r.source,i=r.count;if(0===i)return t.prototype.error.call(this,e);i>-1&&(this.count=i-1),this.unsubscribe(),this.isStopped=!1,this.closed=!1,n.subscribe(this)}},RetrySubscriber}(i.Subscriber)},function(t,e,r){"use strict";function retryWhen(t){return this.lift(new c(t,this))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(13),o=r(25),s=r(23),a=r(4),u=r(5);e.retryWhen=retryWhen;var c=function(){function RetryWhenOperator(t,e){this.notifier=t,this.source=e}return RetryWhenOperator.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,this.source))},RetryWhenOperator}(),l=function(t){function RetryWhenSubscriber(e,r,n){t.call(this,e),this.notifier=r,this.source=n}return n(RetryWhenSubscriber,t),RetryWhenSubscriber.prototype.error=function(e){if(!this.isStopped){var r=this.errors,n=this.retries,a=this.retriesSubscription;if(n)this.errors=null,this.retriesSubscription=null;else{if(r=new i.Subject,n=o.tryCatch(this.notifier)(r),n===s.errorObject)return t.prototype.error.call(this,s.errorObject.e);a=u.subscribeToResult(this,n)}this.unsubscribe(),this.closed=!1,this.errors=r,this.retries=n,this.retriesSubscription=a,r.next(e)}},RetryWhenSubscriber.prototype._unsubscribe=function(){var t=this,e=t.errors,r=t.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),r&&(r.unsubscribe(),this.retriesSubscription=null),this.retries=null},RetryWhenSubscriber.prototype.notifyNext=function(t,e,r,n,i){var o=this,s=o.errors,a=o.retries,u=o.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this.unsubscribe(),this.isStopped=!1,this.closed=!1,this.errors=s,this.retries=a,this.retriesSubscription=u,this.source.subscribe(this)},RetryWhenSubscriber}(a.OuterSubscriber)},function(t,e,r){"use strict";function sample(t){return this.lift(new s(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(4),o=r(5);e.sample=sample;var s=function(){function SampleOperator(t){this.notifier=t}return SampleOperator.prototype.call=function(t,e){var r=new a(t),n=e.subscribe(r);return n.add(o.subscribeToResult(r,this.notifier)),n},SampleOperator}(),a=function(t){function SampleSubscriber(){t.apply(this,arguments),this.hasValue=!1}return n(SampleSubscriber,t),SampleSubscriber.prototype._next=function(t){this.value=t,this.hasValue=!0},SampleSubscriber.prototype.notifyNext=function(t,e,r,n,i){this.emitValue()},SampleSubscriber.prototype.notifyComplete=function(){this.emitValue()},SampleSubscriber.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},SampleSubscriber}(i.OuterSubscriber)},function(t,e,r){"use strict";function sampleTime(t,e){return void 0===e&&(e=o.async),this.lift(new s(t,e))}function dispatchNotification(t){var e=t.subscriber,r=t.period;e.notifyNext(),this.schedule(t,r)}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(27);e.sampleTime=sampleTime;var s=function(){function SampleTimeOperator(t,e){this.period=t,this.scheduler=e}return SampleTimeOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.period,this.scheduler))},SampleTimeOperator}(),a=function(t){function SampleTimeSubscriber(e,r,n){t.call(this,e),this.period=r,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(dispatchNotification,r,{subscriber:this,period:r}))}return n(SampleTimeSubscriber,t),SampleTimeSubscriber.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},SampleTimeSubscriber.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},SampleTimeSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function scan(t,e){var r=!1;return arguments.length>=2&&(r=!0),this.lift(new o(t,e,r))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e.scan=scan;var o=function(){function ScanOperator(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return ScanOperator.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},ScanOperator}(),s=function(t){function ScanSubscriber(e,r,n,i){t.call(this,e),this.accumulator=r,this._seed=n,this.hasSeed=i,this.index=0}return n(ScanSubscriber,t),Object.defineProperty(ScanSubscriber.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),ScanSubscriber.prototype._next=function(t){return this.hasSeed?this._tryNext(t):(this.seed=t,void this.destination.next(t))},ScanSubscriber.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},ScanSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function sequenceEqual(t,e){return this.lift(new a(t,e))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(25),s=r(23);e.sequenceEqual=sequenceEqual;var a=function(){function SequenceEqualOperator(t,e){this.compareTo=t,this.comparor=e}return SequenceEqualOperator.prototype.call=function(t,e){return e.subscribe(new u(t,this.compareTo,this.comparor))},SequenceEqualOperator}();e.SequenceEqualOperator=a;var u=function(t){function SequenceEqualSubscriber(e,r,n){t.call(this,e),this.compareTo=r,this.comparor=n,this._a=[],this._b=[],this._oneComplete=!1,this.add(r.subscribe(new c(e,this)))}return n(SequenceEqualSubscriber,t),SequenceEqualSubscriber.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},SequenceEqualSubscriber.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},SequenceEqualSubscriber.prototype.checkValues=function(){for(var t=this,e=t._a,r=t._b,n=t.comparor;e.length>0&&r.length>0;){var i=e.shift(),a=r.shift(),u=!1;n?(u=o.tryCatch(n)(i,a),u===s.errorObject&&this.destination.error(s.errorObject.e)):u=i===a,u||this.emit(!1)}},SequenceEqualSubscriber.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},SequenceEqualSubscriber.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},SequenceEqualSubscriber}(i.Subscriber);e.SequenceEqualSubscriber=u;var c=function(t){function SequenceEqualCompareToSubscriber(e,r){t.call(this,e),this.parent=r}return n(SequenceEqualCompareToSubscriber,t),SequenceEqualCompareToSubscriber.prototype._next=function(t){this.parent.nextB(t)},SequenceEqualCompareToSubscriber.prototype._error=function(t){this.parent.error(t)},SequenceEqualCompareToSubscriber.prototype._complete=function(){this.parent._complete()},SequenceEqualCompareToSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function shareSubjectFactory(){return new i.Subject}function share(){return n.multicast.call(this,shareSubjectFactory).refCount()}var n=r(96),i=r(13);e.share=share},function(t,e,r){"use strict";function single(t){return this.lift(new s(t,this))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]); -t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(132);e.single=single;var s=function(){function SingleOperator(t,e){this.predicate=t,this.source=e}return SingleOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source))},SingleOperator}(),a=function(t){function SingleSubscriber(e,r,n){t.call(this,e),this.predicate=r,this.source=n,this.seenValue=!1,this.index=0}return n(SingleSubscriber,t),SingleSubscriber.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},SingleSubscriber.prototype._next=function(t){var e=this.predicate;this.index++,e?this.tryNext(t):this.applySingleValue(t)},SingleSubscriber.prototype.tryNext=function(t){try{var e=this.predicate(t,this.index,this.source);e&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},SingleSubscriber.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new o.EmptyError)},SingleSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function skip(t){return this.lift(new o(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e.skip=skip;var o=function(){function SkipOperator(t){this.total=t}return SkipOperator.prototype.call=function(t,e){return e.subscribe(new s(t,this.total))},SkipOperator}(),s=function(t){function SkipSubscriber(e,r){t.call(this,e),this.total=r,this.count=0}return n(SkipSubscriber,t),SkipSubscriber.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},SkipSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function skipUntil(t){return this.lift(new s(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(4),o=r(5);e.skipUntil=skipUntil;var s=function(){function SkipUntilOperator(t){this.notifier=t}return SkipUntilOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.notifier))},SkipUntilOperator}(),a=function(t){function SkipUntilSubscriber(e,r){t.call(this,e),this.hasValue=!1,this.isInnerStopped=!1,this.add(o.subscribeToResult(this,r))}return n(SkipUntilSubscriber,t),SkipUntilSubscriber.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},SkipUntilSubscriber.prototype._complete=function(){this.isInnerStopped?t.prototype._complete.call(this):this.unsubscribe()},SkipUntilSubscriber.prototype.notifyNext=function(t,e,r,n,i){this.hasValue=!0},SkipUntilSubscriber.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&t.prototype._complete.call(this)},SkipUntilSubscriber}(i.OuterSubscriber)},function(t,e,r){"use strict";function skipWhile(t){return this.lift(new o(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3);e.skipWhile=skipWhile;var o=function(){function SkipWhileOperator(t){this.predicate=t}return SkipWhileOperator.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate))},SkipWhileOperator}(),s=function(t){function SkipWhileSubscriber(e,r){t.call(this,e),this.predicate=r,this.skipping=!0,this.index=0}return n(SkipWhileSubscriber,t),SkipWhileSubscriber.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},SkipWhileSubscriber.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},SkipWhileSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function startWith(){for(var t=[],e=0;e1?s.concatStatic(new n.ArrayObservable(t,r),this):s.concatStatic(new o.EmptyObservable(r),this)}var n=r(55),i=r(261),o=r(67),s=r(264),a=r(68);e.startWith=startWith},function(t,e,r){"use strict";function subscribeOn(t,e){return void 0===e&&(e=0),this.lift(new i(t,e))}var n=r(841);e.subscribeOn=subscribeOn;var i=function(){function SubscribeOnOperator(t,e){this.scheduler=t,this.delay=e}return SubscribeOnOperator.prototype.call=function(t,e){return new n.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},SubscribeOnOperator}()},function(t,e,r){"use strict";function _switch(){return this.lift(new s)}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(4),o=r(5);e._switch=_switch;var s=function(){function SwitchOperator(){}return SwitchOperator.prototype.call=function(t,e){return e.subscribe(new a(t))},SwitchOperator}(),a=function(t){function SwitchSubscriber(e){t.call(this,e),this.active=0,this.hasCompleted=!1}return n(SwitchSubscriber,t),SwitchSubscriber.prototype._next=function(t){this.unsubscribeInner(),this.active++,this.add(this.innerSubscription=o.subscribeToResult(this,t))},SwitchSubscriber.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&this.destination.complete()},SwitchSubscriber.prototype.unsubscribeInner=function(){this.active=this.active>0?this.active-1:0;var t=this.innerSubscription;t&&(t.unsubscribe(),this.remove(t))},SwitchSubscriber.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},SwitchSubscriber.prototype.notifyError=function(t){this.destination.error(t)},SwitchSubscriber.prototype.notifyComplete=function(){this.unsubscribeInner(),this.hasCompleted&&0===this.active&&this.destination.complete()},SwitchSubscriber}(i.OuterSubscriber)},function(t,e,r){"use strict";function switchMap(t,e){return this.lift(new s(t,e))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(4),o=r(5);e.switchMap=switchMap;var s=function(){function SwitchMapOperator(t,e){this.project=t,this.resultSelector=e}return SwitchMapOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.resultSelector))},SwitchMapOperator}(),a=function(t){function SwitchMapSubscriber(e,r,n){t.call(this,e),this.project=r,this.resultSelector=n,this.index=0}return n(SwitchMapSubscriber,t),SwitchMapSubscriber.prototype._next=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,r)},SwitchMapSubscriber.prototype._innerSub=function(t,e,r){var n=this.innerSubscription;n&&n.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,t,e,r))},SwitchMapSubscriber.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},SwitchMapSubscriber.prototype._unsubscribe=function(){this.innerSubscription=null},SwitchMapSubscriber.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},SwitchMapSubscriber.prototype.notifyNext=function(t,e,r,n,i){this.resultSelector?this._tryNotifyNext(t,e,r,n):this.destination.next(e)},SwitchMapSubscriber.prototype._tryNotifyNext=function(t,e,r,n){var i;try{i=this.resultSelector(t,e,r,n)}catch(t){return void this.destination.error(t)}this.destination.next(i)},SwitchMapSubscriber}(i.OuterSubscriber)},function(t,e,r){"use strict";function switchMapTo(t,e){return this.lift(new s(t,e))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(4),o=r(5);e.switchMapTo=switchMapTo;var s=function(){function SwitchMapToOperator(t,e){this.observable=t,this.resultSelector=e}return SwitchMapToOperator.prototype.call=function(t,e){return e.subscribe(new a(t,this.observable,this.resultSelector))},SwitchMapToOperator}(),a=function(t){function SwitchMapToSubscriber(e,r,n){t.call(this,e),this.inner=r,this.resultSelector=n,this.index=0}return n(SwitchMapToSubscriber,t),SwitchMapToSubscriber.prototype._next=function(t){var e=this.innerSubscription;e&&e.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,this.inner,t,this.index++))},SwitchMapToSubscriber.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},SwitchMapToSubscriber.prototype._unsubscribe=function(){this.innerSubscription=null},SwitchMapToSubscriber.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},SwitchMapToSubscriber.prototype.notifyNext=function(t,e,r,n,i){var o=this,s=o.resultSelector,a=o.destination;s?this.tryResultSelector(t,e,r,n):a.next(e)},SwitchMapToSubscriber.prototype.tryResultSelector=function(t,e,r,n){var i,o=this,s=o.resultSelector,a=o.destination;try{i=s(t,e,r,n)}catch(t){return void a.error(t)}a.next(i)},SwitchMapToSubscriber}(i.OuterSubscriber)},function(t,e,r){"use strict";function take(t){return 0===t?new s.EmptyObservable:this.lift(new a(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(184),s=r(67);e.take=take;var a=function(){function TakeOperator(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return TakeOperator.prototype.call=function(t,e){return e.subscribe(new u(t,this.total))},TakeOperator}(),u=function(t){function TakeSubscriber(e,r){t.call(this,e),this.total=r,this.count=0}return n(TakeSubscriber,t),TakeSubscriber.prototype._next=function(t){var e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},TakeSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function takeLast(t){return 0===t?new s.EmptyObservable:this.lift(new a(t))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(3),o=r(184),s=r(67);e.takeLast=takeLast;var a=function(){function TakeLastOperator(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return TakeLastOperator.prototype.call=function(t,e){return e.subscribe(new u(t,this.total))},TakeLastOperator}(),u=function(t){function TakeLastSubscriber(e,r){t.call(this,e),this.total=r,this.ring=new Array,this.count=0}return n(TakeLastSubscriber,t),TakeLastSubscriber.prototype._next=function(t){var e=this.ring,r=this.total,n=this.count++;if(e.length0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,i=0;i0?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,i=this.windows,s=i.length,a=0;a=0&&u%e===0&&!this.closed&&i.shift().complete(),++this.count%e===0&&!this.closed){var c=new o.Subject;i.push(c),r.next(c)}},WindowCountSubscriber.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},WindowCountSubscriber.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},WindowCountSubscriber.prototype._unsubscribe=function(){this.count=0,this.windows=null},WindowCountSubscriber}(i.Subscriber)},function(t,e,r){"use strict";function windowTime(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=o.async),this.lift(new a(t,e,r))}function dispatchWindowTimeSpanOnly(t){var e=t.subscriber,r=t.windowTimeSpan,n=t.window;n&&n.complete(),t.window=e.openWindow(),this.schedule(t,r)}function dispatchWindowCreation(t){var e=t.windowTimeSpan,r=t.subscriber,n=t.scheduler,i=t.windowCreationInterval,o=r.openWindow(),s=this,a={action:s,subscription:null},u={subscriber:r,window:o,context:a};a.subscription=n.schedule(dispatchWindowClose,e,u),s.add(a.subscription),s.schedule(t,i)}function dispatchWindowClose(t){var e=t.subscriber,r=t.window,n=t.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(r)}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(13),o=r(27),s=r(3);e.windowTime=windowTime;var a=function(){function WindowTimeOperator(t,e,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.scheduler=r}return WindowTimeOperator.prototype.call=function(t,e){return e.subscribe(new u(t,this.windowTimeSpan,this.windowCreationInterval,this.scheduler))},WindowTimeOperator}(),u=function(t){function WindowTimeSubscriber(e,r,n,i){if(t.call(this,e),this.destination=e,this.windowTimeSpan=r,this.windowCreationInterval=n,this.scheduler=i,this.windows=[],null!==n&&n>=0){var o=this.openWindow(),s={subscriber:this,window:o,context:null},a={windowTimeSpan:r,windowCreationInterval:n,subscriber:this,scheduler:i};this.add(i.schedule(dispatchWindowClose,r,s)),this.add(i.schedule(dispatchWindowCreation,n,a))}else{var u=this.openWindow(),c={subscriber:this,window:u,windowTimeSpan:r};this.add(i.schedule(dispatchWindowTimeSpanOnly,r,c))}}return n(WindowTimeSubscriber,t),WindowTimeSubscriber.prototype._next=function(t){for(var e=this.windows,r=e.length,n=0;n0;)e.shift().error(t);this.destination.error(t)},WindowTimeSubscriber.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},WindowTimeSubscriber.prototype.openWindow=function(){var t=new i.Subject;this.windows.push(t);var e=this.destination;return e.next(t),t},WindowTimeSubscriber.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},WindowTimeSubscriber}(s.Subscriber)},function(t,e,r){"use strict";function windowToggle(t,e){return this.lift(new l(t,e))}var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(13),o=r(20),s=r(25),a=r(23),u=r(4),c=r(5);e.windowToggle=windowToggle;var l=function(){function WindowToggleOperator(t,e){this.openings=t,this.closingSelector=e}return WindowToggleOperator.prototype.call=function(t,e){return e.subscribe(new p(t,this.openings,this.closingSelector))},WindowToggleOperator}(),p=function(t){function WindowToggleSubscriber(e,r,n){t.call(this,e),this.openings=r,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=c.subscribeToResult(this,r,r))}return n(WindowToggleSubscriber,t),WindowToggleSubscriber.prototype._next=function(t){var e=this.contexts;if(e)for(var r=e.length,n=0;n0){var s=o.indexOf(r);s!==-1&&o.splice(s,1)}},WithLatestFromSubscriber.prototype.notifyComplete=function(){},WithLatestFromSubscriber.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},WithLatestFromSubscriber.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t); -}this.destination.next(e)},WithLatestFromSubscriber}(i.OuterSubscriber)},function(t,e,r){"use strict";function zipAll(t){return this.lift(new n.ZipOperator(t))}var n=r(271);e.zipAll=zipAll},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(20),o=function(t){function Action(e,r){t.call(this)}return n(Action,t),Action.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},Action}(i.Subscription);e.Action=o},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(128),o=r(952),s=function(t){function AnimationFrameAction(e,r){t.call(this,e,r),this.scheduler=e,this.work=r}return n(AnimationFrameAction,t),AnimationFrameAction.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=o.AnimationFrame.requestAnimationFrame(e.flush.bind(e,null))))},AnimationFrameAction.prototype.recycleAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.recycleAsyncId.call(this,e,r,n):void(0===e.actions.length&&(o.AnimationFrame.cancelAnimationFrame(r),e.scheduled=void 0))},AnimationFrameAction}(i.AsyncAction);e.AnimationFrameAction=s},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(129),o=function(t){function AnimationFrameScheduler(){t.apply(this,arguments)}return n(AnimationFrameScheduler,t),AnimationFrameScheduler.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while(++n0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=i.Immediate.setImmediate(e.flush.bind(e,null))))},AsapAction.prototype.recycleAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.recycleAsyncId.call(this,e,r,n):void(0===e.actions.length&&(i.Immediate.clearImmediate(r),e.scheduled=void 0))},AsapAction}(o.AsyncAction);e.AsapAction=s},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(129),o=function(t){function AsapScheduler(){t.apply(this,arguments)}return n(AsapScheduler,t),AsapScheduler.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while(++n0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},QueueAction.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},QueueAction.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},QueueAction}(i.AsyncAction);e.QueueAction=o},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(129),o=function(t){function QueueScheduler(){t.apply(this,arguments)}return n(QueueScheduler,t),QueueScheduler}(i.AsyncScheduler);e.QueueScheduler=o},function(t,e,r){"use strict";var n=r(942),i=r(943);e.animationFrame=new i.AnimationFrameScheduler(n.AnimationFrameAction)},function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function __(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)},i=r(0),o=r(20),s=r(417),a=r(420),u=function(t){function ColdObservable(e,r){t.call(this,function(t){var e=this,r=e.logSubscribedFrame();return t.add(new o.Subscription(function(){e.logUnsubscribedFrame(r)})),e.scheduleMessages(t),t}),this.messages=e,this.subscriptions=[],this.scheduler=r}return n(ColdObservable,t),ColdObservable.prototype.scheduleMessages=function(t){for(var e=this.messages.length,r=0;r0;)e.shift().setup();t.prototype.flush.call(this);for(var r=this.flushTests.filter(function(t){return t.ready});r.length>0;){var n=r.shift();this.assertDeepEqual(n.actual,n.expected)}},TestScheduler.parseMarblesAsSubscriptions=function(t){if("string"!=typeof t)return new u.SubscriptionLog(Number.POSITIVE_INFINITY);for(var e=t.length,r=-1,n=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY,o=0;o-1?r:s;break;case"!":if(i!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");i=r>-1?r:s;break;default:throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+a+"'.")}}return i<0?new u.SubscriptionLog(n):new u.SubscriptionLog(n,i)},TestScheduler.parseMarbles=function(t,e,r,n){if(void 0===n&&(n=!1),t.indexOf("!")!==-1)throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var i=t.length,a=[],u=t.indexOf("^"),c=u===-1?0:u*-this.frameTimeFactor,l="object"!=typeof e?function(t){return t}:function(t){return n&&e[t]instanceof s.ColdObservable?e[t].messages:e[t]},p=-1,f=0;f-1?p:h,notification:d})}return a},TestScheduler}(c.VirtualTimeScheduler);e.TestScheduler=p},function(t,e,r){"use strict";var n=r(24),i=function(){function RequestAnimationFrameDefinition(t){t.requestAnimationFrame?(this.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),this.requestAnimationFrame=t.requestAnimationFrame.bind(t)):t.mozRequestAnimationFrame?(this.cancelAnimationFrame=t.mozCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.mozRequestAnimationFrame.bind(t)):t.webkitRequestAnimationFrame?(this.cancelAnimationFrame=t.webkitCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.webkitRequestAnimationFrame.bind(t)):t.msRequestAnimationFrame?(this.cancelAnimationFrame=t.msCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.msRequestAnimationFrame.bind(t)):t.oRequestAnimationFrame?(this.cancelAnimationFrame=t.oCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.oRequestAnimationFrame.bind(t)):(this.cancelAnimationFrame=t.clearTimeout.bind(t),this.requestAnimationFrame=function(e){return t.setTimeout(e,1e3/60)})}return RequestAnimationFrameDefinition}();e.RequestAnimationFrameDefinition=i,e.AnimationFrame=new i(n.root)},function(t,e,r){"use strict";var n=function(){function FastMap(){this.values={}}return FastMap.prototype.delete=function(t){return this.values[t]=null,!0},FastMap.prototype.set=function(t,e){return this.values[t]=e,this},FastMap.prototype.get=function(t){return this.values[t]},FastMap.prototype.forEach=function(t,e){var r=this.values;for(var n in r)r.hasOwnProperty(n)&&null!==r[n]&&t.call(e,r[n],n)},FastMap.prototype.clear=function(){this.values={}},FastMap}();e.FastMap=n},function(t,e,r){"use strict";(function(t,n){var i=r(24),o=function(){function ImmediateDefinition(t){if(this.root=t,t.setImmediate&&"function"==typeof t.setImmediate)this.setImmediate=t.setImmediate.bind(t),this.clearImmediate=t.clearImmediate.bind(t);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate();var e=function clearImmediate(t){delete clearImmediate.instance.tasksByHandle[t]};e.instance=this,this.clearImmediate=e}}return ImmediateDefinition.prototype.identify=function(t){return this.root.Object.prototype.toString.call(t)},ImmediateDefinition.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},ImmediateDefinition.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},ImmediateDefinition.prototype.canUseReadyStateChange=function(){var t=this.root.document;return Boolean(t&&"onreadystatechange"in t.createElement("script"))},ImmediateDefinition.prototype.canUsePostMessage=function(){var t=this.root;if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}return!1},ImmediateDefinition.prototype.partiallyApplied=function(t){for(var e=[],r=1;r Date: Sat, 11 Feb 2017 12:14:49 +0200 Subject: [PATCH 4/7] homework_11 refactoring project with Routing --- .../quickstart/.gitignore | 0 .../quickstart/src/app/app-routing.module.ts | 22 ++++++ .../quickstart/src/app/app.component.css | 74 +++++-------------- .../quickstart/src/app/app.component.spec.ts | 12 --- .../quickstart/src/app/app.component.ts | 43 ++--------- .../src/app/app.hero-detail.component.ts | 12 --- .../src/app/app.hero-edit.component.css | 12 --- .../src/app/app.hero-edit.component.ts | 18 ----- .../quickstart/src/app/app.module.ts | 23 +++++- .../src/app/dashboard.component.css | 74 +++++++++++++++++++ .../src/app/dashboard.component.html | 10 +++ .../quickstart/src/app/dashboard.component.ts | 21 ++++++ ...omponent.css => hero-detail.component.css} | 0 ...ponent.html => hero-detail.component.html} | 6 +- .../src/app/hero-detail.component.ts | 33 +++++++++ .../src/app/hero-edit.component.css | 46 ++++++++++++ ...omponent.html => hero-edit.component.html} | 5 +- .../quickstart/src/app/hero-edit.component.ts | 43 +++++++++++ .../quickstart/src/app/hero.service.ts | 19 +++++ .../src/app/{app.hero.ts => hero.ts} | 0 .../quickstart/src/app/heroes.component.css | 67 +++++++++++++++++ ...p.component.html => heroes.component.html} | 10 ++- .../quickstart/src/app/heroes.component.ts | 41 ++++++++++ .../quickstart/src/app/mock-heroes.ts | 16 ++++ .../quickstart/src/index.html | 1 + .../quickstart/src/styles.css | 24 ++++++ 26 files changed, 479 insertions(+), 153 deletions(-) mode change 100644 => 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/.gitignore create mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app-routing.module.ts mode change 100755 => 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.css delete mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.spec.ts delete mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.ts delete mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.css delete mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.ts create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.css create mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.html create mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.ts rename homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/{app.hero-detail.component.css => hero-detail.component.css} (100%) mode change 100644 => 100755 rename homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/{app.hero-detail.component.html => hero-detail.component.html} (83%) mode change 100644 => 100755 create mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.ts create mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.css rename homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/{app.hero-edit.component.html => hero-edit.component.html} (84%) mode change 100644 => 100755 create mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts create mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero.service.ts rename homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/{app.hero.ts => hero.ts} (100%) mode change 100644 => 100755 create mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.css rename homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/{app.component.html => heroes.component.html} (56%) create mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.ts create mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/mock-heroes.ts create mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/styles.css diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/.gitignore b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/.gitignore old mode 100644 new mode 100755 diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app-routing.module.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app-routing.module.ts new file mode 100755 index 00000000..8324099d --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app-routing.module.ts @@ -0,0 +1,22 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { DashboardComponent } from './dashboard.component'; +import { HeroesComponent } from './heroes.component'; +import { HeroDetailComponent } from './hero-detail.component'; +import { HeroEditComponent } from './hero-edit.component'; + +const routes: Routes = [ + { path: '', redirectTo: '/dashboard', pathMatch: 'full' }, + { path: 'dashboard', component: DashboardComponent }, + { path: 'detail/:id', component: HeroDetailComponent }, + { path: 'edit/:id', component: HeroEditComponent }, + { path: 'heroes', component: HeroesComponent } +]; + +@NgModule({ + imports: [ RouterModule.forRoot(routes) ], + exports: [ RouterModule ] +}) + +export class AppRoutingModule { +} diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.css old mode 100755 new mode 100644 index 3132f52d..7bf53175 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.css +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.css @@ -1,67 +1,33 @@ -.selected { - background-color: #CFD8DC !important; color: white; +h1 { + font-size: 1.2em; + color: #999; + margin-bottom: 0; } -.heroes { - margin: 0 0 2em 0; - list-style-type: none; - padding: 0; - width: 15em; +h2 { + font-size: 2em; + margin-top: 0; + padding-top: 0; } -.heroes li { - cursor: pointer; - position: relative; - left: 0; - background-color: #EEE; - margin: .5em; - padding: .3em 0; - height: 1.6em; +nav a { + padding: 5px 10px; + text-decoration: none; + margin-top: 10px; + display: inline-block; + background-color: #eee; border-radius: 4px; } -.heroes li.selected:hover { - background-color: #BBD8DC !important; color: white; -} - -.heroes li:hover { +nav a:visited, a:link { color: #607D8B; - background-color: #DDD; - left: .1em; } -.heroes .text { - position: relative; - top: -3px; +nav a:hover { + color: #039be5; + background-color: #CFD8DC; } -.heroes .badge { - display: inline-block; - font-size: small; - color: white; - padding: 0.8em 0.7em 0 0.7em; - background-color: #607D8B; - line-height: 1em; - position: relative; - left: -1px; - top: -4px; - height: 1.8em; - margin-right: .8em; - border-radius: 4px 0 0 4px; +nav a.active { + color: #039be5; } - -.edit_icon { - float: right; - color: white; - font-size: 26px; - position: relative; - top: -6px; - width: 30px; - padding: 1px; - background-color: darkslategrey; - font-weight: bold; -} - -.hero_information { - width: 100%; -} \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.spec.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.spec.ts deleted file mode 100755 index b9bb914b..00000000 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.spec.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { TestBed } from '@angular/core/testing'; -import { AppComponent } from './app.component'; - -describe('App', () => { - beforeEach(() => { - TestBed.configureTestingModule({ declarations: [AppComponent]}); - }); - it ('should work', () => { - let fixture = TestBed.createComponent(AppComponent); - expect(fixture.componentInstance instanceof AppComponent).toBe(true, 'should create AppComponent'); - }); -}); \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.ts index 21e12712..864e1bbd 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.ts @@ -1,45 +1,18 @@ import { Component } from '@angular/core'; -import { Hero } from './app.hero'; - -const PATH_TO_IMAGES = 'src/images/'; -const ANTIHEROES: string[] = ["Spawn", "Deadpool", "Wolverine", "Punisher", "Ghost Rider", "Rorschach", "Blade", "Venom", "Deathstroke", "John Constantine" ]; -const HEROES: Hero[] = [ - { id: 11, name: 'Mr. Nice', photo: PATH_TO_IMAGES + "Nice.jpg", antihero: ANTIHEROES[0] }, - { id: 12, name: 'Narco', photo: PATH_TO_IMAGES + "Narco.jpg", antihero: ANTIHEROES[1] }, - { id: 13, name: 'Bombasto', photo: PATH_TO_IMAGES + "Bombasto.jpg", antihero: ANTIHEROES[2] }, - { id: 14, name: 'Celeritas', photo: PATH_TO_IMAGES + "Celeritas.jpg", antihero: ANTIHEROES[3] }, - { id: 15, name: 'Magneta', photo: PATH_TO_IMAGES + "Magneta.jpg", antihero: ANTIHEROES[4] }, - { id: 16, name: 'RubberMan', photo: PATH_TO_IMAGES + "RubberMan.jpg", antihero: ANTIHEROES[5] }, - { id: 17, name: 'Dynama', photo: PATH_TO_IMAGES + "Dynama.jpg", antihero: ANTIHEROES[6] }, - { id: 18, name: 'Dr IQ', photo: PATH_TO_IMAGES + "DrIQ.jpg", antihero: ANTIHEROES[7] }, - { id: 19, name: 'Magma', photo: PATH_TO_IMAGES + "Magma.jpg", antihero: ANTIHEROES[8] }, - { id: 20, name: 'Tornado', photo: PATH_TO_IMAGES + "Tornado.jpg", antihero: ANTIHEROES[9] } -]; @Component({ selector: 'my-app', - templateUrl: 'app.component.html', + template: ` +

{{title}}

+ + + `, styleUrls: ['app.component.css'] }) export class AppComponent { title = 'Tour of Heroes'; - heroes = HEROES; - antiheroes = ANTIHEROES; - selectedHero: Hero; - editedHero: Hero; - - // when user click on an item of hero - - // show hero details block and hide hero edit block - onShowDetails(hero: Hero): void { - this.selectedHero = hero; - this.editedHero = null; - } - // when user click on an edit button - - // show hero edit block and hide hiro details block - onEdit(hero: Hero, event: any): void { - event.stopPropagation(); - this.editedHero = hero; - this.selectedHero = null; - } } \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.ts deleted file mode 100644 index 2db9ce5b..00000000 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Component, Input } from '@angular/core'; -import { Hero } from './app.hero'; - -@Component({ - selector: 'my-hero-detail', - templateUrl: 'app.hero-detail.component.html', - styleUrls: ['app.hero-detail.component.css'] -}) - -export class HeroDetailComponent { - @Input() hero: Hero; -} diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.css deleted file mode 100644 index 74479cbc..00000000 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.css +++ /dev/null @@ -1,12 +0,0 @@ -.hero_edit_section { - float: left; - width: 40%; - background-color: lightblue; - padding-left: 50px; -} - -img { - border: 1px solid brown; - margin: 20px; - width: 100px; -} \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.ts deleted file mode 100644 index 6816c5ec..00000000 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.ts +++ /dev/null @@ -1,18 +0,0 @@ -import {Component,Input, OnInit} from '@angular/core'; -import { Hero } from './app.hero'; - -@Component({ - selector: 'my-hero-edit', - templateUrl: 'app.hero-edit.component.html', - styleUrls: ['app.hero-edit.component.css'] -}) - -export class HeroEditComponent { - @Input() hero: Hero; - @Input() antiheroesList: string[]; - - clearPhoto(event: any) { - event.preventDefault(); - this.hero.photo = ''; - } -} \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts index 8d555e58..cd8718d8 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts @@ -2,12 +2,27 @@ import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { AppComponent } from './app.component'; -import { HeroDetailComponent } from './app.hero-detail.component'; -import { HeroEditComponent } from './app.hero-edit.component'; +import { DashboardComponent } from './dashboard.component'; +import { HeroDetailComponent } from './hero-detail.component'; +import { HeroEditComponent } from './hero-edit.component'; +import { HeroesComponent } from './heroes.component'; +import { HeroService } from './hero.service'; +import { AppRoutingModule } from './app-routing.module'; @NgModule({ - imports: [ BrowserModule, FormsModule ], - declarations: [ AppComponent, HeroDetailComponent, HeroEditComponent], + imports: [ + BrowserModule, + FormsModule, + AppRoutingModule + ], + declarations: [ + AppComponent, + DashboardComponent, + HeroDetailComponent, + HeroEditComponent, + HeroesComponent + ], + providers: [ HeroService ], bootstrap: [ AppComponent ] }) diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.css new file mode 100644 index 00000000..07bb4079 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.css @@ -0,0 +1,74 @@ +[class*='col-'] { + float: left; + padding-right: 20px; + padding-bottom: 20px; +} + +[class*='col-']:last-of-type { + padding-right: 0; +} + +a { + text-decoration: none; +} + +*, *:after, *:before { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +h3 { + text-align: center; margin-bottom: 0; +} + +h4 { + position: relative; +} + +.grid { + margin: 0; +} + +.col-1-4 { + width: 25%; +} + +.module { + padding: 20px; + text-align: center; + color: #eee; + max-height: 120px; + min-width: 120px; + background-color: #607D8B; + border-radius: 2px; +} + +.module:hover { + background-color: #EEE; + cursor: pointer; + color: #607d8b; +} + +.grid-pad { + padding: 10px 0; +} + +.grid-pad > [class*='col-']:last-of-type { + padding-right: 20px; +} + +@media (max-width: 600px) { + .module { + font-size: 10px; + max-height: 75px; } +} + +@media (max-width: 1024px) { + .grid { + margin: 0; + } + .module { + min-width: 60px; + } +} diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.html new file mode 100755 index 00000000..5d17a4e4 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.html @@ -0,0 +1,10 @@ +

Top Heroes

+
+
+
+

{{hero.name}}

+
+
+
+ + diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.ts new file mode 100755 index 00000000..81f3075a --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.ts @@ -0,0 +1,21 @@ +import { Component, OnInit } from '@angular/core'; +import { Hero } from './hero'; +import { HeroService } from './hero.service'; + +@Component({ + //moduleId: module.id, + selector: 'my-dashboard', + templateUrl: 'dashboard.component.html', + styleUrls: ['dashboard.component.css'] +}) + +export class DashboardComponent implements OnInit { + heroes: Hero[] = []; + + constructor(private heroService: HeroService) { } + + ngOnInit(): void { + this.heroService.getHeroes() + .then(heroes => this.heroes = heroes.slice(1, 5)); + } +} diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.css old mode 100644 new mode 100755 similarity index 100% rename from homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.css rename to homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.css diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.html old mode 100644 new mode 100755 similarity index 83% rename from homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.html rename to homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.html index f220a3e7..4a107fc3 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-detail.component.html +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.html @@ -12,6 +12,8 @@

{{hero.name}} details section!

{{hero.antihero}} -
+ - +
+ + \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.ts new file mode 100755 index 00000000..d73037d1 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.ts @@ -0,0 +1,33 @@ +import { Component, Input, OnInit } from '@angular/core'; +import { Hero } from './hero'; +import { ActivatedRoute, Params } from '@angular/router'; +import { Location } from '@angular/common'; +import 'rxjs/add/operator/switchMap'; +import { HeroService } from './hero.service'; + +@Component({ + //moduleId: module.id, + selector: 'my-hero-detail', + templateUrl: 'hero-detail.component.html', + styleUrls: ['hero-detail.component.css'] +}) + +export class HeroDetailComponent implements OnInit { + @Input() hero: Hero; + + constructor( + private heroService: HeroService, + private route: ActivatedRoute, + private location: Location + ) {} + + ngOnInit(): void { + this.route.params + .switchMap((params: Params) => this.heroService.getHero(+params['id'])) + .subscribe(hero => this.hero = hero); + } + + goBack(): void { + this.location.back(); + } +} diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.css new file mode 100755 index 00000000..1c224b0d --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.css @@ -0,0 +1,46 @@ +label { + display: inline-block; + width: 3em; + margin: .5em 0; + color: #607D8B; + font-weight: bold; +} + +input { + height: 2em; + font-size: 1em; + padding-left: .4em; +} + +button { + margin-top: 20px; + font-family: Arial; + background-color: #eee; + border: none; + padding: 5px 10px; + border-radius: 4px; + cursor: pointer; cursor: hand; +} + +button:hover { + background-color: #cfd8dc; +} + +button:disabled { + background-color: #eee; + color: #ccc; + cursor: auto; +} + +.hero_edit_section { + float: left; + width: 40%; + background-color: lightblue; + padding-left: 50px; +} + +img { + border: 1px solid brown; + margin: 20px; + width: 100px; +} \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html old mode 100644 new mode 100755 similarity index 84% rename from homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.html rename to homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html index 589db63d..7842a0d5 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero-edit.component.html +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html @@ -13,12 +13,15 @@

{{hero.name}} edit section!

+
+ + diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts new file mode 100755 index 00000000..93e4f90e --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts @@ -0,0 +1,43 @@ +import {Component,Input, OnInit} from '@angular/core'; +import { Hero } from './hero'; +import { ActivatedRoute, Params } from '@angular/router'; +import { Location } from '@angular/common'; +import 'rxjs/add/operator/switchMap'; +import { HeroService } from './hero.service'; + +@Component({ + selector: 'my-hero-edit', + templateUrl: 'hero-edit.component.html', + styleUrls: ['hero-edit.component.css'] +}) + +export class HeroEditComponent { + @Input() hero: Hero; + antiheroes: string[]; + + constructor( + private heroService: HeroService, + private route: ActivatedRoute, + private location: Location) { + } + + ngOnInit(): void { + this.route.params + .switchMap((params: Params) => this.heroService.getHero(+params['id'])) + .subscribe(hero => this.hero = hero); + this.getAntiheroes(); + } + + getAntiheroes(): void { + this.heroService.getAntiheroes().then(antiheroes => this.antiheroes = antiheroes); + } + + clearPhoto(event: any) { + event.preventDefault(); + this.hero.photo = ''; + } + + goBack(): void { + this.location.back(); + } +} \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero.service.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero.service.ts new file mode 100755 index 00000000..cc006256 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero.service.ts @@ -0,0 +1,19 @@ +import { Injectable } from '@angular/core'; +import { Hero } from './hero'; +import { HEROES, ANTIHEROES } from './mock-heroes'; + +@Injectable() +export class HeroService { + getHeroes(): Promise { + return Promise.resolve(HEROES); + } + + getAntiheroes(): Promise { + return Promise.resolve(ANTIHEROES); + } + + getHero(id: number): Promise { + return this.getHeroes() + .then(heroes => heroes.find(hero => hero.id === id)); + } +} \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero.ts old mode 100644 new mode 100755 similarity index 100% rename from homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.hero.ts rename to homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero.ts diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.css new file mode 100755 index 00000000..3132f52d --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.css @@ -0,0 +1,67 @@ +.selected { + background-color: #CFD8DC !important; color: white; +} + +.heroes { + margin: 0 0 2em 0; + list-style-type: none; + padding: 0; + width: 15em; +} + +.heroes li { + cursor: pointer; + position: relative; + left: 0; + background-color: #EEE; + margin: .5em; + padding: .3em 0; + height: 1.6em; + border-radius: 4px; +} + +.heroes li.selected:hover { + background-color: #BBD8DC !important; color: white; +} + +.heroes li:hover { + color: #607D8B; + background-color: #DDD; + left: .1em; +} + +.heroes .text { + position: relative; + top: -3px; +} + +.heroes .badge { + display: inline-block; + font-size: small; + color: white; + padding: 0.8em 0.7em 0 0.7em; + background-color: #607D8B; + line-height: 1em; + position: relative; + left: -1px; + top: -4px; + height: 1.8em; + margin-right: .8em; + border-radius: 4px 0 0 4px; +} + +.edit_icon { + float: right; + color: white; + font-size: 26px; + position: relative; + top: -6px; + width: 30px; + padding: 1px; + background-color: darkslategrey; + font-weight: bold; +} + +.hero_information { + width: 100%; +} \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.html similarity index 56% rename from homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.html rename to homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.html index 396307dc..458a84c3 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.html +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.html @@ -5,11 +5,15 @@

My Heroes

  • {{hero.id}} {{hero.name}} -
  • - - +
    +

    + {{selectedHero.name | uppercase}} is my hero +

    + + +
    \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.ts new file mode 100755 index 00000000..738d070b --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.ts @@ -0,0 +1,41 @@ +import { Component, OnInit } from '@angular/core'; +import { Hero } from './hero'; +import { HeroService } from './hero.service'; +import { Router } from '@angular/router'; + +@Component({ + //moduleId: module.id, + selector: 'my-heroes', + templateUrl: 'heroes.component.html', + styleUrls: ['heroes.component.css'], +}) + +export class HeroesComponent implements OnInit { + heroes: Hero[]; + selectedHero: Hero; + + constructor( + private router: Router, + private heroService: HeroService) { + } + + ngOnInit(): void { + this.getHeroes(); + } + + getHeroes(): void { + this.heroService.getHeroes().then(heroes => this.heroes = heroes); + } + + onShowDetails(hero: Hero): void { + this.selectedHero = hero; + } + + gotoDetail(): void { + this.router.navigate(['/detail', this.selectedHero.id]); + } + + gotoEditDetail(): void { + this.router.navigate(['/edit', this.selectedHero.id]); + } +} \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/mock-heroes.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/mock-heroes.ts new file mode 100755 index 00000000..3b39892c --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/mock-heroes.ts @@ -0,0 +1,16 @@ +import { Hero } from './hero'; + +const PATH_TO_IMAGES = 'src/images/'; +export const ANTIHEROES: string[] = ["Spawn", "Deadpool", "Wolverine", "Punisher", "Ghost Rider", "Rorschach", "Blade", "Venom", "Deathstroke", "John Constantine" ]; +export const HEROES: Hero[] = [ + { id: 11, name: 'Mr. Nice', photo: PATH_TO_IMAGES + "Nice.jpg", antihero: ANTIHEROES[0] }, + { id: 12, name: 'Narco', photo: PATH_TO_IMAGES + "Narco.jpg", antihero: ANTIHEROES[1] }, + { id: 13, name: 'Bombasto', photo: PATH_TO_IMAGES + "Bombasto.jpg", antihero: ANTIHEROES[2] }, + { id: 14, name: 'Celeritas', photo: PATH_TO_IMAGES + "Celeritas.jpg", antihero: ANTIHEROES[3] }, + { id: 15, name: 'Magneta', photo: PATH_TO_IMAGES + "Magneta.jpg", antihero: ANTIHEROES[4] }, + { id: 16, name: 'RubberMan', photo: PATH_TO_IMAGES + "RubberMan.jpg", antihero: ANTIHEROES[5] }, + { id: 17, name: 'Dynama', photo: PATH_TO_IMAGES + "Dynama.jpg", antihero: ANTIHEROES[6] }, + { id: 18, name: 'Dr IQ', photo: PATH_TO_IMAGES + "DrIQ.jpg", antihero: ANTIHEROES[7] }, + { id: 19, name: 'Magma', photo: PATH_TO_IMAGES + "Magma.jpg", antihero: ANTIHEROES[8] }, + { id: 20, name: 'Tornado', photo: PATH_TO_IMAGES + "Tornado.jpg", antihero: ANTIHEROES[9] } +]; \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/index.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/index.html index e033d4c3..1cbd742e 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/index.html +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/index.html @@ -5,6 +5,7 @@ + diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/styles.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/styles.css new file mode 100755 index 00000000..d0536b4e --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/styles.css @@ -0,0 +1,24 @@ +/* Master Styles */ +h1 { + color: #369; + font-family: Arial, Helvetica, sans-serif; + font-size: 250%; +} +h2, h3 { + color: #444; + font-family: Arial, Helvetica, sans-serif; + font-weight: lighter; +} +body { + margin: 2em; + background-color: lightgoldenrodyellow; +} +body, input[text], button { + color: #888; + font-family: Cambria, Georgia; +} +/* . . . */ +/* everywhere else */ +* { + font-family: Arial, Helvetica, sans-serif; +} From d593f80e57ace8784f51e4126e53b8dc249f2413 Mon Sep 17 00:00:00 2001 From: RPodshyvalova Date: Sun, 12 Feb 2017 16:46:53 +0200 Subject: [PATCH 5/7] homework_11 refactoring project with Http --- .../quickstart/src/app/app.module.ts | 14 ++++- .../src/app/dashboard.component.html | 6 +-- .../src/app/hero-edit.component.html | 1 + .../quickstart/src/app/hero-edit.component.ts | 8 ++- .../src/app/hero-search.component.css | 15 ++++++ .../src/app/hero-search.component.html | 10 ++++ .../src/app/hero-search.component.ts | 50 +++++++++++++++++ .../quickstart/src/app/hero-search.service.ts | 16 ++++++ .../quickstart/src/app/hero.service.ts | 53 +++++++++++++++++-- .../quickstart/src/app/heroes.component.css | 8 +++ .../quickstart/src/app/heroes.component.html | 8 +++ .../quickstart/src/app/heroes.component.ts | 19 +++++++ .../src/app/in-memory-data.service.ts | 20 +++++++ .../quickstart/src/app/mock-heroes.ts | 16 ------ 14 files changed, 217 insertions(+), 27 deletions(-) create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.css create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.html create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.ts create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.service.ts create mode 100644 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/in-memory-data.service.ts delete mode 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/mock-heroes.ts diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts index cd8718d8..561ecf28 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts @@ -8,19 +8,29 @@ import { HeroEditComponent } from './hero-edit.component'; import { HeroesComponent } from './heroes.component'; import { HeroService } from './hero.service'; import { AppRoutingModule } from './app-routing.module'; +import { HttpModule } from '@angular/http'; + +// Imports for loading & configuring the in-memory web api +import { InMemoryWebApiModule } from 'angular-in-memory-web-api'; +import { InMemoryDataService } from './in-memory-data.service'; + +import { HeroSearchComponent } from './hero-search.component'; @NgModule({ imports: [ BrowserModule, FormsModule, - AppRoutingModule + AppRoutingModule, + HttpModule, + InMemoryWebApiModule.forRoot(InMemoryDataService) ], declarations: [ AppComponent, DashboardComponent, HeroDetailComponent, HeroEditComponent, - HeroesComponent + HeroesComponent, + HeroSearchComponent ], providers: [ HeroService ], bootstrap: [ AppComponent ] diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.html index 5d17a4e4..8b2cb91e 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.html +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.html @@ -1,10 +1,10 @@

    Top Heroes

    - + \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html index 7842a0d5..332941e9 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html @@ -22,6 +22,7 @@

    {{hero.name}} edit section!


    + diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts index 93e4f90e..5fb509ac 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts @@ -1,4 +1,4 @@ -import {Component,Input, OnInit} from '@angular/core'; +import { Component,Input, OnInit } from '@angular/core'; import { Hero } from './hero'; import { ActivatedRoute, Params } from '@angular/router'; import { Location } from '@angular/common'; @@ -40,4 +40,10 @@ export class HeroEditComponent { goBack(): void { this.location.back(); } + + save(): void { + this.heroService + .update(this.hero) + .then(() => this.goBack()); + } } \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.css new file mode 100644 index 00000000..fd7366a0 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.css @@ -0,0 +1,15 @@ +.search-result{ + border-bottom: 1px solid gray; + border-left: 1px solid gray; + border-right: 1px solid gray; + width:195px; + height: 20px; + padding: 5px; + background-color: white; + cursor: pointer; +} + +#search-box{ + width: 200px; + height: 20px; +} diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.html new file mode 100644 index 00000000..4fa47e86 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.html @@ -0,0 +1,10 @@ +
    +

    Hero Search

    + +
    +
    + {{hero.name}} +
    +
    +
    diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.ts new file mode 100644 index 00000000..2275c391 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.ts @@ -0,0 +1,50 @@ +import { Component, OnInit } from '@angular/core'; +import { Router } from '@angular/router'; +import { Observable } from 'rxjs/Observable'; +import { Subject } from 'rxjs/Subject'; +// Observable class extensions +import 'rxjs/add/observable/of'; +// Observable operators +import 'rxjs/add/operator/catch'; +import 'rxjs/add/operator/debounceTime'; +import 'rxjs/add/operator/distinctUntilChanged'; +import { HeroSearchService } from './hero-search.service'; +import { Hero } from './hero'; + +@Component({ + //moduleId: module.id, + selector: 'hero-search', + templateUrl: './hero-search.component.html', + styleUrls: [ './hero-search.component.css' ], + providers: [HeroSearchService] +}) +export class HeroSearchComponent implements OnInit { + heroes: Observable; + private searchTerms = new Subject(); + constructor( + private heroSearchService: HeroSearchService, + private router: Router) {} + // Push a search term into the observable stream. + search(term: string): void { + this.searchTerms.next(term); + } + ngOnInit(): void { + this.heroes = this.searchTerms + .debounceTime(300) // wait 300ms after each keystroke before considering the term + .distinctUntilChanged() // ignore if next search term is same as previous + .switchMap(term => term // switch to new observable each time the term changes + // return the http search observable + ? this.heroSearchService.search(term) + // or the observable of empty heroes if there was no search term + : Observable.of([])) + .catch(error => { + // TODO: add real error handling + console.log(error); + return Observable.of([]); + }); + } + gotoDetail(hero: Hero): void { + let link = ['/detail', hero.id]; + this.router.navigate(link); + } +} diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.service.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.service.ts new file mode 100644 index 00000000..2127e1f2 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.service.ts @@ -0,0 +1,16 @@ +import { Injectable } from '@angular/core'; +import { Http } from '@angular/http'; +import { Observable } from 'rxjs/Observable'; +import 'rxjs/add/operator/map'; +import { Hero } from './hero'; + +@Injectable() +export class HeroSearchService { + constructor(private http: Http) {} + + search(term: string): Observable { + return this.http + .get(`app/heroes/?name=${term}`) + .map(response => response.json().data as Hero[]); + } +} diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero.service.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero.service.ts index cc006256..8fff4d47 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero.service.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero.service.ts @@ -1,11 +1,26 @@ -import { Injectable } from '@angular/core'; +import { Injectable } from '@angular/core'; +import { Headers, Http } from '@angular/http'; +import 'rxjs/add/operator/toPromise'; import { Hero } from './hero'; -import { HEROES, ANTIHEROES } from './mock-heroes'; + +const ANTIHEROES: string[] = ["Spawn", "Deadpool", "Wolverine", "Punisher", "Ghost Rider", "Rorschach", "Blade", "Venom", "Deathstroke", "John Constantine" ]; @Injectable() export class HeroService { + private heroesUrl = 'api/heroes'; // URL to web api + private headers = new Headers({'Content-Type': 'application/json'}); + + constructor(private http: Http) { } + getHeroes(): Promise { - return Promise.resolve(HEROES); + return this.http.get(this.heroesUrl) + .toPromise() + .then(response => response.json().data as Hero[]) + .catch(this.handleError); + } + + private handleError(error: any): Promise { + return Promise.reject(error.message || error); } getAntiheroes(): Promise { @@ -13,7 +28,35 @@ export class HeroService { } getHero(id: number): Promise { - return this.getHeroes() - .then(heroes => heroes.find(hero => hero.id === id)); + const url = `${this.heroesUrl}/${id}`; + return this.http.get(url) + .toPromise() + .then(response => response.json().data as Hero) + .catch(this.handleError); + } + + update(hero: Hero): Promise { + const url = `${this.heroesUrl}/${hero.id}`; + return this.http + .put(url, JSON.stringify(hero), {headers: this.headers}) + .toPromise() + .then(() => hero) + .catch(this.handleError); + } + + create(name: string): Promise { + return this.http + .post(this.heroesUrl, JSON.stringify({name: name}), {headers: this.headers}) + .toPromise() + .then(res => res.json().data) + .catch(this.handleError); + } + + delete(id: number): Promise { + const url = `${this.heroesUrl}/${id}`; + return this.http.delete(url, {headers: this.headers}) + .toPromise() + .then(() => null) + .catch(this.handleError); } } \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.css index 3132f52d..6933697c 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.css +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.css @@ -64,4 +64,12 @@ .hero_information { width: 100%; +} + +button.delete { + float:right; + margin-top: 2px; + margin-right: .8em; + background-color: gray !important; + color:white; } \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.html index 458a84c3..9b6c3b63 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.html +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.html @@ -5,6 +5,8 @@

    My Heroes

  • {{hero.id}} {{hero.name}} +
  • @@ -16,4 +18,10 @@

    +
    + + +
    \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.ts index 738d070b..166b189a 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/heroes.component.ts @@ -38,4 +38,23 @@ export class HeroesComponent implements OnInit { gotoEditDetail(): void { this.router.navigate(['/edit', this.selectedHero.id]); } + + add(name: string): void { + name = name.trim(); + if (!name) { return; } + this.heroService.create(name) + .then(hero => { + this.heroes.push(hero); + this.selectedHero = null; + }); + } + + delete(hero: Hero): void { + this.heroService + .delete(hero.id) + .then(() => { + this.heroes = this.heroes.filter(h => h !== hero); + if (this.selectedHero === hero) { this.selectedHero = null; } + }); + } } \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/in-memory-data.service.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/in-memory-data.service.ts new file mode 100644 index 00000000..da340159 --- /dev/null +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/in-memory-data.service.ts @@ -0,0 +1,20 @@ +import { InMemoryDbService } from 'angular-in-memory-web-api'; +const PATH_TO_IMAGES = 'src/images/'; + +export class InMemoryDataService implements InMemoryDbService { + createDb() { + let heroes = [ + { id: 11, name: 'Mr. Nice', photo: PATH_TO_IMAGES + "Nice.jpg", antihero: "Spawn" }, + { id: 12, name: 'Narco', photo: PATH_TO_IMAGES + "Narco.jpg", antihero: "Deadpool" }, + { id: 13, name: 'Bombasto', photo: PATH_TO_IMAGES + "Bombasto.jpg", antihero: "Wolverine" }, + { id: 14, name: 'Celeritas', photo: PATH_TO_IMAGES + "Celeritas.jpg", antihero: "Punisher" }, + { id: 15, name: 'Magneta', photo: PATH_TO_IMAGES + "Magneta.jpg", antihero: "Ghost Rider" }, + { id: 16, name: 'RubberMan', photo: PATH_TO_IMAGES + "RubberMan.jpg", antihero: "Rorschach" }, + { id: 17, name: 'Dynama', photo: PATH_TO_IMAGES + "Dynama.jpg", antihero: "Blade" }, + { id: 18, name: 'Dr IQ', photo: PATH_TO_IMAGES + "DrIQ.jpg", antihero: "Venom" }, + { id: 19, name: 'Magma', photo: PATH_TO_IMAGES + "Magma.jpg", antihero: "Deathstroke" }, + { id: 20, name: 'Tornado', photo: PATH_TO_IMAGES + "Tornado.jpg", antihero: "John Constantine" } + ]; + return {heroes}; + } +} diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/mock-heroes.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/mock-heroes.ts deleted file mode 100755 index 3b39892c..00000000 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/mock-heroes.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Hero } from './hero'; - -const PATH_TO_IMAGES = 'src/images/'; -export const ANTIHEROES: string[] = ["Spawn", "Deadpool", "Wolverine", "Punisher", "Ghost Rider", "Rorschach", "Blade", "Venom", "Deathstroke", "John Constantine" ]; -export const HEROES: Hero[] = [ - { id: 11, name: 'Mr. Nice', photo: PATH_TO_IMAGES + "Nice.jpg", antihero: ANTIHEROES[0] }, - { id: 12, name: 'Narco', photo: PATH_TO_IMAGES + "Narco.jpg", antihero: ANTIHEROES[1] }, - { id: 13, name: 'Bombasto', photo: PATH_TO_IMAGES + "Bombasto.jpg", antihero: ANTIHEROES[2] }, - { id: 14, name: 'Celeritas', photo: PATH_TO_IMAGES + "Celeritas.jpg", antihero: ANTIHEROES[3] }, - { id: 15, name: 'Magneta', photo: PATH_TO_IMAGES + "Magneta.jpg", antihero: ANTIHEROES[4] }, - { id: 16, name: 'RubberMan', photo: PATH_TO_IMAGES + "RubberMan.jpg", antihero: ANTIHEROES[5] }, - { id: 17, name: 'Dynama', photo: PATH_TO_IMAGES + "Dynama.jpg", antihero: ANTIHEROES[6] }, - { id: 18, name: 'Dr IQ', photo: PATH_TO_IMAGES + "DrIQ.jpg", antihero: ANTIHEROES[7] }, - { id: 19, name: 'Magma', photo: PATH_TO_IMAGES + "Magma.jpg", antihero: ANTIHEROES[8] }, - { id: 20, name: 'Tornado', photo: PATH_TO_IMAGES + "Tornado.jpg", antihero: ANTIHEROES[9] } -]; \ No newline at end of file From 30bd066968befad22e6e518a328c8447652ac120 Mon Sep 17 00:00:00 2001 From: RPodshyvalova Date: Tue, 14 Feb 2017 15:46:47 +0200 Subject: [PATCH 6/7] homework_11 --- .../quickstart/src/app/app.component.css | 0 .../quickstart/src/app/app.module.ts | 5 +- .../src/app/dashboard.component.css | 0 .../src/app/hero-detail.component.ts | 4 +- .../src/app/hero-edit.component.css | 13 ++++ .../src/app/hero-edit.component.html | 59 +++++++------- .../quickstart/src/app/hero-edit.component.ts | 54 ++++++++++++- .../src/app/hero-search.component.css | 0 .../src/app/hero-search.component.html | 0 .../src/app/hero-search.component.ts | 77 ++++++++++--------- .../quickstart/src/app/hero-search.service.ts | 6 +- .../src/app/in-memory-data.service.ts | 0 12 files changed, 146 insertions(+), 72 deletions(-) mode change 100644 => 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.css mode change 100644 => 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.css mode change 100644 => 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.css mode change 100644 => 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.html mode change 100644 => 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.ts mode change 100644 => 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.service.ts mode change 100644 => 100755 homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/in-memory-data.service.ts diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.component.css old mode 100644 new mode 100755 diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts index 561ecf28..8c8a8fc3 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/app.module.ts @@ -16,13 +16,16 @@ import { InMemoryDataService } from './in-memory-data.service'; import { HeroSearchComponent } from './hero-search.component'; +import { ReactiveFormsModule } from '@angular/forms'; + @NgModule({ imports: [ BrowserModule, FormsModule, AppRoutingModule, HttpModule, - InMemoryWebApiModule.forRoot(InMemoryDataService) + InMemoryWebApiModule.forRoot(InMemoryDataService), + ReactiveFormsModule ], declarations: [ AppComponent, diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/dashboard.component.css old mode 100644 new mode 100755 diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.ts index d73037d1..70833389 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-detail.component.ts @@ -1,7 +1,7 @@ import { Component, Input, OnInit } from '@angular/core'; import { Hero } from './hero'; -import { ActivatedRoute, Params } from '@angular/router'; -import { Location } from '@angular/common'; +import { ActivatedRoute, Params } from '@angular/router'; +import { Location } from '@angular/common'; import 'rxjs/add/operator/switchMap'; import { HeroService } from './hero.service'; diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.css index 1c224b0d..a18eb719 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.css +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.css @@ -43,4 +43,17 @@ img { border: 1px solid brown; margin: 20px; width: 100px; +} + +input.ng-touched.ng-invalid { + border:solid red 2px; +} + +input.ng-touched.ng-valid { + border:solid green 2px; +} + +.error-message { + color: red; + font-style: normal; } \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html index 332941e9..e00a6322 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html @@ -1,28 +1,35 @@ -
    -
    -

    {{hero.name}} edit section!

    -
    -
    - - -
    - -
    -
    Remove photo +
    +
    + +
    +
    +
    + +
    +
    + +
    +
    + +
    +
    +   +
    -
    - - -
    - - + +

    heroForm value: {{ heroForm.value | json}}

    \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts index 5fb509ac..cf0db10c 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts @@ -1,9 +1,10 @@ -import { Component,Input, OnInit } from '@angular/core'; +import { Component,Input, OnInit, OnChanges } from '@angular/core'; import { Hero } from './hero'; import { ActivatedRoute, Params } from '@angular/router'; import { Location } from '@angular/common'; import 'rxjs/add/operator/switchMap'; import { HeroService } from './hero.service'; +import { FormGroup, FormControl, Validators, FormArray, FormBuilder} from '@angular/forms'; @Component({ selector: 'my-hero-edit', @@ -11,25 +12,70 @@ import { HeroService } from './hero.service'; styleUrls: ['hero-edit.component.css'] }) -export class HeroEditComponent { +export class HeroEditComponent implements OnInit, OnChanges { @Input() hero: Hero; antiheroes: string[]; + heroForm: FormGroup; constructor( private heroService: HeroService, private route: ActivatedRoute, - private location: Location) { + private location: Location, + private fb: FormBuilder) { } ngOnInit(): void { this.route.params .switchMap((params: Params) => this.heroService.getHero(+params['id'])) .subscribe(hero => this.hero = hero); + + this.hero = {id: 20, name: 'Tornado', photo: "src/images/Tornado.jpg", antihero: "John Constantine" }; this.getAntiheroes(); + this.createForm(); + } + + createForm() { + this.heroForm = this.fb.group({ + id: this.hero.id, + name: [this.hero.name, Validators.required], + photo: [this.hero.photo, Validators.required], + antihero: this.hero.antihero + }); + } + + ngOnChanges() { + this.heroForm.reset({ + id: this.hero.id, + name: this.hero.name, + photo: this.hero.photo, + antihero: this.hero.antihero + }); + } + + onSubmit() { + this.hero = this.prepareSaveHero(); + this.save(); + this.ngOnChanges(); + } + + prepareSaveHero(): Hero { + const formModel = this.heroForm.value; + const saveHero: Hero = { + id: this.hero.id, + name: formModel.name as string, + photo: formModel.photo as string, + antihero: formModel.antihero as string + }; + return saveHero; + } + + revert() { + this.ngOnChanges(); } getAntiheroes(): void { - this.heroService.getAntiheroes().then(antiheroes => this.antiheroes = antiheroes); + this.heroService.getAntiheroes().then(antiheroes => + this.antiheroes = antiheroes); } clearPhoto(event: any) { diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.css b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.css old mode 100644 new mode 100755 diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.html old mode 100644 new mode 100755 diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.ts old mode 100644 new mode 100755 index 2275c391..f34fceae --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit } from '@angular/core'; -import { Router } from '@angular/router'; -import { Observable } from 'rxjs/Observable'; -import { Subject } from 'rxjs/Subject'; +import { Router } from '@angular/router'; +import { Observable } from 'rxjs/Observable'; +import { Subject } from 'rxjs/Subject'; // Observable class extensions import 'rxjs/add/observable/of'; // Observable operators @@ -13,38 +13,43 @@ import { Hero } from './hero'; @Component({ //moduleId: module.id, - selector: 'hero-search', - templateUrl: './hero-search.component.html', - styleUrls: [ './hero-search.component.css' ], - providers: [HeroSearchService] + selector: 'hero-search', + templateUrl: './hero-search.component.html', + styleUrls: [ './hero-search.component.css' ], + providers: [HeroSearchService] }) + export class HeroSearchComponent implements OnInit { - heroes: Observable; - private searchTerms = new Subject(); - constructor( - private heroSearchService: HeroSearchService, - private router: Router) {} - // Push a search term into the observable stream. - search(term: string): void { - this.searchTerms.next(term); - } - ngOnInit(): void { - this.heroes = this.searchTerms - .debounceTime(300) // wait 300ms after each keystroke before considering the term - .distinctUntilChanged() // ignore if next search term is same as previous - .switchMap(term => term // switch to new observable each time the term changes - // return the http search observable - ? this.heroSearchService.search(term) - // or the observable of empty heroes if there was no search term - : Observable.of([])) - .catch(error => { - // TODO: add real error handling - console.log(error); - return Observable.of([]); - }); - } - gotoDetail(hero: Hero): void { - let link = ['/detail', hero.id]; - this.router.navigate(link); - } -} + heroes: Observable; + private searchTerms = new Subject(); + + constructor( + private heroSearchService: HeroSearchService, + private router: Router) { + } + + search(term: string): void { + this.searchTerms.next(term); + } + + ngOnInit(): void { + this.heroes = this.searchTerms + .debounceTime(300) // wait 300ms after each keystroke before considering the term + .distinctUntilChanged() // ignore if next search term is same as previous + .switchMap(term => term // switch to new observable each time the term changes + // return the http search observable + ? this.heroSearchService.search(term) + // or the observable of empty heroes if there was no search term + : Observable.of([])) + .catch(error => { + // TODO: add real error handling + console.log(error); + return Observable.of([]); + }); + } + + gotoDetail(hero: Hero): void { + let link = ['/detail', hero.id]; + this.router.navigate(link); + } +} \ No newline at end of file diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.service.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.service.ts old mode 100644 new mode 100755 index 2127e1f2..f98b5697 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.service.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-search.service.ts @@ -1,8 +1,8 @@ import { Injectable } from '@angular/core'; -import { Http } from '@angular/http'; -import { Observable } from 'rxjs/Observable'; +import { Http } from '@angular/http'; +import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/map'; -import { Hero } from './hero'; +import { Hero } from './hero'; @Injectable() export class HeroSearchService { diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/in-memory-data.service.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/in-memory-data.service.ts old mode 100644 new mode 100755 From 53be93c8d4de7d347d702543965f7edc5e54dcbe Mon Sep 17 00:00:00 2001 From: RPodshyvalova Date: Sun, 19 Feb 2017 00:27:23 +0200 Subject: [PATCH 7/7] homework_11 fixed hero-edit.component --- .../src/app/hero-edit.component.html | 5 +- .../quickstart/src/app/hero-edit.component.ts | 91 +++++++++++++++---- 2 files changed, 78 insertions(+), 18 deletions(-) diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html index e00a6322..3f595a7a 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.html @@ -14,8 +14,9 @@
    diff --git a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts index cf0db10c..0859c84f 100755 --- a/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts +++ b/homeworks/ruslana.podsyvalova_RPodshyvalova/angular-test-project/quickstart/src/app/hero-edit.component.ts @@ -1,4 +1,4 @@ -import { Component,Input, OnInit, OnChanges } from '@angular/core'; +import { Component,Input, OnInit, OnChanges, ElementRef, ViewChild } from '@angular/core'; import { Hero } from './hero'; import { ActivatedRoute, Params } from '@angular/router'; import { Location } from '@angular/common'; @@ -16,34 +16,44 @@ export class HeroEditComponent implements OnInit, OnChanges { @Input() hero: Hero; antiheroes: string[]; heroForm: FormGroup; - + filesToUpload: Array; + @ViewChild('photo') image: ElementRef; + constructor( private heroService: HeroService, private route: ActivatedRoute, private location: Location, private fb: FormBuilder) { + this.filesToUpload = []; } ngOnInit(): void { + this.createForm(); + this.getAntiheroes(); this.route.params .switchMap((params: Params) => this.heroService.getHero(+params['id'])) - .subscribe(hero => this.hero = hero); - - this.hero = {id: 20, name: 'Tornado', photo: "src/images/Tornado.jpg", antihero: "John Constantine" }; - this.getAntiheroes(); - this.createForm(); + .subscribe((hero: any) => { + this.hero = hero; + this.heroForm = this.fb.group({ + id: this.hero.id, + name: this.hero.name, + photo: this.hero.photo, + antihero: this.hero.antihero + }); + + }); } createForm() { this.heroForm = this.fb.group({ - id: this.hero.id, - name: [this.hero.name, Validators.required], - photo: [this.hero.photo, Validators.required], - antihero: this.hero.antihero - }); - } + id: 0, + name: ['', Validators.required], + photo: ['', Validators.required], + antihero: '' + } + )}; - ngOnChanges() { + ngOnChanges(){ this.heroForm.reset({ id: this.hero.id, name: this.hero.name, @@ -51,7 +61,7 @@ export class HeroEditComponent implements OnInit, OnChanges { antihero: this.hero.antihero }); } - + onSubmit() { this.hero = this.prepareSaveHero(); this.save(); @@ -63,7 +73,7 @@ export class HeroEditComponent implements OnInit, OnChanges { const saveHero: Hero = { id: this.hero.id, name: formModel.name as string, - photo: formModel.photo as string, + photo: formModel.photo as string, antihero: formModel.antihero as string }; return saveHero; @@ -81,6 +91,7 @@ export class HeroEditComponent implements OnInit, OnChanges { clearPhoto(event: any) { event.preventDefault(); this.hero.photo = ''; + this.heroForm.value.photo = ''; } goBack(): void { @@ -91,5 +102,53 @@ export class HeroEditComponent implements OnInit, OnChanges { this.heroService .update(this.hero) .then(() => this.goBack()); +// this.upload(); + + } + +// upload() { +// this.makeFileRequest("http://server/api/upload", [], this.filesToUpload).then((result) => { +// console.log(result); +// }, (error) => { +// console.error(error); +// }); +// } + + fileChangeEvent(fileInput: any){ + this.filesToUpload = > fileInput.target.files; + let fileReader = new FileReader(); + let dataUrl: any; + let domImage = this.image; + fileReader.onload = function(e) { + dataUrl = this.result; + console.log( dataUrl); + domImage.nativeElement.src = dataUrl; + + } + fileReader.readAsDataURL(this.filesToUpload[0]); + + this.hero.photo = this.filesToUpload[0].name; + this.heroForm.value.photo = this.filesToUpload[0].name; } + +// makeFileRequest(url: string, params: Array, files: Array) { +// return new Promise((resolve, reject) => { +// var formData: any = new FormData(); +// var xhr = new XMLHttpRequest(); +// for(var i = 0; i < files.length; i++) { +// formData.append("uploads[]", files[i], files[i].name); +// } +// xhr.onreadystatechange = function () { +// if (xhr.readyState == 4) { +// if (xhr.status == 200) { +// resolve(JSON.parse(xhr.response)); +// } else { +// reject(xhr.response); +// } +// } +// } +// xhr.open("POST", url, true); +// xhr.send(formData); +// }); +// } } \ No newline at end of file