diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 6e87a00..0000000 --- a/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Editor configuration, see http://editorconfig.org -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 2 -insert_final_newline = true -trim_trailing_whitespace = true - -[*.md] -max_line_length = off -trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 6b66814..0000000 --- a/.gitignore +++ /dev/null @@ -1,43 +0,0 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. - -# compiled output -/dist -/tmp -/out-tsc - -# dependencies -/node_modules - -# IDEs and editors -/.idea -.project -.classpath -.c9/ -*.launch -.settings/ -*.sublime-workspace - -# IDE - VSCode -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json - -# misc -/.sass-cache -/connect.lock -/coverage -/libpeerconnection.log -npm-debug.log -testem.log -/typings -yarn-error.log - -# e2e -/e2e/*.js -/e2e/*.map - -# System Files -.DS_Store -Thumbs.db diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index f65aabc..0000000 --- a/.prettierrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "singleQuote": true, - "printWidth": 120 -} \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index ea091c8..0000000 --- a/README.md +++ /dev/null @@ -1,532 +0,0 @@ -# NxExamples - -This project was generated with [Angular CLI](https://github.com/angular/angular-cli) using [Nrwl Nx](https://nrwl.io/nx). - -## Table of Contents - -* [Install Nx](#install-nx) -* [Creating an nx workspace](#creating-an-nx-workspace) -* [Angular-cli to nx workspace](#angular-cli-to-nx-workspace) -* [Creating an Application](#creating-an-application) -* [Creating a Library](#creating-a-library) -* [Creating Libraries with Tags](#creating-libraries-with-tags) -* [Creating components in a library or app](#creating-components) -* [Ngrx Store Generation](#ngrx-store-generation) -* [Updating Nx](#updating-nx) -* [Development server](#development-server) -* [Build](#build) -* [Running unit tests](#running-unit-tests) -* [Running end-to-end tests](#running-end-to-end-tests) -* [Affected Apps](#affected-apps) -* [Further Help](#further-help) -* [FAQ](#faq) - -### Install Nx: - -[Install](https://github.com/nrwl/nx-examples/tree/workspace): - -The @nrwl/schematics scoped package comes with a binary, create-nx-workspace, for running the schematic for generating a new workspace. You can use this to create new Nx workspaces on your local machine. -To get started with it you need to install it globally. This can be done via npm or yarn. -``` -npm install -g @nrwl/schematics -``` -or -``` -yarn global add @nrwl/schematics -``` -This makes the create-nx-workspace binary available at the terminal. - -[Install](https://github.com/nrwl/nx-examples/tree/workspace): project workspace after the dependencies are installed and the generation script is run. - -``` -npm i -g @nrwl/schematics -npm i -g @angular/cli -npm i -g @ngrx/schematics -ng new workspace --collection @nrwl/schematics -``` - -Libs and apps folders created and node modules installed. - -### Angular-cli to nx workspace: - -You can also add Nx capabilities to an existing CLI project by running: -```sh -ng add @nrwl/schematics -``` - -### Creating an Application: - -[Create App](https://github.com/nrwl/nx-examples/tree/app): creates the first empty application named school with a routing option. - -``` -ng generate app school --routing -``` - -This will configure the root NgModule to wire up routing, as well as add a to the AppComponent template to help get us started. - - -### Creating a Library: - -[Create Lib](https://github.com/nrwl/nx-examples/tree/lib) -Adding new libs to an Nx Workspace is done by using the AngularCLI generate command, just like adding a new app. -Nx has a schematic named lib that can be used to add a new Angular module lib to our workspace: - -``` -ng generate lib ar -``` - -This library currently exists as an empty module and not added to be used in any other module. -The library name is registered in .angular-cli.json file. If you need to delete it for any reason, remember to remove it from the .angular-cli.json apps list as well. - - -[Create Lib with Routing](https://github.com/nrwl/nx-examples/tree/ui-lib): generates a library with routing and adds the routes to the app module. - -We can create an Angular module lib with routing: - -```sh -ng generate lib school-ui --routing -``` - -Create library groupings by defining a directory: - -```sh -ng generate lib ui --directory=school -``` - -We can create an Angular module lib with routing and have it added as a child to routing in one of our apps: -``` -ng generate lib school-ui --routing --parentModule=apps/school/src/app/app.module.ts -``` - -[Create Lib lazy loaded](https://github.com/nrwl/nx-examples/tree/lib-lazy-module) - -And we can create an Angular module lib with routing that we want to have lazy loaded: - -``` -ng generate lib slides --routing --lazy --parentModule=apps/school/src/app/app.module.ts -``` -We just created a new library with a module and added it as a route to the main school application. -``` - RouterModule.forRoot( - [ - ..., - { path: 'slides', loadChildren: '@nx-examples/slides#SlidesModule' } - ] -``` - -### Creating Libraries with Tags: - -A large workspace contains a lot of apps and libs. Because it is so easy to share code, create new libs and depend on libs, the dependencies between the apps and libs can quickly get out of hand. - -We need a way to impose constraints on the dependency graph. - -When creating an app or a lib, you can tag them: - -``` -ng g lib apilib --tags=api -ng g lib utilslib --tags=utils -ng g lib impllib --tags=impl -ng g lib untagged -``` - -(you can also pass multiple tags ng g lib apilib --tags=one,two or modify .angular-cli.json) - -You can then define a constraint in tslint.json, like this: - -``` -{ - ... - "nx-enforce-module-boundaries": [ - true, - { - "allow": [], - "depConstraints": [ - { "sourceTag": "utils", "onlyDependOnLibsWithTags": ["utils"] }, - { "sourceTag": "api", "onlyDependOnLibsWithTags": ["api", "utils"] }, - { "sourceTag": "impl", "onlyDependOnLibsWithTags": ["api", "utils", "impl"] }, - ] - } - ] -} -``` -With this configuration in place: - - * utilslib cannot depend on apilib or impllib - * apilib can depend on utilslib - * implib can depend on both utilslib and apilib - * untagged lib cannot depend on anything - * You can also use wildcards, like this: - -``` -{ "sourceTag": "impl", "onlyDependOnLibsWithTags": ["*"] } // impl can depend on anything -``` - -``` -{ "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] } // anything can depend on anything -``` -The system goes through the constrains until it finds the first one matching the source file it's analyzing. - -If we change the configuration to the following: - -``` - "nx-enforce-module-boundaries": [ - true, - { - "allow": [], - "depConstraints": [ - { "sourceTag": "utils", "onlyDependOnLibsWithTags": ["utils"] }, - { "sourceTag": "api", "onlyDependOnLibsWithTags": ["api", "utils"] }, - { "sourceTag": "impl", "onlyDependOnLibsWithTags": ["api", "utils", "impl"] }, - { "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }, - ] - } - ] - ``` - - the following will be true: - - * utilslib cannot depend on apilib or impllib - * apilib can depend on utilslib - * implib can depend on both utilslib and apilib - * untagged lib can depend on anything - -### Creating Components: - -To generate a component/directive/service/module... in a specific app or library you can use --project: - -```sh -ng generate component toolbar --project=shared-ui -``` - -To generate a new module in shared-ui library and add components to the module: - -```sh -ng generate lib shared-ui -ng generate module toolbar --project=shared-ui -ng generate component toolbar/profile --project=shared-ui -``` - -After running these commands, you will have a new library called shared-ui, a toolbar folder with toolbar.module.ts file. -Profile component folder will be created under shared-ui/src/toolbar/profile directory and included in toolbar.module declarations. - -Note that if you want to use profile directive in an app, you need to also add ProfileComponent to exports list on toolbar.module.ts - - -### Ngrx Store Generation: - -[Ngrx](https://github.com/nrwl/nx-examples/tree/ngrx): -# ngrx --------- - -## Overview - -Generates a ngrx feature set containing an `init`, `interfaces`, `actions`, `reducer` and `effects` files. - -You use this schematic to build out a new ngrx feature area that provides a new piece of state. - -## Command - -```sh -ng generate ngrx FeatureName [options] - -ng generate ngrx app --module=apps/school/src/app/app.module.ts -``` - -### Options - -Specifies the name of the ngrx feature (e.g., Products, User, etc.) - -- `name` - - Type: `string` - - Required: true - -Path to Angular Module. Also used to determine the parent directory for the new **+state** -directory; unless the `--directory` option is used to override the dir name. - -> e.g. --module=apps/myapp/src/app/app.module.ts - -- `--module` - - Type: `string` - - Required: true - -Specifies the directory name used to nest the **ngrx** files within a folder. - -- `--directory` - - Type: `string` - - Default: `+state` - -#### Examples - -Generate a `User` feature set and register it within an `Angular Module`. - -```sh -ng generate ngrx User -m apps/myapp/src/app/app.module.ts -ng g ngrx Products -m libs/mylib/src/mylib.module.ts -``` - - -Generate a `User` feature set within a `user` folder and register it with the `user.module.ts` file in the same `user` folder. - -```sh -ng g ngrx User -m apps/myapp/src/app/app.module.ts -directory user -``` - -## Generated Files - -The files generated are shown below and include placeholders for the *feature* name specified. - -> The <Feature> notation used below indicates a placeholder for the actual *feature* name. - -* [<feature>.actions.ts](#featureactionsts) -* [<feature>.reducer.ts](#featurereducerts) -* [<feature>.effects.ts](#featureeffectsts) -* [<feature>.selectors.ts](#featureselectorsts) -* [<feature>.facade.ts](#featurefacadests) - -* [../app.module.ts](#appmodulets) - -#### <feature>.actions.ts - -```ts -import {Action} from "@ngrx/store"; - -export enum ActionTypes { - = "[] Action", - Load = "[] Load Data", - Loaded = "[] Data Loaded" -} - -export class implements Action { - readonly type = ActionTypes.; -} - -export class Load implements Action { - readonly type = ActionTypes.Load; - constructor(public payload: any) { } -} - -export class DataLoaded implements Action { - readonly type = ActionTypes.Loaded; - constructor(public payload: any) { } -} - -export type Actions = | Load | Loaded; -``` - -#### <feature>.reducer.ts -```ts -import { } from './.interfaces'; -import { Action, ActionTypes } from './.actions'; - -/** - * Interface for the '' data used in - * - State, and - * - Reducer - */ -export interface Data { - -} - -/** - * Interface to the part of the Store containing State - * and other information related to Data. - */ -export interface State { - readonly : Data; -} - -export const initialState: Data = { }; - -export function Reducer(state: Data = initialState, action: Actions): Data { - switch (action.type) { - case ActionTypes.Loaded: { - return { ...state, ...action.payload }; - } - default: { - return state; - } - } -} -``` - -#### <feature>.effects.ts -```ts -import { Injectable } from '@angular/core'; -import { Effect, Actions } from '@ngrx/effects'; -import { DataPersistence } from '@nrwl/nx'; - -import { } from './.interfaces'; -import { Load, Loaded, ActionTypes } from './.actions'; - -@Injectable() -export class Effects { - @Effect() load$ = this.dataPersistence.fetch(ActionTypes.Load, { - run: (action: Load, state: ) => { - return new Loaded({}); - }, - - onError: (action: Load, error) => { - console.error('Error', error); - } - }); - - constructor( - private actions: Actions, - private dataPersistence: DataPersistence) { } -} -``` - - -#### ../app.module.ts -```ts -import { NgModule } from '@angular/core'; -import { BrowserModule } from '@angular/platform-browser'; -import { RouterModule } from '@angular/router'; -import { AppComponent } from './app.component'; -import { StoreModule } from '@ngrx/store'; -import { EffectsModule } from '@ngrx/effects'; -import { - Reducer, - State, - Data, - initialState as InitialState -} from './+state/.reducer'; -import { Effects } from './+state/.effects'; -import { StoreDevtoolsModule } from '@ngrx/store-devtools'; -import { environment } from '../environments/environment'; -import { StoreRouterConnectingModule } from '@ngrx/router-store'; -import { storeFreeze } from 'ngrx-store-freeze'; - -@NgModule({ - imports: [BrowserModule, RouterModule.forRoot([]), - StoreModule.forRoot({ : Reducer }, { - initialState: { : InitialState }, - metaReducers: !environment.production ? [storeFreeze] : [] - }), - EffectsModule.forRoot([Effects]), - !environment.production ? StoreDevtoolsModule.instrument() : [], - StoreRouterConnectingModule], - declarations: [AppComponent], - bootstrap: [AppComponent], - providers: [Effects] -}) -export class AppModule { -} - -``` - -# Updating Nx: - -[Nx Update](https://github.com/nrwl/nx-examples/tree/nx-migrate): - -You can check for the updates (nx version > 0.8.0). - -``` -yarn update:check -``` - -You can migrate to the newest nx-module by updating nx on package.json and running yarn update. - -``` -yarn update -``` - -## Nrwl Extensions for Angular (Nx) - - - -Nx is an open source toolkit for enterprise Angular applications. - -Nx is designed to help you create and build enterprise-grade Angular applications. It provides an opinionated approach to application project structure and patterns. - -## Quick Start & Documentation - -[Watch a 5-minute video on how to get started with Nx.](http://nrwl.io/nx) - -### Development server: - -Run `ng serve --project=myapp` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. - -## Code scaffolding - -Run `ng generate component component-name --project=myapp` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. - -## Build - -Run `ng build --project=myapp` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build. - -To build only the changed files since the last build run: - -```bash -npm run affected:build -- SHA1 SHA2 -//OR -npm run affected:build -- --files="libs/mylib/index.ts,libs/mylib2/index.ts" -``` - -## Running unit tests - -Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). - -## Running end-to-end tests - -Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). -Before running the tests make sure you are serving the app via `ng serve`. - -## Affected Apps - -```bash -npm run affected:apps -- SHA1 SHA2 -npm run affected: builds -- SHA1 SHA2 -npm run affected:e2e -- SHA1 SHA2 -npm run format:write -- SHA1 SHA2 --libs-and-apps -npm run format:check -- SHA1 SHA2 --libs-and-apps -``` - -OR - -```bash -yarn affected:apps -- SHA1 SHA2 -yarn affected: builds -- SHA1 SHA2 -yarn affected:e2e -- SHA1 SHA2 -``` - - - -The apps:affected prints the apps that are affected by the commits between the given SHAs. The build:affected builds them, and e2e:affected runs their e2e tests. - -To be able to do that, Nx analyzes your monorepo to figure out the dependency graph or your libs and apps. Next, it looks at the files touched by the commits to figure out what apps and libs they belong to. Finally, it uses all this information to generate the list of apps that can be affected by the commits. - -Instead of passing the two SHAs, you can also pass the list of files, like this: - -```bash -npm run affected:apps -- --files="libs/mylib/index.ts,libs/mylib2/index.ts" -npm run affected:builds -- --files="libs/mylib/index.ts,libs/mylib2/index.ts" -npm run affected:e2e -- --files="libs/mylib/index.ts,libs/mylib2/index.ts" -npm run format:write -- --files="libs/mylib/index.ts,libs/mylib2/index.ts" -npm run format:check -- --files="libs/mylib/index.ts,libs/mylib2/index.ts" -``` - - - -## Further help - -To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). - -Nrwl schematics help - -```bash -npm run help -npm run help ngrx -... -``` - -## FAQ - -* Where do I find list of libraries (and their versions) that are associated with each Nx release. - -You can find the package versions that your current nx depends on in node_modules/@nrwl/schematics/src/lib-versions.d.ts file on your project. You can also check [update/6.x branch](https://github.com/nrwl/nx-examples/tree/update/6.1.1) on this repo to see the updated packages in the nx version you are looking for. - -* Is there an example application that shows how to organize libraries and applications? - -There are more than one way to organize your application in your organization. As an example you can take a look at [Angular-Console](https://github.com/nrwl/angular-console) repo. Angular Console has UI and Utils library that has common functionality and UI. Also there are feature libraries that holds the functionality of each feature, tab in the application. apps/angular-console is where all of the feature libraries come together to create the application. Seperating each feature into it's own library allows us to work on features independently, as well as flexibility to make changes quickly. - diff --git a/angular.json b/angular.json deleted file mode 100644 index 5f018dd..0000000 --- a/angular.json +++ /dev/null @@ -1,786 +0,0 @@ -{ - "$schema": "./node_modules/@angular/cli/lib/config/schema.json", - "version": 1, - "newProjectRoot": "", - "projects": { - "demo": { - "root": "apps/demo", - "sourceRoot": "apps/demo/src", - "projectType": "application", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "dist/apps/demo", - "index": "apps/demo/src/index.html", - "main": "apps/demo/src/main.ts", - "tsConfig": "apps/demo/tsconfig.app.json", - "polyfills": "apps/demo/src/polyfills.ts", - "assets": [ - "apps/demo/src/assets", - "apps/demo/src/favicon.ico", - "apps/demo/src/manifest.json" - ], - "styles": [ - { - "input": "node_modules/@angular/material/prebuilt-themes/indigo-pink.css" - }, - "apps/demo/src/styles.css" - ], - "scripts": [] - }, - "configurations": { - "production": { - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "extractCss": true, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, - "fileReplacements": [ - { - "replace": "apps/demo/src/environments/environment.ts", - "with": "apps/demo/src/environments/environment.prod.ts" - } - ], - "serviceWorker": true - } - } - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "demo:build" - }, - "configurations": { - "production": { - "browserTarget": "demo:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "demo:build" - } - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "apps/demo/src/test.ts", - "karmaConfig": "apps/demo/karma.conf.js", - "polyfills": "apps/demo/src/polyfills.ts", - "tsConfig": "apps/demo/tsconfig.spec.json", - "scripts": [], - "styles": [ - { - "input": "node_modules/@angular/material/prebuilt-themes/indigo-pink.css" - }, - "apps/demo/src/styles.css" - ], - "assets": [ - "apps/demo/src/assets", - "apps/demo/src/favicon.ico", - "apps/demo/src/manifest.json" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "apps/demo/tsconfig.app.json", - "apps/demo/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "demo-e2e": { - "root": "apps/demo-e2e", - "sourceRoot": "apps/demo-e2e/src", - "projectType": "application", - "architect": { - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "apps/demo-e2e/protractor.conf.js", - "devServerTarget": "demo:serve" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "apps/demo-e2e/tsconfig.e2e.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "profile": { - "root": "apps/profile", - "sourceRoot": "apps/profile/src", - "projectType": "application", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "dist/apps/profile", - "index": "apps/profile/src/index.html", - "main": "apps/profile/src/main.ts", - "tsConfig": "apps/profile/tsconfig.app.json", - "polyfills": "apps/profile/src/polyfills.ts", - "assets": [ - "apps/profile/src/assets", - "apps/profile/src/favicon.ico" - ], - "styles": [ - "apps/profile/src/styles.css" - ], - "scripts": [] - }, - "configurations": { - "production": { - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "extractCss": true, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, - "fileReplacements": [ - { - "replace": "apps/profile/src/environments/environment.ts", - "with": "apps/profile/src/environments/environment.prod.ts" - } - ] - } - } - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "profile:build" - }, - "configurations": { - "production": { - "browserTarget": "profile:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "profile:build" - } - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "apps/profile/src/test.ts", - "karmaConfig": "apps/profile/karma.conf.js", - "polyfills": "apps/profile/src/polyfills.ts", - "tsConfig": "apps/profile/tsconfig.spec.json", - "scripts": [], - "styles": [ - "apps/profile/src/styles.css" - ], - "assets": [ - "apps/profile/src/assets", - "apps/profile/src/favicon.ico" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "apps/profile/tsconfig.app.json", - "apps/profile/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "profile-e2e": { - "root": "apps/profile-e2e", - "sourceRoot": "apps/profile-e2e/src", - "projectType": "application", - "architect": { - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "apps/profile-e2e/protractor.conf.js", - "devServerTarget": "profile:serve" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "apps/profile-e2e/tsconfig.e2e.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "school": { - "root": "apps/school", - "sourceRoot": "apps/school/src", - "projectType": "application", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "dist/apps/school", - "index": "apps/school/src/index.html", - "main": "apps/school/src/main.ts", - "tsConfig": "apps/school/tsconfig.app.json", - "polyfills": "apps/school/src/polyfills.ts", - "assets": [ - "apps/school/src/assets", - "apps/school/src/favicon.ico" - ], - "styles": [ - "apps/school/src/styles.css" - ], - "scripts": [] - }, - "configurations": { - "production": { - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "extractCss": true, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, - "fileReplacements": [ - { - "replace": "apps/school/src/environments/environment.ts", - "with": "apps/school/src/environments/environment.prod.ts" - } - ] - } - } - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "school:build" - }, - "configurations": { - "production": { - "browserTarget": "school:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "school:build" - } - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "apps/school/src/test.ts", - "karmaConfig": "apps/school/karma.conf.js", - "polyfills": "apps/school/src/polyfills.ts", - "tsConfig": "apps/school/tsconfig.spec.json", - "scripts": [], - "styles": [ - "apps/school/src/styles.css" - ], - "assets": [ - "apps/school/src/assets", - "apps/school/src/favicon.ico" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "apps/school/tsconfig.app.json", - "apps/school/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "school-e2e": { - "root": "apps/school-e2e", - "sourceRoot": "apps/school-e2e/src", - "projectType": "application", - "architect": { - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "apps/school-e2e/protractor.conf.js", - "devServerTarget": "school:serve" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "apps/school-e2e/tsconfig.e2e.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "teach": { - "root": "apps/teach", - "sourceRoot": "apps/teach/src", - "projectType": "application", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "dist/apps/teach", - "index": "apps/teach/src/index.html", - "main": "apps/teach/src/main.ts", - "tsConfig": "apps/teach/tsconfig.app.json", - "polyfills": "apps/teach/src/polyfills.ts", - "assets": [ - "apps/teach/src/assets", - "apps/teach/src/favicon.ico" - ], - "styles": [ - "apps/teach/src/styles.css" - ], - "scripts": [] - }, - "configurations": { - "production": { - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "extractCss": true, - "namedChunks": false, - "aot": true, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, - "fileReplacements": [ - { - "replace": "apps/teach/src/environments/environment.ts", - "with": "apps/teach/src/environments/environment.prod.ts" - } - ] - } - } - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "teach:build" - }, - "configurations": { - "production": { - "browserTarget": "teach:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "teach:build" - } - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "apps/teach/src/test.ts", - "karmaConfig": "apps/teach/karma.conf.js", - "polyfills": "apps/teach/src/polyfills.ts", - "tsConfig": "apps/teach/tsconfig.spec.json", - "scripts": [], - "styles": [ - "apps/teach/src/styles.css" - ], - "assets": [ - "apps/teach/src/assets", - "apps/teach/src/favicon.ico" - ] - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "apps/teach/tsconfig.app.json", - "apps/teach/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "teach-e2e": { - "root": "apps/teach-e2e", - "sourceRoot": "apps/teach-e2e/src", - "projectType": "application", - "architect": { - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "apps/teach-e2e/protractor.conf.js", - "devServerTarget": "teach:serve" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "apps/teach-e2e/tsconfig.e2e.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "ar": { - "root": "libs/ar", - "sourceRoot": "libs/ar/src", - "projectType": "library", - "architect": { - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "libs/ar/src/test.ts", - "karmaConfig": "libs/ar/karma.conf.js", - "scripts": [], - "styles": [], - "assets": [], - "tsConfig": "libs/ar/tsconfig.spec.json" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/ar/tsconfig.lib.json", - "libs/ar/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "login": { - "root": "libs/login", - "sourceRoot": "libs/login/src", - "projectType": "library", - "architect": { - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "libs/login/src/test.ts", - "karmaConfig": "libs/login/karma.conf.js", - "scripts": [], - "styles": [], - "assets": [], - "tsConfig": "libs/login/tsconfig.spec.json" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/login/tsconfig.lib.json", - "libs/login/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "model": { - "root": "libs/model", - "sourceRoot": "libs/model/src", - "projectType": "library", - "architect": { - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "libs/model/src/test.ts", - "karmaConfig": "libs/model/karma.conf.js", - "scripts": [], - "styles": [], - "assets": [], - "tsConfig": "libs/model/tsconfig.spec.json" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/model/tsconfig.lib.json", - "libs/model/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "nx-d3": { - "root": "libs/nx-d3", - "sourceRoot": "libs/nx-d3/src", - "projectType": "library", - "architect": { - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "libs/nx-d3/src/test.ts", - "karmaConfig": "libs/nx-d3/karma.conf.js", - "scripts": [], - "styles": [], - "assets": [], - "tsConfig": "libs/nx-d3/tsconfig.spec.json" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/nx-d3/tsconfig.lib.json", - "libs/nx-d3/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "school-ui": { - "root": "libs/school-ui", - "sourceRoot": "libs/school-ui/src", - "projectType": "library", - "architect": { - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "libs/school-ui/src/test.ts", - "karmaConfig": "libs/school-ui/karma.conf.js", - "scripts": [], - "styles": [], - "assets": [], - "tsConfig": "libs/school-ui/tsconfig.spec.json" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/school-ui/tsconfig.lib.json", - "libs/school-ui/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "shared-components": { - "root": "libs/shared-components", - "sourceRoot": "libs/shared-components/src", - "projectType": "library", - "architect": { - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "libs/shared-components/src/test.ts", - "karmaConfig": "libs/shared-components/karma.conf.js", - "scripts": [], - "styles": [], - "assets": [], - "tsConfig": "libs/shared-components/tsconfig.spec.json" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/shared-components/tsconfig.lib.json", - "libs/shared-components/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "slides": { - "root": "libs/slides", - "sourceRoot": "libs/slides/src", - "projectType": "library", - "architect": { - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "libs/slides/src/test.ts", - "karmaConfig": "libs/slides/karma.conf.js", - "scripts": [], - "styles": [], - "assets": [], - "tsConfig": "libs/slides/tsconfig.spec.json" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/slides/tsconfig.lib.json", - "libs/slides/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - }, - "prefix": "app" - }, - "teach-app1": { - "root": "libs/teach/app1", - "sourceRoot": "libs/teach/app1/src", - "projectType": "library", - "prefix": "nx-examples", - "architect": { - "build": { - "builder": "@angular-devkit/build-ng-packagr:build", - "options": { - "tsConfig": "libs/teach/app1/tsconfig.lib.json", - "project": "libs/teach/app1/ng-package.json" - }, - "configurations": { - "production": { - "project": "libs/teach/app1/ng-package.prod.json" - } - } - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "libs/teach/app1/src/test.ts", - "tsConfig": "libs/teach/app1/tsconfig.spec.json", - "karmaConfig": "libs/teach/app1/karma.conf.js" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/teach/app1/tsconfig.lib.json", - "libs/teach/app1/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - } - }, - "teach-app2": { - "root": "libs/teach/app2", - "sourceRoot": "libs/teach/app2/src", - "projectType": "library", - "prefix": "nx-examples", - "architect": { - "build": { - "builder": "@angular-devkit/build-ng-packagr:build", - "options": { - "tsConfig": "libs/teach/app2/tsconfig.lib.json", - "project": "libs/teach/app2/ng-package.json" - }, - "configurations": { - "production": { - "project": "libs/teach/app2/ng-package.prod.json" - } - } - }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "libs/teach/app2/src/test.ts", - "tsConfig": "libs/teach/app2/tsconfig.spec.json", - "karmaConfig": "libs/teach/app2/karma.conf.js" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/teach/app2/tsconfig.lib.json", - "libs/teach/app2/tsconfig.spec.json" - ], - "exclude": [ - "**/node_modules/**" - ] - } - } - } - } - }, - "defaultProject": "demo", - "cli": { - "defaultCollection": "@nrwl/schematics", - "packageManager": "yarn" - } -} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/collection.json b/angular_material_schematics-AqF82I/collection.json deleted file mode 100644 index c9a590c..0000000 --- a/angular_material_schematics-AqF82I/collection.json +++ /dev/null @@ -1,35 +0,0 @@ -// This is the root config file where the schematics are defined. -{ - "$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json", - "schematics": { - // Adds Angular Material to an application without changing any templates - "ng-add": { - "description": "Adds Angular Material to the application without affecting any templates", - "factory": "./shell", - "schema": "./shell/schema.json", - "aliases": ["material-shell"] - }, - - // Create a dashboard component - "materialDashboard": { - "description": "Create a card-based dashboard component", - "factory": "./dashboard/index", - "schema": "./dashboard/schema.json", - "aliases": [ "material-dashboard" ] - }, - // Creates a table component - "materialTable": { - "description": "Create a component that displays data with a data-table", - "factory": "./table/index", - "schema": "./table/schema.json", - "aliases": [ "material-table" ] - }, - // Creates toolbar and navigation components - "materialNav": { - "description": "Create a component with a responsive sidenav for navigation", - "factory": "./nav/index", - "schema": "./nav/schema.json", - "aliases": [ "material-nav" ] - } - } -} diff --git a/angular_material_schematics-AqF82I/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__styleext__ b/angular_material_schematics-AqF82I/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__styleext__ deleted file mode 100644 index 11bc8f1..0000000 --- a/angular_material_schematics-AqF82I/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__styleext__ +++ /dev/null @@ -1,21 +0,0 @@ -.grid-container { - margin: 20px; -} - -.dashboard-card { - position: absolute; - top: 15px; - left: 15px; - right: 15px; - bottom: 15px; -} - -.more-button { - position: absolute; - top: 5px; - right: 10px; -} - -.dashboard-card-content { - text-align: center; -} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html b/angular_material_schematics-AqF82I/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html deleted file mode 100644 index 159daf9..0000000 --- a/angular_material_schematics-AqF82I/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +++ /dev/null @@ -1,24 +0,0 @@ -
-

Dashboard

- - - - - - {{card.title}} - - - - - - - - -
Card Content Here
-
-
-
-
-
\ No newline at end of file diff --git a/angular_material_schematics-AqF82I/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts b/angular_material_schematics-AqF82I/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts deleted file mode 100644 index ad38814..0000000 --- a/angular_material_schematics-AqF82I/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ - -import { fakeAsync, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component'; - -describe('<%= classify(name) %>Component', () => { - let component: <%= classify(name) %>Component; - let fixture: ComponentFixture<<%= classify(name) %>Component>; - - beforeEach(fakeAsync(() => { - TestBed.configureTestingModule({ - declarations: [ <%= classify(name) %>Component ] - }) - .compileComponents(); - - fixture = TestBed.createComponent(<%= classify(name) %>Component); - component = fixture.componentInstance; - fixture.detectChanges(); - })); - - it('should compile', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/angular_material_schematics-AqF82I/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts b/angular_material_schematics-AqF82I/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts deleted file mode 100644 index d72b1f1..0000000 --- a/angular_material_schematics-AqF82I/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy<% }%> } from '@angular/core'; - -@Component({ - selector: '<%= selector %>',<% if(inlineTemplate) { %> - template: ` -
-

Dashboard

- - - - - - {{card.title}} - - - - - - - - -
Card Content Here
-
-
-
-
-
- `,<% } else { %> - templateUrl: './<%= dasherize(name) %>.component.html',<% } if(inlineStyle) { %> - styles: [ - ` - .grid-container { - margin: 20px; - } - - .dashboard-card { - position: absolute; - top: 15px; - left: 15px; - right: 15px; - bottom: 15px; - } - - .more-button { - position: absolute; - top: 5px; - right: 10px; - } - - .dashboard-card-content { - text-align: center; - } - ` - ]<% } else { %> - styleUrls: ['./<%= dasherize(name) %>.component.<%= styleext %>']<% } %><% if(!!viewEncapsulation) { %>, - encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetection !== 'Default') { %>, - changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %> -}) -export class <%= classify(name) %>Component { - cards = [ - { title: 'Card 1', cols: 2, rows: 1 }, - { title: 'Card 2', cols: 1, rows: 1 }, - { title: 'Card 3', cols: 1, rows: 2 }, - { title: 'Card 4', cols: 1, rows: 1 } - ]; -} diff --git a/angular_material_schematics-AqF82I/dashboard/index.js b/angular_material_schematics-AqF82I/dashboard/index.js deleted file mode 100644 index 3559e64..0000000 --- a/angular_material_schematics-AqF82I/dashboard/index.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const schematics_1 = require("@angular-devkit/schematics"); -const ast_1 = require("../utils/ast"); -const component_1 = require("../utils/devkit-utils/component"); -/** - * Scaffolds a new navigation component. - * Internally it bootstraps the base component schematic - */ -function default_1(options) { - return schematics_1.chain([ - component_1.buildComponent(Object.assign({}, options)), - options.skipImport ? schematics_1.noop() : addNavModulesToModule(options) - ]); -} -exports.default = default_1; -/** - * Adds the required modules to the relative module. - */ -function addNavModulesToModule(options) { - return (host) => { - const modulePath = ast_1.findModuleFromOptions(host, options); - ast_1.addModuleImportToModule(host, modulePath, 'MatGridListModule', '@angular/material'); - ast_1.addModuleImportToModule(host, modulePath, 'MatCardModule', '@angular/material'); - ast_1.addModuleImportToModule(host, modulePath, 'MatMenuModule', '@angular/material'); - ast_1.addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material'); - ast_1.addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material'); - return host; - }; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/dashboard/index.js.map b/angular_material_schematics-AqF82I/dashboard/index.js.map deleted file mode 100644 index cbc0e17..0000000 --- a/angular_material_schematics-AqF82I/dashboard/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/schematics/dashboard/index.ts"],"names":[],"mappings":";;AAAA,2DAAqF;AAErF,sCAA4E;AAC5E,+DAA+D;AAE/D;;;GAGG;AACH,mBAAwB,OAAe;IACrC,MAAM,CAAC,kBAAK,CAAC;QACX,0BAAc,mBAAM,OAAO,EAAG;QAC9B,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAI,EAAE,CAAC,CAAC,CAAC,qBAAqB,CAAC,OAAO,CAAC;KAC7D,CAAC,CAAC;AACL,CAAC;AALD,4BAKC;AAED;;GAEG;AACH,+BAA+B,OAAe;IAC5C,MAAM,CAAC,CAAC,IAAU,EAAE,EAAE;QACpB,MAAM,UAAU,GAAG,2BAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACxD,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;QACpF,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,CAAC,CAAC;QAChF,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,CAAC,CAAC;QAChF,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,CAAC,CAAC;QAChF,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,iBAAiB,EAAE,mBAAmB,CAAC,CAAC;QAClF,MAAM,CAAC,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/dashboard/schema.js b/angular_material_schematics-AqF82I/dashboard/schema.js deleted file mode 100644 index 03881cb..0000000 --- a/angular_material_schematics-AqF82I/dashboard/schema.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=schema.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/dashboard/schema.js.map b/angular_material_schematics-AqF82I/dashboard/schema.js.map deleted file mode 100644 index 13efe92..0000000 --- a/angular_material_schematics-AqF82I/dashboard/schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/lib/schematics/dashboard/schema.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/dashboard/schema.json b/angular_material_schematics-AqF82I/dashboard/schema.json deleted file mode 100644 index d147d05..0000000 --- a/angular_material_schematics-AqF82I/dashboard/schema.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "$schema": "http://json-schema.org/schema", - "id": "SchematicsMaterialDashboard", - "title": "Material Dashboard Options Schema", - "type": "object", - "properties": { - "path": { - "type": "string", - "format": "path", - "description": "The path to create the component.", - "visible": false - }, - "project": { - "type": "string", - "description": "The name of the project.", - "visible": false - }, - "name": { - "type": "string", - "description": "The name of the component.", - "$default": { - "$source": "argv", - "index": 0 - } - }, - "inlineStyle": { - "description": "Specifies if the style will be in the ts file.", - "type": "boolean", - "default": false, - "alias": "s" - }, - "inlineTemplate": { - "description": "Specifies if the template will be in the ts file.", - "type": "boolean", - "default": false, - "alias": "t" - }, - "viewEncapsulation": { - "description": "Specifies the view encapsulation strategy.", - "enum": ["Emulated", "Native", "None"], - "type": "string", - "alias": "v" - }, - "changeDetection": { - "description": "Specifies the change detection strategy.", - "enum": ["Default", "OnPush"], - "type": "string", - "default": "Default", - "alias": "c" - }, - "prefix": { - "type": "string", - "format": "html-selector", - "description": "The prefix to apply to generated selectors.", - "alias": "p" - }, - "styleext": { - "description": "The file extension to be used for style files.", - "type": "string", - "default": "css" - }, - "spec": { - "type": "boolean", - "description": "Specifies if a spec file is generated.", - "default": true - }, - "flat": { - "type": "boolean", - "description": "Flag to indicate if a dir is created.", - "default": false - }, - "skipImport": { - "type": "boolean", - "description": "Flag to skip the module import.", - "default": false - }, - "selector": { - "type": "string", - "format": "html-selector", - "description": "The selector to use for the component." - }, - "module": { - "type": "string", - "description": "Allows specification of the declaring module.", - "alias": "m" - }, - "export": { - "type": "boolean", - "default": false, - "description": "Specifies if declaring module exports the component." - } - }, - "required": [ - "name" - ] -} diff --git a/angular_material_schematics-AqF82I/migration.json b/angular_material_schematics-AqF82I/migration.json deleted file mode 100644 index fae65c8..0000000 --- a/angular_material_schematics-AqF82I/migration.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json", - "schematics": { - // Update from v5 to v6 - "migration-01": { - "version": "6.0.0-rc.12", - "description": "Updates Angular Material from v5 to v6", - "factory": "./update/update" - }, - "ng-post-update": { - "description": "Performs cleanup after ng-update.", - "factory": "./update/update#postUpdate", - "private": true - }, - "ng-post-post-update": { - "description": "Logs completion message for ng-update after ng-post-update.", - "factory": "./update/update#postPostUpdate", - "private": true - } - } -} diff --git a/angular_material_schematics-AqF82I/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__styleext__ b/angular_material_schematics-AqF82I/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__styleext__ deleted file mode 100644 index acf02ca..0000000 --- a/angular_material_schematics-AqF82I/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__styleext__ +++ /dev/null @@ -1,8 +0,0 @@ -.sidenav-container { - height: 100%; -} - -.sidenav { - width: 200px; - box-shadow: 3px 0 6px rgba(0,0,0,.24); -} diff --git a/angular_material_schematics-AqF82I/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html b/angular_material_schematics-AqF82I/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html deleted file mode 100644 index f71b7e7..0000000 --- a/angular_material_schematics-AqF82I/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +++ /dev/null @@ -1,29 +0,0 @@ - - - Menu - - Link 1 - Link 2 - Link 3 - - - - - - Application Title - - - diff --git a/angular_material_schematics-AqF82I/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts b/angular_material_schematics-AqF82I/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts deleted file mode 100644 index ad38814..0000000 --- a/angular_material_schematics-AqF82I/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ - -import { fakeAsync, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component'; - -describe('<%= classify(name) %>Component', () => { - let component: <%= classify(name) %>Component; - let fixture: ComponentFixture<<%= classify(name) %>Component>; - - beforeEach(fakeAsync(() => { - TestBed.configureTestingModule({ - declarations: [ <%= classify(name) %>Component ] - }) - .compileComponents(); - - fixture = TestBed.createComponent(<%= classify(name) %>Component); - component = fixture.componentInstance; - fixture.detectChanges(); - })); - - it('should compile', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/angular_material_schematics-AqF82I/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts b/angular_material_schematics-AqF82I/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts deleted file mode 100644 index a39f2aa..0000000 --- a/angular_material_schematics-AqF82I/nav/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { Component<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy<% }%> } from '@angular/core'; -import { BreakpointObserver, Breakpoints, BreakpointState } from '@angular/cdk/layout'; -import { Observable } from 'rxjs'; - -@Component({ - selector: '<%= selector %>',<% if(inlineTemplate) { %> - template: ` - - - Menu - - Link 1 - Link 2 - Link 3 - - - - - - Application Title - - - - `,<% } else { %> - templateUrl: './<%= dasherize(name) %>.component.html',<% } if(inlineStyle) { %> - styles: [ - ` - .sidenav-container { - height: 100%; - } - - .sidenav { - width: 200px; - box-shadow: 3px 0 6px rgba(0,0,0,.24); - } - ` - ]<% } else { %> - styleUrls: ['./<%= dasherize(name) %>.component.<%= styleext %>']<% } %><% if(!!viewEncapsulation) { %>, - encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetection !== 'Default') { %>, - changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %> -}) -export class <%= classify(name) %>Component { - isHandset: Observable = this.breakpointObserver.observe(Breakpoints.Handset); - constructor(private breakpointObserver: BreakpointObserver) {} -} diff --git a/angular_material_schematics-AqF82I/nav/index.js b/angular_material_schematics-AqF82I/nav/index.js deleted file mode 100644 index 1971337..0000000 --- a/angular_material_schematics-AqF82I/nav/index.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const schematics_1 = require("@angular-devkit/schematics"); -const ast_1 = require("../utils/ast"); -const component_1 = require("../utils/devkit-utils/component"); -/** - * Scaffolds a new navigation component. - * Internally it bootstraps the base component schematic - */ -function default_1(options) { - return schematics_1.chain([ - component_1.buildComponent(Object.assign({}, options)), - options.skipImport ? schematics_1.noop() : addNavModulesToModule(options) - ]); -} -exports.default = default_1; -/** - * Adds the required modules to the relative module. - */ -function addNavModulesToModule(options) { - return (host) => { - const modulePath = ast_1.findModuleFromOptions(host, options); - ast_1.addModuleImportToModule(host, modulePath, 'LayoutModule', '@angular/cdk/layout'); - ast_1.addModuleImportToModule(host, modulePath, 'MatToolbarModule', '@angular/material'); - ast_1.addModuleImportToModule(host, modulePath, 'MatButtonModule', '@angular/material'); - ast_1.addModuleImportToModule(host, modulePath, 'MatSidenavModule', '@angular/material'); - ast_1.addModuleImportToModule(host, modulePath, 'MatIconModule', '@angular/material'); - ast_1.addModuleImportToModule(host, modulePath, 'MatListModule', '@angular/material'); - return host; - }; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/nav/index.js.map b/angular_material_schematics-AqF82I/nav/index.js.map deleted file mode 100644 index 581386b..0000000 --- a/angular_material_schematics-AqF82I/nav/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/schematics/nav/index.ts"],"names":[],"mappings":";;AAAA,2DAAqF;AAErF,sCAA4E;AAC5E,+DAA+D;AAE/D;;;GAGG;AACH,mBAAwB,OAAe;IACrC,MAAM,CAAC,kBAAK,CAAC;QACX,0BAAc,mBAAM,OAAO,EAAG;QAC9B,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAI,EAAE,CAAC,CAAC,CAAC,qBAAqB,CAAC,OAAO,CAAC;KAC7D,CAAC,CAAC;AACL,CAAC;AALD,4BAKC;AAED;;GAEG;AACH,+BAA+B,OAAe;IAC5C,MAAM,CAAC,CAAC,IAAU,EAAE,EAAE;QACpB,MAAM,UAAU,GAAG,2BAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACxD,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,qBAAqB,CAAC,CAAC;QACjF,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAE,mBAAmB,CAAC,CAAC;QACnF,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,iBAAiB,EAAE,mBAAmB,CAAC,CAAC;QAClF,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,kBAAkB,EAAE,mBAAmB,CAAC,CAAC;QACnF,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,CAAC,CAAC;QAChF,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,CAAC,CAAC;QAChF,MAAM,CAAC,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/nav/schema.js b/angular_material_schematics-AqF82I/nav/schema.js deleted file mode 100644 index 03881cb..0000000 --- a/angular_material_schematics-AqF82I/nav/schema.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=schema.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/nav/schema.js.map b/angular_material_schematics-AqF82I/nav/schema.js.map deleted file mode 100644 index 457ff54..0000000 --- a/angular_material_schematics-AqF82I/nav/schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/lib/schematics/nav/schema.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/nav/schema.json b/angular_material_schematics-AqF82I/nav/schema.json deleted file mode 100644 index b126d4f..0000000 --- a/angular_material_schematics-AqF82I/nav/schema.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "$schema": "http://json-schema.org/schema", - "id": "SchematicsMaterialNav", - "title": "Material Nav Options Schema", - "type": "object", - "properties": { - "path": { - "type": "string", - "format": "path", - "description": "The path to create the component.", - "visible": false - }, - "project": { - "type": "string", - "description": "The name of the project.", - "visible": false - }, - "name": { - "type": "string", - "description": "The name of the component.", - "$default": { - "$source": "argv", - "index": 0 - } - }, - "inlineStyle": { - "description": "Specifies if the style will be in the ts file.", - "type": "boolean", - "default": false, - "alias": "s" - }, - "inlineTemplate": { - "description": "Specifies if the template will be in the ts file.", - "type": "boolean", - "default": false, - "alias": "t" - }, - "viewEncapsulation": { - "description": "Specifies the view encapsulation strategy.", - "enum": ["Emulated", "Native", "None"], - "type": "string", - "alias": "v" - }, - "changeDetection": { - "description": "Specifies the change detection strategy.", - "enum": ["Default", "OnPush"], - "type": "string", - "default": "Default", - "alias": "c" - }, - "prefix": { - "type": "string", - "format": "html-selector", - "description": "The prefix to apply to generated selectors.", - "alias": "p" - }, - "styleext": { - "description": "The file extension to be used for style files.", - "type": "string", - "default": "css" - }, - "spec": { - "type": "boolean", - "description": "Specifies if a spec file is generated.", - "default": true - }, - "flat": { - "type": "boolean", - "description": "Flag to indicate if a dir is created.", - "default": false - }, - "skipImport": { - "type": "boolean", - "description": "Flag to skip the module import.", - "default": false - }, - "selector": { - "type": "string", - "format": "html-selector", - "description": "The selector to use for the component." - }, - "module": { - "type": "string", - "description": "Allows specification of the declaring module.", - "alias": "m" - }, - "export": { - "type": "boolean", - "default": false, - "description": "Specifies if declaring module exports the component." - } - }, - "required": [ - "name" - ] -} diff --git a/angular_material_schematics-AqF82I/shell/custom-theme.js b/angular_material_schematics-AqF82I/shell/custom-theme.js deleted file mode 100644 index 968d1a0..0000000 --- a/angular_material_schematics-AqF82I/shell/custom-theme.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** Create custom theme for the given application configuration. */ -function createCustomTheme(project) { - const name = project.name || 'app'; - return ` -// Custom Theming for Angular Material -// For more information: https://material.angular.io/guide/theming -@import '~@angular/material/theming'; -// Plus imports for other components in your app. - -// Include the common styles for Angular Material. We include this here so that you only -// have to load a single css file for Angular Material in your app. -// Be sure that you only ever include this mixin once! -@include mat-core(); - -// Define the palettes for your theme using the Material Design palettes available in palette.scss -// (imported above). For each palette, you can optionally specify a default, lighter, and darker -// hue. Available color palettes: https://material.io/design/color/ -$${name}-primary: mat-palette($mat-indigo); -$${name}-accent: mat-palette($mat-pink, A200, A100, A400); - -// The warn palette is optional (defaults to red). -$${name}-warn: mat-palette($mat-red); - -// Create the theme object (a Sass map containing all of the palettes). -$${name}-theme: mat-light-theme($${name}-primary, $${name}-accent, $${name}-warn); - -// Include theme styles for core and each component used in your app. -// Alternatively, you can import and @include the theme mixins for each component -// that you are using. -@include angular-material-theme($${name}-theme); - -`; -} -exports.createCustomTheme = createCustomTheme; -//# sourceMappingURL=custom-theme.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/shell/custom-theme.js.map b/angular_material_schematics-AqF82I/shell/custom-theme.js.map deleted file mode 100644 index 3b100ed..0000000 --- a/angular_material_schematics-AqF82I/shell/custom-theme.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"custom-theme.js","sourceRoot":"","sources":["../../../src/lib/schematics/shell/custom-theme.ts"],"names":[],"mappings":";;AAEA,mEAAmE;AACnE,2BAAkC,OAAgB;IAChD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAAC;IACrC,MAAM,CAAC;;;;;;;;;;;;;;GAcJ,IAAI;GACJ,IAAI;;;GAGJ,IAAI;;;GAGJ,IAAI,4BAA4B,IAAI,cAAc,IAAI,aAAa,IAAI;;;;;mCAKvC,IAAI;;CAEtC,CAAC;AACF,CAAC;AA/BD,8CA+BC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/shell/index.js b/angular_material_schematics-AqF82I/shell/index.js deleted file mode 100644 index 6fd4f46..0000000 --- a/angular_material_schematics-AqF82I/shell/index.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const schematics_1 = require("@angular-devkit/schematics"); -const tasks_1 = require("@angular-devkit/schematics/tasks"); -const ast_1 = require("../utils/ast"); -const change_1 = require("../utils/devkit-utils/change"); -const config_1 = require("../utils/devkit-utils/config"); -const html_1 = require("../utils/html"); -const lib_versions_1 = require("../utils/lib-versions"); -const package_1 = require("../utils/package"); -const theming_1 = require("./theming"); -/** - * Scaffolds the basics of a Angular Material application, this includes: - * - Add Packages to package.json - * - Adds pre-built themes to styles.ext - * - Adds Browser Animation to app.momdule - */ -function default_1(options) { - return schematics_1.chain([ - options && options.skipPackageJson ? schematics_1.noop() : addMaterialToPackageJson(), - theming_1.addThemeToAppStyles(options), - addAnimationRootConfig(options), - addFontsToIndex(options), - addBodyMarginToStyles(options), - ]); -} -exports.default = default_1; -/** Add material, cdk, annimations to package.json if not already present. */ -function addMaterialToPackageJson() { - return (host, context) => { - package_1.addPackageToPackageJson(host, 'dependencies', '@angular/cdk', lib_versions_1.cdkVersion); - package_1.addPackageToPackageJson(host, 'dependencies', '@angular/material', lib_versions_1.materialVersion); - package_1.addPackageToPackageJson(host, 'dependencies', '@angular/animations', lib_versions_1.angularVersion); - context.addTask(new tasks_1.NodePackageInstallTask()); - return host; - }; -} -/** Add browser animation module to app.module */ -function addAnimationRootConfig(options) { - return (host) => { - const workspace = config_1.getWorkspace(host); - const project = config_1.getProjectFromWorkspace(workspace, options.project); - ast_1.addModuleImportToRootModule(host, 'BrowserAnimationsModule', '@angular/platform-browser/animations', project); - return host; - }; -} -/** Adds fonts to the index.ext file */ -function addFontsToIndex(options) { - return (host) => { - const workspace = config_1.getWorkspace(host); - const project = config_1.getProjectFromWorkspace(workspace, options.project); - const fonts = [ - 'https://fonts.googleapis.com/css?family=Roboto:300,400,500', - 'https://fonts.googleapis.com/icon?family=Material+Icons', - ]; - fonts.forEach(f => html_1.addHeadLink(host, project, `\n`)); - return host; - }; -} -/** Add 0 margin to body in styles.ext */ -function addBodyMarginToStyles(options) { - return (host) => { - const workspace = config_1.getWorkspace(host); - const project = config_1.getProjectFromWorkspace(workspace, options.project); - const stylesPath = ast_1.getStylesPath(host, project); - const buffer = host.read(stylesPath); - if (buffer) { - const src = buffer.toString(); - const insertion = new change_1.InsertChange(stylesPath, src.length, `\nbody { margin: 0; }\n`); - const recorder = host.beginUpdate(stylesPath); - recorder.insertLeft(insertion.pos, insertion.toAdd); - host.commitUpdate(recorder); - } - else { - console.warn(`Skipped body reset; could not find file: ${stylesPath}`); - } - }; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/shell/index.js.map b/angular_material_schematics-AqF82I/shell/index.js.map deleted file mode 100644 index 48cd7c5..0000000 --- a/angular_material_schematics-AqF82I/shell/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/schematics/shell/index.ts"],"names":[],"mappings":";;AAAA,2DAAqF;AACrF,4DAAwE;AACxE,sCAAwE;AACxE,yDAA0D;AAC1D,yDAAmF;AACnF,wCAA0C;AAC1C,wDAAkF;AAClF,8CAAyD;AAEzD,uCAA8C;AAG9C;;;;;GAKG;AACH,mBAAwB,OAAe;IACrC,MAAM,CAAC,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-AqF82I/shell/schema.js b/angular_material_schematics-AqF82I/shell/schema.js deleted file mode 100644 index 03881cb..0000000 --- a/angular_material_schematics-AqF82I/shell/schema.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=schema.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/shell/schema.js.map b/angular_material_schematics-AqF82I/shell/schema.js.map deleted file mode 100644 index 9799dbf..0000000 --- a/angular_material_schematics-AqF82I/shell/schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/lib/schematics/shell/schema.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/shell/schema.json b/angular_material_schematics-AqF82I/shell/schema.json deleted file mode 100644 index a6503eb..0000000 --- a/angular_material_schematics-AqF82I/shell/schema.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "$schema": "http://json-schema.org/schema", - "id": "SchematicsMaterialShell", - "title": "Material Shell Options Schema", - "type": "object", - "properties": { - "skipPackageJson": { - "type": "boolean", - "default": false, - "description": "Do not add materials dependencies to package.json (e.g., --skipPackageJson)" - }, - "theme": { - "enum": ["indigo-pink", "deeppurple-amber", "pink-bluegrey", "purple-green", "custom"], - "default": "indigo-pink", - "description": "The theme to apply" - } - }, - "required": [] -} diff --git a/angular_material_schematics-AqF82I/shell/theming.js b/angular_material_schematics-AqF82I/shell/theming.js deleted file mode 100644 index 6bf60da..0000000 --- a/angular_material_schematics-AqF82I/shell/theming.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const schematics_1 = require("@angular-devkit/schematics"); -const ast_1 = require("../utils/ast"); -const change_1 = require("../utils/devkit-utils/change"); -const config_1 = require("../utils/devkit-utils/config"); -const custom_theme_1 = require("./custom-theme"); -/** Add pre-built styles to the main project style file. */ -function addThemeToAppStyles(options) { - return function (host) { - const workspace = config_1.getWorkspace(host); - const project = config_1.getProjectFromWorkspace(workspace, options.project); - // Because the build setup for the Angular CLI can be changed so dramatically, we can't know - // where to generate anything if the project is not using the default config for build and test. - assertDefaultProjectConfig(project); - const themeName = options.theme || 'indigo-pink'; - if (themeName === 'custom') { - insertCustomTheme(project, host); - } - else { - insertPrebuiltTheme(project, host, themeName, workspace); - } - return host; - }; -} -exports.addThemeToAppStyles = addThemeToAppStyles; -/** Insert a custom theme to styles.scss file. */ -function insertCustomTheme(project, host) { - const stylesPath = ast_1.getStylesPath(host, project); - const buffer = host.read(stylesPath); - if (buffer) { - const insertion = new change_1.InsertChange(stylesPath, 0, custom_theme_1.createCustomTheme(project)); - const recorder = host.beginUpdate(stylesPath); - recorder.insertLeft(insertion.pos, insertion.toAdd); - host.commitUpdate(recorder); - } - else { - console.warn(`Skipped custom theme; could not find file: ${stylesPath}`); - } -} -/** Insert a pre-built theme into the angular.json file. */ -function insertPrebuiltTheme(project, host, theme, workspace) { - // TODO(jelbourn): what should this be relative to? - const themePath = `node_modules/@angular/material/prebuilt-themes/${theme}.css`; - if (project.architect) { - addStyleToTarget(project.architect['build'], host, themePath, workspace); - addStyleToTarget(project.architect['test'], host, themePath, workspace); - } - else { - throw new schematics_1.SchematicsException(`${project.name} does not have an architect configuration`); - } -} -/** Adds a style entry to the given target. */ -function addStyleToTarget(target, host, asset, workspace) { - const styleEntry = { input: asset }; - // We can't assume that any of these properties are defined, so safely add them as we go - // if necessary. - if (!target.options) { - target.options = { styles: [styleEntry] }; - } - else if (!target.options.styles) { - target.options.styles = [styleEntry]; - } - else { - const existingStyles = target.options.styles.map(s => typeof s === 'string' ? s : s.input); - const hasGivenTheme = existingStyles.find(s => s.includes(asset)); - const hasOtherTheme = existingStyles.find(s => s.includes('material/prebuilt')); - if (!hasGivenTheme && !hasOtherTheme) { - target.options.styles.splice(0, 0, styleEntry); - } - } - host.overwrite('angular.json', JSON.stringify(workspace, null, 2)); -} -/** Throws if the project is not using the default build and test config. */ -function assertDefaultProjectConfig(project) { - if (!isProjectUsingDefaultConfig(project)) { - throw new schematics_1.SchematicsException('Your project is not using the default configuration for ' + - 'build and test. The Angular Material schematics can only be used with the default ' + - 'configuration'); - } -} -/** Gets whether the Angular CLI project is using the default build configuration. */ -function isProjectUsingDefaultConfig(project) { - const defaultBuilder = '@angular-devkit/build-angular:browser'; - return project.architect && - project.architect['build'] && - project.architect['build']['builder'] === defaultBuilder && - project.architect['test'] && - project.architect['build']['builder'] === defaultBuilder; -} -//# sourceMappingURL=theming.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/shell/theming.js.map b/angular_material_schematics-AqF82I/shell/theming.js.map deleted file mode 100644 index 6fcdf4a..0000000 --- a/angular_material_schematics-AqF82I/shell/theming.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"theming.js","sourceRoot":"","sources":["../../../src/lib/schematics/shell/theming.ts"],"names":[],"mappings":";;AAAA,2DAAqE;AACrE,sCAA2C;AAC3C,yDAA0D;AAC1D,yDAKsC;AACtC,iDAAiD;AAIjD,2DAA2D;AAC3D,6BAAoC,OAAe;IACjD,MAAM,CAAC,UAAS,IAAU;QACxB,MAAM,SAAS,GAAG,qBAAY,CAAC,IAAI,CAAC,CAAC;QACrC,MAAM,OAAO,GAAG,gCAAuB,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAEpE,4FAA4F;QAC5F,gGAAgG;QAChG,0BAA0B,CAAC,OAAO,CAAC,CAAC;QAEpC,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,IAAI,aAAa,CAAC;QACjD,EAAE,CAAC,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC;YAC3B,iBAAiB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACnC,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,mBAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QAC3D,CAAC;QAED,MAAM,C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C,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACrE,CAAC;AAED,4EAA4E;AAC5E,oCAAoC,OAAgB;IAClD,EAAE,CAAC,CAAC,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC1C,MAAM,IAAI,gCAAmB,CAAC,0DAA0D;YACvF,oFAAoF;YACpF,eAAe,CAAC,CAAC;IACpB,CAAC;AACH,CAAC;AAED,qFAAqF;AACrF,qCAAqC,OAAgB;IACnD,MAAM,cAAc,GAAG,uCAAuC,CAAC;IAE/D,MAAM,CAAC,OAAO,CAAC,SAAS;QACpB,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC;QAC1B,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,KAAK,cAAc;QACxD,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;QACzB,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,KAAK,cAAc,CAAC;AAC/D,CAAC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__-datasource.ts b/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__-datasource.ts deleted file mode 100644 index 0dd30a5..0000000 --- a/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__-datasource.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { DataSource } from '@angular/cdk/collections'; -import { MatPaginator, MatSort } from '@angular/material'; -import { map } from 'rxjs/operators'; -import { Observable, of as observableOf, merge } from 'rxjs'; - -// TODO: Replace this with your own data model type -export interface <%= classify(name) %>Item { - name: string; - id: number; -} - -// TODO: replace this with real data from your application -const EXAMPLE_DATA: <%= classify(name) %>Item[] = [ - {id: 1, name: 'Hydrogen'}, - {id: 2, name: 'Helium'}, - {id: 3, name: 'Lithium'}, - {id: 4, name: 'Beryllium'}, - {id: 5, name: 'Boron'}, - {id: 6, name: 'Carbon'}, - {id: 7, name: 'Nitrogen'}, - {id: 8, name: 'Oxygen'}, - {id: 9, name: 'Fluorine'}, - {id: 10, name: 'Neon'}, - {id: 11, name: 'Sodium'}, - {id: 12, name: 'Magnesium'}, - {id: 13, name: 'Aluminum'}, - {id: 14, name: 'Silicon'}, - {id: 15, name: 'Phosphorus'}, - {id: 16, name: 'Sulfur'}, - {id: 17, name: 'Chlorine'}, - {id: 18, name: 'Argon'}, - {id: 19, name: 'Potassium'}, - {id: 20, name: 'Calcium'}, -]; - -/** - * Data source for the <%= classify(name) %> view. This class should - * encapsulate all logic for fetching and manipulating the displayed data - * (including sorting, pagination, and filtering). - */ -export class <%= classify(name) %>DataSource extends DataSource<<%= classify(name) %>Item> { - data: <%= classify(name) %>Item[] = EXAMPLE_DATA; - - constructor(private paginator: MatPaginator, private sort: MatSort) { - super(); - } - - /** - * Connect this data source to the table. The table will only update when - * the returned stream emits new items. - * @returns A stream of the items to be rendered. - */ - connect(): Observable<<%= classify(name) %>Item[]> { - // Combine everything that affects the rendered data into one update - // stream for the data-table to consume. - const dataMutations = [ - observableOf(this.data), - this.paginator.page, - this.sort.sortChange - ]; - - // Set the paginators length - this.paginator.length = this.data.length; - - return merge(...dataMutations).pipe(map(() => { - return this.getPagedData(this.getSortedData([...this.data])); - })); - } - - /** - * Called when the table is being destroyed. Use this function, to clean up - * any open connections or free any held resources that were set up during connect. - */ - disconnect() {} - - /** - * Paginate the data (client-side). If you're using server-side pagination, - * this would be replaced by requesting the appropriate data from the server. - */ - private getPagedData(data: <%= classify(name) %>Item[]) { - const startIndex = this.paginator.pageIndex * this.paginator.pageSize; - return data.splice(startIndex, this.paginator.pageSize); - } - - /** - * Sort the data (client-side). If you're using server-side sorting, - * this would be replaced by requesting the appropriate data from the server. - */ - private getSortedData(data: <%= classify(name) %>Item[]) { - if (!this.sort.active || this.sort.direction === '') { - return data; - } - - return data.sort((a, b) => { - const isAsc = this.sort.direction === 'asc'; - switch (this.sort.active) { - case 'name': return compare(a.name, b.name, isAsc); - case 'id': return compare(+a.id, +b.id, isAsc); - default: return 0; - } - }); - } -} - -/** Simple sort comparator for example ID/Name columns (for client-side sorting). */ -function compare(a, b, isAsc) { - return (a < b ? -1 : 1) * (isAsc ? 1 : -1); -} diff --git a/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__styleext__ b/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__styleext__ deleted file mode 100644 index e69de29..0000000 diff --git a/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html b/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html deleted file mode 100644 index 1105442..0000000 --- a/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +++ /dev/null @@ -1,26 +0,0 @@ -
- - - - - Id - {{row.id}} - - - - - Name - {{row.name}} - - - - - - - - -
\ No newline at end of file diff --git a/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts b/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts deleted file mode 100644 index ad38814..0000000 --- a/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ - -import { fakeAsync, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { <%= classify(name) %>Component } from './<%= dasherize(name) %>.component'; - -describe('<%= classify(name) %>Component', () => { - let component: <%= classify(name) %>Component; - let fixture: ComponentFixture<<%= classify(name) %>Component>; - - beforeEach(fakeAsync(() => { - TestBed.configureTestingModule({ - declarations: [ <%= classify(name) %>Component ] - }) - .compileComponents(); - - fixture = TestBed.createComponent(<%= classify(name) %>Component); - component = fixture.componentInstance; - fixture.detectChanges(); - })); - - it('should compile', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts b/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts deleted file mode 100644 index 4a75957..0000000 --- a/angular_material_schematics-AqF82I/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Component, OnInit, ViewChild<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy<% }%> } from '@angular/core'; -import { MatPaginator, MatSort } from '@angular/material'; -import { <%= classify(name) %>DataSource } from './<%= dasherize(name) %>-datasource'; - -@Component({ - selector: '<%= selector %>',<% if(inlineTemplate) { %> - template: ` -
- - - - - - - - - - - - - - - - -
Id{{row.id}}Name{{row.name}}
- - - -
- `,<% } else { %> - templateUrl: './<%= dasherize(name) %>.component.html',<% } if(inlineStyle) { %> - styles: []<% } else { %> - styleUrls: ['./<%= dasherize(name) %>.component.<%= styleext %>']<% } %><% if(!!viewEncapsulation) { %>, - encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetection !== 'Default') { %>, - changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %> -}) -export class <%= classify(name) %>Component implements OnInit { - @ViewChild(MatPaginator) paginator: MatPaginator; - @ViewChild(MatSort) sort: MatSort; - dataSource: <%= classify(name) %>DataSource; - - /** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */ - displayedColumns = ['id', 'name']; - - ngOnInit() { - this.dataSource = new <%= classify(name) %>DataSource(this.paginator, this.sort); - } -} diff --git a/angular_material_schematics-AqF82I/table/index.js b/angular_material_schematics-AqF82I/table/index.js deleted file mode 100644 index 3cecc50..0000000 --- a/angular_material_schematics-AqF82I/table/index.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const schematics_1 = require("@angular-devkit/schematics"); -const ast_1 = require("../utils/ast"); -const component_1 = require("../utils/devkit-utils/component"); -/** - * Scaffolds a new table component. - * Internally it bootstraps the base component schematic - */ -function default_1(options) { - return schematics_1.chain([ - component_1.buildComponent(Object.assign({}, options)), - options.skipImport ? schematics_1.noop() : addTableModulesToModule(options) - ]); -} -exports.default = default_1; -/** - * Adds the required modules to the relative module. - */ -function addTableModulesToModule(options) { - return (host) => { - const modulePath = ast_1.findModuleFromOptions(host, options); - ast_1.addModuleImportToModule(host, modulePath, 'MatTableModule', '@angular/material'); - ast_1.addModuleImportToModule(host, modulePath, 'MatPaginatorModule', '@angular/material'); - ast_1.addModuleImportToModule(host, modulePath, 'MatSortModule', '@angular/material'); - return host; - }; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/table/index.js.map b/angular_material_schematics-AqF82I/table/index.js.map deleted file mode 100644 index ee69ebd..0000000 --- a/angular_material_schematics-AqF82I/table/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/schematics/table/index.ts"],"names":[],"mappings":";;AAAA,2DAAqF;AAErF,sCAA4E;AAC5E,+DAA+D;AAE/D;;;GAGG;AACH,mBAAwB,OAAe;IACrC,MAAM,CAAC,kBAAK,CAAC;QACX,0BAAc,mBAAK,OAAO,EAAE;QAC5B,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAI,EAAE,CAAC,CAAC,CAAC,uBAAuB,CAAC,OAAO,CAAC;KAC/D,CAAC,CAAC;AACL,CAAC;AALD,4BAKC;AAED;;GAEG;AACH,iCAAiC,OAAe;IAC9C,MAAM,CAAC,CAAC,IAAU,EAAE,EAAE;QACpB,MAAM,UAAU,GAAG,2BAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACxD,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,gBAAgB,EAAE,mBAAmB,CAAC,CAAC;QACjF,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,mBAAmB,CAAC,CAAC;QACrF,6BAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,CAAC,CAAC;QAChF,MAAM,CAAC,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/table/schema.js b/angular_material_schematics-AqF82I/table/schema.js deleted file mode 100644 index 03881cb..0000000 --- a/angular_material_schematics-AqF82I/table/schema.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=schema.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/table/schema.js.map b/angular_material_schematics-AqF82I/table/schema.js.map deleted file mode 100644 index 2664882..0000000 --- a/angular_material_schematics-AqF82I/table/schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/lib/schematics/table/schema.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/table/schema.json b/angular_material_schematics-AqF82I/table/schema.json deleted file mode 100644 index ab070ee..0000000 --- a/angular_material_schematics-AqF82I/table/schema.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "$schema": "http://json-schema.org/schema", - "id": "SchematicsMaterialTable", - "title": "Material Table Options Schema", - "type": "object", - "properties": { - "path": { - "type": "string", - "format": "path", - "description": "The path to create the component.", - "visible": false - }, - "project": { - "type": "string", - "description": "The name of the project.", - "visible": false - }, - "name": { - "type": "string", - "description": "The name of the component.", - "$default": { - "$source": "argv", - "index": 0 - } - }, - "inlineStyle": { - "description": "Specifies if the style will be in the ts file.", - "type": "boolean", - "default": false, - "alias": "s" - }, - "inlineTemplate": { - "description": "Specifies if the template will be in the ts file.", - "type": "boolean", - "default": false, - "alias": "t" - }, - "viewEncapsulation": { - "description": "Specifies the view encapsulation strategy.", - "enum": ["Emulated", "Native", "None"], - "type": "string", - "alias": "v" - }, - "changeDetection": { - "description": "Specifies the change detection strategy.", - "enum": ["Default", "OnPush"], - "type": "string", - "default": "Default", - "alias": "c" - }, - "prefix": { - "type": "string", - "format": "html-selector", - "description": "The prefix to apply to generated selectors.", - "alias": "p" - }, - "styleext": { - "description": "The file extension to be used for style files.", - "type": "string", - "default": "css" - }, - "spec": { - "type": "boolean", - "description": "Specifies if a spec file is generated.", - "default": true - }, - "flat": { - "type": "boolean", - "description": "Flag to indicate if a dir is created.", - "default": false - }, - "skipImport": { - "type": "boolean", - "description": "Flag to skip the module import.", - "default": false - }, - "selector": { - "type": "string", - "format": "html-selector", - "description": "The selector to use for the component." - }, - "module": { - "type": "string", - "description": "Allows specification of the declaring module.", - "alias": "m" - }, - "export": { - "type": "boolean", - "default": false, - "description": "Specifies if declaring module exports the component." - } - }, - "required": [ - "name" - ] -} diff --git a/angular_material_schematics-AqF82I/update/material/color.js b/angular_material_schematics-AqF82I/update/material/color.js deleted file mode 100644 index edc5bd3..0000000 --- a/angular_material_schematics-AqF82I/update/material/color.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const colorFns = { - 'b': chalk_1.bold, - 'g': chalk_1.green, - 'r': chalk_1.red, -}; -function color(message) { - // 'r{{text}}' with red 'text', 'g{{text}}' with green 'text', and 'b{{text}}' with bold 'text'. - return message.replace(/(.)\{\{(.*?)\}\}/g, (m, fnName, text) => { - const fn = colorFns[fnName]; - return fn ? fn(text) : text; - }); -} -exports.color = color; -//# sourceMappingURL=color.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/material/color.js.map b/angular_material_schematics-AqF82I/update/material/color.js.map deleted file mode 100644 index 6f7976a..0000000 --- a/angular_material_schematics-AqF82I/update/material/color.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"color.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/material/color.ts"],"names":[],"mappings":";;AAAA,iCAAuC;AAEvC,MAAM,QAAQ,GAAG;IACf,GAAG,EAAE,YAAI;IACT,GAAG,EAAE,aAAK;IACV,GAAG,EAAE,WAAG;CACT,CAAC;AAEF,eAAsB,OAAe;IACnC,gGAAgG;IAChG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE;QAC9D,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC5B,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC;AAND,sBAMC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/material/component-data.js b/angular_material_schematics-AqF82I/update/material/component-data.js deleted file mode 100644 index 14f32fc..0000000 --- a/angular_material_schematics-AqF82I/update/material/component-data.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function getChanges(allChanges) { - return allChanges.reduce((result, changes) => result.concat(changes.changes), []); -} -/** Export the class name data as part of a module. This means that the data is cached. */ -exports.classNames = getChanges(require('./data/class-names.json')); -/** Export the input names data as part of a module. This means that the data is cached. */ -exports.inputNames = getChanges(require('./data/input-names.json')); -/** Export the output names data as part of a module. This means that the data is cached. */ -exports.outputNames = getChanges(require('./data/output-names.json')); -/** Export the element selectors data as part of a module. This means that the data is cached. */ -exports.elementSelectors = getChanges(require('./data/element-selectors.json')); -/** Export the attribute selectors data as part of a module. This means that the data is cached. */ -exports.exportAsNames = getChanges(require('./data/export-as-names.json')); -/** Export the attribute selectors data as part of a module. This means that the data is cached. */ -exports.attributeSelectors = getChanges(require('./data/attribute-selectors.json')); -/** Export the property names as part of a module. This means that the data is cached. */ -exports.propertyNames = getChanges(require('./data/property-names.json')); -exports.methodCallChecks = getChanges(require('./data/method-call-checks.json')); -exports.cssNames = getChanges(require('./data/css-names.json')); -//# sourceMappingURL=component-data.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/material/component-data.js.map b/angular_material_schematics-AqF82I/update/material/component-data.js.map deleted file mode 100644 index 5992f6e..0000000 --- a/angular_material_schematics-AqF82I/update/material/component-data.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component-data.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/material/component-data.ts"],"names":[],"mappings":";;AAsGA,oBAAuB,UAAwB;IAC7C,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;AACpF,CAAC;AAED,0FAA0F;AAC7E,QAAA,UAAU,GAAG,UAAU,CAAwB,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC;AAEhG,2FAA2F;AAC9E,QAAA,UAAU,GAAG,UAAU,CAAwB,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC;AAEhG,4FAA4F;AAC/E,QAAA,WAAW,GAAG,UAAU,CAAyB,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC;AAEnG,iGAAiG;AACpF,QAAA,gBAAgB,GACzB,UAAU,CAA8B,OAAO,CAAC,+BAA+B,CAAC,CAAC,CAAC;AAEtF,mGAAmG;AACtF,QAAA,aAAa,GACtB,UAAU,CAA2B,OAAO,CAAC,6BAA6B,CAAC,CAAC,CAAC;AAEjF,mGAAmG;AACtF,QAAA,kBAAkB,GAC3B,UAAU,CAAgC,OAAO,CAAC,iCAAiC,CAAC,CAAC,CAAC;AAE1F,yFAAyF;AAC5E,QAAA,aAAa,GACtB,UAAU,CAA2B,OAAO,CAAC,4BAA4B,CAAC,CAAC,CAAC;AAEnE,QAAA,gBAAgB,GACzB,UAAU,CAAyB,OAAO,CAAC,gCAAgC,CAAC,CAAC,CAAC;AAErE,QAAA,QAAQ,GAAG,UAAU,CAAsB,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/material/data/attribute-selectors.json b/angular_material_schematics-AqF82I/update/material/data/attribute-selectors.json deleted file mode 100644 index 808fe83..0000000 --- a/angular_material_schematics-AqF82I/update/material/data/attribute-selectors.json +++ /dev/null @@ -1,15 +0,0 @@ -[ - { - "pr": "https://github.com/angular/material2/pull/10257", - "changes": [ - { - "replace": "cdkPortalHost", - "replaceWith": "cdkPortalOutlet" - }, - { - "replace": "portalHost", - "replaceWith": "cdkPortalOutlet" - } - ] - } -] diff --git a/angular_material_schematics-AqF82I/update/material/data/class-names.json b/angular_material_schematics-AqF82I/update/material/data/class-names.json deleted file mode 100644 index fe479bb..0000000 --- a/angular_material_schematics-AqF82I/update/material/data/class-names.json +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "pr": "https://github.com/angular/material2/pull/10161", - "changes": [ - { - "replace": "ConnectedOverlayDirective", - "replaceWith": "CdkConnectedOverlay" - }, - { - "replace": "OverlayOrigin", - "replaceWith": "CdkOverlayOrigin" - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10267", - "changes": [ - { - "replace": "ObserveContent", - "replaceWith": "CdkObserveContent" - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10291", - "changes": [ - { - "replace": "FloatPlaceholderType", - "replaceWith": "FloatLabelType" - }, - { - "replace": "MAT_PLACEHOLDER_GLOBAL_OPTIONS", - "replaceWith": "MAT_LABEL_GLOBAL_OPTIONS" - }, - { - "replace": "PlaceholderOptions", - "replaceWith": "LabelOptions" - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10325", - "changes": [ - { - "replace": "FocusTrapDirective", - "replaceWith": "CdkTrapFocus" - } - ] - } -] diff --git a/angular_material_schematics-AqF82I/update/material/data/css-names.json b/angular_material_schematics-AqF82I/update/material/data/css-names.json deleted file mode 100644 index 3fb7f69..0000000 --- a/angular_material_schematics-AqF82I/update/material/data/css-names.json +++ /dev/null @@ -1,85 +0,0 @@ -[ - { - "pr": "https://github.com/angular/material2/pull/10296", - "changes": [ - { - "replace": "mat-form-field-placeholder", - "replaceWith": "mat-form-field-label" - }, - { - "replace": "mat-form-field-placeholder-wrapper", - "replaceWith": "mat-form-field-label-wrapper" - }, - { - "replace": "mat-input-container", - "replaceWith": "mat-form-field" - }, - { - "replace": "mat-input-flex", - "replaceWith": "mat-form-field-flex" - }, - { - "replace": "mat-input-hint-spacer", - "replaceWith": "mat-form-field-hint-spacer" - }, - { - "replace": "mat-input-hint-wrapper", - "replaceWith": "mat-form-field-hint-wrapper" - }, - { - "replace": "mat-input-infix", - "replaceWith": "mat-form-field-infix" - }, - { - "replace": "mat-input-invalid", - "replaceWith": "mat-form-field-invalid" - }, - { - "replace": "mat-input-placeholder", - "replaceWith": "mat-form-field-label" - }, - { - "replace": "mat-input-placeholder-wrapper", - "replaceWith": "mat-form-field-label-wrapper" - }, - { - "replace": "mat-input-prefix", - "replaceWith": "mat-form-field-prefix" - }, - { - "replace": "mat-input-ripple", - "replaceWith": "mat-form-field-ripple" - }, - { - "replace": "mat-input-subscript-wrapper", - "replaceWith": "mat-form-field-subscript-wrapper" - }, - { - "replace": "mat-input-suffix", - "replaceWith": "mat-form-field-suffix" - }, - { - "replace": "mat-input-underline", - "replaceWith": "mat-form-field-underline" - }, - { - "replace": "mat-input-wrapper", - "replaceWith": "mat-form-field-wrapper" - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10325", - "changes": [ - { - "replace": "$mat-font-family", - "replaceWith": "Roboto, 'Helvetica Neue', sans-serif", - "whitelist": { - "css": true - } - } - ] - } -] diff --git a/angular_material_schematics-AqF82I/update/material/data/element-selectors.json b/angular_material_schematics-AqF82I/update/material/data/element-selectors.json deleted file mode 100644 index 6e801a2..0000000 --- a/angular_material_schematics-AqF82I/update/material/data/element-selectors.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "pr": "https://github.com/angular/material2/pull/10297", - "changes": [ - { - "replace": "mat-input-container", - "replaceWith": "mat-form-field" - } - ] - } -] diff --git a/angular_material_schematics-AqF82I/update/material/data/export-as-names.json b/angular_material_schematics-AqF82I/update/material/data/export-as-names.json deleted file mode 100644 index 0637a08..0000000 --- a/angular_material_schematics-AqF82I/update/material/data/export-as-names.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/material/data/input-names.json b/angular_material_schematics-AqF82I/update/material/data/input-names.json deleted file mode 100644 index 535ca34..0000000 --- a/angular_material_schematics-AqF82I/update/material/data/input-names.json +++ /dev/null @@ -1,203 +0,0 @@ -[ - { - "pr": "https://github.com/angular/material2/pull/10161", - "changes": [ - { - "replace": "origin", - "replaceWith": "cdkConnectedOverlayOrigin", - "whitelist": { - "attributes": ["cdk-connected-overlay", "connected-overlay", "cdkConnectedOverlay"] - } - }, - { - "replace": "positions", - "replaceWith": "cdkConnectedOverlayPositions", - "whitelist": { - "attributes": ["cdk-connected-overlay", "connected-overlay", "cdkConnectedOverlay"] - } - }, - { - "replace": "offsetX", - "replaceWith": "cdkConnectedOverlayOffsetX", - "whitelist": { - "attributes": ["cdk-connected-overlay", "connected-overlay", "cdkConnectedOverlay"] - } - }, - { - "replace": "offsetY", - "replaceWith": "cdkConnectedOverlayOffsetY", - "whitelist": { - "attributes": ["cdk-connected-overlay", "connected-overlay", "cdkConnectedOverlay"] - } - }, - { - "replace": "width", - "replaceWith": "cdkConnectedOverlayWidth", - "whitelist": { - "attributes": ["cdk-connected-overlay", "connected-overlay", "cdkConnectedOverlay"] - } - }, - { - "replace": "height", - "replaceWith": "cdkConnectedOverlayHeight", - "whitelist": { - "attributes": ["cdk-connected-overlay", "connected-overlay", "cdkConnectedOverlay"] - } - }, - { - "replace": "minWidth", - "replaceWith": "cdkConnectedOverlayMinWidth", - "whitelist": { - "attributes": ["cdk-connected-overlay", "connected-overlay", "cdkConnectedOverlay"] - } - }, - { - "replace": "minHeight", - "replaceWith": "cdkConnectedOverlayMinHeight", - "whitelist": { - "attributes": ["cdk-connected-overlay", "connected-overlay", "cdkConnectedOverlay"] - } - }, - { - "replace": "backdropClass", - "replaceWith": "cdkConnectedOverlayBackdropClass", - "whitelist": { - "attributes": ["cdk-connected-overlay", "connected-overlay", "cdkConnectedOverlay"] - } - }, - { - "replace": "scrollStrategy", - "replaceWith": "cdkConnectedOverlayScrollStrategy", - "whitelist": { - "attributes": ["cdk-connected-overlay", "connected-overlay", "cdkConnectedOverlay"] - } - }, - { - "replace": "open", - "replaceWith": "cdkConnectedOverlayOpen", - "whitelist": { - "attributes": ["cdk-connected-overlay", "connected-overlay", "cdkConnectedOverlay"] - } - }, - { - "replace": "hasBackdrop", - "replaceWith": "cdkConnectedOverlayHasBackdrop", - "whitelist": { - "attributes": ["cdk-connected-overlay", "connected-overlay", "cdkConnectedOverlay"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10218", - "changes": [ - { - "replace": "align", - "replaceWith": "labelPosition", - "whitelist": { - "elements": ["mat-radio-group", "mat-radio-button"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10279", - "changes": [ - { - "replace": "align", - "replaceWith": "position", - "whitelist": { - "elements": ["mat-drawer", "mat-sidenav"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10294", - "changes": [ - { - "replace": "dividerColor", - "replaceWith": "color", - "whitelist": { - "elements": ["mat-form-field"] - } - }, - { - "replace": "floatPlaceholder", - "replaceWith": "floatLabel", - "whitelist": { - "elements": ["mat-form-field"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10309", - "changes": [ - { - "replace": "mat-dynamic-height", - "replaceWith": "dynamicHeight", - "whitelist": { - "elements": ["mat-tab-group"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10342", - "changes": [ - { - "replace": "align", - "replaceWith": "labelPosition", - "whitelist": { - "elements": ["mat-checkbox"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10344", - "changes": [ - { - "replace": "tooltip-position", - "replaceWith": "matTooltipPosition", - "whitelist": { - "attributes": ["matTooltip"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10373", - "changes": [ - { - "replace": "thumb-label", - "replaceWith": "thumbLabel", - "whitelist": { - "elements": ["mat-slider"] - } - }, - { - "replace": "tick-interval", - "replaceWith": "tickInterval", - "whitelist": { - "elements": ["mat-slider"] - } - } - ] - } -] diff --git a/angular_material_schematics-AqF82I/update/material/data/method-call-checks.json b/angular_material_schematics-AqF82I/update/material/data/method-call-checks.json deleted file mode 100644 index b039655..0000000 --- a/angular_material_schematics-AqF82I/update/material/data/method-call-checks.json +++ /dev/null @@ -1,106 +0,0 @@ -[ - { - "pr": "https://github.com/angular/material2/pull/9190", - "changes": [ - { - "className": "NativeDateAdapter", - "method": "constructor", - "invalidArgCounts": [ - { - "count": 1, - "message": "\"g{{platform}}\" is now required as a second argument" - } - ] - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10319", - "changes": [ - { - "className": "MatAutocomplete", - "method": "constructor", - "invalidArgCounts": [ - { - "count": 2, - "message": "\"g{{default}}\" is now required as a third argument" - } - ] - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10325", - "changes": [ - { - "className": "FocusMonitor", - "method": "monitor", - "invalidArgCounts": [ - { - "count": 3, - "message": "The \"r{{renderer}}\" argument has been removed" - } - ] - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10344", - "changes": [ - { - "className": "MatTooltip", - "method": "constructor", - "invalidArgCounts": [ - { - "count": 11, - "message": "\"g{{_defaultOptions}}\" is now required as a twelfth argument" - } - ] - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10389", - "changes": [ - { - "className": "MatIconRegistry", - "method": "constructor", - "invalidArgCounts": [ - { - "count": 2, - "message": "\"g{{document}}\" is now required as a third argument" - } - ] - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/9775", - "changes": [ - { - "className": "MatCalendar", - "method": "constructor", - "invalidArgCounts": [ - { - "count": 6, - "message": "\"r{{_elementRef}}\" and \"r{{_ngZone}}\" arguments have been removed" - }, - { - "count": 7, - "message": "\"r{{_elementRef}}\", \"r{{_ngZone}}\", and \"r{{_dir}}\" arguments have been removed" - } - ] - } - ] - } -] diff --git a/angular_material_schematics-AqF82I/update/material/data/output-names.json b/angular_material_schematics-AqF82I/update/material/data/output-names.json deleted file mode 100644 index 5b68b8c..0000000 --- a/angular_material_schematics-AqF82I/update/material/data/output-names.json +++ /dev/null @@ -1,93 +0,0 @@ -[ - { - "pr": "https://github.com/angular/material2/pull/10163", - "changes": [ - { - "replace": "change", - "replaceWith": "selectionChange", - "whitelist": { - "elements": ["mat-select"] - } - }, - { - "replace": "onClose", - "replaceWith": "closed", - "whitelist": { - "elements": ["mat-select"] - } - }, - { - "replace": "onOpen", - "replaceWith": "opened", - "whitelist": { - "elements": ["mat-select"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10279", - "changes": [ - { - "replace": "align-changed", - "replaceWith": "positionChanged", - "whitelist": { - "elements": ["mat-drawer", "mat-sidenav"] - } - }, - { - "replace": "close", - "replaceWith": "closed", - "whitelist": { - "elements": ["mat-drawer", "mat-sidenav"] - } - }, - { - "replace": "open", - "replaceWith": "opened", - "whitelist": { - "elements": ["mat-drawer", "mat-sidenav"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10309", - "changes": [ - { - "replace": "selectChange", - "replaceWith": "selectedTabChange", - "whitelist": { - "elements": ["mat-tab-group"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10311", - "changes": [ - { - "replace": "remove", - "replaceWith": "removed", - "whitelist": { - "attributes": ["mat-chip", "mat-basic-chip"], - "elements": ["mat-chip", "mat-basic-chip"] - } - }, - { - "replace": "destroy", - "replaceWith": "destroyed", - "whitelist": { - "attributes": ["mat-chip", "mat-basic-chip"], - "elements": ["mat-chip", "mat-basic-chip"] - } - } - ] - } -] diff --git a/angular_material_schematics-AqF82I/update/material/data/property-names.json b/angular_material_schematics-AqF82I/update/material/data/property-names.json deleted file mode 100644 index 1e138a6..0000000 --- a/angular_material_schematics-AqF82I/update/material/data/property-names.json +++ /dev/null @@ -1,329 +0,0 @@ -[ - { - "pr": "https://github.com/angular/material2/pull/10161", - "changes": [ - { - "replace": "_deprecatedOrigin", - "replaceWith": "origin", - "whitelist": { - "classes": ["CdkConnectedOverlay", "ConnectedOverlayDirective"] - } - }, - { - "replace": "_deprecatedPositions", - "replaceWith": "positions", - "whitelist": { - "classes": ["CdkConnectedOverlay", "ConnectedOverlayDirective"] - } - }, - { - "replace": "_deprecatedOffsetX", - "replaceWith": "offsetX", - "whitelist": { - "classes": ["CdkConnectedOverlay", "ConnectedOverlayDirective"] - } - }, - { - "replace": "_deprecatedOffsetY", - "replaceWith": "offsetY", - "whitelist": { - "classes": ["CdkConnectedOverlay", "ConnectedOverlayDirective"] - } - }, - { - "replace": "_deprecatedWidth", - "replaceWith": "width", - "whitelist": { - "classes": ["CdkConnectedOverlay", "ConnectedOverlayDirective"] - } - }, - { - "replace": "_deprecatedHeight", - "replaceWith": "height", - "whitelist": { - "classes": ["CdkConnectedOverlay", "ConnectedOverlayDirective"] - } - }, - { - "replace": "_deprecatedMinWidth", - "replaceWith": "minWidth", - "whitelist": { - "classes": ["CdkConnectedOverlay", "ConnectedOverlayDirective"] - } - }, - { - "replace": "_deprecatedMinHeight", - "replaceWith": "minHeight", - "whitelist": { - "classes": ["CdkConnectedOverlay", "ConnectedOverlayDirective"] - } - }, - { - "replace": "_deprecatedBackdropClass", - "replaceWith": "backdropClass", - "whitelist": { - "classes": ["CdkConnectedOverlay", "ConnectedOverlayDirective"] - } - }, - { - "replace": "_deprecatedScrollStrategy", - "replaceWith": "scrollStrategy", - "whitelist": { - "classes": ["CdkConnectedOverlay", "ConnectedOverlayDirective"] - } - }, - { - "replace": "_deprecatedOpen", - "replaceWith": "open", - "whitelist": { - "classes": ["CdkConnectedOverlay", "ConnectedOverlayDirective"] - } - }, - { - "replace": "_deprecatedHasBackdrop", - "replaceWith": "hasBackdrop", - "whitelist": { - "classes": ["CdkConnectedOverlay", "ConnectedOverlayDirective"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10163", - "changes": [ - { - "replace": "change", - "replaceWith": "selectionChange", - "whitelist": { - "classes": ["MatSelect"] - } - }, - { - "replace": "onOpen", - "replaceWith": "openedChange.pipe(filter(isOpen => isOpen))", - "whitelist": { - "classes": ["MatSelect"] - } - }, - { - "replace": "onClose", - "replaceWith": "openedChange.pipe(filter(isOpen => !isOpen))", - "whitelist": { - "classes": ["MatSelect"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10218", - "changes": [ - { - "replace": "align", - "replaceWith": "labelPosition", - "whitelist": { - "classes": ["MatRadioGroup", "MatRadioButton"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10253", - "changes": [ - { - "replace": "extraClasses", - "replaceWith": "panelClass", - "whitelist": { - "classes": ["MatSnackBarConfig"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10257", - "changes": [ - { - "replace": "_deprecatedPortal", - "replaceWith": "portal", - "whitelist": { - "classes": ["CdkPortalOutlet"] - } - }, - { - "replace": "_deprecatedPortalHost", - "replaceWith": "portal", - "whitelist": { - "classes": ["CdkPortalOutlet"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10279", - "changes": [ - { - "replace": "align", - "replaceWith": "position", - "whitelist": { - "classes": ["MatDrawer", "MatSidenav"] - } - }, - { - "replace": "onAlignChanged", - "replaceWith": "onPositionChanged", - "whitelist": { - "classes": ["MatDrawer", "MatSidenav"] - } - }, - { - "replace": "onOpen", - "replaceWith": "openedChange.pipe(filter(isOpen => isOpen))", - "whitelist": { - "classes": ["MatDrawer", "MatSidenav"] - } - }, - { - "replace": "onClose", - "replaceWith": "openedChange.pipe(filter(isOpen => !isOpen))", - "whitelist": { - "classes": ["MatDrawer", "MatSidenav"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10293", - "changes": [ - { - "replace": "shouldPlaceholderFloat", - "replaceWith": "shouldLabelFloat", - "whitelist": { - "classes": ["MatFormFieldControl", "MatSelect"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10294", - "changes": [ - { - "replace": "dividerColor", - "replaceWith": "color", - "whitelist": { - "classes": ["MatFormField"] - } - }, - { - "replace": "floatPlaceholder", - "replaceWith": "floatLabel", - "whitelist": { - "classes": ["MatFormField"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10309", - "changes": [ - { - "replace": "selectChange", - "replaceWith": "selectedTabChange", - "whitelist": { - "classes": ["MatTabGroup"] - } - }, - { - "replace": "_dynamicHeightDeprecated", - "replaceWith": "dynamicHeight", - "whitelist": { - "classes": ["MatTabGroup"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10311", - "changes": [ - { - "replace": "destroy", - "replaceWith": "destroyed", - "whitelist": { - "classes": ["MatChip"] - } - }, - { - "replace": "onRemove", - "replaceWith": "removed", - "whitelist": { - "classes": ["MatChip"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10342", - "changes": [ - { - "replace": "align", - "replaceWith": "labelPosition", - "whitelist": { - "classes": ["MatCheckbox"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10344", - "changes": [ - { - "replace": "_positionDeprecated", - "replaceWith": "position", - "whitelist": { - "classes": ["MatTooltip"] - } - } - ] - }, - - - { - "pr": "https://github.com/angular/material2/pull/10373", - "changes": [ - { - "replace": "_thumbLabelDeprecated", - "replaceWith": "thumbLabel", - "whitelist": { - "classes": ["MatSlider"] - } - }, - { - "replace": "_tickIntervalDeprecated", - "replaceWith": "tickInterval", - "whitelist": { - "classes": ["MatSlider"] - } - } - ] - } -] diff --git a/angular_material_schematics-AqF82I/update/material/extra-stylsheets.js b/angular_material_schematics-AqF82I/update/material/extra-stylsheets.js deleted file mode 100644 index b7cc50a..0000000 --- a/angular_material_schematics-AqF82I/update/material/extra-stylsheets.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EXTRA_STYLESHEETS_GLOB_KEY = 'MD_EXTRA_STYLESHEETS_GLOB'; -//# sourceMappingURL=extra-stylsheets.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/material/extra-stylsheets.js.map b/angular_material_schematics-AqF82I/update/material/extra-stylsheets.js.map deleted file mode 100644 index f7eabea..0000000 --- a/angular_material_schematics-AqF82I/update/material/extra-stylsheets.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"extra-stylsheets.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/material/extra-stylsheets.ts"],"names":[],"mappings":";;AAAa,QAAA,0BAA0B,GAAG,2BAA2B,CAAC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/material/typescript-specifiers.js b/angular_material_schematics-AqF82I/update/material/typescript-specifiers.js deleted file mode 100644 index 4c026bd..0000000 --- a/angular_material_schematics-AqF82I/update/material/typescript-specifiers.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const imports_1 = require("../typescript/imports"); -/** Name of the Angular Material module specifier. */ -exports.materialModuleSpecifier = '@angular/material'; -/** Name of the Angular CDK module specifier. */ -exports.cdkModuleSpecifier = '@angular/cdk'; -/** Whether the specified node is part of an Angular Material import declaration. */ -function isMaterialImportDeclaration(node) { - return isMaterialDeclaration(imports_1.getImportDeclaration(node)); -} -exports.isMaterialImportDeclaration = isMaterialImportDeclaration; -/** Whether the specified node is part of an Angular Material export declaration. */ -function isMaterialExportDeclaration(node) { - return imports_1.getExportDeclaration(imports_1.getImportDeclaration(node)); -} -exports.isMaterialExportDeclaration = isMaterialExportDeclaration; -/** Whether the declaration is part of Angular Material. */ -function isMaterialDeclaration(declaration) { - const moduleSpecifier = declaration.moduleSpecifier.getText(); - return moduleSpecifier.indexOf(exports.materialModuleSpecifier) !== -1 || - moduleSpecifier.indexOf(exports.cdkModuleSpecifier) !== -1; -} -//# sourceMappingURL=typescript-specifiers.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/material/typescript-specifiers.js.map b/angular_material_schematics-AqF82I/update/material/typescript-specifiers.js.map deleted file mode 100644 index 6c8cb1b..0000000 --- a/angular_material_schematics-AqF82I/update/material/typescript-specifiers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typescript-specifiers.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/material/typescript-specifiers.ts"],"names":[],"mappings":";;AACA,mDAAiF;AAEjF,qDAAqD;AACxC,QAAA,uBAAuB,GAAG,mBAAmB,CAAC;AAE3D,gDAAgD;AACnC,QAAA,kBAAkB,GAAG,cAAc,CAAC;AAEjD,oFAAoF;AACpF,qCAA4C,IAAa;IACvD,MAAM,CAAC,qBAAqB,CAAC,8BAAoB,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3D,CAAC;AAFD,kEAEC;AAED,oFAAoF;AACpF,qCAA4C,IAAa;IACvD,MAAM,CAAC,8BAAoB,CAAC,8BAAoB,CAAC,IAAI,CAAC,CAAC,CAAC;AAC1D,CAAC;AAFD,kEAEC;AAED,2DAA2D;AAC3D,+BAA+B,WAAwD;IACrF,MAAM,eAAe,GAAG,WAAW,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;IAC9D,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,+BAAuB,CAAC,KAAK,CAAC,CAAC;QAC1D,eAAe,CAAC,OAAO,CAAC,0BAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;AACzD,CAAC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkClassDeclarationMiscRule.js b/angular_material_schematics-AqF82I/update/rules/checkClassDeclarationMiscRule.js deleted file mode 100644 index 9748999..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkClassDeclarationMiscRule.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -/** - * Rule that walks through every identifier that is part of Angular Material and replaces the - * outdated name with the new one. - */ -class Rule extends tslint_1.Rules.TypedRule { - applyWithProgram(sourceFile, program) { - return this.applyWithWalker(new CheckClassDeclarationMiscWalker(sourceFile, this.getOptions(), program)); - } -} -exports.Rule = Rule; -class CheckClassDeclarationMiscWalker extends tslint_1.ProgramAwareRuleWalker { - visitClassDeclaration(declaration) { - if (declaration.heritageClauses) { - declaration.heritageClauses.forEach(hc => { - const classes = new Set(hc.types.map(t => t.getFirstToken().getText())); - if (classes.has('MatFormFieldControl')) { - const sfl = declaration.members - .filter(prop => prop.getFirstToken().getText() === 'shouldFloatLabel'); - if (!sfl.length && declaration.name) { - this.addFailureAtNode(declaration, `Found class "${chalk_1.bold(declaration.name.text)}" which extends` + - ` "${chalk_1.bold('MatFormFieldControl')}". This class must define` + - ` "${chalk_1.green('shouldLabelFloat')}" which is now a required property.`); - } - } - }); - } - } -} -exports.CheckClassDeclarationMiscWalker = CheckClassDeclarationMiscWalker; -//# sourceMappingURL=checkClassDeclarationMiscRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkClassDeclarationMiscRule.js.map b/angular_material_schematics-AqF82I/update/rules/checkClassDeclarationMiscRule.js.map deleted file mode 100644 index 982aee2..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkClassDeclarationMiscRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"checkClassDeclarationMiscRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/checkClassDeclarationMiscRule.ts"],"names":[],"mappings":";;AAAA,iCAAkC;AAClC,mCAAkE;AAGlE;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,SA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ifierMiscRule.js b/angular_material_schematics-AqF82I/update/rules/checkIdentifierMiscRule.js deleted file mode 100644 index 285e4b9..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkIdentifierMiscRule.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -/** - * Rule that walks through every identifier that is part of Angular Material and replaces the - * outdated name with the new one. - */ -class Rule extends tslint_1.Rules.TypedRule { - applyWithProgram(sourceFile, program) { - return this.applyWithWalker(new CheckIdentifierMiscWalker(sourceFile, this.getOptions(), program)); - } -} -exports.Rule = Rule; -class CheckIdentifierMiscWalker extends tslint_1.ProgramAwareRuleWalker { - visitIdentifier(identifier) { - if (identifier.getText() === 'MatDrawerToggleResult') { - this.addFailureAtNode(identifier, `Found "${chalk_1.bold('MatDrawerToggleResult')}" which has changed from a class type to a` + - ` string literal type. Code may need to be updated`); - } - if (identifier.getText() === 'MatListOptionChange') { - this.addFailureAtNode(identifier, `Found usage of "${chalk_1.red('MatListOptionChange')}" which has been removed. Please listen` + - ` for ${chalk_1.bold('selectionChange')} on ${chalk_1.bold('MatSelectionList')} instead`); - } - } -} -exports.CheckIdentifierMiscWalker = CheckIdentifierMiscWalker; -//# sourceMappingURL=checkIdentifierMiscRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkIdentifierMiscRule.js.map b/angular_material_schematics-AqF82I/update/rules/checkIdentifierMiscRule.js.map deleted file mode 100644 index fe3a81c..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkIdentifierMiscRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"checkIdentifierMiscRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/checkIdentifierMiscRule.ts"],"names":[],"mappings":";;AAAA,iCAAgC;AAChC,mCAAkE;AAGlE;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,SAAS;IACvC,gBAAgB,CAAC,UAAyB,EAAE,OAAmB;QAC7D,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,yBAAyB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7E,CAAC;CACF;AALD,oBAKC;AAED,+BAAuC,SAAQ,+BAAsB;IACnE,eAAe,CAAC,UAAyB;QACvC,EAAE,CAAC,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,uBAAuB,CAAC,CAAC,CAAC;YACrD,IAAI,CAAC,gBAAgB,CACjB,UAAU,EACV,UAAU,YAAI,CAAC,uBAAuB,CAAC,4CAA4C;gBACnF,mDAAmD,CAAC,CAAC;QAC3D,CAAC;QAED,EAAE,CAAC,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,qBAAqB,CAAC,CAAC,CAAC;YACnD,IAAI,CAAC,gBAAgB,CACjB,UAAU,EACV,mBAAmB,WAAG,CAAC,qBAAqB,CAAC,yCAAyC;gBACtF,QAAQ,YAAI,CAAC,iBAAiB,CAAC,OAAO,YAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAChF,CAAC;IACH,CAAC;CACF;AAhBD,8DAgBC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkImportMiscRule.js b/angular_material_schematics-AqF82I/update/rules/checkImportMiscRule.js deleted file mode 100644 index aa17e9a..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkImportMiscRule.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const typescript_specifiers_1 = require("../material/typescript-specifiers"); -/** - * Rule that walks through every identifier that is part of Angular Material and replaces the - * outdated name with the new one. - */ -class Rule extends tslint_1.Rules.TypedRule { - applyWithProgram(sourceFile, program) { - return this.applyWithWalker(new CheckImportMiscWalker(sourceFile, this.getOptions(), program)); - } -} -exports.Rule = Rule; -class CheckImportMiscWalker extends tslint_1.ProgramAwareRuleWalker { - visitImportDeclaration(declaration) { - if (typescript_specifiers_1.isMaterialImportDeclaration(declaration)) { - declaration.importClause.namedBindings.forEachChild(n => { - let importName = n.getFirstToken() && n.getFirstToken().getText(); - if (importName === 'SHOW_ANIMATION' || importName === 'HIDE_ANIMATION') { - this.addFailureAtNode(n, `Found deprecated symbol "${chalk_1.red(importName)}" which has been removed`); - } - }); - } - } -} -exports.CheckImportMiscWalker = CheckImportMiscWalker; -//# sourceMappingURL=checkImportMiscRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkImportMiscRule.js.map b/angular_material_schematics-AqF82I/update/rules/checkImportMiscRule.js.map deleted file mode 100644 index 1de9b19..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkImportMiscRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"checkImportMiscRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/checkImportMiscRule.ts"],"names":[],"mappings":";;AAAA,iCAAuC;AACvC,mCAAkE;AAElE,6EAA8E;AAE9E;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,SAAS;IACvC,gBAAgB,CAAC,UAAyB,EAAE,OAAmB;QAC7D,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,qBAAqB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;IACjG,CAAC;CACF;AAJD,oBAIC;AAED,2BAAmC,SAAQ,+BAAsB;IAC/D,sBAAsB,CAAC,WAAiC;QACtD,EAAE,CAAC,CAAC,mDAA2B,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YAC7C,WAAW,CAAC,YAAY,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;gBACtD,IAAI,UAAU,GAAG,CAAC,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,CAAC;gBAClE,EAAE,CAAC,CAAC,UAAU,KAAK,gBAAgB,IAAI,UAAU,KAAK,gBAAgB,CAAC,CAAC,CAAC;oBACvE,IAAI,CAAC,gBAAgB,CACjB,CAAC,EACD,4BAA4B,WAAG,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC;gBAC7E,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AAbD,sDAaC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkInheritanceRule.js b/angular_material_schematics-AqF82I/update/rules/checkInheritanceRule.js deleted file mode 100644 index 7c6834a..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkInheritanceRule.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const component_data_1 = require("../material/component-data"); -/** - * Rule that walks through every property access expression and updates properties that have - * been changed in favor of the new name. - */ -class Rule extends tslint_1.Rules.TypedRule { - applyWithProgram(sourceFile, program) { - return this.applyWithWalker(new CheckInheritanceWalker(sourceFile, this.getOptions(), program)); - } -} -exports.Rule = Rule; -class CheckInheritanceWalker extends tslint_1.ProgramAwareRuleWalker { - visitClassDeclaration(declaration) { - // Check if user is extending an Angular Material class whose properties have changed. - const type = this.getTypeChecker().getTypeAtLocation(declaration.name); - const baseTypes = this.getTypeChecker().getBaseTypes(type); - baseTypes.forEach(t => { - const propertyData = component_data_1.propertyNames.find(data => data.whitelist && new Set(data.whitelist.classes).has(t.symbol.name)); - if (propertyData) { - this.addFailureAtNode(declaration, `Found class "${chalk_1.bold(declaration.name.text)}" which extends class` + - ` "${chalk_1.bold(t.symbol.name)}". Please note that the base class property` + - ` "${chalk_1.red(propertyData.replace)}" has changed to "${chalk_1.green(propertyData.replaceWith)}".` + - ` You may need to update your class as well`); - } - }); - } -} -exports.CheckInheritanceWalker = CheckInheritanceWalker; -//# sourceMappingURL=checkInheritanceRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkInheritanceRule.js.map b/angular_material_schematics-AqF82I/update/rules/checkInheritanceRule.js.map deleted file mode 100644 index bf849e6..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkInheritanceRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"checkInheritanceRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/checkInheritanceRule.ts"],"names":[],"mappings":";;AAAA,iCAAuC;AACvC,mCAAkE;AAElE,+DAAyD;AAEzD;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,SAAS;IACvC,gBAAgB,CAAC,UAAyB,EAAE,OAAmB;QAC7D,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,sBAAsB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AALD,oBAKC;AAED,4BAAoC,SAAQ,+BAAsB;IAChE,qBAAqB,CAAC,WAAgC;QACpD,sFAAsF;QACtF,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC,iBAAiB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACvE,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC,YAAY,CAAC,IAAwB,CAAC,CAAC;QAC/E,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YACpB,MAAM,YAAY,GAAG,8BAAa,CAAC,IAAI,CACnC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YAClF,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;gBACjB,IAAI,CAAC,gBAAgB,CACjB,WAAW,EACX,gBAAgB,YAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB;oBAClE,KAAK,YAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,6CAA6C;oBACrE,KAAK,WAAG,CAAC,YAAY,CAAC,OAAO,CAAC,qBAAqB,aAAK,CAAC,YAAY,CAAC,WAAW,CAAC,IAAI;oBACtF,4CAA4C,CAAC,CAAC;YACpD,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAlBD,wDAkBC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkMethodCallsRule.js b/angular_material_schematics-AqF82I/update/rules/checkMethodCallsRule.js deleted file mode 100644 index d364e64..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkMethodCallsRule.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const ts = require("typescript"); -const color_1 = require("../material/color"); -const component_data_1 = require("../material/component-data"); -/** - * Rule that walks through every property access expression and updates properties that have - * been changed in favor of the new name. - */ -class Rule extends tslint_1.Rules.TypedRule { - applyWithProgram(sourceFile, program) { - return this.applyWithWalker(new CheckMethodCallsWalker(sourceFile, this.getOptions(), program)); - } -} -exports.Rule = Rule; -class CheckMethodCallsWalker extends tslint_1.ProgramAwareRuleWalker { - visitNewExpression(expression) { - const symbol = this.getTypeChecker().getTypeAtLocation(expression).symbol; - if (symbol) { - const className = symbol.name; - this.checkConstructor(expression, className); - } - } - visitCallExpression(expression) { - if (expression.expression.kind !== ts.SyntaxKind.PropertyAccessExpression) { - const methodName = expression.getFirstToken().getText(); - if (methodName === 'super') { - const type = this.getTypeChecker().getTypeAtLocation(expression.expression); - const className = type.symbol && type.symbol.name; - if (className) { - this.checkConstructor(expression, className); - } - } - return; - } - // TODO(mmalerba): This is probably a bad way to get the class node... - // Tokens are: [..., , '.', ], so back up 3. - const accessExp = expression.expression; - const classNode = accessExp.getChildAt(accessExp.getChildCount() - 3); - const methodNode = accessExp.getChildAt(accessExp.getChildCount() - 1); - const methodName = methodNode.getText(); - const type = this.getTypeChecker().getTypeAtLocation(classNode); - const className = type.symbol && type.symbol.name; - const currentCheck = component_data_1.methodCallChecks - .find(data => data.method === methodName && data.className === className); - if (!currentCheck) { - return; - } - const failure = currentCheck.invalidArgCounts - .find(countData => countData.count === expression.arguments.length); - if (failure) { - this.addFailureAtNode(expression, `Found call to "${chalk_1.bold(className + '.' + methodName)}" with` + - ` ${chalk_1.bold(String(failure.count))} arguments. ${color_1.color(failure.message)}`); - } - } - checkConstructor(node, className) { - const currentCheck = component_data_1.methodCallChecks - .find(data => data.method === 'constructor' && data.className === className); - if (!currentCheck) { - return; - } - const failure = currentCheck.invalidArgCounts - .find(countData => !!node.arguments && countData.count === node.arguments.length); - if (failure) { - this.addFailureAtNode(node, `Found "${chalk_1.bold(className)}" constructed with ${chalk_1.bold(String(failure.count))} arguments.` + - ` ${color_1.color(failure.message)}`); - } - } -} -exports.CheckMethodCallsWalker = CheckMethodCallsWalker; -//# sourceMappingURL=checkMethodCallsRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkMethodCallsRule.js.map b/angular_material_schematics-AqF82I/update/rules/checkMethodCallsRule.js.map deleted file mode 100644 index 510abaf..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkMethodCallsRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"checkMethodCallsRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/checkMethodCallsRule.ts"],"names":[],"mappings":";;AAAA,iCAA2B;AAC3B,mCAAkE;AAClE,iCAAiC;AACjC,6CAAwC;AACxC,+DAA4D;AAE5D;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,SAAS;IACvC,gBAAgB,CAAC,UAAyB,EAAE,OAAmB;QAC7D,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,sBAAsB,CAAC,UAAU,EAAE,IAAI,CA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C,CAAC,CAAC;YAClB,MAAM,CAAC;QACT,CAAC;QAED,MAAM,OAAO,GAAG,YAAY,CAAC,gBAAgB;aACxC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACtF,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACZ,IAAI,CAAC,gBAAgB,CACjB,IAAI,EACJ,UAAU,YAAI,CAAC,SAAS,CAAC,sBAAsB,YAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,aAAa;gBACvF,IAAI,aAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;CACF;AAhED,wDAgEC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkPropertyAccessMiscRule.js b/angular_material_schematics-AqF82I/update/rules/checkPropertyAccessMiscRule.js deleted file mode 100644 index 5863a49..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkPropertyAccessMiscRule.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const ts = require("typescript"); -/** - * Rule that walks through every identifier that is part of Angular Material and replaces the - * outdated name with the new one. - */ -class Rule extends tslint_1.Rules.TypedRule { - applyWithProgram(sourceFile, program) { - return this.applyWithWalker(new CheckPropertyAccessMiscWalker(sourceFile, this.getOptions(), program)); - } -} -exports.Rule = Rule; -class CheckPropertyAccessMiscWalker extends tslint_1.ProgramAwareRuleWalker { - visitPropertyAccessExpression(prop) { - // Recursively call this method for the expression of the current property expression. - // It can happen that there is a chain of property access expressions. - // For example: "mySortInstance.mdSortChange.subscribe()" - if (prop.expression && prop.expression.kind === ts.SyntaxKind.PropertyAccessExpression) { - this.visitPropertyAccessExpression(prop.expression); - } - // TODO(mmalerba): This is probably a bad way to get the property host... - // Tokens are: [..., , '.', ], so back up 3. - const propHost = prop.getChildAt(prop.getChildCount() - 3); - const type = this.getTypeChecker().getTypeAtLocation(propHost); - const typeSymbol = type && type.getSymbol(); - if (typeSymbol) { - const typeName = typeSymbol.getName(); - if (typeName === 'MatListOption' && prop.name.text === 'selectionChange') { - this.addFailureAtNode(prop, `Found deprecated property "${chalk_1.red('selectionChange')}" of class` + - ` "${chalk_1.bold('MatListOption')}". Use the "${chalk_1.green('selectionChange')}" property on the` + - ` parent "${chalk_1.bold('MatSelectionList')}" instead.`); - } - if (typeName === 'MatDatepicker' && prop.name.text === 'selectedChanged') { - this.addFailureAtNode(prop, `Found deprecated property "${chalk_1.red('selectedChanged')}" of class` + - ` "${chalk_1.bold('MatDatepicker')}". Use the "${chalk_1.green('dateChange')}" or` + - ` "${chalk_1.green('dateInput')}" methods on "${chalk_1.bold('MatDatepickerInput')}" instead`); - } - } - } -} -exports.CheckPropertyAccessMiscWalker = CheckPropertyAccessMiscWalker; -//# sourceMappingURL=checkPropertyAccessMiscRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkPropertyAccessMiscRule.js.map b/angular_material_schematics-AqF82I/update/rules/checkPropertyAccessMiscRule.js.map deleted file mode 100644 index 0471582..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkPropertyAccessMiscRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"checkPropertyAccessMiscRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/checkPropertyAccessMiscRule.ts"],"names":[],"mappings":";;AAAA,iCAAuC;AACvC,mCAAkE;AAClE,iCAAiC;AAEjC;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,SAAS;IACvC,gBAAgB,CAAC,UAAyB,EAAE,OAAmB;QAC7D,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,6BAA6B,CAAC,UAAU,EAAE,IAAI,CAAC,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,IAAI,CAAC,gBAAgB,CACjB,IAAI,EACJ,8BAA8B,WAAG,CAAC,iBAAiB,CAAC,YAAY;oBAChE,KAAK,YAAI,CAAC,eAAe,CAAC,eAAe,aAAK,CAAC,YAAY,CAAC,MAAM;oBAClE,KAAK,aAAK,CAAC,WAAW,CAAC,iBAAiB,YAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;YACrF,CAAC;QACH,CAAC;IACH,CAAC;CACF;AApCD,sEAoCC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkTemplateMiscRule.js b/angular_material_schematics-AqF82I/update/rules/checkTemplateMiscRule.js deleted file mode 100644 index 251a057..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkTemplateMiscRule.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const component_walker_1 = require("../tslint/component-walker"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every component decorator and updates their inline or external - * templates. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new CheckTemplateMiscWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class CheckTemplateMiscWalker extends component_walker_1.ComponentWalker { - visitInlineTemplate(template) { - this.checkTemplate(template.getText()).forEach(failure => { - const ruleFailure = new tslint_1.RuleFailure(template.getSourceFile(), failure.start, failure.end, failure.message, this.getRuleName()); - this.addFailure(ruleFailure); - }); - } - visitExternalTemplate(template) { - this.checkTemplate(template.getFullText()).forEach(failure => { - const ruleFailure = new tslint_1.RuleFailure(template, failure.start + 1, failure.end + 1, failure.message, this.getRuleName()); - this.addFailure(ruleFailure); - }); - } - /** - * Replaces the outdated name in the template with the new one and returns an updated template. - */ - checkTemplate(templateContent) { - let failures = []; - failures = failures.concat(literal_1.findAll(templateContent, 'cdk-focus-trap').map(offset => ({ - start: offset, - end: offset + 'cdk-focus-trap'.length, - message: `Found deprecated element selector "${chalk_1.red('cdk-focus-trap')}" which has been` + - ` changed to an attribute selector "${chalk_1.green('[cdkTrapFocus]')}"` - }))); - failures = failures.concat(literal_1.findAllOutputsInElWithTag(templateContent, 'selectionChange', ['mat-list-option']) - .map(offset => ({ - start: offset, - end: offset + 'selectionChange'.length, - message: `Found deprecated @Output() "${chalk_1.red('selectionChange')}" on` + - ` "${chalk_1.bold('mat-list-option')}". Use "${chalk_1.green('selectionChange')}" on` + - ` "${chalk_1.bold('mat-selection-list')}" instead` - }))); - failures = failures.concat(literal_1.findAllOutputsInElWithTag(templateContent, 'selectedChanged', ['mat-datepicker']) - .map(offset => ({ - start: offset, - end: offset + 'selectionChange'.length, - message: `Found deprecated @Output() "${chalk_1.red('selectedChanged')}" on` + - ` "${chalk_1.bold('mat-datepicker')}". Use "${chalk_1.green('dateChange')}" or` + - ` "${chalk_1.green('dateInput')}" on "${chalk_1.bold('')}" instead` - }))); - failures = failures.concat(literal_1.findAllInputsInElWithTag(templateContent, 'selected', ['mat-button-toggle-group']) - .map(offset => ({ - start: offset, - end: offset + 'selected'.length, - message: `Found deprecated @Input() "${chalk_1.red('selected')}" on` + - ` "${chalk_1.bold('mat-radio-button-group')}". Use "${chalk_1.green('value')}" instead` - }))); - return failures; - } -} -exports.CheckTemplateMiscWalker = CheckTemplateMiscWalker; -//# sourceMappingURL=checkTemplateMiscRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/checkTemplateMiscRule.js.map b/angular_material_schematics-AqF82I/update/rules/checkTemplateMiscRule.js.map deleted file mode 100644 index a4396ad..0000000 --- a/angular_material_schematics-AqF82I/update/rules/checkTemplateMiscRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"checkTemplateMiscRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/checkTemplateMiscRule.ts"],"names":[],"mappings":";;AAAA,iCAAuC;AACvC,mCAA0C;AAG1C,iEAA2D;AAC3D,mDA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Ae,EAAE,UAAU,EAAE,CAAC,yBAAyB,CAAC,CAAC;aAC7E,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACd,KAAK,EAAE,MAAM;YACb,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM;YAC/B,OAAO,EAAE,8BAA8B,WAAG,CAAC,UAAU,CAAC,MAAM;gBACxD,KAAK,YAAI,CAAC,wBAAwB,CAAC,WAAW,aAAK,CAAC,OAAO,CAAC,WAAW;SAC5E,CAAC,CAAC,CAAC,CAAC;QAEb,MAAM,CAAC,QAAQ,CAAC;IAClB,CAAC;CACF;AA9DD,0DA8DC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchIdentifiersRule.js b/angular_material_schematics-AqF82I/update/rules/switchIdentifiersRule.js deleted file mode 100644 index e8a6c1c..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchIdentifiersRule.js +++ /dev/null @@ -1,101 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const path_1 = require("path"); -const tslint_1 = require("tslint"); -const ts = require("typescript"); -const component_data_1 = require("../material/component-data"); -const typescript_specifiers_1 = require("../material/typescript-specifiers"); -const identifiers_1 = require("../typescript/identifiers"); -const imports_1 = require("../typescript/imports"); -/** - * Rule that walks through every identifier that is part of Angular Material and replaces the - * outdated name with the new one. - */ -class Rule extends tslint_1.Rules.TypedRule { - applyWithProgram(sourceFile, program) { - return this.applyWithWalker(new SwitchIdentifiersWalker(sourceFile, this.getOptions(), program)); - } -} -exports.Rule = Rule; -class SwitchIdentifiersWalker extends tslint_1.ProgramAwareRuleWalker { - constructor(sf, opt, prog) { - super(sf, opt, prog); - /** List of Angular Material declarations inside of the current source file. */ - this.materialDeclarations = []; - /** List of Angular Material namespace declarations in the current source file. */ - this.materialNamespaceDeclarations = []; - } - /** Method that is called for every identifier inside of the specified project. */ - visitIdentifier(identifier) { - // Store Angular Material namespace identifers in a list of declarations. - // Namespace identifiers can be: `import * as md from '@angular/material';` - this._storeNamespaceImports(identifier); - // For identifiers that aren't listed in the className data, the whole check can be - // skipped safely. - if (!component_data_1.classNames.some(data => data.replace === identifier.text)) { - return; - } - const symbol = identifiers_1.getOriginalSymbolFromNode(identifier, this.getTypeChecker()); - // If the symbol is not defined or could not be resolved, just skip the following identifier - // checks. - if (!symbol || !symbol.name || symbol.name === 'unknown') { - console.error(`Could not resolve symbol for identifier "${identifier.text}" ` + - `in file ${this._getRelativeFileName()}`); - return; - } - // For export declarations that are referring to Angular Material, the identifier should be - // switched to the new name. - if (imports_1.isExportSpecifierNode(identifier) && typescript_specifiers_1.isMaterialExportDeclaration(identifier)) { - return this.createIdentifierFailure(identifier, symbol); - } - // For import declarations that are referring to Angular Material, the value declarations - // should be stored so that other identifiers in the file can be compared. - if (imports_1.isImportSpecifierNode(identifier) && typescript_specifiers_1.isMaterialImportDeclaration(identifier)) { - this.materialDeclarations.push(symbol.valueDeclaration); - } - else if (this.materialDeclarations.indexOf(symbol.valueDeclaration) === -1 && - !this._isIdentifierFromNamespace(identifier)) { - return; - } - return this.createIdentifierFailure(identifier, symbol); - } - /** Creates a failure and replacement for the specified identifier. */ - createIdentifierFailure(identifier, symbol) { - let classData = component_data_1.classNames.find(data => data.replace === symbol.name || data.replace === identifier.text); - if (!classData) { - console.error(`Could not find updated name for identifier "${identifier.getText()}" in ` + - ` in file ${this._getRelativeFileName()}.`); - return; - } - const replacement = this.createReplacement(identifier.getStart(), identifier.getWidth(), classData.replaceWith); - this.addFailureAtNode(identifier, `Found deprecated identifier "${chalk_1.red(classData.replace)}" which has been renamed to` + - ` "${chalk_1.green(classData.replaceWith)}"`, replacement); - } - /** Checks namespace imports from Angular Material and stores them in a list. */ - _storeNamespaceImports(identifier) { - // In some situations, developers will import Angular Material completely using a namespace - // import. This is not recommended, but should be still handled in the migration tool. - if (imports_1.isNamespaceImportNode(identifier) && typescript_specifiers_1.isMaterialImportDeclaration(identifier)) { - const symbol = identifiers_1.getOriginalSymbolFromNode(identifier, this.getTypeChecker()); - if (symbol) { - return this.materialNamespaceDeclarations.push(symbol.valueDeclaration); - } - } - } - /** Checks whether the given identifier is part of the Material namespace. */ - _isIdentifierFromNamespace(identifier) { - if (identifier.parent && identifier.parent.kind !== ts.SyntaxKind.PropertyAccessExpression) { - return; - } - const propertyExpression = identifier.parent; - const expressionSymbol = identifiers_1.getOriginalSymbolFromNode(propertyExpression.expression, this.getTypeChecker()); - return this.materialNamespaceDeclarations.indexOf(expressionSymbol.valueDeclaration) !== -1; - } - /** Returns the current source file path relative to the root directory of the project. */ - _getRelativeFileName() { - return path_1.relative(this.getProgram().getCurrentDirectory(), this.getSourceFile().fileName); - } -} -exports.SwitchIdentifiersWalker = SwitchIdentifiersWalker; -//# sourceMappingURL=switchIdentifiersRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchIdentifiersRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchIdentifiersRule.js.map deleted file mode 100644 index 2f5d07e..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchIdentifiersRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchIdentifiersRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchIdentifiersRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,+BAA8B;AAC9B,mCAAkE;AAClE,iCAAiC;AACjC,+DAAsD;AACtD,6EAG2C;AAC3C,2DAAoE;AACpE,mDAI+B;AAE/B;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,SAAS;IACvC,gBAAgB,CAAC,UAAyB,EAAE,OAAmB;QAC7D,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,uBAAuB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3E,CAAC;CACF;AALD,oBAKC;AAED,6BAAqC,SAAQ,+BAAsB;IACjE,YAAY,EAAE,EAAE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AA2F;QAC3F,sFAAsF;QACtF,EAAE,CAAC,CAAC,+BAAqB,CAAC,UAAU,CAAC,IAAI,mDAA2B,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACjF,MAAM,MAAM,GAAG,uCAAyB,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;YAE5E,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;gBACX,MAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;YAC1E,CAAC;QACH,CAAC;IACH,CAAC;IAED,6EAA6E;IACrE,0BAA0B,CAAC,UAAyB;QAC1D,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC,CAAC;YAC3F,MAAM,CAAC;QACT,CAAC;QAED,MAAM,kBAAkB,GAAG,UAAU,CAAC,MAAqC,CAAC;QAC5E,MAAM,gBAAgB,GAAG,uCAAyB,CAAC,kBAAkB,CAAC,UAAU,EAC5E,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;QAE3B,MAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9F,CAAC;IAED,0FAA0F;IAClF,oBAAoB;QAC1B,MAAM,CAAC,eAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,mBAAmB,EAAE,EAAE,IAAI,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC1F,CAAC;CACF;AA3GD,0DA2GC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchPropertyNamesRule.js b/angular_material_schematics-AqF82I/update/rules/switchPropertyNamesRule.js deleted file mode 100644 index 1086439..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchPropertyNamesRule.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const ts = require("typescript"); -const component_data_1 = require("../material/component-data"); -/** - * Rule that walks through every property access expression and updates properties that have - * been changed in favor of the new name. - */ -class Rule extends tslint_1.Rules.TypedRule { - applyWithProgram(sourceFile, program) { - return this.applyWithWalker(new SwitchPropertyNamesWalker(sourceFile, this.getOptions(), program)); - } -} -exports.Rule = Rule; -class SwitchPropertyNamesWalker extends tslint_1.ProgramAwareRuleWalker { - visitPropertyAccessExpression(prop) { - // Recursively call this method for the expression of the current property expression. - // It can happen that there is a chain of property access expressions. - // For example: "mySortInstance.mdSortChange.subscribe()" - if (prop.expression && prop.expression.kind === ts.SyntaxKind.PropertyAccessExpression) { - this.visitPropertyAccessExpression(prop.expression); - } - // TODO(mmalerba): This is prrobably a bad way to get the property host... - // Tokens are: [..., , '.', ], so back up 3. - const propHost = prop.getChildAt(prop.getChildCount() - 3); - const type = this.getTypeChecker().getTypeAtLocation(propHost); - const typeSymbol = type && type.getSymbol(); - const typeName = typeSymbol && typeSymbol.getName(); - const propertyData = component_data_1.propertyNames.find(name => { - if (prop.name.text === name.replace) { - // TODO(mmalerba): Verify that this type comes from Angular Material like we do in - // `switchIdentifiersRule`. - return !name.whitelist || !!typeName && new Set(name.whitelist.classes).has(typeName); - } - return false; - }); - if (!propertyData) { - return; - } - const replacement = this.createReplacement(prop.name.getStart(), prop.name.getWidth(), propertyData.replaceWith); - const typeMessage = propertyData.whitelist ? `of class "${chalk_1.bold(typeName || '')}"` : ''; - this.addFailureAtNode(prop.name, `Found deprecated property "${chalk_1.red(propertyData.replace)}" ${typeMessage} which has been` + - ` renamed to "${chalk_1.green(propertyData.replaceWith)}"`, replacement); - } -} -exports.SwitchPropertyNamesWalker = SwitchPropertyNamesWalker; -//# sourceMappingURL=switchPropertyNamesRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchPropertyNamesRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchPropertyNamesRule.js.map deleted file mode 100644 index 3a47fcc..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchPropertyNamesRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchPropertyNamesRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchPropertyNamesRule.ts"],"names":[],"mappings":";;AAAA,iCAAuC;AACvC,mCAAkE;AAClE,iCAAiC;AACjC,+DAAyD;AAEzD;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,SAAS;IACvC,gBAAgB,CAAC,UAAyB,EAAE,OAAmB;QAC7D,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,yBAAyB,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7E,CAAC;CACF;AALD,oBAKC;AAED,+BAAuC,SAAQ,+BAAsB;IACnE,6BAA6B,CAAC,IAAiC;QAC7D,sFAAsF;QACtF,sEAAsE;QACtE,yDAAyD;QACzD,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC,CAAC;YACvF,IAAI,CAAC,6BAA6B,CAAC,IAAI,CAAC,UAAyC,CAAC,CAAC;QACrF,CAAC;QAED,0EAA0E;QAC1E,wDAAwD;QACxD,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,CAAC;QAE3D,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QAC5C,MAAM,QAAQ,GAAG,UAAU,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;QACpD,MAAM,YAAY,GAAG,8BAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YAC7C,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;gBACpC,kFAAkF;gBAClF,2BAA2B;gBAC3B,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC,QAAQ,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACxF,CAAC;YACD,MAAM,CAAC,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;YAClB,MAAM,CAAC;QACT,CAAC;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAC3D,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;QAEpD,MAAM,WAAW,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,YAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAEvF,IAAI,CAAC,gBAAgB,CACjB,IAAI,CAAC,IAAI,EACT,8BAA8B,WAAG,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,WAAW,iBAAiB;YACxF,gBAAgB,aAAK,CAAC,YAAY,CAAC,WAAW,CAAC,GAAG,EAClD,WAAW,CAAC,CAAC;IACnB,CAAC;CACF;AAxCD,8DAwCC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStringLiteralAttributeSelectorsRule.js b/angular_material_schematics-AqF82I/update/rules/switchStringLiteralAttributeSelectorsRule.js deleted file mode 100644 index 68ce48d..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStringLiteralAttributeSelectorsRule.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const ts = require("typescript"); -const component_data_1 = require("../material/component-data"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every string literal, which includes the outdated Material name and - * is part of a call expression. Those string literals will be changed to the new name. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchStringLiteralAttributeSelectorsWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchStringLiteralAttributeSelectorsWalker extends tslint_1.RuleWalker { - visitStringLiteral(stringLiteral) { - if (stringLiteral.parent && stringLiteral.parent.kind !== ts.SyntaxKind.CallExpression) { - return; - } - let stringLiteralText = stringLiteral.getFullText(); - component_data_1.attributeSelectors.forEach(selector => { - this.createReplacementsForOffsets(stringLiteral, selector, literal_1.findAll(stringLiteralText, selector.replace)).forEach(replacement => { - this.addFailureAtNode(stringLiteral, `Found deprecated attribute selector "${chalk_1.red('[' + selector.replace + ']')}" which has` + - ` been renamed to "${chalk_1.green('[' + selector.replaceWith + ']')}"`, replacement); - }); - }); - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchStringLiteralAttributeSelectorsWalker = SwitchStringLiteralAttributeSelectorsWalker; -//# sourceMappingURL=switchStringLiteralAttributeSelectorsRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStringLiteralAttributeSelectorsRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchStringLiteralAttributeSelectorsRule.js.map deleted file mode 100644 index 179421e..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStringLiteralAttributeSelectorsRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchStringLiteralAttributeSelectorsRule.js","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,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AA1BD,kGA0BC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStringLiteralCssNamesRule.js b/angular_material_schematics-AqF82I/update/rules/switchStringLiteralCssNamesRule.js deleted file mode 100644 index 6b36ae9..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStringLiteralCssNamesRule.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const ts = require("typescript"); -const component_data_1 = require("../material/component-data"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every string literal, which includes the outdated Material name and - * is part of a call expression. Those string literals will be changed to the new name. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchStringLiteralCssNamesWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchStringLiteralCssNamesWalker extends tslint_1.RuleWalker { - visitStringLiteral(stringLiteral) { - if (stringLiteral.parent && stringLiteral.parent.kind !== ts.SyntaxKind.CallExpression) { - return; - } - let stringLiteralText = stringLiteral.getFullText(); - component_data_1.cssNames.forEach(name => { - if (!name.whitelist || name.whitelist.strings) { - this.createReplacementsForOffsets(stringLiteral, name, literal_1.findAll(stringLiteralText, name.replace)).forEach(replacement => { - this.addFailureAtNode(stringLiteral, `Found deprecated CSS class "${chalk_1.red(name.replace)}" which has been renamed to` + - ` "${chalk_1.green(name.replaceWith)}"`, replacement); - }); - } - }); - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchStringLiteralCssNamesWalker = SwitchStringLiteralCssNamesWalker; -//# sourceMappingURL=switchStringLiteralCssNamesRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStringLiteralCssNamesRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchStringLiteralCssNamesRule.js.map deleted file mode 100644 index 8fca6dc..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStringLiteralCssNamesRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchStringLiteralCssNamesRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchStringLiteralCssNamesRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,mCAAmE;AACnE,iCAAiC;AACjC,+DAAoD;AACpD,mDAA8C;AAE9C;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,YAAY;IAC1C,KAAK,CAAC,UAAyB;QAC7B,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,iCAAiC,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AALD,oBAKC;AAED,uCAA+C,SAAQ,mBAAU;IAC/D,kBAAkB,CAAC,aAA+B;QAChD,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,IAAI,aAAa,CAAC,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC;YACvF,MAAM,CAAC;QACT,CAAC;QAED,IAAI,iBAAiB,GAAG,aAAa,CAAC,WAAW,EAAE,CAAC;QAEpD,yBAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACtB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;gBAC9C,IAAI,CAAC,4BAA4B,CAAC,aAAa,EAAE,IAAI,EACjD,iBAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;oBAClE,IAAI,CAAC,gBAAgB,CACjB,aAAa,EACb,+BAA+B,WAAG,CAAC,IAAI,CAAC,OAAO,CAAC,6BAA6B;wBAC7E,KAAK,aAAK,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,EAC/B,WAAW,CAAC,CAAA;gBAClB,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,4BAA4B,CAAC,IAAa,EACb,MAA8C,EAC9C,OAAiB;QACpD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AA5BD,8EA4BC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStringLiteralElementSelectorsRule.js b/angular_material_schematics-AqF82I/update/rules/switchStringLiteralElementSelectorsRule.js deleted file mode 100644 index bb53db2..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStringLiteralElementSelectorsRule.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const ts = require("typescript"); -const component_data_1 = require("../material/component-data"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every string literal, which includes the outdated Material name and - * is part of a call expression. Those string literals will be changed to the new name. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchStringLiteralElementSelectorsWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchStringLiteralElementSelectorsWalker extends tslint_1.RuleWalker { - visitStringLiteral(stringLiteral) { - if (stringLiteral.parent && stringLiteral.parent.kind !== ts.SyntaxKind.CallExpression) { - return; - } - let stringLiteralText = stringLiteral.getFullText(); - component_data_1.elementSelectors.forEach(selector => { - this.createReplacementsForOffsets(stringLiteral, selector, literal_1.findAll(stringLiteralText, selector.replace)).forEach(replacement => { - this.addFailureAtNode(stringLiteral, `Found deprecated element selector "${chalk_1.red(selector.replace)}" which has been` + - ` renamed to "${chalk_1.green(selector.replaceWith)}"`, replacement); - }); - }); - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchStringLiteralElementSelectorsWalker = SwitchStringLiteralElementSelectorsWalker; -//# sourceMappingURL=switchStringLiteralElementSelectorsRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStringLiteralElementSelectorsRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchStringLiteralElementSelectorsRule.js.map deleted file mode 100644 index 4b6ba23..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStringLiteralElementSelectorsRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchStringLiteralElementSelectorsRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchStringLiteralElementSelectorsRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,mCAAmE;AACnE,iCAAiC;AACjC,+DAA4D;AAC5D,mDAA8C;AAE9C;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,YAAY;IAC1C,KAAK,CAAC,UAAyB;QAC7B,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,yCAAyC,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACpF,CAAC;CACF;AALD,oBAKC;AAED,+CAAuD,SAAQ,mBAAU;IACvE,kBAAkB,CAAC,aAA+B;QAChD,EAAE,CAAC,CAAC,aAAa,CAAC,MAAM,IAAI,aAAa,CAAC,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC;YACvF,MAAM,CAAC;QACT,CAAC;QAED,IAAI,iBAAiB,GAAG,aAAa,CAAC,WAAW,EAAE,CAAC;QAEpD,iCAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAClC,IAAI,CAAC,4BAA4B,CAAC,aAAa,EAAE,QAAQ,EACrD,iBAAO,CAAC,iBAAiB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;gBACtE,IAAI,CAAC,gBAAgB,CACjB,aAAa,EACb,sCAAsC,WAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,kBAAkB;oBAC7E,gBAAgB,aAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,EAC9C,WAAW,CAAC,CAAC;YACnB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,4BAA4B,CAAC,IAAa,EACb,MAA8C,EAC9C,OAAiB;QACpD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AA1BD,8FA0BC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStylesheetAttributeSelectorsRule.js b/angular_material_schematics-AqF82I/update/rules/switchStylesheetAttributeSelectorsRule.js deleted file mode 100644 index 03eb57e..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStylesheetAttributeSelectorsRule.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const glob_1 = require("glob"); -const tslint_1 = require("tslint"); -const component_data_1 = require("../material/component-data"); -const component_walker_1 = require("../tslint/component-walker"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every component decorator and updates their inline or external - * stylesheets. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchStylesheetAtributeSelectorsWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchStylesheetAtributeSelectorsWalker extends component_walker_1.ComponentWalker { - constructor(sourceFile, options) { - // In some applications, developers will have global stylesheets that are not specified in any - // Angular component. Therefore we glob up all css and scss files outside of node_modules and - // dist and check them as well. - const extraFiles = glob_1.sync('!(node_modules|dist)/**/*.+(css|scss)'); - super(sourceFile, options, extraFiles); - extraFiles.forEach(styleUrl => this._reportExternalStyle(styleUrl)); - } - visitInlineStylesheet(stylesheet) { - this.replaceNamesInStylesheet(stylesheet, stylesheet.getText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(stylesheet.getSourceFile(), fix.start, fix.end, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - visitExternalStylesheet(stylesheet) { - this.replaceNamesInStylesheet(stylesheet, stylesheet.getFullText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(stylesheet, fix.start + 1, fix.end + 1, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - /** - * Replaces the outdated name in the stylesheet with the new one and returns an updated - * stylesheet. - */ - replaceNamesInStylesheet(node, stylesheetContent) { - const replacements = []; - component_data_1.attributeSelectors.forEach(selector => { - const bracketedSelector = { - replace: `[${selector.replace}]`, - replaceWith: `[${selector.replaceWith}]` - }; - this.createReplacementsForOffsets(node, bracketedSelector, literal_1.findAll(stylesheetContent, bracketedSelector.replace)).forEach(replacement => { - replacements.push({ - message: `Found deprecated attribute selector "${chalk_1.red(bracketedSelector.replace)}"` + - ` which has been renamed to "${chalk_1.green(bracketedSelector.replaceWith)}"`, - replacement - }); - }); - }); - return replacements; - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchStylesheetAtributeSelectorsWalker = SwitchStylesheetAtributeSelectorsWalker; -//# sourceMappingURL=switchStylesheetAttributeSelectorsRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStylesheetAttributeSelectorsRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchStylesheetAttributeSelectorsRule.js.map deleted file mode 100644 index ded7493..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStylesheetAttributeSelectorsRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchStylesheetAttributeSelectorsRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchStylesheetAttributeSelectorsRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,+BAAsC;AACtC,mCAAiE;AAEjE,+DAA8D;AAE9D,iEAA2D;AAC3D,mDAA8C;AAE9C;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,YAAY;IAC1C,KAAK,CAAC,UAAyB;QAC7B,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,uCAAuC,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAClF,CAAC;CACF;AALD,oBAKC;AAED,6CAAqD,SAAQ,kCAAe;IAE1E,YAAY,UAAyB,EAAE,OAAiB;QACtD,8FAA8F;QAC9F,6FAA6F;QAC7F,+BAA+B;QAC/B,MAAM,UAAU,GAAG,WAAQ,CAAC,uCAAuC,CAAC,CAAC;QACrE,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QACvC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,qBAAqB,CAAC,UAA4B;QAChD,IAAI,CAAC,wBAAwB,CAA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iBAAiB,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;gBAC/E,YAAY,CAAC,IAAI,CAAC;oBAChB,OAAO,EAAE,wCAAwC,WAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAAG;wBAC9E,+BAA+B,aAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,GAAG;oBAC1E,WAAW;iBACZ,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,YAAY,CAAC;IACtB,CAAC;IAEO,4BAA4B,CAAC,IAAa,EACb,MAA8C,EAC9C,OAAiB;QACpD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AA7DD,0FA6DC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStylesheetCssNamesRule.js b/angular_material_schematics-AqF82I/update/rules/switchStylesheetCssNamesRule.js deleted file mode 100644 index 63fc219..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStylesheetCssNamesRule.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const glob_1 = require("glob"); -const tslint_1 = require("tslint"); -const component_data_1 = require("../material/component-data"); -const component_walker_1 = require("../tslint/component-walker"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every component decorator and updates their inline or external - * stylesheets. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchStylesheetCssNamesWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchStylesheetCssNamesWalker extends component_walker_1.ComponentWalker { - constructor(sourceFile, options) { - // In some applications, developers will have global stylesheets that are not specified in any - // Angular component. Therefore we glob up all css and scss files outside of node_modules and - // dist and check them as well. - const extraFiles = glob_1.sync('!(node_modules|dist)/**/*.+(css|scss)'); - super(sourceFile, options, extraFiles); - extraFiles.forEach(styleUrl => this._reportExternalStyle(styleUrl)); - } - visitInlineStylesheet(stylesheet) { - this.replaceNamesInStylesheet(stylesheet, stylesheet.getText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(stylesheet.getSourceFile(), fix.start, fix.end, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - visitExternalStylesheet(stylesheet) { - this.replaceNamesInStylesheet(stylesheet, stylesheet.getFullText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(stylesheet, fix.start + 1, fix.end + 1, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - /** - * Replaces the outdated name in the stylesheet with the new one and returns an updated - * stylesheet. - */ - replaceNamesInStylesheet(node, stylesheetContent) { - const replacements = []; - component_data_1.cssNames.forEach(name => { - if (!name.whitelist || name.whitelist.css) { - this.createReplacementsForOffsets(node, name, literal_1.findAll(stylesheetContent, name.replace)) - .forEach(replacement => { - replacements.push({ - message: `Found CSS class "${chalk_1.red(name.replace)}" which has been renamed to` + - ` "${chalk_1.green(name.replaceWith)}"`, - replacement - }); - }); - } - }); - return replacements; - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchStylesheetCssNamesWalker = SwitchStylesheetCssNamesWalker; -//# sourceMappingURL=switchStylesheetCssNamesRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStylesheetCssNamesRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchStylesheetCssNamesRule.js.map deleted file mode 100644 index 6182d50..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStylesheetCssNamesRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchStylesheetCssNamesRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchStylesheetCssNamesRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,+BAAsC;AACtC,mCAAiE;AAEjE,+DAAoD;AAEpD,iEAA2D;AAC3D,mDAA8C;AAE9C;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,YAAY;IAC1C,KAAK,CAAC,UAAyB;QAC7B,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,8BAA8B,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC;CACF;AAJD,oBAIC;AAED,oCAA4C,SAAQ,kCAAe;IAEjE,YAAY,UAAyB,EAAE,OAAiB;QACtD,8FAA8F;QAC9F,6FAA6F;QAC7F,+BAA+B;QAC/B,MAAM,UAAU,GAAG,WAAQ,CAAC,uCAAuC,CAAC,CAAC;QACrE,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QACvC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,qBAAqB,CAAC,UAA4B;QAChD,IAAI,CAAC,wBAAwB,CAAC,UAAU,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;YACpF,MAAM,GAAG,GAAG,WAAW,CAAC,WAAW,CAAC;YACpC,MAAM,WAAW,GAAG,IAAI,oBAAW,CAAC,UAAU,CAAC,aAAa,EAAE,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,EAC9E,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,GAAG,CAAC,CAAC;YAClD,IAAI,CAA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O,4BAA4B,CAAC,IAAa,EACb,MAA8C,EAC9C,OAAiB;QACpD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AA3DD,wEA2DC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStylesheetElementSelectorsRule.js b/angular_material_schematics-AqF82I/update/rules/switchStylesheetElementSelectorsRule.js deleted file mode 100644 index 23937ec..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStylesheetElementSelectorsRule.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const glob_1 = require("glob"); -const tslint_1 = require("tslint"); -const component_data_1 = require("../material/component-data"); -const component_walker_1 = require("../tslint/component-walker"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every component decorator and updates their inline or external - * stylesheets. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchStylesheetElementSelectorsWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchStylesheetElementSelectorsWalker extends component_walker_1.ComponentWalker { - constructor(sourceFile, options) { - // In some applications, developers will have global stylesheets that are not specified in any - // Angular component. Therefore we glob up all css and scss files outside of node_modules and - // dist and check them as well. - const extraFiles = glob_1.sync('!(node_modules|dist)/**/*.+(css|scss)'); - super(sourceFile, options, extraFiles); - extraFiles.forEach(styleUrl => this._reportExternalStyle(styleUrl)); - } - visitInlineStylesheet(stylesheet) { - this.replaceNamesInStylesheet(stylesheet, stylesheet.getText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(stylesheet.getSourceFile(), fix.start, fix.end, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - visitExternalStylesheet(stylesheet) { - this.replaceNamesInStylesheet(stylesheet, stylesheet.getFullText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(stylesheet, fix.start + 1, fix.end + 1, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - /** - * Replaces the outdated name in the stylesheet with the new one and returns an updated - * stylesheet. - */ - replaceNamesInStylesheet(node, stylesheetContent) { - const replacements = []; - component_data_1.elementSelectors.forEach(selector => { - this.createReplacementsForOffsets(node, selector, literal_1.findAll(stylesheetContent, selector.replace)).forEach(replacement => { - replacements.push({ - message: `Found deprecated element selector "${chalk_1.red(selector.replace)}" which has` + - ` been renamed to "${chalk_1.green(selector.replaceWith)}"`, - replacement - }); - }); - }); - return replacements; - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchStylesheetElementSelectorsWalker = SwitchStylesheetElementSelectorsWalker; -//# sourceMappingURL=switchStylesheetElementSelectorsRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStylesheetElementSelectorsRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchStylesheetElementSelectorsRule.js.map deleted file mode 100644 index 07a1554..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStylesheetElementSelectorsRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchStylesheetElementSelectorsRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchStylesheetElementSelectorsRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,+BAAsC;AACtC,mCAAiE;AAEjE,+DAA4D;AAE5D,iEAA2D;AAC3D,mDAA8C;AAE9C;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,YAAY;IAC1C,KAAK,CAAC,UAAyB;QAC7B,MAAM,CAAC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,GAAG,CAAC,EACtE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,GAAG,CAAC,CAAC;YAClD,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACK,wBAAwB,CAAC,IAAa,EAAE,iBAAyB;QAEvE,MAAM,YAAY,GAAkD,EAAE,CAAC;QAEvE,iCAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAClC,IAAI,CAAC,4BAA4B,CAAC,IAAI,EAAE,QAAQ,EAC5C,iBAAO,CAAC,iBAAiB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;gBAClE,YAAY,CAAC,IAAI,CAAC;oBAChB,OAAO,EAAE,sCAAsC,WAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa;wBAC7E,qBAAqB,aAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG;oBACvD,WAAW;iBACZ,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACT,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,YAAY,CAAC;IACtB,CAAC;IAEO,4BAA4B,CAAC,IAAa,EACb,MAA8C,EAC9C,OAAiB;QACpD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AAzDD,wFAyDC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStylesheetInputNamesRule.js b/angular_material_schematics-AqF82I/update/rules/switchStylesheetInputNamesRule.js deleted file mode 100644 index ee9fc7f..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStylesheetInputNamesRule.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const glob_1 = require("glob"); -const tslint_1 = require("tslint"); -const component_data_1 = require("../material/component-data"); -const component_walker_1 = require("../tslint/component-walker"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every component decorator and updates their inline or external - * stylesheets. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchStylesheetInputNamesWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchStylesheetInputNamesWalker extends component_walker_1.ComponentWalker { - constructor(sourceFile, options) { - // In some applications, developers will have global stylesheets that are not specified in any - // Angular component. Therefore we glob up all css and scss files outside of node_modules and - // dist and check them as well. - const extraFiles = glob_1.sync('!(node_modules|dist)/**/*.+(css|scss)'); - super(sourceFile, options, extraFiles); - extraFiles.forEach(styleUrl => this._reportExternalStyle(styleUrl)); - } - visitInlineStylesheet(stylesheet) { - this.replaceNamesInStylesheet(stylesheet, stylesheet.getText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(stylesheet.getSourceFile(), fix.start, fix.end, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - visitExternalStylesheet(stylesheet) { - this.replaceNamesInStylesheet(stylesheet, stylesheet.getFullText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(stylesheet, fix.start + 1, fix.end + 1, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - /** - * Replaces the outdated name in the stylesheet with the new one and returns an updated - * stylesheet. - */ - replaceNamesInStylesheet(node, stylesheetContent) { - const replacements = []; - component_data_1.inputNames.forEach(name => { - if (!name.whitelist || name.whitelist.css) { - const bracketedName = { replace: `[${name.replace}]`, replaceWith: `[${name.replaceWith}]` }; - this.createReplacementsForOffsets(node, name, literal_1.findAll(stylesheetContent, bracketedName.replace)).forEach(replacement => { - replacements.push({ - message: `Found deprecated @Input() "${chalk_1.red(name.replace)}" which has been renamed` + - ` to "${chalk_1.green(name.replaceWith)}"`, - replacement - }); - }); - } - }); - return replacements; - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchStylesheetInputNamesWalker = SwitchStylesheetInputNamesWalker; -//# sourceMappingURL=switchStylesheetInputNamesRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStylesheetInputNamesRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchStylesheetInputNamesRule.js.map deleted file mode 100644 index 17c4f61..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStylesheetInputNamesRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchStylesheetInputNamesRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchStylesheetInputNamesRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,+BAAsC;AACtC,mCAAiE;AAEjE,+DAAsD;AAEtD,iEAA2D;AAC3D,mDAA8C;AAE9C;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,YAAY;IAC1C,KAAK,CAAC,UAAyB;QAC7B,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,gCAAgC,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC3E,CAAC;CACF;AALD,oBAKC;AAED,sCAA8C,SAAQ,kCAAe;IAEnE,YAAY,UAAyB,EAAE,OAAiB;QACtD,8FAA8F;QAC9F,6FAA6F;QAC7F,+BAA+B;QAC/B,MAAM,UAAU,GAAG,WAAQ,CAAC,uCAAuC,CAAC,CAAC;QACrE,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QACvC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAA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gBAC1C,MAAM,aAAa,GAAG,EAAC,OAAO,EAAE,IAAI,IAAI,CAAC,OAAO,GAAG,EAAE,WAAW,EAAE,IAAI,IAAI,CAAC,WAAW,GAAG,EAAC,CAAC;gBAC3F,IAAI,CAAC,4BAA4B,CAAC,IAAI,EAAE,IAAI,EACxC,iBAAO,CAAC,iBAAiB,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;oBACvE,YAAY,CAAC,IAAI,CAAC;wBAChB,OAAO,EAAE,8BAA8B,WAAG,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B;4BAC9E,QAAQ,aAAK,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG;wBACtC,WAAW;qBACZ,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;YACT,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,YAAY,CAAC;IACtB,CAAC;IAEO,4BAA4B,CAAC,IAAa,EACb,MAA8C,EAC9C,OAAiB;QACpD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AA5DD,4EA4DC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStylesheetOutputNamesRule.js b/angular_material_schematics-AqF82I/update/rules/switchStylesheetOutputNamesRule.js deleted file mode 100644 index 0fa8feb..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStylesheetOutputNamesRule.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const glob_1 = require("glob"); -const tslint_1 = require("tslint"); -const component_data_1 = require("../material/component-data"); -const component_walker_1 = require("../tslint/component-walker"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every component decorator and updates their inline or external - * stylesheets. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchStylesheetOutputNamesWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchStylesheetOutputNamesWalker extends component_walker_1.ComponentWalker { - constructor(sourceFile, options) { - // In some applications, developers will have global stylesheets that are not specified in any - // Angular component. Therefore we glob up all css and scss files outside of node_modules and - // dist and check them as well. - const extraFiles = glob_1.sync('!(node_modules|dist)/**/*.+(css|scss)'); - super(sourceFile, options, extraFiles); - extraFiles.forEach(styleUrl => this._reportExternalStyle(styleUrl)); - } - visitInlineStylesheet(stylesheet) { - this.replaceNamesInStylesheet(stylesheet, stylesheet.getText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(stylesheet.getSourceFile(), fix.start, fix.end, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - visitExternalStylesheet(stylesheet) { - this.replaceNamesInStylesheet(stylesheet, stylesheet.getFullText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(stylesheet, fix.start + 1, fix.end + 1, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - /** - * Replaces the outdated name in the stylesheet with the new one and returns an updated - * stylesheet. - */ - replaceNamesInStylesheet(node, stylesheetContent) { - const replacements = []; - component_data_1.outputNames.forEach(name => { - if (!name.whitelist || name.whitelist.css) { - const bracketedName = { replace: `[${name.replace}]`, replaceWith: `[${name.replaceWith}]` }; - this.createReplacementsForOffsets(node, name, literal_1.findAll(stylesheetContent, bracketedName.replace)).forEach(replacement => { - replacements.push({ - message: `Found deprecated @Output() "${chalk_1.red(name.replace)}" which has been` + - ` renamed to "${chalk_1.green(name.replaceWith)}"`, - replacement - }); - }); - } - }); - return replacements; - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchStylesheetOutputNamesWalker = SwitchStylesheetOutputNamesWalker; -//# sourceMappingURL=switchStylesheetOutputNamesRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchStylesheetOutputNamesRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchStylesheetOutputNamesRule.js.map deleted file mode 100644 index e5bee07..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchStylesheetOutputNamesRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchStylesheetOutputNamesRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchStylesheetOutputNamesRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,+BAAsC;AACtC,mCAAiE;AAEjE,+DAAuD;AAEvD,iEAA2D;AAC3D,mDAA8C;AAE9C;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,YAAY;IAC1C,KAAK,CAAC,UAAyB;QAC7B,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,iCAAiC,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AALD,oBAKC;AAED,uCAA+C,SAAQ,kCAAe;IAEpE,YAAY,UAAyB,EAAE,OAAiB;QACtD,8FAA8F;QAC9F,6FAA6F;QAC7F,+BAA+B;QAC/B,MAAM,UAAU,GAAG,WAAQ,CAAC,uCAAuC,CAAC,CAAC;QACrE,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QACvC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,qBAAqB,CAAC,UAA4B;QAChD,IAAI,CAAC,wBAAwB,CAAC,UAAU,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,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B,CAAC,IAAI,EAAE,IAAI,EACxC,iBAAO,CAAC,iBAAiB,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;oBACvE,YAAY,CAAC,IAAI,CAAC;wBAChB,OAAO,EAAE,+BAA+B,WAAG,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB;4BAC3E,gBAAgB,aAAK,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG;wBAC1C,WAAW;qBACZ,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;YACT,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,YAAY,CAAC;IACtB,CAAC;IAEO,4BAA4B,CAAC,IAAa,EACb,MAA8C,EAC9C,OAAiB;QACpD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AA5DD,8EA4DC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchTemplateAttributeSelectorsRule.js b/angular_material_schematics-AqF82I/update/rules/switchTemplateAttributeSelectorsRule.js deleted file mode 100644 index b6e15f6..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchTemplateAttributeSelectorsRule.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const component_data_1 = require("../material/component-data"); -const component_walker_1 = require("../tslint/component-walker"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every component decorator and updates their inline or external - * templates. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchTemplateAttributeSelectorsWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchTemplateAttributeSelectorsWalker extends component_walker_1.ComponentWalker { - visitInlineTemplate(template) { - this.replaceNamesInTemplate(template, template.getText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(template.getSourceFile(), fix.start, fix.end, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - visitExternalTemplate(template) { - this.replaceNamesInTemplate(template, template.getFullText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(template, fix.start + 1, fix.end + 1, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - /** - * Replaces the outdated name in the template with the new one and returns an updated template. - */ - replaceNamesInTemplate(node, templateContent) { - const replacements = []; - component_data_1.attributeSelectors.forEach(selector => { - // Being more aggressive with that replacement here allows us to also handle inline - // style elements. Normally we would check if the selector is surrounded by the HTML tag - // characters. - this.createReplacementsForOffsets(node, selector, literal_1.findAll(templateContent, selector.replace)) - .forEach(replacement => { - replacements.push({ - message: `Found deprecated attribute selector` + - ` "${chalk_1.red('[' + selector.replace + ']')}" which has been renamed to` + - ` "${chalk_1.green('[' + selector.replaceWith + ']')}"`, - replacement - }); - }); - }); - return replacements; - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchTemplateAttributeSelectorsWalker = SwitchTemplateAttributeSelectorsWalker; -//# sourceMappingURL=switchTemplateAttributeSelectorsRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchTemplateAttributeSelectorsRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchTemplateAttributeSelectorsRule.js.map deleted file mode 100644 index 3218e26..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchTemplateAttributeSelectorsRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchTemplateAttributeSelectorsRule.js","sourceRoot":"","sources":["../../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,GAAG,CAAC,CAAC;YAClD,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,sBAAsB,CAAC,IAAa,EAAE,eAAuB;QAEnE,MAAM,YAAY,GAAkD,EAAE,CAAC;QAEvE,mCAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YACpC,mFAAmF;YACnF,wFAAwF;YACxF,cAAc;YACd,IAAI,CAAC,4BAA4B,CAAC,IAAI,EAAE,QAAQ,EAAE,iBAAO,CAAC,eAAe,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;iBACxF,OAAO,CAAC,WAAW,CAAC,EAAE;gBACrB,YAAY,CAAC,IAAI,CAAC;oBAChB,OAAO,EAAE,qCAAqC;wBAC1C,KAAK,WAAG,CAAC,GAAG,GAAG,QAAQ,CAAC,OAAO,GAAG,GAAG,CAAC,6BAA6B;wBACnE,KAAK,aAAK,CAAC,GAAG,GAAG,QAAQ,CAAC,WAAW,GAAG,GAAG,CAAC,GAAG;oBACnD,WAAW;iBACZ,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACT,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,YAAY,CAAC;IACtB,CAAC;IAEO,4BAA4B,CAAC,IAAa,EACb,MAA8C,EAC9C,OAAiB;QACpD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AAlDD,wFAkDC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchTemplateCssNamesRule.js b/angular_material_schematics-AqF82I/update/rules/switchTemplateCssNamesRule.js deleted file mode 100644 index c1e6b9e..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchTemplateCssNamesRule.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const component_data_1 = require("../material/component-data"); -const component_walker_1 = require("../tslint/component-walker"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every component decorator and updates their inline or external - * templates. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchTemplateCaaNamesWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchTemplateCaaNamesWalker extends component_walker_1.ComponentWalker { - visitInlineTemplate(template) { - this.replaceNamesInTemplate(template, template.getText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(template.getSourceFile(), fix.start, fix.end, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - visitExternalTemplate(template) { - this.replaceNamesInTemplate(template, template.getFullText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(template, fix.start + 1, fix.end + 1, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - /** - * Replaces the outdated name in the template with the new one and returns an updated template. - */ - replaceNamesInTemplate(node, templateContent) { - const replacements = []; - component_data_1.cssNames.forEach(name => { - if (!name.whitelist || name.whitelist.html) { - this.createReplacementsForOffsets(node, name, literal_1.findAll(templateContent, name.replace)) - .forEach(replacement => { - replacements.push({ - message: `Found deprecated CSS class "${chalk_1.red(name.replace)}" which has been` + - ` renamed to "${chalk_1.green(name.replaceWith)}"`, - replacement - }); - }); - } - }); - return replacements; - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchTemplateCaaNamesWalker = SwitchTemplateCaaNamesWalker; -//# sourceMappingURL=switchTemplateCssNamesRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchTemplateCssNamesRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchTemplateCssNamesRule.js.map deleted file mode 100644 index cc23b5a..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchTemplateCssNamesRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchTemplateCssNamesRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchTemplateCssNamesRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,mCAAuD;AAEvD,+DAAoD;AAEpD,iEAA2D;AAC3D,mDAA8C;AAE9C;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,YAAY;IAC1C,KAAK,CAAC,UAAyB;QAC7B,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,4BAA4B,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC/F,CAAC;CACF;AAJD,oBAIC;AAED,kCAA0C,SAAQ,kCAAe;IAC/D,mBAAmB,CAAC,QAA0B;QAC5C,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;YAC9E,MAAM,GAAG,GAAG,WAAW,CAAC,WAAW,CAAC;YACpC,MAAM,WAAW,GAAG,IAAI,oBAAW,CAAC,QAAQ,CAAC,aAAa,EAAE,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,EAC5E,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,GAAG,CAAC,CAAC;YAClD,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC;IAED,qBAAqB,CAAC,QAA0B;QAC9C,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,E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AO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AAhDD,oEAgDC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchTemplateElementSelectorsRule.js b/angular_material_schematics-AqF82I/update/rules/switchTemplateElementSelectorsRule.js deleted file mode 100644 index ef79d5e..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchTemplateElementSelectorsRule.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const component_data_1 = require("../material/component-data"); -const component_walker_1 = require("../tslint/component-walker"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every component decorator and updates their inline or external - * templates. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchTemplateElementSelectorsWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchTemplateElementSelectorsWalker extends component_walker_1.ComponentWalker { - visitInlineTemplate(template) { - this.replaceNamesInTemplate(template, template.getText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(template.getSourceFile(), fix.start, fix.end, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - visitExternalTemplate(template) { - this.replaceNamesInTemplate(template, template.getFullText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(template, fix.start + 1, fix.end + 1, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - /** - * Replaces the outdated name in the template with the new one and returns an updated template. - */ - replaceNamesInTemplate(node, templateContent) { - const replacements = []; - component_data_1.elementSelectors.forEach(selector => { - // Being more aggressive with that replacement here allows us to also handle inline - // style elements. Normally we would check if the selector is surrounded by the HTML tag - // characters. - this.createReplacementsForOffsets(node, selector, literal_1.findAll(templateContent, selector.replace)) - .forEach(replacement => { - replacements.push({ - message: `Found deprecated element selector "${chalk_1.red(selector.replace)}" which has` + - ` been renamed to "${chalk_1.green(selector.replaceWith)}"`, - replacement - }); - }); - }); - return replacements; - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchTemplateElementSelectorsWalker = SwitchTemplateElementSelectorsWalker; -//# sourceMappingURL=switchTemplateElementSelectorsRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchTemplateElementSelectorsRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchTemplateElementSelectorsRule.js.map deleted file mode 100644 index d04f09b..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchTemplateElementSelectorsRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchTemplateElementSelectorsRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchTemplateElementSelectorsRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,mCAAuD;AAEvD,+DAA4D;AAE5D,iEAA2D;AAC3D,mDAA8C;AAE9C;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,YAAY;IAC1C,KAAK,CAAC,UAAyB;QAC7B,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,oCAAoC,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC/E,CAAC;CACF;AALD,oBAKC;AAED,0CAAkD,SAAQ,kCAAe;IACvE,mBAAmB,CAAC,QAA0B;QAC5C,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;YAC9E,MAAM,GAAG,GAAG,WAAW,CAAC,WAAW,CAAC;YACpC,MAAM,WAAW,GAAG,IAAI,oBAAW,CAAC,QAAQ,CAAC,aAAa,EAAE,EAAE,GAAG,CAAC,KAAK,EAAE,G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H,MAAM,CAAC,YAAY,CAAC;IACtB,CAAC;IAEO,4BAA4B,CAAC,IAAa,EACb,MAA8C,EAC9C,OAAiB;QACpD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AAjDD,oFAiDC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchTemplateExportAsNamesRule.js b/angular_material_schematics-AqF82I/update/rules/switchTemplateExportAsNamesRule.js deleted file mode 100644 index 611aa26..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchTemplateExportAsNamesRule.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const component_data_1 = require("../material/component-data"); -const component_walker_1 = require("../tslint/component-walker"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every component decorator and updates their inline or external - * templates. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchTemplateExportAsNamesWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchTemplateExportAsNamesWalker extends component_walker_1.ComponentWalker { - visitInlineTemplate(template) { - this.replaceNamesInTemplate(template, template.getText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(template.getSourceFile(), fix.start, fix.end, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - visitExternalTemplate(template) { - this.replaceNamesInTemplate(template, template.getFullText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(template, fix.start + 1, fix.end + 1, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - /** - * Replaces the outdated name in the template with the new one and returns an updated template. - */ - replaceNamesInTemplate(node, templateContent) { - const replacements = []; - component_data_1.exportAsNames.forEach(name => { - this.createReplacementsForOffsets(node, name, literal_1.findAll(templateContent, name.replace)) - .forEach(replacement => { - replacements.push({ - message: `Found deprecated exportAs reference "${chalk_1.red(name.replace)}" which has been` + - ` renamed to "${chalk_1.green(name.replaceWith)}"`, - replacement - }); - }); - }); - return replacements; - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchTemplateExportAsNamesWalker = SwitchTemplateExportAsNamesWalker; -//# sourceMappingURL=switchTemplateExportAsNamesRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchTemplateExportAsNamesRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchTemplateExportAsNamesRule.js.map deleted file mode 100644 index dc05f63..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchTemplateExportAsNamesRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchTemplateExportAsNamesRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchTemplateExportAsNamesRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,mCAAuD;AAEvD,+DAAyD;AAEzD,iEAA2D;AAC3D,mDAA8C;AAE9C;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,YAAY;IAC1C,KAAK,CAAC,UAAyB;QAC7B,MAAM,CAAC,IAAI,CAAC,eAAe,CACvB,IAAI,iCAAiC,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AALD,oBAKC;AAED,uCAA+C,SAAQ,kCAAe;IACpE,mBAAmB,CAAC,QAA0B;QAC5C,IAAI,CAAC,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,CA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B,aAAK,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG;oBAC1C,WAAW;iBACZ,CAAC,CAAC;YACL,CAAC,CAAC,CAAA;QACR,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,YAAY,CAAC;IACtB,CAAC;IAEO,4BAA4B,CAAC,IAAa,EACb,MAA8C,EAC9C,OAAiB;QACpD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AA9CD,8EA8CC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchTemplateInputNamesRule.js b/angular_material_schematics-AqF82I/update/rules/switchTemplateInputNamesRule.js deleted file mode 100644 index b19cbac..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchTemplateInputNamesRule.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const component_data_1 = require("../material/component-data"); -const component_walker_1 = require("../tslint/component-walker"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every component decorator and updates their inline or external - * templates. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchTemplateInputNamesWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchTemplateInputNamesWalker extends component_walker_1.ComponentWalker { - visitInlineTemplate(template) { - this.replaceNamesInTemplate(template, template.getText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(template.getSourceFile(), fix.start, fix.end, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - visitExternalTemplate(template) { - this.replaceNamesInTemplate(template, template.getFullText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(template, fix.start + 1, fix.end + 1, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - /** - * Replaces the outdated name in the template with the new one and returns an updated template. - */ - replaceNamesInTemplate(node, templateContent) { - const replacements = []; - component_data_1.inputNames.forEach(name => { - let offsets = []; - if (name.whitelist && name.whitelist.attributes && name.whitelist.attributes.length) { - offsets = offsets.concat(literal_1.findAllInputsInElWithAttr(templateContent, name.replace, name.whitelist.attributes)); - } - if (name.whitelist && name.whitelist.elements && name.whitelist.elements.length) { - offsets = offsets.concat(literal_1.findAllInputsInElWithTag(templateContent, name.replace, name.whitelist.elements)); - } - if (!name.whitelist) { - offsets = offsets.concat(literal_1.findAll(templateContent, name.replace)); - } - this.createReplacementsForOffsets(node, name, offsets).forEach(replacement => { - replacements.push({ - message: `Found deprecated @Input() "${chalk_1.red(name.replace)}" which has been renamed to` + - ` "${chalk_1.green(name.replaceWith)}"`, - replacement - }); - }); - }); - return replacements; - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchTemplateInputNamesWalker = SwitchTemplateInputNamesWalker; -//# sourceMappingURL=switchTemplateInputNamesRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchTemplateInputNamesRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchTemplateInputNamesRule.js.map deleted file mode 100644 index 89d8443..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchTemplateInputNamesRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchTemplateInputNamesRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchTemplateInputNamesRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,mCAAuD;AAEvD,+DAAsD;AAEtD,iEAA2D;AAC3D,mDAAmG;AAEnG;;;GAGG;AACH,UAAkB,S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AAC,CAAC;QAEH,MAAM,CAAC,YAAY,CAAC;IACtB,CAAC;IAEO,4BAA4B,CAAC,IAAa,EACb,MAA8C,EAC9C,OAAiB;QACpD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AAzDD,wEAyDC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchTemplateOutputNamesRule.js b/angular_material_schematics-AqF82I/update/rules/switchTemplateOutputNamesRule.js deleted file mode 100644 index 100d6f5..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchTemplateOutputNamesRule.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const chalk_1 = require("chalk"); -const tslint_1 = require("tslint"); -const component_data_1 = require("../material/component-data"); -const component_walker_1 = require("../tslint/component-walker"); -const literal_1 = require("../typescript/literal"); -/** - * Rule that walks through every component decorator and updates their inline or external - * templates. - */ -class Rule extends tslint_1.Rules.AbstractRule { - apply(sourceFile) { - return this.applyWithWalker(new SwitchTemplateOutputNamesWalker(sourceFile, this.getOptions())); - } -} -exports.Rule = Rule; -class SwitchTemplateOutputNamesWalker extends component_walker_1.ComponentWalker { - visitInlineTemplate(template) { - this.replaceNamesInTemplate(template, template.getText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(template.getSourceFile(), fix.start, fix.end, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - visitExternalTemplate(template) { - this.replaceNamesInTemplate(template, template.getFullText()).forEach(replacement => { - const fix = replacement.replacement; - const ruleFailure = new tslint_1.RuleFailure(template, fix.start + 1, fix.end + 1, replacement.message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - }); - } - /** - * Replaces the outdated name in the template with the new one and returns an updated template. - */ - replaceNamesInTemplate(node, templateContent) { - const replacements = []; - component_data_1.outputNames.forEach(name => { - let offsets = []; - if (name.whitelist && name.whitelist.attributes && name.whitelist.attributes.length) { - offsets = offsets.concat(literal_1.findAllOutputsInElWithAttr(templateContent, name.replace, name.whitelist.attributes)); - } - if (name.whitelist && name.whitelist.elements && name.whitelist.elements.length) { - offsets = offsets.concat(literal_1.findAllOutputsInElWithTag(templateContent, name.replace, name.whitelist.elements)); - } - if (!name.whitelist) { - offsets = offsets.concat(literal_1.findAll(templateContent, name.replace)); - } - this.createReplacementsForOffsets(node, name, offsets).forEach(replacement => { - replacements.push({ - message: `Found deprecated @Output() "${chalk_1.red(name.replace)}" which has been renamed to` + - ` "${chalk_1.green(name.replaceWith)}"`, - replacement - }); - }); - }); - return replacements; - } - createReplacementsForOffsets(node, update, offsets) { - return offsets.map(offset => this.createReplacement(node.getStart() + offset, update.replace.length, update.replaceWith)); - } -} -exports.SwitchTemplateOutputNamesWalker = SwitchTemplateOutputNamesWalker; -//# sourceMappingURL=switchTemplateOutputNamesRule.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/rules/switchTemplateOutputNamesRule.js.map b/angular_material_schematics-AqF82I/update/rules/switchTemplateOutputNamesRule.js.map deleted file mode 100644 index 51b53d3..0000000 --- a/angular_material_schematics-AqF82I/update/rules/switchTemplateOutputNamesRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchTemplateOutputNamesRule.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/rules/switchTemplateOutputNamesRule.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AACjC,mCAAuD;AAEvD,+DAAuD;AAEvD,iEAA2D;AAC3D,mDAI+B;AAE/B;;;GAGG;AACH,UAAkB,SAAQ,cAAK,CAAC,YAAY;IAC1C,KAAK,CAAC,UAAyB;QAC7B,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC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AC9C,OAAiB;QACpD,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/C,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAC5E,CAAC;CACF;AAzDD,0EAyDC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/tslint/component-file.js b/angular_material_schematics-AqF82I/update/tslint/component-file.js deleted file mode 100644 index 4195328..0000000 --- a/angular_material_schematics-AqF82I/update/tslint/component-file.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ts = require("typescript"); -/** - * Creates a fake TypeScript source file that can contain content of templates or stylesheets. - * The fake TypeScript source file then can be passed to TSLint in combination with a rule failure. - */ -function createComponentFile(filePath, content) { - const sourceFile = ts.createSourceFile(filePath, `\`${content}\``, ts.ScriptTarget.ES5); - const _getFullText = sourceFile.getFullText; - sourceFile.getFullText = function () { - const text = _getFullText.apply(sourceFile); - return text.substring(1, text.length - 1); - }.bind(sourceFile); - return sourceFile; -} -exports.createComponentFile = createComponentFile; -//# sourceMappingURL=component-file.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/tslint/component-file.js.map b/angular_material_schematics-AqF82I/update/tslint/component-file.js.map deleted file mode 100644 index 6f29362..0000000 --- a/angular_material_schematics-AqF82I/update/tslint/component-file.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component-file.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/tslint/component-file.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AAIjC;;;GAGG;AACH,6BAAoC,QAAgB,EAAE,OAAe;IACnE,MAAM,UAAU,GAAG,EAAE,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,OAAO,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IACxF,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW,CAAC;IAE5C,UAAU,CAAC,WAAW,GAAG;QACvB,MAAM,IAAI,GAAG,YAAY,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC5C,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAEnB,MAAM,CAAC,UAAU,CAAC;AACpB,CAAC;AAVD,kDAUC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/tslint/component-walker.js b/angular_material_schematics-AqF82I/update/tslint/component-walker.js deleted file mode 100644 index 0492346..0000000 --- a/angular_material_schematics-AqF82I/update/tslint/component-walker.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * TSLint custom walker implementation that also visits external and inline templates. - */ -const fs_1 = require("fs"); -const path_1 = require("path"); -const tslint_1 = require("tslint"); -const ts = require("typescript"); -const literal_1 = require("../typescript/literal"); -const component_file_1 = require("./component-file"); -/** - * Custom TSLint rule walker that identifies Angular components and visits specific parts of - * the component metadata. - */ -class ComponentWalker extends tslint_1.RuleWalker { - visitInlineTemplate(template) { } - visitInlineStylesheet(stylesheet) { } - visitExternalTemplate(template) { } - visitExternalStylesheet(stylesheet) { } - constructor(sourceFile, options, skipFiles = []) { - super(sourceFile, options); - this.skipFiles = new Set(skipFiles.map(p => path_1.resolve(p))); - } - visitNode(node) { - if (node.kind === ts.SyntaxKind.CallExpression) { - const callExpression = node; - const callExpressionName = callExpression.expression.getText(); - if (callExpressionName === 'Component' || callExpressionName === 'Directive') { - this._visitDirectiveCallExpression(callExpression); - } - } - super.visitNode(node); - } - _visitDirectiveCallExpression(callExpression) { - const directiveMetadata = callExpression.arguments[0]; - if (!directiveMetadata) { - return; - } - for (const property of directiveMetadata.properties) { - const propertyName = property.name.getText(); - const initializerKind = property.initializer.kind; - if (propertyName === 'template') { - this.visitInlineTemplate(property.initializer); - } - if (propertyName === 'templateUrl' && initializerKind === ts.SyntaxKind.StringLiteral) { - this._reportExternalTemplate(property.initializer); - } - if (propertyName === 'styles' && initializerKind === ts.SyntaxKind.ArrayLiteralExpression) { - this._reportInlineStyles(property.initializer); - } - if (propertyName === 'styleUrls' && initializerKind === ts.SyntaxKind.ArrayLiteralExpression) { - this._visitExternalStylesArrayLiteral(property.initializer); - } - } - } - _reportInlineStyles(inlineStyles) { - inlineStyles.elements.forEach(element => { - this.visitInlineStylesheet(element); - }); - } - _visitExternalStylesArrayLiteral(styleUrls) { - styleUrls.elements.forEach(styleUrlLiteral => { - const styleUrl = literal_1.getLiteralTextWithoutQuotes(styleUrlLiteral); - const stylePath = path_1.resolve(path_1.join(path_1.dirname(this.getSourceFile().fileName), styleUrl)); - if (!this.skipFiles.has(stylePath)) { - this._reportExternalStyle(stylePath); - } - }); - } - _reportExternalTemplate(templateUrlLiteral) { - const templateUrl = literal_1.getLiteralTextWithoutQuotes(templateUrlLiteral); - const templatePath = path_1.resolve(path_1.join(path_1.dirname(this.getSourceFile().fileName), templateUrl)); - if (this.skipFiles.has(templatePath)) { - return; - } - // Check if the external template file exists before proceeding. - if (!fs_1.existsSync(templatePath)) { - console.error(`PARSE ERROR: ${this.getSourceFile().fileName}:` + - ` Could not find template: "${templatePath}".`); - process.exit(1); - } - // Create a fake TypeScript source file that includes the template content. - const templateFile = component_file_1.createComponentFile(templatePath, fs_1.readFileSync(templatePath, 'utf8')); - this.visitExternalTemplate(templateFile); - } - _reportExternalStyle(stylePath) { - // Check if the external stylesheet file exists before proceeding. - if (!fs_1.existsSync(stylePath)) { - console.error(`PARSE ERROR: ${this.getSourceFile().fileName}:` + - ` Could not find stylesheet: "${stylePath}".`); - process.exit(1); - } - // Create a fake TypeScript source file that includes the stylesheet content. - const stylesheetFile = component_file_1.createComponentFile(stylePath, fs_1.readFileSync(stylePath, 'utf8')); - this.visitExternalStylesheet(stylesheetFile); - } - /** Creates a TSLint rule failure for the given external resource. */ - addExternalResourceFailure(file, message, fix) { - const ruleFailure = new tslint_1.RuleFailure(file, file.getStart(), file.getEnd(), message, this.getRuleName(), fix); - this.addFailure(ruleFailure); - } -} -exports.ComponentWalker = ComponentWalker; -//# sourceMappingURL=component-walker.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/tslint/component-walker.js.map b/angular_material_schematics-AqF82I/update/tslint/component-walker.js.map deleted file mode 100644 index 93b41ce..0000000 --- a/angular_material_schematics-AqF82I/update/tslint/component-walker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"component-walker.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/tslint/component-walker.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,2BAA2C;AAC3C,+BAA4C;AAC5C,mCAA8D;AAC9D,iCAAiC;AACjC,mDAAkE;AAClE,qDAAuE;AAEvE;;;GAGG;AACH,qBAA6B,SAAQ,mBAAU;IAEnC,mBAAmB,CAAC,QAA0B,IAAG,CAAC;IAClD,qBAAqB,CAAC,UAA4B,IAAG,CAAC;IAEtD,qBAAqB,CAAC,QAA0B,IAAG,CAAC;IACpD,uBAAuB,CAAC,UAA4B,IAAG,CAAC;IAIlE,YAAY,UAAyB,EAAE,OAAiB,EAAE,YAAsB,EAAE;QAChF,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,cAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;IAED,SAAS,CAAC,IAAa;QACrB,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC;YAC/C,MAAM,cAAc,GAAG,IAAyB,CAAC;YACjD,MAAM,kBAAk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tslint-binary.js b/angular_material_schematics-AqF82I/update/tslint/find-tslint-binary.js deleted file mode 100644 index 90fa458..0000000 --- a/angular_material_schematics-AqF82I/update/tslint/find-tslint-binary.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path_1 = require("path"); -const fs_1 = require("fs"); -// This import lacks of type definitions. -const resolveBinSync = require('resolve-bin').sync; -/** Finds the path to the TSLint CLI binary. */ -function findTslintBinaryPath() { - const defaultPath = path_1.resolve(__dirname, '..', 'node_modules', 'tslint', 'bin', 'tslint'); - if (fs_1.existsSync(defaultPath)) { - return defaultPath; - } - else { - return resolveBinSync('tslint', 'tslint'); - } -} -exports.findTslintBinaryPath = findTslintBinaryPath; -//# sourceMappingURL=find-tslint-binary.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/tslint/find-tslint-binary.js.map b/angular_material_schematics-AqF82I/update/tslint/find-tslint-binary.js.map deleted file mode 100644 index 64e41ee..0000000 --- a/angular_material_schematics-AqF82I/update/tslint/find-tslint-binary.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"find-tslint-binary.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/tslint/find-tslint-binary.ts"],"names":[],"mappings":";;AAAA,+BAA6B;AAC7B,2BAA8B;AAE9B,yCAAyC;AACzC,MAAM,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC;AAEnD,+CAA+C;AAC/C;IACE,MAAM,WAAW,GAAG,cAAO,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAExF,EAAE,CAAC,CAAC,eAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,WAAW,CAAC;IACrB,CAAC;IAAC,IAAI,CAAC,CAAC;QACN,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC5C,CAAC;AACH,CAAC;AARD,oDAQC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/typescript/identifiers.js b/angular_material_schematics-AqF82I/update/typescript/identifiers.js deleted file mode 100644 index 6ea87b0..0000000 --- a/angular_material_schematics-AqF82I/update/typescript/identifiers.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ts = require("typescript"); -/** Returns the original symbol from an node. */ -function getOriginalSymbolFromNode(node, checker) { - const baseSymbol = checker.getSymbolAtLocation(node); - if (baseSymbol && baseSymbol.flags & ts.SymbolFlags.Alias) { - return checker.getAliasedSymbol(baseSymbol); - } - return baseSymbol; -} -exports.getOriginalSymbolFromNode = getOriginalSymbolFromNode; -//# sourceMappingURL=identifiers.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/typescript/identifiers.js.map b/angular_material_schematics-AqF82I/update/typescript/identifiers.js.map deleted file mode 100644 index 2871e9c..0000000 --- a/angular_material_schematics-AqF82I/update/typescript/identifiers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"identifiers.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/typescript/identifiers.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AAEjC,gDAAgD;AAChD,mCAA0C,IAAa,EAAE,OAAuB;IAC9E,MAAM,UAAU,GAAG,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAErD,EAAE,CAAC,CAAC,UAAU,IAAI,UAAU,CAAC,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1D,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAC9C,CAAC;IAED,MAAM,CAAC,UAAU,CAAC;AACpB,CAAC;AARD,8DAQC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/typescript/imports.js b/angular_material_schematics-AqF82I/update/typescript/imports.js deleted file mode 100644 index b564a3c..0000000 --- a/angular_material_schematics-AqF82I/update/typescript/imports.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const ts = require("typescript"); -/** Checks whether the given node is part of an import specifier node. */ -function isImportSpecifierNode(node) { - return isPartOfKind(node, ts.SyntaxKind.ImportSpecifier); -} -exports.isImportSpecifierNode = isImportSpecifierNode; -/** Checks whether the given node is part of an export specifier node. */ -function isExportSpecifierNode(node) { - return isPartOfKind(node, ts.SyntaxKind.ExportSpecifier); -} -exports.isExportSpecifierNode = isExportSpecifierNode; -/** Checks whether the given node is part of a namespace import. */ -function isNamespaceImportNode(node) { - return isPartOfKind(node, ts.SyntaxKind.NamespaceImport); -} -exports.isNamespaceImportNode = isNamespaceImportNode; -/** Finds the parent import declaration of a given TypeScript node. */ -function getImportDeclaration(node) { - return findDeclaration(node, ts.SyntaxKind.ImportDeclaration); -} -exports.getImportDeclaration = getImportDeclaration; -/** Finds the parent export declaration of a given TypeScript node */ -function getExportDeclaration(node) { - return findDeclaration(node, ts.SyntaxKind.ExportDeclaration); -} -exports.getExportDeclaration = getExportDeclaration; -/** Finds the specified declaration for the given node by walking up the TypeScript nodes. */ -function findDeclaration(node, kind) { - while (node.kind !== kind) { - node = node.parent; - } - return node; -} -/** Checks whether the given node is part of another TypeScript Node with the specified kind. */ -function isPartOfKind(node, kind) { - if (node.kind === kind) { - return true; - } - else if (node.kind === ts.SyntaxKind.SourceFile) { - return false; - } - return isPartOfKind(node.parent, kind); -} -//# sourceMappingURL=imports.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/typescript/imports.js.map b/angular_material_schematics-AqF82I/update/typescript/imports.js.map deleted file mode 100644 index 9b4554f..0000000 --- a/angular_material_schematics-AqF82I/update/typescript/imports.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"imports.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/typescript/imports.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AAE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ED,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/typescript/literal.js b/angular_material_schematics-AqF82I/update/typescript/literal.js deleted file mode 100644 index a5c8249..0000000 --- a/angular_material_schematics-AqF82I/update/typescript/literal.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** Returns the text of a string literal without the quotes. */ -function getLiteralTextWithoutQuotes(literal) { - return literal.getText().substring(1, literal.getText().length - 1); -} -exports.getLiteralTextWithoutQuotes = getLiteralTextWithoutQuotes; -/** Method that can be used to replace all search occurrences in a string. */ -function findAll(str, search) { - const result = []; - let i = -1; - while ((i = str.indexOf(search, i + 1)) !== -1) { - result.push(i); - } - return result; -} -exports.findAll = findAll; -function findAllInputsInElWithTag(html, name, tagNames) { - return findAllIoInElWithTag(html, name, tagNames, String.raw `\[?`, String.raw `\]?`); -} -exports.findAllInputsInElWithTag = findAllInputsInElWithTag; -function findAllOutputsInElWithTag(html, name, tagNames) { - return findAllIoInElWithTag(html, name, tagNames, String.raw `\(`, String.raw `\)`); -} -exports.findAllOutputsInElWithTag = findAllOutputsInElWithTag; -/** - * Method that can be used to rename all occurrences of an `@Input()` in a HTML string that occur - * inside an element with any of the given attributes. This is useful for replacing an `@Input()` on - * a `@Directive()` with an attribute selector. - */ -function findAllInputsInElWithAttr(html, name, attrs) { - return findAllIoInElWithAttr(html, name, attrs, String.raw `\[?`, String.raw `\]?`); -} -exports.findAllInputsInElWithAttr = findAllInputsInElWithAttr; -/** - * Method that can be used to rename all occurrences of an `@Output()` in a HTML string that occur - * inside an element with any of the given attributes. This is useful for replacing an `@Output()` - * on a `@Directive()` with an attribute selector. - */ -function findAllOutputsInElWithAttr(html, name, attrs) { - return findAllIoInElWithAttr(html, name, attrs, String.raw `\(`, String.raw `\)`); -} -exports.findAllOutputsInElWithAttr = findAllOutputsInElWithAttr; -function findAllIoInElWithTag(html, name, tagNames, startIoPattern, endIoPattern) { - const skipPattern = String.raw `[^>]*\s`; - const openTagPattern = String.raw `<\s*`; - const tagNamesPattern = String.raw `(?:${tagNames.join('|')})`; - const replaceIoPattern = String.raw ` - (${openTagPattern}${tagNamesPattern}\s(?:${skipPattern})?${startIoPattern}) - ${name} - ${endIoPattern}[=\s>]`; - const replaceIoRegex = new RegExp(replaceIoPattern.replace(/\s/g, ''), 'g'); - const result = []; - let match; - while (match = replaceIoRegex.exec(html)) { - result.push(match.index + match[1].length); - } - return result; -} -function findAllIoInElWithAttr(html, name, attrs, startIoPattern, endIoPattern) { - const skipPattern = String.raw `[^>]*\s`; - const openTagPattern = String.raw `<\s*\S`; - const attrsPattern = String.raw `(?:${attrs.join('|')})`; - const inputAfterAttrPattern = String.raw ` - (${openTagPattern}${skipPattern}${attrsPattern}[=\s](?:${skipPattern})?${startIoPattern}) - ${name} - ${endIoPattern}[=\s>]`; - const inputBeforeAttrPattern = String.raw ` - (${openTagPattern}${skipPattern}${startIoPattern}) - ${name} - ${endIoPattern}[=\s](?:${skipPattern})?${attrsPattern}[=\s>]`; - const replaceIoPattern = String.raw `${inputAfterAttrPattern}|${inputBeforeAttrPattern}`; - const replaceIoRegex = new RegExp(replaceIoPattern.replace(/\s/g, ''), 'g'); - const result = []; - let match; - while (match = replaceIoRegex.exec(html)) { - result.push(match.index + (match[1] || match[2]).length); - } - return result; -} -//# sourceMappingURL=literal.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/typescript/literal.js.map b/angular_material_schematics-AqF82I/update/typescript/literal.js.map deleted file mode 100644 index c00e557..0000000 --- a/angular_material_schematics-AqF82I/update/typescript/literal.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"literal.js","sourceRoot":"","sources":["../../../../src/lib/schematics/update/typescript/literal.ts"],"names":[],"mappings":";;AAEA,+DAA+D;AAC/D,qCAA4C,OAAyB;IACnE,MAAM,CAAC,OAAO,C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GAAG,CAAA,MAAM,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;IACxD,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAA;OACnC,cAAc,GAAG,WAAW,GAAG,YAAY,WAAW,WAAW,KAAK,cAAc;MACrF,IAAI;MACJ,YAAY,QAAQ,CAAC;IACzB,MAAM,sBAAsB,GAAG,MAAM,CAAC,GAAG,CAAA;OACpC,cAAc,GAAG,WAAW,GAAG,cAAc;MAC9C,IAAI;MACJ,YAAY,WAAW,WAAW,KAAK,YAAY,QAAQ,CAAC;IAChE,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA,GAAG,qBAAqB,IAAI,sBAAsB,EAAE,CAAC;IACxF,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;IAC5E,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,IAAI,KAAK,CAAC;IACV,OAAO,KAAK,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACzC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAC3D,CAAC;IACD,MAAM,CAAC,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/update.js b/angular_material_schematics-AqF82I/update/update.js deleted file mode 100644 index f138ddc..0000000 --- a/angular_material_schematics-AqF82I/update/update.js +++ /dev/null @@ -1,125 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tasks_1 = require("@angular-devkit/schematics/tasks"); -const fs_1 = require("fs"); -const path = require("path"); -const config_1 = require("../utils/devkit-utils/config"); -const schematicsSrcPath = 'node_modules/@angular/material/schematics'; -const schematicsTmpPath = fs_1.mkdtempSync('angular_material_schematics-'); -/** Entry point for `ng update` from Angular CLI. */ -function default_1() { - return (tree, context) => { - // If this script failed in an earlier run, clear out the temporary files from that failed - // run before doing anything else. - tree.getDir(schematicsTmpPath).visit((_, entry) => tree.delete(entry.path)); - // Copy the update schematics to a temporary directory. - const updateSrcs = []; - tree.getDir(schematicsSrcPath).visit((_, entry) => updateSrcs.push(entry)); - for (let src of updateSrcs) { - tree.create(src.path.replace(schematicsSrcPath, schematicsTmpPath), src.content); - } - // Downgrade @angular/cdk and @angular/material to 5.x. This allows us to use the 5.x type - // information in the update script. - const downgradeTask = context.addTask(new tasks_1.NodePackageInstallTask({ - packageName: '@angular/cdk@">=5 <6" @angular/material@">=5 <6"' - })); - const allTsConfigPaths = getTsConfigPaths(tree); - const allUpdateTasks = []; - for (const tsconfig of allTsConfigPaths) { - // Run the update tslint rules. - allUpdateTasks.push(context.addTask(new tasks_1.TslintFixTask({ - rulesDirectory: path.join(schematicsTmpPath, 'update/rules'), - rules: { - // Automatic fixes. - "switch-identifiers": true, - "switch-property-names": true, - "switch-string-literal-attribute-selectors": true, - "switch-string-literal-css-names": true, - "switch-string-literal-element-selectors": true, - "switch-stylesheet-attribute-selectors": true, - "switch-stylesheet-css-names": true, - "switch-stylesheet-element-selectors": true, - "switch-stylesheet-input-names": true, - "switch-stylesheet-output-names": true, - "switch-template-attribute-selectors": true, - "switch-template-css-names": true, - "switch-template-element-selectors": true, - "switch-template-export-as-names": true, - "switch-template-input-names": true, - "switch-template-output-names": true, - // Additional issues we can detect but not automatically fix. - "check-class-declaration-misc": true, - "check-identifier-misc": true, - "check-import-misc": true, - "check-inheritance": true, - "check-method-calls": true, - "check-property-access-misc": true, - "check-template-misc": true - } - }, { - silent: false, - ignoreErrors: true, - tsConfigPath: tsconfig, - }), [downgradeTask])); - } - // Upgrade @angular/material back to 6.x. - const upgradeTask = context.addTask(new tasks_1.NodePackageInstallTask({ - // TODO(mmalerba): Change "next" to ">=6 <7". - packageName: '@angular/cdk@next @angular/material@next' - }), allUpdateTasks); - // Delete the temporary schematics directory. - context.addTask(new tasks_1.RunSchematicTask('ng-post-update', { - deleteFiles: updateSrcs - .map(entry => entry.path.replace(schematicsSrcPath, schematicsTmpPath)) - }), [upgradeTask]); - }; -} -exports.default = default_1; -/** Post-update schematic to be called when ng update is finished. */ -function postUpdate(options) { - return (tree, context) => { - for (let file of options.deleteFiles) { - tree.delete(file); - } - context.addTask(new tasks_1.RunSchematicTask('ng-post-post-update', {})); - }; -} -exports.postUpdate = postUpdate; -/** Post-post-update schematic to be called when post-update is finished. */ -function postPostUpdate() { - return () => console.log('\nComplete! Please check the output above for any issues that were detected but could not' + - ' be automatically fixed.'); -} -exports.postPostUpdate = postPostUpdate; -/** Gets the first tsconfig path from possibile locations based on the history of the CLI. */ -function getTsConfigPaths(tree) { - // Start with some tsconfig paths that are generally used. - const tsconfigPaths = [ - './tsconfig.json', - './src/tsconfig.json', - './src/tsconfig.app.json', - ]; - // Add any tsconfig directly referenced in a build or test task of the angular.json workspace. - const workspace = config_1.getWorkspace(tree); - for (const project of Object.values(workspace.projects)) { - if (project && project.architect) { - for (const taskName of ['build', 'test']) { - const task = project.architect[taskName]; - if (task && task.options && task.options.tsConfig) { - const tsConfigOption = project.architect.tsConfig; - if (typeof tsConfigOption === 'string') { - tsconfigPaths.push(tsConfigOption); - } - else if (Array.isArray(tsConfigOption)) { - tsconfigPaths.push(...tsConfigOption); - } - } - } - } - } - // Filter out tsconfig files that don't exist and remove any duplicates. - return tsconfigPaths - .filter(p => fs_1.existsSync(p)) - .filter((value, index, self) => self.indexOf(value) === index); -} -//# sourceMappingURL=update.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/update/update.js.map b/angular_material_schematics-AqF82I/update/update.js.map deleted file mode 100644 index d71b575..0000000 --- a/angular_material_schematics-AqF82I/update/update.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/lib/schematics/update/update.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S,CAAC,QAAQ,CAAC,CAAC;gBACzC,EAAE,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;oBAClD,MAAM,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;oBAClD,EAAE,CAAC,CAAC,OAAO,cAAc,KAAK,QAAQ,CAAC,CAAC,CAAC;wBACvC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;oBACrC,CAAC;oBAAC,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;wBACzC,aAAa,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC;oBACxC,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,wEAAwE;IACxE,MAAM,CAAC,aAAa;SACf,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,eAAU,CAAC,CAAC,CAAC,CAAC;SAC1B,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,CAAC;AACrE,CAAC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/ast.js b/angular_material_schematics-AqF82I/utils/ast.js deleted file mode 100644 index 7a45daa..0000000 --- a/angular_material_schematics-AqF82I/utils/ast.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core_1 = require("@angular-devkit/core"); -const schematics_1 = require("@angular-devkit/schematics"); -const ts = require("typescript"); -const ast_utils_1 = require("./devkit-utils/ast-utils"); -const change_1 = require("./devkit-utils/change"); -const config_1 = require("./devkit-utils/config"); -const ng_ast_utils_1 = require("./devkit-utils/ng-ast-utils"); -const find_module_1 = require("./devkit-utils/find-module"); -/** Reads file given path and returns TypeScript source file. */ -function getSourceFile(host, path) { - const buffer = host.read(path); - if (!buffer) { - throw new schematics_1.SchematicsException(`Could not find file for path: ${path}`); - } - const content = buffer.toString(); - return ts.createSourceFile(path, content, ts.ScriptTarget.Latest, true); -} -exports.getSourceFile = getSourceFile; -/** Import and add module to root app module. */ -function addModuleImportToRootModule(host, moduleName, src, project) { - const modulePath = ng_ast_utils_1.getAppModulePath(host, project.architect.build.options.main); - addModuleImportToModule(host, modulePath, moduleName, src); -} -exports.addModuleImportToRootModule = addModuleImportToRootModule; -/** - * Import and add module to specific module path. - * @param host the tree we are updating - * @param modulePath src location of the module to import - * @param moduleName name of module to import - * @param src src location to import - */ -function addModuleImportToModule(host, modulePath, moduleName, src) { - const moduleSource = getSourceFile(host, modulePath); - if (!moduleSource) { - throw new schematics_1.SchematicsException(`Module not found: ${modulePath}`); - } - const changes = ast_utils_1.addImportToModule(moduleSource, modulePath, moduleName, src); - const recorder = host.beginUpdate(modulePath); - changes.forEach((change) => { - if (change instanceof change_1.InsertChange) { - recorder.insertLeft(change.pos, change.toAdd); - } - }); - host.commitUpdate(recorder); -} -exports.addModuleImportToModule = addModuleImportToModule; -/** Gets the app index.html file */ -function getIndexHtmlPath(host, project) { - const buildTarget = project.architect.build.options; - if (buildTarget.index && buildTarget.index.endsWith('index.html')) { - return buildTarget.index; - } - throw new schematics_1.SchematicsException('No index.html file was found.'); -} -exports.getIndexHtmlPath = getIndexHtmlPath; -/** Get the root stylesheet file. */ -function getStylesPath(host, project) { - const buildTarget = project.architect['build']; - if (buildTarget.options && buildTarget.options.styles && buildTarget.options.styles.length) { - const styles = buildTarget.options.styles.map(s => typeof s === 'string' ? s : s.input); - // First, see if any of the assets is called "styles.(le|sc|c)ss", which is the default - // "main" style sheet. - const defaultMainStylePath = styles.find(a => /styles\.(c|le|sc)ss/.test(a)); - if (defaultMainStylePath) { - return core_1.normalize(defaultMainStylePath); - } - // If there was no obvious default file, use the first style asset. - const fallbackStylePath = styles.find(a => /\.(c|le|sc)ss/.test(a)); - if (fallbackStylePath) { - return core_1.normalize(fallbackStylePath); - } - } - throw new schematics_1.SchematicsException('No style files could be found into which a theme could be added'); -} -exports.getStylesPath = getStylesPath; -/** Wraps the internal find module from options with undefined path handling */ -function findModuleFromOptions(host, options) { - const workspace = config_1.getWorkspace(host); - if (!options.project) { - options.project = Object.keys(workspace.projects)[0]; - } - const project = workspace.projects[options.project]; - if (options.path === undefined) { - options.path = `/${project.root}/src/app`; - } - return find_module_1.findModuleFromOptions(host, options); -} -exports.findModuleFromOptions = findModuleFromOptions; -//# sourceMappingURL=ast.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/ast.js.map b/angular_material_schematics-AqF82I/utils/ast.js.map deleted file mode 100644 index 602be34..0000000 --- a/angular_material_schematics-AqF82I/utils/ast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ast.js","sourceRoot":"","sources":["../../../src/lib/schematics/utils/ast.ts"],"names":[],"mappings":";;AAAA,+CAA+C;AAC/C,2DAAqE;AACrE,iCAAiC;AACjC,wDAA2D;AAC3D,kDAAmD;AACnD,kDAA4D;AAC5D,8DAAsF;AACtF,4DAAsG;AAGtG,gEAAgE;AAChE,uBAA8B,IAAU,EAAE,IAAY;IACpD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;QACZ,MAAM,IAAI,gCAAmB,CAAC,iCAAiC,IAAI,EAAE,CAAC,CAAC;IACzE,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;IAClC,MAAM,CAAC,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAC1E,CAAC;AAPD,sCAOC;AAED,gDAAgD;AAChD,qCAA4C,IAAU,EAAE,UAAkB,EAAE,GAAW,E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SAAS,GAAG,qBAAY,CAAC,IAAI,CAAC,CAAC;IACrC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;QACrB,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpD,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC;QAC/B,OAAO,CAAC,IAAI,GAAG,IAAI,OAAO,CAAC,IAAI,UAAU,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,mCAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC;AAbD,sDAaC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/ast-utils.js b/angular_material_schematics-AqF82I/utils/devkit-utils/ast-utils.js deleted file mode 100644 index 0a05bab..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/ast-utils.js +++ /dev/null @@ -1,421 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @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 - */ -const ts = require("typescript"); -const change_1 = require("./change"); -const route_utils_1 = require("./route-utils"); -/** - * Find all nodes from the AST in the subtree of node of SyntaxKind kind. - * @param node - * @param kind - * @param max The maximum number of items to return. - * @return all nodes of kind, or [] if none is found - */ -function findNodes(node, kind, max = Infinity) { - if (!node || max == 0) { - return []; - } - const arr = []; - if (node.kind === kind) { - arr.push(node); - max--; - } - if (max > 0) { - for (const child of node.getChildren()) { - findNodes(child, kind, max).forEach(node => { - if (max > 0) { - arr.push(node); - } - max--; - }); - if (max <= 0) { - break; - } - } - } - return arr; -} -exports.findNodes = findNodes; -/** - * Get all the nodes from a source. - * @param sourceFile The source file object. - * @returns {Observable} An observable of all the nodes in the source. - */ -function getSourceNodes(sourceFile) { - const nodes = [sourceFile]; - const result = []; - while (nodes.length > 0) { - const node = nodes.shift(); - if (node) { - result.push(node); - if (node.getChildCount(sourceFile) >= 0) { - nodes.unshift(...node.getChildren()); - } - } - } - return result; -} -exports.getSourceNodes = getSourceNodes; -function findNode(node, kind, text) { - if (node.kind === kind && node.getText() === text) { - // throw new Error(node.getText()); - return node; - } - let foundNode = null; - ts.forEachChild(node, childNode => { - foundNode = foundNode || findNode(childNode, kind, text); - }); - return foundNode; -} -exports.findNode = findNode; -/** - * Helper for sorting nodes. - * @return function to sort nodes in increasing order of position in sourceFile - */ -function nodesByPosition(first, second) { - return first.getStart() - second.getStart(); -} -/** - * Insert `toInsert` after the last occurence of `ts.SyntaxKind[nodes[i].kind]` - * or after the last of occurence of `syntaxKind` if the last occurence is a sub child - * of ts.SyntaxKind[nodes[i].kind] and save the changes in file. - * - * @param nodes insert after the last occurence of nodes - * @param toInsert string to insert - * @param file file to insert changes into - * @param fallbackPos position to insert if toInsert happens to be the first occurence - * @param syntaxKind the ts.SyntaxKind of the subchildren to insert after - * @return Change instance - * @throw Error if toInsert is first occurence but fall back is not set - */ -function insertAfterLastOccurrence(nodes, toInsert, file, fallbackPos, syntaxKind) { - let lastItem = nodes.sort(nodesByPosition).pop(); - if (!lastItem) { - throw new Error(); - } - if (syntaxKind) { - lastItem = findNodes(lastItem, syntaxKind).sort(nodesByPosition).pop(); - } - if (!lastItem && fallbackPos == undefined) { - throw new Error(`tried to insert ${toInsert} as first occurence with no fallback position`); - } - const lastItemPosition = lastItem ? lastItem.getEnd() : fallbackPos; - return new change_1.InsertChange(file, lastItemPosition, toInsert); -} -exports.insertAfterLastOccurrence = insertAfterLastOccurrence; -function getContentOfKeyLiteral(_source, node) { - if (node.kind == ts.SyntaxKind.Identifier) { - return node.text; - } - else if (node.kind == ts.SyntaxKind.StringLiteral) { - return node.text; - } - else { - return null; - } -} -exports.getContentOfKeyLiteral = getContentOfKeyLiteral; -function _angularImportsFromNode(node, _sourceFile) { - const ms = node.moduleSpecifier; - let modulePath; - switch (ms.kind) { - case ts.SyntaxKind.StringLiteral: - modulePath = ms.text; - break; - default: - return {}; - } - if (!modulePath.startsWith('@angular/')) { - return {}; - } - if (node.importClause) { - if (node.importClause.name) { - // This is of the form `import Name from 'path'`. Ignore. - return {}; - } - else if (node.importClause.namedBindings) { - const nb = node.importClause.namedBindings; - if (nb.kind == ts.SyntaxKind.NamespaceImport) { - // This is of the form `import * as name from 'path'`. Return `name.`. - return { - [nb.name.text + '.']: modulePath, - }; - } - else { - // This is of the form `import {a,b,c} from 'path'` - const namedImports = nb; - return namedImports.elements - .map((is) => is.propertyName ? is.propertyName.text : is.name.text) - .reduce((acc, curr) => { - acc[curr] = modulePath; - return acc; - }, {}); - } - } - return {}; - } - else { - // This is of the form `import 'path';`. Nothing to do. - return {}; - } -} -function getDecoratorMetadata(source, identifier, module) { - const angularImports = findNodes(source, ts.SyntaxKind.ImportDeclaration) - .map((node) => _angularImportsFromNode(node, source)) - .reduce((acc, current) => { - for (const key of Object.keys(current)) { - acc[key] = current[key]; - } - return acc; - }, {}); - return getSourceNodes(source) - .filter(node => { - return node.kind == ts.SyntaxKind.Decorator - && node.expression.kind == ts.SyntaxKind.CallExpression; - }) - .map(node => node.expression) - .filter(expr => { - if (expr.expression.kind == ts.SyntaxKind.Identifier) { - const id = expr.expression; - return id.getFullText(source) == identifier - && angularImports[id.getFullText(source)] === module; - } - else if (expr.expression.kind == ts.SyntaxKind.PropertyAccessExpression) { - // This covers foo.NgModule when importing * as foo. - const paExpr = expr.expression; - // If the left expression is not an identifier, just give up at that point. - if (paExpr.expression.kind !== ts.SyntaxKind.Identifier) { - return false; - } - const id = paExpr.name.text; - const moduleId = paExpr.expression.getText(source); - return id === identifier && (angularImports[moduleId + '.'] === module); - } - return false; - }) - .filter(expr => expr.arguments[0] - && expr.arguments[0].kind == ts.SyntaxKind.ObjectLiteralExpression) - .map(expr => expr.arguments[0]); -} -exports.getDecoratorMetadata = getDecoratorMetadata; -function findClassDeclarationParent(node) { - if (ts.isClassDeclaration(node)) { - return node; - } - return node.parent && findClassDeclarationParent(node.parent); -} -/** - * Given a source file with @NgModule class(es), find the name of the first @NgModule class. - * - * @param source source file containing one or more @NgModule - * @returns the name of the first @NgModule, or `undefined` if none is found - */ -function getFirstNgModuleName(source) { - // First, find the @NgModule decorators. - const ngModulesMetadata = getDecoratorMetadata(source, 'NgModule', '@angular/core'); - if (ngModulesMetadata.length === 0) { - return undefined; - } - // Then walk parent pointers up the AST, looking for the ClassDeclaration parent of the NgModule - // metadata. - const moduleClass = findClassDeclarationParent(ngModulesMetadata[0]); - if (!moduleClass || !moduleClass.name) { - return undefined; - } - // Get the class name of the module ClassDeclaration. - return moduleClass.name.text; -} -exports.getFirstNgModuleName = getFirstNgModuleName; -function addSymbolToNgModuleMetadata(source, ngModulePath, metadataField, symbolName, importPath = null) { - const nodes = getDecoratorMetadata(source, 'NgModule', '@angular/core'); - let node = nodes[0]; // tslint:disable-line:no-any - // Find the decorator declaration. - if (!node) { - return []; - } - // Get all the children property assignment of object literals. - const matchingProperties = node.properties - .filter(prop => prop.kind == ts.SyntaxKind.PropertyAssignment) - .filter((prop) => { - const name = prop.name; - switch (name.kind) { - case ts.SyntaxKind.Identifier: - return name.getText(source) == metadataField; - case ts.SyntaxKind.StringLiteral: - return name.text == metadataField; - } - return false; - }); - // Get the last node of the array literal. - if (!matchingProperties) { - return []; - } - if (matchingProperties.length == 0) { - // We haven't found the field in the metadata declaration. Insert a new field. - const expr = node; - let position; - let toInsert; - if (expr.properties.length == 0) { - position = expr.getEnd() - 1; - toInsert = ` ${metadataField}: [${symbolName}]\n`; - } - else { - node = expr.properties[expr.properties.length - 1]; - position = node.getEnd(); - // Get the indentation of the last element, if any. - const text = node.getFullText(source); - const matches = text.match(/^\r?\n\s*/); - if (matches.length > 0) { - toInsert = `,${matches[0]}${metadataField}: [${symbolName}]`; - } - else { - toInsert = `, ${metadataField}: [${symbolName}]`; - } - } - if (importPath !== null) { - return [ - new change_1.InsertChange(ngModulePath, position, toInsert), - route_utils_1.insertImport(source, ngModulePath, symbolName.replace(/\..*$/, ''), importPath), - ]; - } - else { - return [new change_1.InsertChange(ngModulePath, position, toInsert)]; - } - } - const assignment = matchingProperties[0]; - // If it's not an array, nothing we can do really. - if (assignment.initializer.kind !== ts.SyntaxKind.ArrayLiteralExpression) { - return []; - } - const arrLiteral = assignment.initializer; - if (arrLiteral.elements.length == 0) { - // Forward the property. - node = arrLiteral; - } - else { - node = arrLiteral.elements; - } - if (!node) { - console.log('No app module found. Please add your new class to your component.'); - return []; - } - if (Array.isArray(node)) { - const nodeArray = node; - const symbolsArray = nodeArray.map(node => node.getText()); - if (symbolsArray.includes(symbolName)) { - return []; - } - node = node[node.length - 1]; - } - let toInsert; - let position = node.getEnd(); - if (node.kind == ts.SyntaxKind.ObjectLiteralExpression) { - // We haven't found the field in the metadata declaration. Insert a new - // field. - const expr = node; - if (expr.properties.length == 0) { - position = expr.getEnd() - 1; - toInsert = ` ${metadataField}: [${symbolName}]\n`; - } - else { - node = expr.properties[expr.properties.length - 1]; - position = node.getEnd(); - // Get the indentation of the last element, if any. - const text = node.getFullText(source); - if (text.match('^\r?\r?\n')) { - toInsert = `,${text.match(/^\r?\n\s+/)[0]}${metadataField}: [${symbolName}]`; - } - else { - toInsert = `, ${metadataField}: [${symbolName}]`; - } - } - } - else if (node.kind == ts.SyntaxKind.ArrayLiteralExpression) { - // We found the field but it's empty. Insert it just before the `]`. - position--; - toInsert = `${symbolName}`; - } - else { - // Get the indentation of the last element, if any. - const text = node.getFullText(source); - if (text.match(/^\r?\n/)) { - toInsert = `,${text.match(/^\r?\n(\r?)\s+/)[0]}${symbolName}`; - } - else { - toInsert = `, ${symbolName}`; - } - } - if (importPath !== null) { - return [ - new change_1.InsertChange(ngModulePath, position, toInsert), - route_utils_1.insertImport(source, ngModulePath, symbolName.replace(/\..*$/, ''), importPath), - ]; - } - return [new change_1.InsertChange(ngModulePath, position, toInsert)]; -} -exports.addSymbolToNgModuleMetadata = addSymbolToNgModuleMetadata; -/** - * Custom function to insert a declaration (component, pipe, directive) - * into NgModule declarations. It also imports the component. - */ -function addDeclarationToModule(source, modulePath, classifiedName, importPath) { - return addSymbolToNgModuleMetadata(source, modulePath, 'declarations', classifiedName, importPath); -} -exports.addDeclarationToModule = addDeclarationToModule; -/** - * Custom function to insert an NgModule into NgModule imports. It also imports the module. - */ -function addImportToModule(source, modulePath, classifiedName, importPath) { - return addSymbolToNgModuleMetadata(source, modulePath, 'imports', classifiedName, importPath); -} -exports.addImportToModule = addImportToModule; -/** - * Custom function to insert a provider into NgModule. It also imports it. - */ -function addProviderToModule(source, modulePath, classifiedName, importPath) { - return addSymbolToNgModuleMetadata(source, modulePath, 'providers', classifiedName, importPath); -} -exports.addProviderToModule = addProviderToModule; -/** - * Custom function to insert an export into NgModule. It also imports it. - */ -function addExportToModule(source, modulePath, classifiedName, importPath) { - return addSymbolToNgModuleMetadata(source, modulePath, 'exports', classifiedName, importPath); -} -exports.addExportToModule = addExportToModule; -/** - * Custom function to insert an export into NgModule. It also imports it. - */ -function addBootstrapToModule(source, modulePath, classifiedName, importPath) { - return addSymbolToNgModuleMetadata(source, modulePath, 'bootstrap', classifiedName, importPath); -} -exports.addBootstrapToModule = addBootstrapToModule; -/** - * Determine if an import already exists. - */ -function isImported(source, classifiedName, importPath) { - const allNodes = getSourceNodes(source); - const matchingNodes = allNodes - .filter(node => node.kind === ts.SyntaxKind.ImportDeclaration) - .filter((imp) => imp.moduleSpecifier.kind === ts.SyntaxKind.StringLiteral) - .filter((imp) => { - return imp.moduleSpecifier.text === importPath; - }) - .filter((imp) => { - if (!imp.importClause) { - return false; - } - const nodes = findNodes(imp.importClause, ts.SyntaxKind.ImportSpecifier) - .filter(n => n.getText() === classifiedName); - return nodes.length > 0; - }); - return matchingNodes.length > 0; -} -exports.isImported = isImported; -//# sourceMappingURL=ast-utils.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/ast-utils.js.map b/angular_material_schematics-AqF82I/utils/devkit-utils/ast-utils.js.map deleted file mode 100644 index ac64d4c..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/ast-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ast-utils.js","sourceRoot":"","sources":["../../../../src/lib/schematics/utils/devkit-utils/ast-utils.ts"],"names":[],"mappings":";;AAAA;;;;;;GAMG;AACH,iCAAiC;AACjC,qCAAgD;AAChD,+CAA6C;AAG7C;;;;;;GAMG;AACH,mBAA0B,IAAa,EAAE,IAAmB,EAAE,GAAG,GAAG,QAAQ;IAC1E,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,MAAM,CAAC,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,GAAG,GAAc,EAAE,CAAC;IAC1B,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC;QACvB,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACf,GAAG,EAAE,CAAC;IACR,CAAC;IACD,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QACZ,GAAG,CAAC,CAAC,MAAM,KAAK,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;YACvC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;gBACzC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;oBACZ,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACjB,CAAC;gBACD,GAAG,EAAE,CAAC;YACR,CAAC,CAAC,CAAC;YAEH,EAAE,CAAC,CAAC,GAAG,IAAI,CA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82I/utils/devkit-utils/change.js deleted file mode 100644 index 8c8046c..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/change.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * An operation that does nothing. - */ -class NoopChange { - constructor() { - this.description = 'No operation.'; - this.order = Infinity; - this.path = null; - } - apply() { return Promise.resolve(); } -} -exports.NoopChange = NoopChange; -/** - * Will add text to the source code. - */ -class InsertChange { - constructor(path, pos, toAdd) { - this.path = path; - this.pos = pos; - this.toAdd = toAdd; - if (pos < 0) { - throw new Error('Negative positions are invalid'); - } - this.description = `Inserted ${toAdd} into position ${pos} of ${path}`; - this.order = pos; - } - /** - * This method does not insert spaces if there is none in the original string. - */ - apply(host) { - return host.read(this.path).then(content => { - const prefix = content.substring(0, this.pos); - const suffix = content.substring(this.pos); - return host.write(this.path, `${prefix}${this.toAdd}${suffix}`); - }); - } -} -exports.InsertChange = InsertChange; -/** - * Will remove text from the source code. - */ -class RemoveChange { - constructor(path, pos, toRemove) { - this.path = path; - this.pos = pos; - this.toRemove = toRemove; - if (pos < 0) { - throw new Error('Negative positions are invalid'); - } - this.description = `Removed ${toRemove} into position ${pos} of ${path}`; - this.order = pos; - } - apply(host) { - return host.read(this.path).then(content => { - const prefix = content.substring(0, this.pos); - const suffix = content.substring(this.pos + this.toRemove.length); - // TODO: throw error if toRemove doesn't match removed string. - return host.write(this.path, `${prefix}${suffix}`); - }); - } -} -exports.RemoveChange = RemoveChange; -/** - * Will replace text from the source code. - */ -class ReplaceChange { - constructor(path, pos, oldText, newText) { - this.path = path; - this.pos = pos; - this.oldText = oldText; - this.newText = newText; - if (pos < 0) { - throw new Error('Negative positions are invalid'); - } - this.description = `Replaced ${oldText} into position ${pos} of ${path} with ${newText}`; - this.order = pos; - } - apply(host) { - return host.read(this.path).then(content => { - const prefix = content.substring(0, this.pos); - const suffix = content.substring(this.pos + this.oldText.length); - const text = content.substring(this.pos, this.pos + this.oldText.length); - if (text !== this.oldText) { - return Promise.reject(new Error(`Invalid replace: "${text}" != "${this.oldText}".`)); - } - // TODO: throw error if oldText doesn't match removed string. - return host.write(this.path, `${prefix}${this.newText}${suffix}`); - }); - } -} -exports.ReplaceChange = ReplaceChange; -//# sourceMappingURL=change.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/change.js.map b/angular_material_schematics-AqF82I/utils/devkit-utils/change.js.map deleted file mode 100644 index 383625b..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/change.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"change.js","sourceRoot":"","sources":["../../../../src/lib/schematics/utils/devkit-utils/change.ts"],"names":[],"mappings":";;AA6BA;;GAEG;AACH;IAAA;QACE,gBAAW,GAAG,eAAe,CAAC;QAC9B,UAAK,GAAG,QAAQ,CAAC;QACjB,SAAI,GAAG,IAAI,CAAC;IAEd,CAAC;IADC,KAAK,KAAK,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;CACtC;AALD,gCAKC;AAGD;;GAEG;AACH;IAKE,YAAmB,IAAY,EAAS,GAAW,EAAS,KAAa;QAAtD,SAAI,GAAJ,IAAI,CAAQ;QAAS,QAAG,GAAH,GAAG,CAAQ;QAAS,UAAK,GAAL,KAAK,CAAQ;QACvE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACpD,CAAC;QACD,IAAI,CAAC,WAAW,GAAG,YAAY,KAAK,kBAAkB,GAAG,OAAO,IAAI,EAAE,CAAC;QACvE,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAU;QACd,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;YACzC,MAAM,M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KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,MAAM,GAAG,IAAI,CAAC,OAAO,GAAG,MAAM,EAAE,CAAC,CAAC;QACpE,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA3BD,sCA2BC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/component.js b/angular_material_schematics-AqF82I/utils/devkit-utils/component.js deleted file mode 100644 index 7ee67bc..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/component.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const core_1 = require("@angular-devkit/core"); -const schematics_1 = require("@angular-devkit/schematics"); -const ts = require("typescript"); -const ast_utils_1 = require("./ast-utils"); -const change_1 = require("./change"); -const find_module_1 = require("./find-module"); -const config_1 = require("./config"); -const parse_name_1 = require("./parse-name"); -const validation_1 = require("./validation"); -function addDeclarationToNgModule(options) { - return (host) => { - if (options.skipImport || !options.module) { - return host; - } - const modulePath = options.module; - const text = host.read(modulePath); - if (text === null) { - throw new schematics_1.SchematicsException(`File ${modulePath} does not exist.`); - } - const sourceText = text.toString('utf-8'); - const source = ts.createSourceFile(modulePath, sourceText, ts.ScriptTarget.Latest, true); - const componentPath = `/${options.path}/` - + (options.flat ? '' : core_1.strings.dasherize(options.name) + '/') - + core_1.strings.dasherize(options.name) - + '.component'; - const relativePath = find_module_1.buildRelativePath(modulePath, componentPath); - const classifiedName = core_1.strings.classify(`${options.name}Component`); - const declarationChanges = ast_utils_1.addDeclarationToModule(source, modulePath, classifiedName, relativePath); - const declarationRecorder = host.beginUpdate(modulePath); - for (const change of declarationChanges) { - if (change instanceof change_1.InsertChange) { - declarationRecorder.insertLeft(change.pos, change.toAdd); - } - } - host.commitUpdate(declarationRecorder); - if (options.export) { - // Need to refresh the AST because we overwrote the file in the host. - const text = host.read(modulePath); - if (text === null) { - throw new schematics_1.SchematicsException(`File ${modulePath} does not exist.`); - } - const sourceText = text.toString('utf-8'); - const source = ts.createSourceFile(modulePath, sourceText, ts.ScriptTarget.Latest, true); - const exportRecorder = host.beginUpdate(modulePath); - const exportChanges = ast_utils_1.addExportToModule(source, modulePath, core_1.strings.classify(`${options.name}Component`), relativePath); - for (const change of exportChanges) { - if (change instanceof change_1.InsertChange) { - exportRecorder.insertLeft(change.pos, change.toAdd); - } - } - host.commitUpdate(exportRecorder); - } - return host; - }; -} -function buildSelector(options) { - let selector = core_1.strings.dasherize(options.name); - if (options.prefix) { - selector = `${options.prefix}-${selector}`; - } - return selector; -} -function buildComponent(options) { - return (host, context) => { - const workspace = config_1.getWorkspace(host); - if (!options.project) { - options.project = Object.keys(workspace.projects)[0]; - } - const project = workspace.projects[options.project]; - if (options.path === undefined) { - options.path = `/${project.root}/src/app`; - } - options.selector = options.selector || buildSelector(options); - options.module = find_module_1.findModuleFromOptions(host, options); - const parsedPath = parse_name_1.parseName(options.path, options.name); - options.name = parsedPath.name; - options.path = parsedPath.path; - validation_1.validateName(options.name); - const templateSource = schematics_1.apply(schematics_1.url('./files'), [ - options.spec ? schematics_1.noop() : schematics_1.filter(path => !path.endsWith('.spec.ts')), - options.inlineStyle ? schematics_1.filter(path => !path.endsWith('.__styleext__')) : schematics_1.noop(), - options.inlineTemplate ? schematics_1.filter(path => !path.endsWith('.html')) : schematics_1.noop(), - schematics_1.template(Object.assign({}, core_1.strings, { 'if-flat': (s) => options.flat ? '' : s }, options)), - schematics_1.move(null, parsedPath.path), - ]); - return schematics_1.chain([ - schematics_1.branchAndMerge(schematics_1.chain([ - addDeclarationToNgModule(options), - schematics_1.mergeWith(templateSource), - ])), - ])(host, context); - }; -} -exports.buildComponent = buildComponent; -//# sourceMappingURL=component.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/component.js.map b/angular_material_schematics-AqF82I/utils/devkit-utils/component.js.map deleted file mode 100644 index 266cec7..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/component.js.map +++ /dev/null @@ -1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ACjC,sBAAS,CAAC,cAAc,CAAC;aAC1B,CAAC,CAAC;SACJ,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC;AAxCD,wCAwCC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/config.js b/angular_material_schematics-AqF82I/utils/devkit-utils/config.js deleted file mode 100644 index 45c2470..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/config.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @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 - */ -const schematics_1 = require("@angular-devkit/schematics"); -exports.ANGULAR_CLI_WORKSPACE_PATH = '/angular.json'; -/** Gets the Angular CLI workspace config (angular.json) */ -function getWorkspace(host) { - const configBuffer = host.read(exports.ANGULAR_CLI_WORKSPACE_PATH); - if (configBuffer === null) { - throw new schematics_1.SchematicsException('Could not find angular.json'); - } - return JSON.parse(configBuffer.toString()); -} -exports.getWorkspace = getWorkspace; -/** - * Gets a project from the Angular CLI workspace. If no project name is given, the first project - * will be retrieved. - */ -function getProjectFromWorkspace(config, projectName) { - if (config.projects) { - if (projectName) { - const project = config.projects[projectName]; - if (!project) { - throw new schematics_1.SchematicsException(`No project named "${projectName}" exists.`); - } - Object.defineProperty(project, 'name', { enumerable: false, value: projectName }); - return project; - } - // If there is exactly one non-e2e project, use that. Otherwise, require that a specific - // project be specified. - const allProjectNames = Object.keys(config.projects).filter(p => !p.includes('e2e')); - if (allProjectNames.length === 1) { - const project = config.projects[allProjectNames[0]]; - // Set a non-enumerable project name to the project. We need the name for schematics - // later on, but don't want to write it back out to the config file. - Object.defineProperty(project, 'name', { enumerable: false, value: projectName }); - return project; - } - else { - throw new schematics_1.SchematicsException('Multiple projects are defined; please specify a project name'); - } - } - throw new schematics_1.SchematicsException('No projects are defined'); -} -exports.getProjectFromWorkspace = getProjectFromWorkspace; -//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/config.js.map b/angular_material_schematics-AqF82I/utils/devkit-utils/config.js.map deleted file mode 100644 index ca1ff49..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/lib/schematics/utils/devkit-utils/config.ts"],"names":[],"mappings":";;AAAA;;;;;;GAMG;AACH,2DAAqE;AAExD,QAAA,0BAA0B,GAAG,eAAe,CAAC;AAqE1D,2DAA2D;AAC3D,sBAA6B,IAAU;IACrC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,kCAA0B,CAAC,CAAC;IAC3D,EAAE,CAAC,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,CAAC;QAC1B,MAAM,IAAI,gCAAmB,CAAC,6BAA6B,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;AAC7C,CAAC;AAPD,oCAOC;AAED;;;GAGG;AACH,iCAAwC,MAAiB,EAAE,WAAoB;IAC7E,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;QACpB,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;YAChB,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;YAC7C,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;gBACb,MAAM,IAAI,gCAAmB,CAAC,qBAAqB,WAAW,WAAW,CAAC,CAAC;YAC7E,CAAC;YAED,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,EAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAC,CAAC,CAAC;YAChF,MAAM,CAAC,OAAO,CAAC;QACjB,CAAC;QAED,wFAAwF;QACxF,wBAAwB;QACxB,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;QACrF,EAAE,CAAC,CAAC,eAAe,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;YACjC,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;YACpD,oFAAoF;YACpF,oEAAoE;YACpE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,EAAC,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAC,CAAC,CAAC;YAChF,MAAM,CAAC,OAAO,CAAC;QACjB,CAAC;QAAC,IAAI,CAAC,CAAC;YACN,MAAM,IAAI,gCAAmB,CAAC,8DAA8D,CAAC,CAAC;QAChG,CAAC;IACH,CAAC;IAED,MAAM,IAAI,gCAAmB,CAAC,yBAAyB,CAAC,CAAC;AAC3D,CAAC;AA3BD,0DA2BC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/find-module.js b/angular_material_schematics-AqF82I/utils/devkit-utils/find-module.js deleted file mode 100644 index 2a83105..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/find-module.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @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 - */ -const core_1 = require("@angular-devkit/core"); -/** - * Find the module referred by a set of options passed to the schematics. - */ -function findModuleFromOptions(host, options) { - if (options.hasOwnProperty('skipImport') && options.skipImport) { - return undefined; - } - if (!options.module) { - const pathToCheck = (options.path || '') - + (options.flat ? '' : '/' + core_1.strings.dasherize(options.name)); - return core_1.normalize(findModule(host, pathToCheck)); - } - else { - const modulePath = core_1.normalize('/' + (options.path) + '/' + options.module); - const moduleBaseName = core_1.normalize(modulePath).split('/').pop(); - if (host.exists(modulePath)) { - return core_1.normalize(modulePath); - } - else if (host.exists(modulePath + '.ts')) { - return core_1.normalize(modulePath + '.ts'); - } - else if (host.exists(modulePath + '.module.ts')) { - return core_1.normalize(modulePath + '.module.ts'); - } - else if (host.exists(modulePath + '/' + moduleBaseName + '.module.ts')) { - return core_1.normalize(modulePath + '/' + moduleBaseName + '.module.ts'); - } - else { - throw new Error('Specified module does not exist'); - } - } -} -exports.findModuleFromOptions = findModuleFromOptions; -/** - * Function to find the "closest" module to a generated file's path. - */ -function findModule(host, generateDir) { - let dir = host.getDir('/' + generateDir); - const moduleRe = /\.module\.ts$/; - const routingModuleRe = /-routing\.module\.ts/; - while (dir) { - const matches = dir.subfiles.filter(p => moduleRe.test(p) && !routingModuleRe.test(p)); - if (matches.length == 1) { - return core_1.join(dir.path, matches[0]); - } - else if (matches.length > 1) { - throw new Error('More than one module matches. Use skip-import option to skip importing ' - + 'the component into the closest module.'); - } - dir = dir.parent; - } - throw new Error('Could not find an NgModule. Use the skip-import ' - + 'option to skip importing in NgModule.'); -} -exports.findModule = findModule; -/** - * Build a relative path from one file path to another file path. - */ -function buildRelativePath(from, to) { - from = core_1.normalize(from); - to = core_1.normalize(to); - // Convert to arrays. - const fromParts = from.split('/'); - const toParts = to.split('/'); - // Remove file names (preserving destination) - fromParts.pop(); - const toFileName = toParts.pop(); - const relativePath = core_1.relative(core_1.normalize(fromParts.join('/')), core_1.normalize(toParts.join('/'))); - let pathPrefix = ''; - // Set the path prefix for same dir or child dir, parent dir starts with `..` - if (!relativePath) { - pathPrefix = '.'; - } - else if (!relativePath.startsWith('.')) { - pathPrefix = `./`; - } - if (pathPrefix && !pathPrefix.endsWith('/')) { - pathPrefix += '/'; - } - return pathPrefix + (relativePath ? relativePath + '/' : '') + toFileName; -} -exports.buildRelativePath = buildRelativePath; -//# sourceMappingURL=find-module.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/find-module.js.map b/angular_material_schematics-AqF82I/utils/devkit-utils/find-module.js.map deleted file mode 100644 index 0f58b6a..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/find-module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"find-module.js","sourceRoot":"","sources":["../../../../src/lib/schematics/utils/devkit-utils/find-module.ts"],"names":[],"mappings":";;AAAA;;;;;;GAMG;AACH,+CAAgF;AAahF;;GAEG;AACH,+BAAsC,IAAU,EAAE,OAAsB;IACtE,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QAC/D,MAAM,CAAC,SAAS,CAAC;IACnB,CAAC;IAED,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QACpB,MAAM,WAAW,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;cACpB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,cAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QAEhF,MAAM,CAAC,gBAAS,CAAC,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC;IAClD,CAAC;IAAC,IAAI,CAAC,CAAC;QACN,MAAM,UAAU,GAAG,gBAAS,CAC1B,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC/C,MAAM,cAAc,GAAG,gBAAS,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;QAE9D,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,C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C,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACzC,UAAU,GAAG,IAAI,CAAC;IACpB,CAAC;IACD,EAAE,CAAC,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC5C,UAAU,IAAI,GAAG,CAAC;IACpB,CAAC;IAED,MAAM,CAAC,UAAU,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC;AAC5E,CAAC;AA1BD,8CA0BC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/ng-ast-utils.js b/angular_material_schematics-AqF82I/utils/devkit-utils/ng-ast-utils.js deleted file mode 100644 index 7ff5b54..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/ng-ast-utils.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @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 - */ -const core_1 = require("@angular-devkit/core"); -const schematics_1 = require("@angular-devkit/schematics"); -const path_1 = require("path"); -const ts = require("typescript"); -const ast_utils_1 = require("./ast-utils"); -function findBootstrapModuleCall(host, mainPath) { - const mainBuffer = host.read(mainPath); - if (!mainBuffer) { - throw new schematics_1.SchematicsException(`Main file (${mainPath}) not found`); - } - const mainText = mainBuffer.toString('utf-8'); - const source = ts.createSourceFile(mainPath, mainText, ts.ScriptTarget.Latest, true); - const allNodes = ast_utils_1.getSourceNodes(source); - let bootstrapCall = null; - for (const node of allNodes) { - let bootstrapCallNode = null; - bootstrapCallNode = ast_utils_1.findNode(node, ts.SyntaxKind.Identifier, 'bootstrapModule'); - // Walk up the parent until CallExpression is found. - while (bootstrapCallNode && bootstrapCallNode.parent - && bootstrapCallNode.parent.kind !== ts.SyntaxKind.CallExpression) { - bootstrapCallNode = bootstrapCallNode.parent; - } - if (bootstrapCallNode !== null && - bootstrapCallNode.parent !== undefined && - bootstrapCallNode.parent.kind === ts.SyntaxKind.CallExpression) { - bootstrapCall = bootstrapCallNode.parent; - break; - } - } - return bootstrapCall; -} -exports.findBootstrapModuleCall = findBootstrapModuleCall; -function findBootstrapModulePath(host, mainPath) { - const bootstrapCall = findBootstrapModuleCall(host, mainPath); - if (!bootstrapCall) { - throw new schematics_1.SchematicsException('Bootstrap call not found'); - } - const bootstrapModule = bootstrapCall.arguments[0]; - const mainBuffer = host.read(mainPath); - if (!mainBuffer) { - throw new schematics_1.SchematicsException(`Client app main file (${mainPath}) not found`); - } - const mainText = mainBuffer.toString('utf-8'); - const source = ts.createSourceFile(mainPath, mainText, ts.ScriptTarget.Latest, true); - const allNodes = ast_utils_1.getSourceNodes(source); - const bootstrapModuleRelativePath = allNodes - .filter(node => node.kind === ts.SyntaxKind.ImportDeclaration) - .filter(imp => { - return ast_utils_1.findNode(imp, ts.SyntaxKind.Identifier, bootstrapModule.getText()); - }) - .map((imp) => { - const modulePathStringLiteral = imp.moduleSpecifier; - return modulePathStringLiteral.text; - })[0]; - return bootstrapModuleRelativePath; -} -exports.findBootstrapModulePath = findBootstrapModulePath; -function getAppModulePath(host, mainPath) { - const moduleRelativePath = findBootstrapModulePath(host, mainPath); - const mainDir = path_1.dirname(mainPath); - const modulePath = core_1.normalize(`/${mainDir}/${moduleRelativePath}.ts`); - return modulePath; -} -exports.getAppModulePath = getAppModulePath; -//# sourceMappingURL=ng-ast-utils.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/ng-ast-utils.js.map b/angular_material_schematics-AqF82I/utils/devkit-utils/ng-ast-utils.js.map deleted file mode 100644 index c16e797..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/ng-ast-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ng-ast-utils.js","sourceRoot":"","sources":["../../../../src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CAAC;SACD,GAAG,CAAC,CAAC,GAAyB,EAAE,EAAE;QACjC,MAAM,uBAAuB,GAAsB,GAAG,CAAC,eAAe,CAAC;QAEvE,MAAM,CAAC,uBAAuB,CAAC,IAAI,CAAC;IACtC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAER,MAAM,CAAC,2BAA2B,CAAC;AACrC,CAAC;AA3BD,0DA2BC;AAED,0BAAiC,IAAU,EAAE,QAAgB;IAC3D,MAAM,kBAAkB,GAAG,uBAAuB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,cAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,MAAM,UAAU,GAAG,gBAAS,CAAC,IAAI,OAAO,IAAI,kBAAkB,KAAK,CAAC,CAAC;IAErE,MAAM,CAAC,UAAU,CAAC;AACpB,CAAC;AAND,4CAMC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/parse-name.js b/angular_material_schematics-AqF82I/utils/devkit-utils/parse-name.js deleted file mode 100644 index 1c5628e..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/parse-name.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @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 - */ -const core_1 = require("@angular-devkit/core"); -function parseName(path, name) { - const nameWithoutPath = core_1.basename(name); - const namePath = core_1.dirname((path + '/' + name)); - return { - name: nameWithoutPath, - path: core_1.normalize('/' + namePath), - }; -} -exports.parseName = parseName; -//# sourceMappingURL=parse-name.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/parse-name.js.map b/angular_material_schematics-AqF82I/utils/devkit-utils/parse-name.js.map deleted file mode 100644 index 031244c..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/parse-name.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-name.js","sourceRoot":"","sources":["../../../../src/lib/schematics/utils/devkit-utils/parse-name.ts"],"names":[],"mappings":";;AACA;;;;;;GAMG;AACH,+CAA0E;AAO1E,mBAA0B,IAAY,EAAE,IAAY;IAClD,MAAM,eAAe,GAAG,eAAQ,CAAC,IAAY,CAAC,CAAC;IAC/C,MAAM,QAAQ,GAAG,cAAO,CAAC,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,CAAS,CAAC,CAAC;IAEtD,MAAM,CAAC;QACL,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,gBAAS,CAAC,GAAG,GAAG,QAAQ,CAAC;KAChC,CAAC;AACJ,CAAC;AARD,8BAQC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/route-utils.js b/angular_material_schematics-AqF82I/utils/devkit-utils/route-utils.js deleted file mode 100644 index 131e1df..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/route-utils.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @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 - */ -const ts = require("typescript"); -const ast_utils_1 = require("./ast-utils"); -const change_1 = require("./change"); -/** -* Add Import `import { symbolName } from fileName` if the import doesn't exit -* already. Assumes fileToEdit can be resolved and accessed. -* @param fileToEdit (file we want to add import to) -* @param symbolName (item to import) -* @param fileName (path to the file) -* @param isDefault (if true, import follows style for importing default exports) -* @return Change -*/ -function insertImport(source, fileToEdit, symbolName, fileName, isDefault = false) { - const rootNode = source; - const allImports = ast_utils_1.findNodes(rootNode, ts.SyntaxKind.ImportDeclaration); - // get nodes that map to import statements from the file fileName - const relevantImports = allImports.filter(node => { - // StringLiteral of the ImportDeclaration is the import file (fileName in this case). - const importFiles = node.getChildren() - .filter(child => child.kind === ts.SyntaxKind.StringLiteral) - .map(n => n.text); - return importFiles.filter(file => file === fileName).length === 1; - }); - if (relevantImports.length > 0) { - let importsAsterisk = false; - // imports from import file - const imports = []; - relevantImports.forEach(n => { - Array.prototype.push.apply(imports, ast_utils_1.findNodes(n, ts.SyntaxKind.Identifier)); - if (ast_utils_1.findNodes(n, ts.SyntaxKind.AsteriskToken).length > 0) { - importsAsterisk = true; - } - }); - // if imports * from fileName, don't add symbolName - if (importsAsterisk) { - return new change_1.NoopChange(); - } - const importTextNodes = imports.filter(n => n.text === symbolName); - // insert import if it's not there - if (importTextNodes.length === 0) { - const fallbackPos = ast_utils_1.findNodes(relevantImports[0], ts.SyntaxKind.CloseBraceToken)[0].getStart() || - ast_utils_1.findNodes(relevantImports[0], ts.SyntaxKind.FromKeyword)[0].getStart(); - return ast_utils_1.insertAfterLastOccurrence(imports, `, ${symbolName}`, fileToEdit, fallbackPos); - } - return new change_1.NoopChange(); - } - // no such import declaration exists - const useStrict = ast_utils_1.findNodes(rootNode, ts.SyntaxKind.StringLiteral) - .filter((n) => n.text === 'use strict'); - let fallbackPos = 0; - if (useStrict.length > 0) { - fallbackPos = useStrict[0].end; - } - const open = isDefault ? '' : '{ '; - const close = isDefault ? '' : ' }'; - // if there are no imports or 'use strict' statement, insert import at beginning of file - const insertAtBeginning = allImports.length === 0 && useStrict.length === 0; - const separator = insertAtBeginning ? '' : ';\n'; - const toInsert = `${separator}import ${open}${symbolName}${close}` + - ` from '${fileName}'${insertAtBeginning ? ';\n' : ''}`; - return ast_utils_1.insertAfterLastOccurrence(allImports, toInsert, fileToEdit, fallbackPos, ts.SyntaxKind.StringLiteral); -} -exports.insertImport = insertImport; -//# sourceMappingURL=route-utils.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/route-utils.js.map b/angular_material_schematics-AqF82I/utils/devkit-utils/route-utils.js.map deleted file mode 100644 index fee51f8..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/route-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"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AW,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IACjC,CAAC;IACD,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACnC,MAAM,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACpC,wFAAwF;IACxF,MAAM,iBAAiB,GAAG,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC;IAC5E,MAAM,SAAS,GAAG,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IACjD,MAAM,QAAQ,GAAG,GAAG,SAAS,UAAU,IAAI,GAAG,UAAU,GAAG,KAAK,EAAE;QAChE,UAAU,QAAQ,IAAI,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAEzD,MAAM,CAAC,qCAAyB,CAC9B,UAAU,EACV,QAAQ,EACR,UAAU,EACV,WAAW,EACX,EAAE,CAAC,UAAU,CAAC,aAAa,CAC5B,CAAC;AACJ,CAAC;AAnED,oCAmEC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/validation.js b/angular_material_schematics-AqF82I/utils/devkit-utils/validation.js deleted file mode 100644 index 43298d3..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/validation.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * @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 - */ -const core_1 = require("@angular-devkit/core"); -const schematics_1 = require("@angular-devkit/schematics"); -function validateName(name) { - if (name && /^\d/.test(name)) { - throw new schematics_1.SchematicsException(core_1.tags.oneLine `name (${name}) - can not start with a digit.`); - } -} -exports.validateName = validateName; -//# sourceMappingURL=validation.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/devkit-utils/validation.js.map b/angular_material_schematics-AqF82I/utils/devkit-utils/validation.js.map deleted file mode 100644 index d99cf59..0000000 --- a/angular_material_schematics-AqF82I/utils/devkit-utils/validation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../src/lib/schematics/utils/devkit-utils/validation.ts"],"names":[],"mappings":";;AAAA;;;;;;GAMG;AACH,+CAA4C;AAC5C,2DAAiE;AAEjE,sBAA6B,IAAY;IACvC,EAAE,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC7B,MAAM,IAAI,gCAAmB,CAAC,WAAI,CAAC,OAAO,CAAA,SAAS,IAAI;oCACvB,CAAC,CAAC;IACpC,CAAC;AACH,CAAC;AALD,oCAKC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/html.js b/angular_material_schematics-AqF82I/utils/html.js deleted file mode 100644 index 8aae61b..0000000 --- a/angular_material_schematics-AqF82I/utils/html.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const schematics_1 = require("@angular-devkit/schematics"); -const parse5 = require("parse5"); -const ast_1 = require("./ast"); -const change_1 = require("./devkit-utils/change"); -/** - * Parses the index.html file to get the HEAD tag position. - * @param host the tree we are traversing - * @param src the src path of the html file to parse - */ -function getHeadTag(host, src) { - const document = parse5.parse(src, { locationInfo: true }); - let head; - const visit = (nodes) => { - nodes.forEach(node => { - const element = node; - if (element.tagName === 'head') { - head = element; - } - else { - if (element.childNodes) { - visit(element.childNodes); - } - } - }); - }; - visit(document.childNodes); - if (!head) { - throw new schematics_1.SchematicsException('Head element not found!'); - } - return { - position: head.__location.startTag.endOffset - }; -} -exports.getHeadTag = getHeadTag; -/** - * Adds a link to the index.html head tag Example: - * `` - * @param host The tree we are updating - * @param project The project we're targeting. - * @param link html element string we are inserting. - */ -function addHeadLink(host, project, link) { - const indexPath = ast_1.getIndexHtmlPath(host, project); - const buffer = host.read(indexPath); - if (!buffer) { - throw new schematics_1.SchematicsException(`Could not find file for path: ${indexPath}`); - } - const src = buffer.toString(); - if (src.indexOf(link) === -1) { - const node = getHeadTag(host, src); - const insertion = new change_1.InsertChange(indexPath, node.position, link); - const recorder = host.beginUpdate(indexPath); - recorder.insertLeft(insertion.pos, insertion.toAdd); - host.commitUpdate(recorder); - } -} -exports.addHeadLink = addHeadLink; -//# sourceMappingURL=html.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/html.js.map b/angular_material_schematics-AqF82I/utils/html.js.map deleted file mode 100644 index 00e170d..0000000 --- a/angular_material_schematics-AqF82I/utils/html.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/lib/schematics/utils/html.ts"],"names":[],"mappings":";;AAAA,2DAAqE;AACrE,iCAAiC;AACjC,+BAAuC;AACvC,kDAAmD;AAGnD;;;;GAIG;AACH,oBAA2B,IAAU,EAAE,GAAW;IAChD,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,EAC/B,EAAC,YAAY,EAAE,IAAI,EAAC,CAAgC,CAAC;IAEvD,IAAI,IAAI,CAAC;IACT,MAAM,KAAK,GAAG,CAAC,KAAgC,EAAE,EAAE;QACjD,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACnB,MAAM,OAAO,GAA+B,IAAI,CAAC;YACjD,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC;gBAC/B,IAAI,GAAG,OAAO,CAAC;YACjB,CAAC;YAAC,IAAI,CAAC,CAAC;gBACN,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;oBACvB,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;gBAC5B,CAAC;Y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at end of file diff --git a/angular_material_schematics-AqF82I/utils/lib-versions.js b/angular_material_schematics-AqF82I/utils/lib-versions.js deleted file mode 100644 index ae46bc6..0000000 --- a/angular_material_schematics-AqF82I/utils/lib-versions.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.materialVersion = '^6.0.0'; -exports.cdkVersion = '^6.0.0'; -exports.angularVersion = '^6.0.0'; -//# sourceMappingURL=lib-versions.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/lib-versions.js.map b/angular_material_schematics-AqF82I/utils/lib-versions.js.map deleted file mode 100644 index 4f54d83..0000000 --- a/angular_material_schematics-AqF82I/utils/lib-versions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lib-versions.js","sourceRoot":"","sources":["../../../src/lib/schematics/utils/lib-versions.ts"],"names":[],"mappings":";;AAAa,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAG,QAAQ,CAAC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/package.js b/angular_material_schematics-AqF82I/utils/package.js deleted file mode 100644 index f7010f7..0000000 --- a/angular_material_schematics-AqF82I/utils/package.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Adds a package to the package.json - */ -function addPackageToPackageJson(host, type, pkg, version) { - if (host.exists('package.json')) { - const sourceText = host.read('package.json').toString('utf-8'); - const json = JSON.parse(sourceText); - if (!json[type]) { - json[type] = {}; - } - if (!json[type][pkg]) { - json[type][pkg] = version; - } - host.overwrite('package.json', JSON.stringify(json, null, 2)); - } - return host; -} -exports.addPackageToPackageJson = addPackageToPackageJson; -//# sourceMappingURL=package.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/package.js.map b/angular_material_schematics-AqF82I/utils/package.js.map deleted file mode 100644 index 1b62e52..0000000 --- a/angular_material_schematics-AqF82I/utils/package.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"package.js","sourceRoot":"","sources":["../../../src/lib/schematics/utils/package.ts"],"names":[],"mappings":";;AAEA;;GAEG;AACH,iCACI,IAAU,EAAE,IAAY,EAAE,GAAW,EAAE,OAAe;IACxD,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,CAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAChE,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACpC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAChB,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;QAClB,CAAC;QAED,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACrB,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;QAC5B,CAAC;QAED,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAChE,CAAC;IAED,MAAM,CAAC,IAAI,CAAC;AACd,CAAC;AAjBD,0DAiBC"} \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/testing.js b/angular_material_schematics-AqF82I/utils/testing.js deleted file mode 100644 index ff0ef9b..0000000 --- a/angular_material_schematics-AqF82I/utils/testing.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const path_1 = require("path"); -const testing_1 = require("@angular-devkit/schematics/testing"); -const collectionPath = path_1.join('./node_modules/@schematics/angular/collection.json'); -/** - * Create a base app used for testing. - */ -function createTestApp() { - const baseRunner = new testing_1.SchematicTestRunner('schematics', collectionPath); - return baseRunner.runSchematic('application', { - directory: '', - name: 'app', - prefix: 'app', - sourceDir: 'src', - inlineStyle: false, - inlineTemplate: false, - viewEncapsulation: 'None', - version: '1.2.3', - routing: true, - style: 'scss', - skipTests: false, - minimal: false, - }); -} -exports.createTestApp = createTestApp; -//# sourceMappingURL=testing.js.map \ No newline at end of file diff --git a/angular_material_schematics-AqF82I/utils/testing.js.map b/angular_material_schematics-AqF82I/utils/testing.js.map deleted file mode 100644 index e7f6f40..0000000 --- a/angular_material_schematics-AqF82I/utils/testing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../src/lib/schematics/utils/testing.ts"],"names":[],"mappings":";;AAAA,+BAA0B;AAC1B,gEAAqF;AAErF,MAAM,cAAc,GAAG,WAAI,CAAC,oDAAoD,CAAC,CAAC;AAElF;;GAEG;AACH;IACE,MAAM,UAAU,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,aAAa,EAAE;QAC5C,SAAS,EAAE,EAAE;QACb,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,KAAK;QAChB,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,KAAK;QACrB,iBAAiB,EAAE,MAAM;QACzB,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,MAAM;QACb,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,KAAK;KACf,CAAC,CAAC;AACL,CAAC;AAhBD,sCAgBC"} \ No newline at end of file diff --git a/apps/.gitkeep b/apps/.gitkeep deleted file mode 100644 index 8b13789..0000000 --- a/apps/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - diff --git a/apps/demo-e2e/protractor.conf.js b/apps/demo-e2e/protractor.conf.js deleted file mode 100644 index bde1a8b..0000000 --- a/apps/demo-e2e/protractor.conf.js +++ /dev/null @@ -1,26 +0,0 @@ -// Protractor configuration file, see link for more information -// https://github.com/angular/protractor/blob/master/lib/config.ts - -const { SpecReporter } = require('jasmine-spec-reporter'); - -exports.config = { - allScriptsTimeout: 11000, - specs: ['./src/**/*.e2e-spec.ts'], - capabilities: { - browserName: 'chrome' - }, - directConnect: true, - baseUrl: 'http://localhost:4200/', - framework: 'jasmine', - jasmineNodeOpts: { - showColors: true, - defaultTimeoutInterval: 30000, - print: function() {} - }, - onPrepare() { - require('ts-node').register({ - project: require('path').join(__dirname, './tsconfig.e2e.json') - }); - jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); - } -}; diff --git a/apps/demo-e2e/src/app.e2e-spec.ts b/apps/demo-e2e/src/app.e2e-spec.ts deleted file mode 100644 index fb08e6f..0000000 --- a/apps/demo-e2e/src/app.e2e-spec.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { AppPage } from './app.po'; - -describe('demo App', () => { - let page: AppPage; - - beforeEach(() => { - page = new AppPage(); - }); - - it('should display welcome message', () => { - page.navigateTo(); - expect(page.text()).toContain('Welcome'); - }); -}); diff --git a/apps/demo-e2e/src/app.po.ts b/apps/demo-e2e/src/app.po.ts deleted file mode 100644 index 531c349..0000000 --- a/apps/demo-e2e/src/app.po.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { browser, by, element } from 'protractor'; - -export class AppPage { - navigateTo() { - return browser.get('/'); - } - - text() { - return browser.findElement(by.css('body')).getText(); - } -} diff --git a/apps/demo-e2e/tsconfig.e2e.json b/apps/demo-e2e/tsconfig.e2e.json deleted file mode 100644 index b62e0e8..0000000 --- a/apps/demo-e2e/tsconfig.e2e.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/apps/demo-e2e", - "module": "commonjs", - "target": "es5", - "types": [ - "jasmine", - "jasminewd2", - "node" - ] - } -} diff --git a/apps/demo/browserslist b/apps/demo/browserslist deleted file mode 100644 index 8e09ab4..0000000 --- a/apps/demo/browserslist +++ /dev/null @@ -1,9 +0,0 @@ -# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries -# For IE 9-11 support, please uncomment the last line of the file and adjust as needed -> 0.5% -last 2 versions -Firefox ESR -not dead -# IE 9-11 \ No newline at end of file diff --git a/apps/demo/karma.conf.js b/apps/demo/karma.conf.js deleted file mode 100644 index 3df4d0c..0000000 --- a/apps/demo/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function(config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-phantomjs-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../../coverage'), - reports: ['html', 'lcovonly'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false - }); -}; diff --git a/apps/demo/ngsw-config.json b/apps/demo/ngsw-config.json deleted file mode 100644 index fa9410f..0000000 --- a/apps/demo/ngsw-config.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "index": "/index.html", - "assetGroups": [ - { - "name": "app", - "installMode": "prefetch", - "resources": { - "files": [ - "/favicon.ico", - "/index.html", - "/*.css", - "/*.js" - ] - } - }, { - "name": "assets", - "installMode": "lazy", - "updateMode": "prefetch", - "resources": { - "files": [ - "/assets/**" - ] - } - } - ] -} diff --git a/apps/demo/src/app/app.component.html b/apps/demo/src/app/app.component.html deleted file mode 100644 index 88f2059..0000000 --- a/apps/demo/src/app/app.component.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/apps/demo/src/app/app.component.scss b/apps/demo/src/app/app.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/apps/demo/src/app/app.component.spec.ts b/apps/demo/src/app/app.component.spec.ts deleted file mode 100644 index 1b1c624..0000000 --- a/apps/demo/src/app/app.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { AppComponent } from './app.component'; - -describe('AppComponent', () => { - let component: AppComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - declarations: [AppComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(AppComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/apps/demo/src/app/app.component.ts b/apps/demo/src/app/app.component.ts deleted file mode 100644 index f4012bb..0000000 --- a/apps/demo/src/app/app.component.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'app-root', - templateUrl: './app.component.html', - styleUrls: ['./app.component.scss'] -}) -export class AppComponent implements OnInit { - constructor() {} - - ngOnInit() {} -} diff --git a/apps/demo/src/app/app.module.ts b/apps/demo/src/app/app.module.ts deleted file mode 100644 index 41d0c7e..0000000 --- a/apps/demo/src/app/app.module.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { NgModule } from '@angular/core'; -import { AppComponent } from './app.component'; -import { BrowserModule } from '@angular/platform-browser'; -import { RouterModule } from '@angular/router'; -import { NxModule } from '@nrwl/nx'; - -import { SharedComponentsModule } from '@nx-examples/shared-components'; -import { NxD3Module } from '@nx-examples/nx-d3'; -import { D3ExampleComponent } from './d3-example/d3-example.component'; -import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; -import { ServiceWorkerModule } from '@angular/service-worker'; -import { environment } from '../environments/environment'; - -const routes = [ - { path: '', pathMatch: 'full', redirectTo: 'd3' }, - { - path: 'd3', - component: D3ExampleComponent - } -]; - -@NgModule({ - imports: [ - BrowserModule, - RouterModule.forRoot(routes), - NxD3Module, - NxModule.forRoot(), - SharedComponentsModule, - BrowserAnimationsModule, - ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }) - ], - declarations: [AppComponent, D3ExampleComponent], - bootstrap: [AppComponent] -}) -export class AppModule {} diff --git a/apps/demo/src/app/d3-example/d3-example.component.html b/apps/demo/src/app/d3-example/d3-example.component.html deleted file mode 100644 index c73fc7c..0000000 --- a/apps/demo/src/app/d3-example/d3-example.component.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/apps/demo/src/app/d3-example/d3-example.component.scss b/apps/demo/src/app/d3-example/d3-example.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/apps/demo/src/app/d3-example/d3-example.component.spec.ts b/apps/demo/src/app/d3-example/d3-example.component.spec.ts deleted file mode 100644 index 396ec3e..0000000 --- a/apps/demo/src/app/d3-example/d3-example.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { D3ExampleComponent } from './d3-example.component'; - -describe('D3ExampleComponent', () => { - let component: D3ExampleComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - declarations: [D3ExampleComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(D3ExampleComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/apps/demo/src/app/d3-example/d3-example.component.ts b/apps/demo/src/app/d3-example/d3-example.component.ts deleted file mode 100644 index b7e3678..0000000 --- a/apps/demo/src/app/d3-example/d3-example.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'app-d3-example', - templateUrl: './d3-example.component.html', - styleUrls: ['./d3-example.component.scss'] -}) -export class D3ExampleComponent implements OnInit { - data = [{ id: 1, duration: 2384 }, { id: 2, duration: 5485 }, { id: 3, duration: 2434 }, { id: 4, duration: 5565 }]; - constructor() {} - - ngOnInit() {} -} diff --git a/apps/demo/src/assets/.gitkeep b/apps/demo/src/assets/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/apps/demo/src/assets/icons/icon-128x128.png b/apps/demo/src/assets/icons/icon-128x128.png deleted file mode 100644 index 9f9241f..0000000 Binary files a/apps/demo/src/assets/icons/icon-128x128.png and /dev/null differ diff --git a/apps/demo/src/assets/icons/icon-144x144.png b/apps/demo/src/assets/icons/icon-144x144.png deleted file mode 100644 index 4a5f8c1..0000000 Binary files a/apps/demo/src/assets/icons/icon-144x144.png and /dev/null differ diff --git a/apps/demo/src/assets/icons/icon-152x152.png b/apps/demo/src/assets/icons/icon-152x152.png deleted file mode 100644 index 34a1a8d..0000000 Binary files a/apps/demo/src/assets/icons/icon-152x152.png and /dev/null differ diff --git a/apps/demo/src/assets/icons/icon-192x192.png b/apps/demo/src/assets/icons/icon-192x192.png deleted file mode 100644 index 9172e5d..0000000 Binary files a/apps/demo/src/assets/icons/icon-192x192.png and /dev/null differ diff --git a/apps/demo/src/assets/icons/icon-384x384.png b/apps/demo/src/assets/icons/icon-384x384.png deleted file mode 100644 index e54e8d3..0000000 Binary files a/apps/demo/src/assets/icons/icon-384x384.png and /dev/null differ diff --git a/apps/demo/src/assets/icons/icon-512x512.png b/apps/demo/src/assets/icons/icon-512x512.png deleted file mode 100644 index 51ee297..0000000 Binary files a/apps/demo/src/assets/icons/icon-512x512.png and /dev/null differ diff --git a/apps/demo/src/assets/icons/icon-72x72.png b/apps/demo/src/assets/icons/icon-72x72.png deleted file mode 100644 index 2814a3f..0000000 Binary files a/apps/demo/src/assets/icons/icon-72x72.png and /dev/null differ diff --git a/apps/demo/src/assets/icons/icon-96x96.png b/apps/demo/src/assets/icons/icon-96x96.png deleted file mode 100644 index d271025..0000000 Binary files a/apps/demo/src/assets/icons/icon-96x96.png and /dev/null differ diff --git a/apps/demo/src/assets/nx-logo.png b/apps/demo/src/assets/nx-logo.png deleted file mode 100644 index bed0370..0000000 Binary files a/apps/demo/src/assets/nx-logo.png and /dev/null differ diff --git a/apps/demo/src/environments/environment.prod.ts b/apps/demo/src/environments/environment.prod.ts deleted file mode 100644 index 3612073..0000000 --- a/apps/demo/src/environments/environment.prod.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const environment = { - production: true -}; diff --git a/apps/demo/src/environments/environment.ts b/apps/demo/src/environments/environment.ts deleted file mode 100644 index b7f639a..0000000 --- a/apps/demo/src/environments/environment.ts +++ /dev/null @@ -1,8 +0,0 @@ -// The file contents for the current environment will overwrite these during build. -// The build system defaults to the dev environment which uses `environment.ts`, but if you do -// `ng build --env=prod` then `environment.prod.ts` will be used instead. -// The list of which env maps to which file can be found in `.angular-cli.json`. - -export const environment = { - production: false -}; diff --git a/apps/demo/src/favicon.ico b/apps/demo/src/favicon.ico deleted file mode 100644 index 8081c7c..0000000 Binary files a/apps/demo/src/favicon.ico and /dev/null differ diff --git a/apps/demo/src/index.html b/apps/demo/src/index.html deleted file mode 100644 index 330cf59..0000000 --- a/apps/demo/src/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - Demo - - - - - - - - - - - - - - - - - - diff --git a/apps/demo/src/main.ts b/apps/demo/src/main.ts deleted file mode 100644 index 5aa3bf0..0000000 --- a/apps/demo/src/main.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { enableProdMode } from '@angular/core'; -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; - -import { AppModule } from './app/app.module'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} - -platformBrowserDynamic() - .bootstrapModule(AppModule) - .catch(err => console.log(err)); diff --git a/apps/demo/src/manifest.json b/apps/demo/src/manifest.json deleted file mode 100644 index b2685c6..0000000 --- a/apps/demo/src/manifest.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "demo", - "short_name": "demo", - "theme_color": "#1976d2", - "background_color": "#fafafa", - "display": "standalone", - "scope": "/", - "start_url": "/", - "icons": [ - { - "src": "assets/icons/icon-72x72.png", - "sizes": "72x72", - "type": "image/png" - }, - { - "src": "assets/icons/icon-96x96.png", - "sizes": "96x96", - "type": "image/png" - }, - { - "src": "assets/icons/icon-128x128.png", - "sizes": "128x128", - "type": "image/png" - }, - { - "src": "assets/icons/icon-144x144.png", - "sizes": "144x144", - "type": "image/png" - }, - { - "src": "assets/icons/icon-152x152.png", - "sizes": "152x152", - "type": "image/png" - }, - { - "src": "assets/icons/icon-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "assets/icons/icon-384x384.png", - "sizes": "384x384", - "type": "image/png" - }, - { - "src": "assets/icons/icon-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ] -} \ No newline at end of file diff --git a/apps/demo/src/polyfills.ts b/apps/demo/src/polyfills.ts deleted file mode 100644 index 0e3512b..0000000 --- a/apps/demo/src/polyfills.ts +++ /dev/null @@ -1,66 +0,0 @@ -/** - * This file includes polyfills needed by Angular and is loaded before the app. - * You can add your own extra polyfills to this file. - * - * This file is divided into 2 sections: - * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. - * 2. Application imports. Files imported after ZoneJS that should be loaded before your main - * file. - * - * The current setup is for so-called "evergreen" browsers; the last versions of browsers that - * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), - * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. - * - * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html - */ - -/*************************************************************************************************** - * BROWSER POLYFILLS - */ - -/** IE9, IE10 and IE11 requires all of the following polyfills. **/ -// import 'core-js/es6/symbol'; -// import 'core-js/es6/object'; -// import 'core-js/es6/function'; -// import 'core-js/es6/parse-int'; -// import 'core-js/es6/parse-float'; -// import 'core-js/es6/number'; -// import 'core-js/es6/math'; -// import 'core-js/es6/string'; -// import 'core-js/es6/date'; -// import 'core-js/es6/array'; -// import 'core-js/es6/regexp'; -// import 'core-js/es6/map'; -// import 'core-js/es6/weak-map'; -// import 'core-js/es6/set'; - -/** IE10 and IE11 requires the following for NgClass support on SVG elements */ -// import 'classlist.js'; // Run `npm install --save classlist.js`. - -/** IE10 and IE11 requires the following for the Reflect API. */ -// import 'core-js/es6/reflect'; - -/** Evergreen browsers require these. **/ -// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. -import 'core-js/es7/reflect'; - -/** - * Required to support Web Animations `@angular/platform-browser/animations`. - * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation - **/ -// import 'web-animations-js'; // Run `npm install --save web-animations-js`. - -/*************************************************************************************************** - * Zone JS is required by Angular itself. - */ -import 'zone.js/dist/zone'; // Included with Angular CLI. - -/*************************************************************************************************** - * APPLICATION IMPORTS - */ - -/** - * Date, currency, decimal and percent pipes. - * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 - */ -// import 'intl'; // Run `npm install --save intl`. diff --git a/apps/demo/src/styles.css b/apps/demo/src/styles.css deleted file mode 100644 index d53753a..0000000 --- a/apps/demo/src/styles.css +++ /dev/null @@ -1,3 +0,0 @@ -/* You can add global styles to this file, and also import other style files */ - -body { margin: 0; } diff --git a/apps/demo/src/test.ts b/apps/demo/src/test.ts deleted file mode 100644 index da4d847..0000000 --- a/apps/demo/src/test.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /.spec.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/apps/demo/tsconfig.app.json b/apps/demo/tsconfig.app.json deleted file mode 100644 index e0f21d5..0000000 --- a/apps/demo/tsconfig.app.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/apps/demo", - "module": "es2015" - }, - "include": [ - "**/*.ts" - ], - "exclude": [ - "**/*.spec.ts", - "src/test.ts" - ] -} diff --git a/apps/demo/tsconfig.spec.json b/apps/demo/tsconfig.spec.json deleted file mode 100644 index 18dc31c..0000000 --- a/apps/demo/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/apps/demo", - "types": [ - "jasmine", - "node" - ], - "module": "commonjs" - }, - "files": [ - "src/test.ts", - "src/polyfills.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/apps/demo/tslint.json b/apps/demo/tslint.json deleted file mode 100644 index 19e8161..0000000 --- a/apps/demo/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ] - } -} diff --git a/apps/profile-e2e/protractor.conf.js b/apps/profile-e2e/protractor.conf.js deleted file mode 100644 index bde1a8b..0000000 --- a/apps/profile-e2e/protractor.conf.js +++ /dev/null @@ -1,26 +0,0 @@ -// Protractor configuration file, see link for more information -// https://github.com/angular/protractor/blob/master/lib/config.ts - -const { SpecReporter } = require('jasmine-spec-reporter'); - -exports.config = { - allScriptsTimeout: 11000, - specs: ['./src/**/*.e2e-spec.ts'], - capabilities: { - browserName: 'chrome' - }, - directConnect: true, - baseUrl: 'http://localhost:4200/', - framework: 'jasmine', - jasmineNodeOpts: { - showColors: true, - defaultTimeoutInterval: 30000, - print: function() {} - }, - onPrepare() { - require('ts-node').register({ - project: require('path').join(__dirname, './tsconfig.e2e.json') - }); - jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); - } -}; diff --git a/apps/profile-e2e/src/app.e2e-spec.ts b/apps/profile-e2e/src/app.e2e-spec.ts deleted file mode 100644 index b20c4b6..0000000 --- a/apps/profile-e2e/src/app.e2e-spec.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { AppPage } from './app.po'; - -describe('profile App', () => { - let page: AppPage; - - beforeEach(() => { - page = new AppPage(); - }); - - it('should display welcome message', () => { - page.navigateTo(); - expect(page.text()).toContain('app works!'); - }); -}); diff --git a/apps/profile-e2e/src/app.po.ts b/apps/profile-e2e/src/app.po.ts deleted file mode 100644 index 531c349..0000000 --- a/apps/profile-e2e/src/app.po.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { browser, by, element } from 'protractor'; - -export class AppPage { - navigateTo() { - return browser.get('/'); - } - - text() { - return browser.findElement(by.css('body')).getText(); - } -} diff --git a/apps/profile-e2e/tsconfig.e2e.json b/apps/profile-e2e/tsconfig.e2e.json deleted file mode 100644 index 7d58022..0000000 --- a/apps/profile-e2e/tsconfig.e2e.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/apps/profile-e2e", - "module": "commonjs", - "target": "es5", - "types": [ - "jasmine", - "jasminewd2", - "node" - ] - } -} diff --git a/apps/profile/browserslist b/apps/profile/browserslist deleted file mode 100644 index 8e09ab4..0000000 --- a/apps/profile/browserslist +++ /dev/null @@ -1,9 +0,0 @@ -# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries -# For IE 9-11 support, please uncomment the last line of the file and adjust as needed -> 0.5% -last 2 versions -Firefox ESR -not dead -# IE 9-11 \ No newline at end of file diff --git a/apps/profile/karma.conf.js b/apps/profile/karma.conf.js deleted file mode 100644 index 3df4d0c..0000000 --- a/apps/profile/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function(config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-phantomjs-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../../coverage'), - reports: ['html', 'lcovonly'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false - }); -}; diff --git a/apps/profile/src/app/app.component.html b/apps/profile/src/app/app.component.html deleted file mode 100644 index 2c28866..0000000 --- a/apps/profile/src/app/app.component.html +++ /dev/null @@ -1,18 +0,0 @@ -
-

- Welcome to an Angular CLI app built with Nrwl Nx! -

- -
- -

Nx

- -An open source toolkit for enterprise Angular applications. - -Nx is designed to help you create and build enterprise grade Angular applications. It provides an opinionated approach to application project structure and patterns. - -

Quick Start & Documentation

- -Watch a 5-minute video on how to get started with Nx. - - diff --git a/apps/profile/src/app/app.component.scss b/apps/profile/src/app/app.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/apps/profile/src/app/app.component.spec.ts b/apps/profile/src/app/app.component.spec.ts deleted file mode 100644 index 0f422f6..0000000 --- a/apps/profile/src/app/app.component.spec.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { AppComponent } from './app.component'; -import { RouterTestingModule } from '@angular/router/testing'; - -describe('AppComponent', () => { - let component: AppComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - imports: [RouterTestingModule], - declarations: [AppComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(AppComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/apps/profile/src/app/app.component.ts b/apps/profile/src/app/app.component.ts deleted file mode 100644 index 188205d..0000000 --- a/apps/profile/src/app/app.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, OnInit, ViewEncapsulation } from '@angular/core'; - -@Component({ - selector: 'app-root', - templateUrl: './app.component.html', - styleUrls: ['./app.component.scss'], - encapsulation: ViewEncapsulation.None -}) -export class AppComponent implements OnInit { - constructor() {} - - ngOnInit() {} -} diff --git a/apps/profile/src/app/app.module.ts b/apps/profile/src/app/app.module.ts deleted file mode 100644 index b10803c..0000000 --- a/apps/profile/src/app/app.module.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { NgModule } from '@angular/core'; -import { AppComponent } from './app.component'; -import { BrowserModule } from '@angular/platform-browser'; -import { NxModule } from '@nrwl/nx'; -import { RouterModule } from '@angular/router'; - -@NgModule({ - imports: [BrowserModule, NxModule.forRoot(), RouterModule.forRoot([], { initialNavigation: 'enabled' })], - declarations: [AppComponent], - bootstrap: [AppComponent] -}) -export class AppModule {} diff --git a/apps/profile/src/assets/.gitkeep b/apps/profile/src/assets/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/apps/profile/src/assets/images/narwhal.gif b/apps/profile/src/assets/images/narwhal.gif deleted file mode 100644 index 17680d1..0000000 Binary files a/apps/profile/src/assets/images/narwhal.gif and /dev/null differ diff --git a/apps/profile/src/assets/nx-logo.png b/apps/profile/src/assets/nx-logo.png deleted file mode 100644 index bed0370..0000000 Binary files a/apps/profile/src/assets/nx-logo.png and /dev/null differ diff --git a/apps/profile/src/environments/environment.prod.ts b/apps/profile/src/environments/environment.prod.ts deleted file mode 100644 index 3612073..0000000 --- a/apps/profile/src/environments/environment.prod.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const environment = { - production: true -}; diff --git a/apps/profile/src/environments/environment.ts b/apps/profile/src/environments/environment.ts deleted file mode 100644 index b7f639a..0000000 --- a/apps/profile/src/environments/environment.ts +++ /dev/null @@ -1,8 +0,0 @@ -// The file contents for the current environment will overwrite these during build. -// The build system defaults to the dev environment which uses `environment.ts`, but if you do -// `ng build --env=prod` then `environment.prod.ts` will be used instead. -// The list of which env maps to which file can be found in `.angular-cli.json`. - -export const environment = { - production: false -}; diff --git a/apps/profile/src/favicon.ico b/apps/profile/src/favicon.ico deleted file mode 100644 index 8081c7c..0000000 Binary files a/apps/profile/src/favicon.ico and /dev/null differ diff --git a/apps/profile/src/index.html b/apps/profile/src/index.html deleted file mode 100644 index 11f52a4..0000000 --- a/apps/profile/src/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Profile - - - - - - - - - diff --git a/apps/profile/src/main.ts b/apps/profile/src/main.ts deleted file mode 100644 index 5aa3bf0..0000000 --- a/apps/profile/src/main.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { enableProdMode } from '@angular/core'; -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; - -import { AppModule } from './app/app.module'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} - -platformBrowserDynamic() - .bootstrapModule(AppModule) - .catch(err => console.log(err)); diff --git a/apps/profile/src/polyfills.ts b/apps/profile/src/polyfills.ts deleted file mode 100644 index 781b979..0000000 --- a/apps/profile/src/polyfills.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * This file includes polyfills needed by Angular and is loaded before the app. - * You can add your own extra polyfills to this file. - * - * This file is divided into 2 sections: - * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. - * 2. Application imports. Files imported after ZoneJS that should be loaded before your main - * file. - * - * The current setup is for so-called "evergreen" browsers; the last versions of browsers that - * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), - * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. - * - * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html - */ - -/*************************************************************************************************** - * BROWSER POLYFILLS - */ - -/** IE9, IE10 and IE11 requires all of the following polyfills. **/ -// import 'core-js/es6/symbol'; -// import 'core-js/es6/object'; -// import 'core-js/es6/function'; -// import 'core-js/es6/parse-int'; -// import 'core-js/es6/parse-float'; -// import 'core-js/es6/number'; -// import 'core-js/es6/math'; -// import 'core-js/es6/string'; -// import 'core-js/es6/date'; -// import 'core-js/es6/array'; -// import 'core-js/es6/regexp'; -// import 'core-js/es6/map'; -// import 'core-js/es6/weak-map'; -// import 'core-js/es6/set'; - -/** IE10 and IE11 requires the following for NgClass support on SVG elements */ -// import 'classlist.js'; // Run `npm install --save classlist.js`. - -/** IE10 and IE11 requires the following for the Reflect API. */ -// import 'core-js/es6/reflect'; - -/** Evergreen browsers require these. **/ -// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. -import 'core-js/es7/reflect'; - -/** - * Required to support Web Animations `@angular/platform-browser/animations`. - * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation - **/ -// import 'web-animations-js'; // Run `npm install --save web-animations-js`. - -/*************************************************************************************************** - * Zone JS is required by Angular itself. - */ -import 'zone.js/dist/zone'; // Included with Angular CLI. - -/*************************************************************************************************** - * APPLICATION IMPORTS - */ - -/** - * Date, currency, decimal and percent pipes. - * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 - */ -// import 'intl'; // Run `npm install --save intl`. -/** - * Need to import at least one locale-data with intl. - */ -// import 'intl/locale-data/jsonp/en'; diff --git a/apps/profile/src/styles.css b/apps/profile/src/styles.css deleted file mode 100644 index 90d4ee0..0000000 --- a/apps/profile/src/styles.css +++ /dev/null @@ -1 +0,0 @@ -/* You can add global styles to this file, and also import other style files */ diff --git a/apps/profile/src/test.ts b/apps/profile/src/test.ts deleted file mode 100644 index da4d847..0000000 --- a/apps/profile/src/test.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /.spec.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/apps/profile/tsconfig.app.json b/apps/profile/tsconfig.app.json deleted file mode 100644 index 56597dc..0000000 --- a/apps/profile/tsconfig.app.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/apps/profile", - "module": "es2015" - }, - "include": [ - "**/*.ts" - ], - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] -} diff --git a/apps/profile/tsconfig.spec.json b/apps/profile/tsconfig.spec.json deleted file mode 100644 index b7faf62..0000000 --- a/apps/profile/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/apps/profile", - "types": [ - "jasmine", - "node" - ], - "module": "commonjs" - }, - "files": [ - "src/test.ts", - "src/polyfills.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/apps/profile/tslint.json b/apps/profile/tslint.json deleted file mode 100644 index 19e8161..0000000 --- a/apps/profile/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ] - } -} diff --git a/apps/school-e2e/protractor.conf.js b/apps/school-e2e/protractor.conf.js deleted file mode 100644 index bde1a8b..0000000 --- a/apps/school-e2e/protractor.conf.js +++ /dev/null @@ -1,26 +0,0 @@ -// Protractor configuration file, see link for more information -// https://github.com/angular/protractor/blob/master/lib/config.ts - -const { SpecReporter } = require('jasmine-spec-reporter'); - -exports.config = { - allScriptsTimeout: 11000, - specs: ['./src/**/*.e2e-spec.ts'], - capabilities: { - browserName: 'chrome' - }, - directConnect: true, - baseUrl: 'http://localhost:4200/', - framework: 'jasmine', - jasmineNodeOpts: { - showColors: true, - defaultTimeoutInterval: 30000, - print: function() {} - }, - onPrepare() { - require('ts-node').register({ - project: require('path').join(__dirname, './tsconfig.e2e.json') - }); - jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); - } -}; diff --git a/apps/school-e2e/src/app.e2e-spec.ts b/apps/school-e2e/src/app.e2e-spec.ts deleted file mode 100644 index 16a5906..0000000 --- a/apps/school-e2e/src/app.e2e-spec.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { AppPage } from './app.po'; - -describe('school App', () => { - let page: AppPage; - - beforeEach(() => { - page = new AppPage(); - }); - - it('should display welcome message', () => { - page.navigateTo(); - expect(page.text()).toContain('app works!'); - }); -}); diff --git a/apps/school-e2e/src/app.po.ts b/apps/school-e2e/src/app.po.ts deleted file mode 100644 index 531c349..0000000 --- a/apps/school-e2e/src/app.po.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { browser, by, element } from 'protractor'; - -export class AppPage { - navigateTo() { - return browser.get('/'); - } - - text() { - return browser.findElement(by.css('body')).getText(); - } -} diff --git a/apps/school-e2e/tsconfig.e2e.json b/apps/school-e2e/tsconfig.e2e.json deleted file mode 100644 index 5732d63..0000000 --- a/apps/school-e2e/tsconfig.e2e.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/apps/school-e2e", - "module": "commonjs", - "target": "es5", - "types": [ - "jasmine", - "jasminewd2", - "node" - ] - } -} diff --git a/apps/school/browserslist b/apps/school/browserslist deleted file mode 100644 index 8e09ab4..0000000 --- a/apps/school/browserslist +++ /dev/null @@ -1,9 +0,0 @@ -# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries -# For IE 9-11 support, please uncomment the last line of the file and adjust as needed -> 0.5% -last 2 versions -Firefox ESR -not dead -# IE 9-11 \ No newline at end of file diff --git a/apps/school/karma.conf.js b/apps/school/karma.conf.js deleted file mode 100644 index 3df4d0c..0000000 --- a/apps/school/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function(config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-phantomjs-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../../coverage'), - reports: ['html', 'lcovonly'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false - }); -}; diff --git a/apps/school/src/app/app.component.html b/apps/school/src/app/app.component.html deleted file mode 100644 index 97fe7a5..0000000 --- a/apps/school/src/app/app.component.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/apps/school/src/app/app.component.scss b/apps/school/src/app/app.component.scss deleted file mode 100644 index 471a372..0000000 --- a/apps/school/src/app/app.component.scss +++ /dev/null @@ -1,39 +0,0 @@ -body { - font-family: monospace; - margin: 0; - overflow: hidden; - position: fixed; - width: 100%; - height: 100vh; - -webkit-user-select: none; - user-select: none; -} -#info { - position: absolute; - left: 50%; - bottom: 0; - transform: translate(-50%, 0); - margin: 1em; - z-index: 10; - display: block; - line-height: 2em; - text-align: center; -} -#info * { - color: #fff; -} -.title { - background-color: rgba(40, 40, 40, 0.4); - padding: 0.4em 0.6em; - border-radius: 0.1em; -} -.links { - background-color: rgba(40, 40, 40, 0.6); - padding: 0.4em 0.6em; - border-radius: 0.1em; -} -canvas { - position: absolute; - top: 0; - left: 0; -} diff --git a/apps/school/src/app/app.component.spec.ts b/apps/school/src/app/app.component.spec.ts deleted file mode 100644 index 0f422f6..0000000 --- a/apps/school/src/app/app.component.spec.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { AppComponent } from './app.component'; -import { RouterTestingModule } from '@angular/router/testing'; - -describe('AppComponent', () => { - let component: AppComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - imports: [RouterTestingModule], - declarations: [AppComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(AppComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/apps/school/src/app/app.component.ts b/apps/school/src/app/app.component.ts deleted file mode 100644 index cc22d0f..0000000 --- a/apps/school/src/app/app.component.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Component, OnInit, ViewEncapsulation } from '@angular/core'; - -@Component({ - selector: 'app-root', - templateUrl: './app.component.html', - styleUrls: ['./app.component.scss'], - encapsulation: ViewEncapsulation.None -}) -export class AppComponent implements OnInit { - links = [{ label: 'Students', path: '/students' }, { label: 'Exams', path: '/exams' }]; - constructor() {} - - ngOnInit() {} -} diff --git a/apps/school/src/app/app.module.ts b/apps/school/src/app/app.module.ts deleted file mode 100644 index d86fc2f..0000000 --- a/apps/school/src/app/app.module.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { NgModule } from '@angular/core'; -import { AppComponent } from './app.component'; -import { BrowserModule } from '@angular/platform-browser'; -import { NxModule } from '@nrwl/nx'; -import { RouterModule } from '@angular/router'; - -import { StoreModule } from '@ngrx/store'; -import { EffectsModule } from '@ngrx/effects'; -import { StoreDevtoolsModule } from '@ngrx/store-devtools'; -import { environment } from '../environments/environment'; -import { StoreRouterConnectingModule } from '@ngrx/router-store'; -import { appInitialState, appReducer } from '@nx-examples/model'; -import { SharedComponentsModule } from '@nx-examples/shared-components'; -import { SchoolUiModule, schoolUiRoutes } from '@nx-examples/school-ui'; - -@NgModule({ - imports: [ - BrowserModule, - NxModule.forRoot(), - RouterModule.forRoot( - [{ path: '', children: schoolUiRoutes }, { path: 'slides', loadChildren: '@nx-examples/slides#SlidesModule' }], - { initialNavigation: 'enabled', enableTracing: true } - ), - StoreModule.forRoot(appReducer, { initialState: appInitialState }), - EffectsModule.forRoot([]), - !environment.production ? StoreDevtoolsModule.instrument() : [], - StoreRouterConnectingModule, - SchoolUiModule, - SharedComponentsModule - ], - declarations: [AppComponent], - bootstrap: [AppComponent] -}) -export class AppModule {} diff --git a/apps/school/src/assets/.gitkeep b/apps/school/src/assets/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/apps/school/src/assets/nx-logo.png b/apps/school/src/assets/nx-logo.png deleted file mode 100644 index bed0370..0000000 Binary files a/apps/school/src/assets/nx-logo.png and /dev/null differ diff --git a/apps/school/src/assets/obj/nrwl/Narwhal.mtl b/apps/school/src/assets/obj/nrwl/Narwhal.mtl deleted file mode 100755 index 3a9c2fe..0000000 --- a/apps/school/src/assets/obj/nrwl/Narwhal.mtl +++ /dev/null @@ -1,9 +0,0 @@ -newmtl Narwhal_Mat -illum 4 -Kd 0.50 0.50 0.50 -Ka 0.00 0.00 0.00 -Tf 1.00 1.00 1.00 -Ni 1.00 -Ks 0.50 0.50 0.50 - -map_Kd Narwhal_BaseColor.png \ No newline at end of file diff --git a/apps/school/src/assets/obj/nrwl/Narwhal.obj b/apps/school/src/assets/obj/nrwl/Narwhal.obj deleted file mode 100755 index 2b798a4..0000000 --- a/apps/school/src/assets/obj/nrwl/Narwhal.obj +++ /dev/null @@ -1,2196 +0,0 @@ -# This file uses centimeters as units for non-parametric coordinates. - -mtllib Narwhal.mtl -g default -v 0.000000 2.392243 -2.083042 -v 0.000000 0.459216 -2.083042 -v 0.000000 2.498911 -1.096894 -v 0.000000 0.361714 -1.096894 -v 0.000000 2.572748 -0.217751 -v 0.000000 0.357643 -0.217751 -v 0.000000 2.171448 -3.350976 -v 0.000000 0.635391 -3.345297 -v 0.000000 1.929939 -4.583439 -v 0.000000 0.686683 -4.553551 -v 0.000000 1.002079 -7.002294 -v 0.000000 0.430760 -6.909031 -v 0.000000 0.637002 -7.631570 -v 0.000000 0.282831 -7.573755 -v 0.000000 0.499301 -7.895528 -v 0.000000 0.201041 -7.801708 -v 0.000000 0.357828 -8.246657 -v 0.000000 0.133794 -8.069757 -v 0.000000 2.618308 0.774580 -v 0.000000 0.374216 0.774581 -v 0.000000 2.555518 1.651567 -v 0.000000 0.480741 1.651568 -v 0.000000 2.457289 2.398331 -v 0.000000 0.643368 2.412009 -v 0.000000 2.267646 3.156703 -v 0.000000 0.906693 3.185919 -v 0.000000 1.057649 3.863707 -v 0.000000 1.324644 3.977047 -v 0.000000 1.718940 3.925074 -v 0.000000 0.412026 1.214898 -v 0.000000 2.600471 1.213650 -v 0.906737 1.893148 -2.083042 -v 0.990150 1.977868 -1.096894 -v 0.571784 2.359298 -1.096894 -v 0.523619 2.258511 -2.083042 -v 0.571763 0.501326 -1.096894 -v 0.523619 0.592947 -2.083042 -v 0.989980 0.874468 -1.096894 -v 0.906857 0.921039 -2.083042 -v 1.143035 1.418872 -1.096894 -v 1.047035 1.391920 -2.083042 -v 1.001357 2.053999 -0.217751 -v 0.578231 2.433750 -0.217751 -v 0.578310 0.496641 -0.217751 -v 1.001621 0.873987 -0.217751 -v 1.156391 1.458397 -0.217751 -v 0.436119 2.065316 -3.350563 -v 0.755995 1.775111 -3.349467 -v 0.436103 0.741527 -3.345675 -v 0.756024 1.002210 -3.346615 -v 0.873343 1.376617 -3.347974 -v 0.349347 1.844650 -4.581269 -v 0.606574 1.610319 -4.575500 -v 0.349264 0.771997 -4.555544 -v 0.606792 0.982850 -4.560491 -v 0.701415 1.286898 -4.567639 -v 0.170791 0.962555 -6.995841 -v 0.295818 0.854568 -6.978213 -v 0.170791 0.470284 -6.915483 -v 0.295818 0.567255 -6.931314 -v 0.341581 0.706427 -6.954030 -v 0.105876 0.612501 -7.627567 -v 0.183383 0.545558 -7.616641 -v 0.105876 0.307334 -7.577755 -v 0.183383 0.367448 -7.587565 -v 0.211752 0.453723 -7.601652 -v 0.170693 0.480653 -7.889041 -v 0.446110 0.429700 -7.871307 -v 0.183579 0.219695 -7.808200 -v 0.351813 0.269077 -7.824126 -v 0.670042 0.359798 -7.846978 -v 0.560114 0.231155 -8.477734 -v 1.256725 0.174495 -8.339142 -v 0.560114 0.000000 -8.319808 -v 1.256725 0.043243 -8.274727 -v 1.508096 0.172063 -8.135559 -v 0.928076 2.116532 0.774581 -v 0.537035 2.483857 0.774580 -v 0.558199 0.508665 0.774581 -v 0.964108 0.875990 0.774581 -v 1.072009 1.474953 0.774581 -v 0.882842 2.113119 1.214541 -v 0.510497 2.469959 1.213965 -v 0.564175 0.542752 1.215931 -v 0.956483 0.894603 1.217268 -v 2.450862 0.793928 1.096012 -v 2.488635 0.794479 1.214643 -v 2.525578 0.888639 1.215512 -v 2.485018 0.891331 1.098722 -v 1.046376 1.474228 1.216757 -v 0.816906 2.090515 1.651567 -v 0.661818 2.040936 2.394678 -v 0.381755 2.345639 2.392766 -v 0.471791 2.430921 1.651567 -v 0.401288 0.753171 2.407672 -v 0.544600 0.605339 1.651568 -v 0.679486 1.054515 2.403350 -v 0.869087 0.945745 1.651568 -v 0.766246 1.476478 2.399242 -v 0.942454 1.476514 1.651568 -v 0.619656 1.930792 3.088754 -v 0.347335 2.177196 3.091282 -v 0.346455 1.001847 3.123541 -v 0.622225 1.130890 3.105107 -v 0.734196 1.468675 3.099160 -v 0.311047 1.348723 3.828454 -v 0.246174 1.075326 3.749959 -v 0.290568 1.745318 3.792810 -v 0.583273 1.424578 3.521114 -v 0.455539 1.125929 3.505559 -v 0.491217 1.813923 3.537219 -v 1.030182 1.030070 1.202441 -v 1.101184 1.053002 0.921307 -v 1.005942 1.249934 1.487447 -v 0.973019 1.180510 1.484563 -v 1.104221 1.243728 0.936547 -v 1.030260 1.305309 1.212546 -v 1.218431 1.022408 1.208798 -v 1.275962 1.080624 0.901386 -v 1.188405 1.192955 1.523345 -v 1.150586 1.134810 1.516209 -v 1.291344 1.180976 0.922411 -v 1.225722 1.238238 1.222878 -v 1.529064 1.036041 0.768311 -v 1.493958 0.995056 1.145615 -v 1.933316 0.869672 1.121899 -v 1.935226 0.910657 0.715781 -v 1.431186 1.095986 1.522919 -v 1.473868 1.153372 1.532788 -v 1.968022 1.027988 1.537886 -v 1.926588 0.970602 1.528017 -v 1.510250 1.186786 1.164148 -v 1.557660 1.134440 0.795508 -v 1.969062 1.009056 0.742978 -v 1.970028 1.061402 1.140432 -v 2.356640 0.763840 1.180153 -v 2.357376 0.812912 0.920698 -v 2.395634 0.913783 1.442427 -v 2.355904 0.856683 1.439607 -v 2.391532 0.910663 0.931971 -v 2.393583 0.955103 1.187199 -v 2.489120 0.885947 1.332301 -v 2.449390 0.829001 1.333273 -v 0.302577 1.955646 3.605769 -v 0.000000 1.999022 3.661246 -v 0.000000 0.948148 3.504134 -v 0.274577 1.018422 3.509258 -v 0.000000 0.245811 -8.261622 -v 0.560114 0.115577 -8.502187 -v 1.256725 0.108869 -8.410350 -v 0.286777 1.576862 -5.600612 -v 0.220959 1.221094 -6.512948 -v 0.504324 1.397144 -5.570322 -v 0.381815 1.079046 -6.495178 -v 0.000000 1.640058 -5.612048 -v 0.000000 1.272830 -6.520222 -v 0.000000 0.527986 -6.425979 -v 0.000000 0.670549 -5.455484 -v 0.285358 0.733885 -5.465937 -v 0.218486 0.578605 -6.433957 -v 0.504648 0.897570 -5.491818 -v 0.378979 0.703559 -6.451023 -v 0.587240 1.140141 -5.529163 -v 0.439193 0.884752 -6.472305 -v 0.102871 1.229416 3.624130 -v 0.000000 1.286955 3.636826 -v 0.000000 1.054000 3.585423 -v 0.103698 1.112939 3.598428 -v 0.031911 0.270375 7.645129 -v 0.000000 0.287532 7.648915 -v 0.000000 0.218069 7.633587 -v 0.032157 0.235644 7.637465 -v 0.000000 0.234877 7.718626 -v -0.906737 1.893148 -2.083042 -v -0.523619 2.258511 -2.083042 -v -0.571784 2.359298 -1.096894 -v -0.990150 1.977868 -1.096894 -v -0.523619 0.592947 -2.083042 -v -0.571763 0.501326 -1.096894 -v -0.906857 0.921039 -2.083042 -v -0.989980 0.874468 -1.096894 -v -1.047035 1.391920 -2.083042 -v -1.143035 1.418872 -1.096894 -v -0.578230 2.433750 -0.217751 -v -1.001357 2.053999 -0.217751 -v -0.578310 0.496641 -0.217751 -v -1.001621 0.873987 -0.217751 -v -1.156391 1.458397 -0.217751 -v -0.755995 1.775111 -3.349467 -v -0.436119 2.065316 -3.350563 -v -0.436103 0.741527 -3.345675 -v -0.756024 1.002210 -3.346615 -v -0.873343 1.376617 -3.347974 -v -0.606573 1.610319 -4.575500 -v -0.349347 1.844650 -4.581269 -v -0.349264 0.771997 -4.555544 -v -0.606792 0.982850 -4.560491 -v -0.701415 1.286898 -4.567639 -v -0.170791 0.962555 -6.995841 -v -0.295818 0.854568 -6.978213 -v -0.183383 0.545558 -7.616641 -v -0.105876 0.612501 -7.627567 -v -0.170791 0.470284 -6.915483 -v -0.105876 0.307334 -7.577755 -v -0.295818 0.567255 -6.931314 -v -0.183383 0.367448 -7.587565 -v -0.341581 0.706427 -6.954030 -v -0.211752 0.453723 -7.601652 -v -0.446110 0.429700 -7.871307 -v -0.170692 0.480653 -7.889041 -v -0.183579 0.219695 -7.808200 -v -0.351813 0.269077 -7.824126 -v -0.670042 0.359798 -7.846978 -v -1.256725 0.174495 -8.339142 -v -0.560114 0.231155 -8.477734 -v -0.560114 0.000000 -8.319808 -v -1.256725 0.043243 -8.274727 -v -1.508096 0.172063 -8.135559 -v -0.537035 2.483857 0.774580 -v -0.928075 2.116532 0.774581 -v -0.558199 0.508665 0.774581 -v -0.964108 0.875990 0.774581 -v -1.072009 1.474953 0.774581 -v -0.510496 2.469959 1.213965 -v -0.882842 2.113119 1.214541 -v -0.564175 0.542752 1.215931 -v -0.956483 0.894603 1.217268 -v -2.450862 0.793928 1.096012 -v -2.485018 0.891331 1.098722 -v -2.525578 0.888639 1.215512 -v -2.488635 0.794479 1.214643 -v -1.046376 1.474228 1.216757 -v -0.816906 2.090515 1.651567 -v -0.471790 2.430921 1.651567 -v -0.381755 2.345639 2.392766 -v -0.661818 2.040936 2.394678 -v -0.544600 0.605339 1.651568 -v -0.401288 0.753171 2.407672 -v -0.869087 0.945745 1.651568 -v -0.679486 1.054515 2.403350 -v -0.942454 1.476514 1.651568 -v -0.766246 1.476478 2.399242 -v -0.347335 2.177196 3.091282 -v -0.619656 1.930792 3.088754 -v -0.346455 1.001847 3.123541 -v -0.622225 1.130890 3.105107 -v -0.734196 1.468675 3.099160 -v -0.246174 1.075326 3.749959 -v -0.311047 1.348723 3.828454 -v -0.290568 1.745318 3.792810 -v -0.455539 1.125929 3.505559 -v -0.583273 1.424578 3.521114 -v -0.491217 1.813923 3.537219 -v -0.302577 1.955646 3.605769 -v -0.274577 1.018422 3.509258 -v -1.101184 1.053002 0.921307 -v -1.030182 1.030070 1.202441 -v -0.973019 1.180510 1.484563 -v -1.005942 1.249934 1.487447 -v -1.030260 1.305309 1.212546 -v -1.104221 1.243728 0.936547 -v -1.275962 1.080624 0.901386 -v -1.218431 1.022408 1.208798 -v -1.150586 1.134810 1.516209 -v -1.188405 1.192955 1.523345 -v -1.225722 1.238238 1.222878 -v -1.291344 1.180976 0.922411 -v -1.529064 1.036041 0.768311 -v -1.935226 0.910657 0.715781 -v -1.933316 0.869672 1.121899 -v -1.493958 0.995056 1.145615 -v -1.431186 1.095986 1.522919 -v -1.926588 0.970602 1.528017 -v -1.968022 1.027988 1.537886 -v -1.473868 1.153372 1.532788 -v -1.510250 1.186786 1.164148 -v -1.970028 1.061402 1.140432 -v -1.969062 1.009056 0.742978 -v -1.557660 1.134440 0.795508 -v -2.357376 0.812912 0.920698 -v -2.356640 0.763840 1.180153 -v -2.355904 0.856683 1.439607 -v -2.395634 0.913783 1.442427 -v -2.393583 0.955103 1.187199 -v -2.391532 0.910663 0.931971 -v -2.449390 0.829001 1.333273 -v -2.489120 0.885947 1.332301 -v -1.256725 0.108869 -8.410350 -v -0.560114 0.115577 -8.502187 -v -0.286777 1.576862 -5.600612 -v -0.220959 1.221094 -6.512948 -v -0.504324 1.397144 -5.570322 -v -0.381815 1.079046 -6.495178 -v -0.587240 1.140141 -5.529163 -v -0.439193 0.884752 -6.472305 -v -0.218486 0.578605 -6.433957 -v -0.285358 0.733885 -5.465937 -v -0.378979 0.703559 -6.451023 -v -0.504648 0.897570 -5.491818 -v -0.102871 1.229416 3.624130 -v -0.031911 0.270375 7.645129 -v -0.103698 1.112939 3.598428 -v -0.032157 0.235644 7.637465 -vt 0.513901 0.584154 -vt 0.551036 0.619360 -vt 0.485979 0.691435 -vt 0.448059 0.652310 -vt 0.592183 0.652982 -vt 0.528513 0.731275 -vt 0.390733 0.429255 -vt 0.420264 0.472878 -vt 0.342993 0.529675 -vt 0.307997 0.484036 -vt 0.449525 0.511624 -vt 0.376752 0.570993 -vt 0.479830 0.547635 -vt 0.411506 0.611422 -vt 0.425472 0.753299 -vt 0.389764 0.712056 -vt 0.465138 0.796966 -vt 0.277741 0.584322 -vt 0.238627 0.540524 -vt 0.314121 0.624926 -vt 0.352016 0.667847 -vt 0.598277 0.493943 -vt 0.629672 0.521871 -vt 0.664873 0.548027 -vt 0.498228 0.365834 -vt 0.522350 0.402337 -vt 0.546048 0.435044 -vt 0.570378 0.464664 -vt 0.677778 0.403500 -vt 0.703307 0.425491 -vt 0.731870 0.445490 -vt 0.595717 0.301377 -vt 0.615931 0.329795 -vt 0.635344 0.355846 -vt 0.655087 0.379862 -vt 0.829729 0.211545 -vt 0.816668 0.202536 -vt 0.852272 0.139391 -vt 0.857622 0.148083 -vt 0.845093 0.218366 -vt 0.864291 0.156109 -vt 0.786577 0.170653 -vt 0.775540 0.158263 -vt 0.820625 0.117604 -vt 0.830500 0.121834 -vt 0.796496 0.181881 -vt 0.839190 0.126053 -vt 0.805818 0.192314 -vt 0.846706 0.131497 -vt 0.879848 0.109889 -vt 0.881732 0.136158 -vt 0.884535 0.152046 -vt 0.818856 0.099410 -vt 0.836255 0.098153 -vt 0.852407 0.096351 -vt 0.883826 0.086753 -vt 0.950150 0.043500 -vt 0.941715 0.107417 -vt 0.917987 0.156266 -vt 0.811520 0.076714 -vt 0.971149 0.114513 -vt 0.972201 0.044741 -vt 0.963559 0.014899 -vt 0.353644 0.819546 -vt 0.322479 0.778484 -vt 0.386501 0.863216 -vt 0.206745 0.649649 -vt 0.165806 0.611007 -vt 0.243901 0.686264 -vt 0.282922 0.729942 -vt 0.319588 0.845991 -vt 0.290637 0.805805 -vt 0.348251 0.889141 -vt 0.178962 0.682537 -vt 0.135498 0.646012 -vt 0.215194 0.716948 -vt 0.635138 0.054553 -vt 0.672041 0.085634 -vt 0.661736 0.081580 -vt 0.662786 0.072155 -vt 0.251290 0.757673 -vt 0.257545 0.831892 -vt 0.283970 0.870759 -vt 0.221153 0.910526 -vt 0.199396 0.875918 -vt 0.308349 0.912393 -vt 0.237829 0.946650 -vt 0.108081 0.683379 -vt 0.152424 0.715948 -vt 0.102628 0.773907 -vt 0.067246 0.752176 -vt 0.185341 0.746547 -vt 0.133782 0.800391 -vt 0.219480 0.785511 -vt 0.163677 0.831592 -vt 0.156112 0.937881 -vt 0.141518 0.906844 -vt 0.159896 0.973686 -vt 0.065339 0.838086 -vt 0.030772 0.828008 -vt 0.091094 0.851411 -vt 0.115031 0.873223 -vt 0.023652 0.931801 -vt 0.012123 0.902012 -vt 0.035168 0.892129 -vt 0.051132 0.914583 -vt 0.055229 0.962886 -vt 0.076907 0.941591 -vt 0.061106 0.877062 -vt 0.083198 0.896018 -vt 0.102528 0.925516 -vt 0.102811 0.947850 -vt 0.096882 0.976965 -vt 0.017623 0.860217 -vt 0.043072 0.869443 -vt 0.647549 0.226078 -vt 0.540519 0.164050 -vt 0.213063 0.753797 -vt 0.572993 0.193868 -vt 0.240654 0.745251 -vt 0.629763 0.219049 -vt 0.652308 0.209354 -vt 0.551863 0.149136 -vt 0.574890 0.175859 -vt 0.581734 0.177663 -vt 0.610085 0.194361 -vt 0.643194 0.203744 -vt 0.538411 0.094200 -vt 0.699983 0.146889 -vt 0.591379 0.085765 -vt 0.563393 0.122660 -vt 0.589670 0.154463 -vt 0.614386 0.117124 -vt 0.620462 0.119191 -vt 0.596672 0.156190 -vt 0.630177 0.174362 -vt 0.653397 0.135178 -vt 0.689756 0.144847 -vt 0.666974 0.182947 -vt 0.693560 0.095293 -vt 0.630536 0.065299 -vt 0.638133 0.086439 -vt 0.642861 0.088892 -vt 0.662638 0.094870 -vt 0.684654 0.098531 -vt 0.646162 0.076582 -vt 0.650832 0.081721 -vt 0.958325 0.047201 -vt 0.952421 0.108800 -vt 0.928904 0.159146 -vt 0.760797 0.341912 -vt 0.807889 0.259858 -vt 0.827422 0.269867 -vt 0.785284 0.356289 -vt 0.738459 0.326361 -vt 0.791130 0.247836 -vt 0.718446 0.309441 -vt 0.777133 0.234310 -vt 0.665536 0.249510 -vt 0.738941 0.188557 -vt 0.752797 0.205199 -vt 0.683442 0.271505 -vt 0.765234 0.220325 -vt 0.700943 0.291615 -vt 0.511124 0.210119 -vt 0.521946 0.222320 -vt 0.121631 0.570519 -vt 0.118891 0.566354 -vt 0.488501 0.186242 -vt 0.499972 0.198082 -vt 0.115584 0.562775 -vt 0.111574 0.559682 -vt 0.110358 0.570911 -vt 0.598951 0.211308 -vt 0.218729 0.758470 -vt 0.226612 0.726492 -vt 0.564965 0.190318 -vt 0.243715 0.711467 -vt 0.256750 0.724215 -vt 0.644440 0.064331 -vt 0.531490 0.123985 -vt 0.675971 0.188045 -vt 0.616293 0.044237 -vt 0.677458 0.078357 -vt 0.565319 0.056909 -vt 0.249161 0.710734 -vt 0.522688 0.139746 -vt 0.910716 0.012782 -vt 0.850085 0.036341 -vt 0.946490 0.171990 -vt 0.939839 0.015591 -vt 0.513901 0.584154 -vt 0.551036 0.619360 -vt 0.485979 0.691435 -vt 0.448059 0.652310 -vt 0.592183 0.652982 -vt 0.528513 0.731275 -vt 0.390733 0.429255 -vt 0.420264 0.472878 -vt 0.342993 0.529675 -vt 0.307997 0.484036 -vt 0.449525 0.511624 -vt 0.376752 0.570993 -vt 0.479830 0.547635 -vt 0.411506 0.611422 -vt 0.425472 0.753299 -vt 0.389764 0.712056 -vt 0.465138 0.796966 -vt 0.277741 0.584322 -vt 0.238627 0.540524 -vt 0.314121 0.624926 -vt 0.352016 0.667847 -vt 0.598277 0.493943 -vt 0.629672 0.521871 -vt 0.664873 0.548027 -vt 0.498228 0.365834 -vt 0.522350 0.402337 -vt 0.546048 0.435044 -vt 0.570378 0.464664 -vt 0.677778 0.403500 -vt 0.703307 0.425491 -vt 0.731870 0.445490 -vt 0.595717 0.301377 -vt 0.615931 0.329795 -vt 0.635344 0.355846 -vt 0.655087 0.379862 -vt 0.829729 0.211545 -vt 0.816668 0.202536 -vt 0.852272 0.139391 -vt 0.857622 0.148083 -vt 0.845093 0.218366 -vt 0.864291 0.156109 -vt 0.786577 0.170653 -vt 0.775540 0.158263 -vt 0.820625 0.117604 -vt 0.830500 0.121834 -vt 0.796496 0.181881 -vt 0.839190 0.126053 -vt 0.805818 0.192314 -vt 0.846706 0.131497 -vt 0.879848 0.109889 -vt 0.881732 0.136158 -vt 0.884535 0.152046 -vt 0.818856 0.099410 -vt 0.836255 0.098153 -vt 0.852407 0.096351 -vt 0.883826 0.086753 -vt 0.950150 0.043500 -vt 0.941715 0.107417 -vt 0.917987 0.156266 -vt 0.811520 0.076714 -vt 0.850085 0.036341 -vt 0.910716 0.012782 -vt 0.939839 0.015591 -vt 0.353644 0.819546 -vt 0.322479 0.778484 -vt 0.386501 0.863216 -vt 0.206745 0.649649 -vt 0.165806 0.611007 -vt 0.243901 0.686264 -vt 0.282922 0.729942 -vt 0.319588 0.845991 -vt 0.290637 0.805805 -vt 0.348251 0.889141 -vt 0.178962 0.682537 -vt 0.135498 0.646012 -vt 0.215194 0.716948 -vt 0.677458 0.078357 -vt 0.672041 0.085634 -vt 0.661736 0.081580 -vt 0.662786 0.072155 -vt 0.251290 0.757673 -vt 0.257545 0.831892 -vt 0.283970 0.870759 -vt 0.221153 0.910526 -vt 0.199396 0.875918 -vt 0.308349 0.912393 -vt 0.237829 0.946650 -vt 0.108081 0.683379 -vt 0.152424 0.715948 -vt 0.102628 0.773907 -vt 0.067246 0.752176 -vt 0.185341 0.746547 -vt 0.133782 0.800391 -vt 0.219480 0.785511 -vt 0.163677 0.831592 -vt 0.156112 0.937881 -vt 0.141518 0.906844 -vt 0.159896 0.973686 -vt 0.065339 0.838086 -vt 0.030772 0.828008 -vt 0.091094 0.851411 -vt 0.115031 0.873223 -vt 0.023652 0.931801 -vt 0.012123 0.902012 -vt 0.035168 0.892129 -vt 0.051132 0.914583 -vt 0.055229 0.962886 -vt 0.076907 0.941591 -vt 0.061106 0.877062 -vt 0.083198 0.896018 -vt 0.102528 0.925516 -vt 0.102811 0.947850 -vt 0.096882 0.976965 -vt 0.017623 0.860217 -vt 0.043072 0.869443 -vt 0.249161 0.710734 -vt 0.226612 0.726492 -vt 0.213063 0.753797 -vt 0.218729 0.758470 -vt 0.240654 0.745251 -vt 0.256750 0.724215 -vt 0.243715 0.711467 -vt 0.522688 0.139746 -vt 0.531490 0.123985 -vt 0.551863 0.149136 -vt 0.540519 0.164050 -vt 0.564965 0.190318 -vt 0.574890 0.175859 -vt 0.581734 0.177663 -vt 0.572993 0.193868 -vt 0.598951 0.211308 -vt 0.610085 0.194361 -vt 0.643194 0.203744 -vt 0.629763 0.219049 -vt 0.652308 0.209354 -vt 0.647549 0.226078 -vt 0.538411 0.094200 -vt 0.565319 0.056909 -vt 0.591379 0.085765 -vt 0.563393 0.122660 -vt 0.589670 0.154463 -vt 0.614386 0.117124 -vt 0.620462 0.119191 -vt 0.596672 0.156190 -vt 0.630177 0.174362 -vt 0.653397 0.135178 -vt 0.689756 0.144847 -vt 0.666974 0.182947 -vt 0.699983 0.146889 -vt 0.675971 0.188045 -vt 0.616293 0.044237 -vt 0.630536 0.065299 -vt 0.638133 0.086439 -vt 0.642861 0.088892 -vt 0.662638 0.094870 -vt 0.684654 0.098531 -vt 0.693560 0.095293 -vt 0.635138 0.054553 -vt 0.644440 0.064331 -vt 0.646162 0.076582 -vt 0.650832 0.081721 -vt 0.958325 0.047201 -vt 0.963559 0.014899 -vt 0.972201 0.044741 -vt 0.952421 0.108800 -vt 0.971149 0.114513 -vt 0.928904 0.159146 -vt 0.946490 0.171990 -vt 0.760797 0.341912 -vt 0.807889 0.259858 -vt 0.827422 0.269867 -vt 0.785284 0.356289 -vt 0.738459 0.326361 -vt 0.791130 0.247836 -vt 0.718446 0.309441 -vt 0.777133 0.234310 -vt 0.665536 0.249510 -vt 0.738941 0.188557 -vt 0.752797 0.205199 -vt 0.683442 0.271505 -vt 0.765234 0.220325 -vt 0.700943 0.291615 -vt 0.464836 0.163399 -vt 0.452736 0.152464 -vt 0.100832 0.549526 -vt 0.104974 0.552301 -vt 0.476769 0.174662 -vt 0.108522 0.555641 -vt 0.100338 0.560793 -vn 0.677295 0.726896 -0.113554 -vn 0.677295 0.726896 -0.113554 -vn 0.677295 0.726896 -0.113554 -vn 0.677295 0.726896 -0.113554 -vn 0.240715 0.964642 -0.107344 -vn 0.240715 0.964642 -0.107344 -vn 0.240715 0.964642 -0.107344 -vn 0.240715 0.964642 -0.107344 -vn 0.240941 -0.965532 -0.098466 -vn 0.240941 -0.965532 -0.098466 -vn 0.240941 -0.965532 -0.098466 -vn 0.240941 -0.965532 -0.098466 -vn 0.655435 -0.749111 -0.096111 -vn 0.655435 -0.749111 -0.096111 -vn 0.655435 -0.749111 -0.096111 -vn 0.655435 -0.749111 -0.096111 -vn 0.956864 -0.276360 -0.089651 -vn 0.956863 -0.276360 -0.089651 -vn 0.956864 -0.276360 -0.089651 -vn 0.956864 -0.276360 -0.089651 -vn 0.958778 0.265131 -0.102229 -vn 0.958778 0.265131 -0.102229 -vn 0.958778 0.265131 -0.102229 -vn 0.958778 0.265131 -0.102229 -vn 0.669182 0.739787 -0.070076 -vn 0.669182 0.739787 -0.070076 -vn 0.669182 0.739787 -0.070076 -vn 0.669182 0.739787 -0.070076 -vn 0.234653 0.968568 -0.082547 -vn 0.234653 0.968568 -0.082547 -vn 0.234653 0.968568 -0.082547 -vn 0.234653 0.968568 -0.082547 -vn 0.235441 -0.971872 -0.005717 -vn 0.235441 -0.971872 -0.005717 -vn 0.235441 -0.971872 -0.005717 -vn 0.235441 -0.971872 -0.005717 -vn 0.665556 -0.746293 -0.009077 -vn 0.665556 -0.746293 -0.009077 -vn 0.665556 -0.746293 -0.009077 -vn 0.665556 -0.746293 -0.009077 -vn 0.964741 -0.263082 -0.007873 -vn 0.964741 -0.263082 -0.007873 -vn 0.964741 -0.263082 -0.007873 -vn 0.964741 -0.263082 -0.007873 -vn 0.965782 0.257564 -0.030434 -vn 0.965782 0.257564 -0.030434 -vn 0.965782 0.257564 -0.030434 -vn 0.965782 0.257564 -0.030434 -vn 0.674194 0.722712 -0.152155 -vn 0.674194 0.722712 -0.152155 -vn 0.674194 0.722712 -0.152155 -vn 0.674194 0.722712 -0.152155 -vn 0.239231 0.956926 -0.164503 -vn 0.239231 0.956926 -0.164503 -vn 0.239231 0.956926 -0.164503 -vn 0.239231 0.956926 -0.164503 -vn 0.240304 -0.961678 -0.132022 -vn 0.240304 -0.961678 -0.132022 -vn 0.240304 -0.961678 -0.132022 -vn 0.240304 -0.961678 -0.132022 -vn 0.636508 -0.760371 -0.129208 -vn 0.636508 -0.760371 -0.129208 -vn 0.636508 -0.760371 -0.129208 -vn 0.636508 -0.760371 -0.129208 -vn 0.948515 -0.289151 -0.129271 -vn 0.948515 -0.289151 -0.129271 -vn 0.948515 -0.289151 -0.129271 -vn 0.948515 -0.289151 -0.129271 -vn 0.952431 0.272514 -0.136424 -vn 0.952431 0.272514 -0.136424 -vn 0.952431 0.272514 -0.136424 -vn 0.952431 0.272514 -0.136424 -vn 0.663038 0.727156 -0.177835 -vn 0.663038 0.727156 -0.177835 -vn 0.663038 0.727156 -0.177835 -vn 0.663038 0.727156 -0.177835 -vn 0.233166 0.954236 -0.187261 -vn 0.233166 0.954236 -0.187261 -vn 0.233166 0.954236 -0.187261 -vn 0.233166 0.954236 -0.187261 -vn 0.236516 -0.970749 -0.041317 -vn 0.236516 -0.970749 -0.041317 -vn 0.236516 -0.970749 -0.041317 -vn 0.236516 -0.970749 -0.041317 -vn 0.630763 -0.773250 -0.064980 -vn 0.630763 -0.773250 -0.064980 -vn 0.630763 -0.773250 -0.064980 -vn 0.630763 -0.773250 -0.064980 -vn 0.948128 -0.297586 -0.111788 -vn 0.948128 -0.297586 -0.111788 -vn 0.948128 -0.297586 -0.111788 -vn 0.948128 -0.297586 -0.111788 -vn 0.948589 0.276826 -0.153447 -vn 0.948589 0.276826 -0.153446 -vn 0.948589 0.276826 -0.153446 -vn 0.948589 0.276826 -0.153446 -vn 0.624896 0.653885 -0.426545 -vn 0.624896 0.653885 -0.426545 -vn 0.624896 0.653885 -0.426544 -vn 0.624896 0.653885 -0.426545 -vn 0.214059 0.844924 -0.490186 -vn 0.214059 0.844924 -0.490186 -vn 0.214059 0.844924 -0.490186 -vn 0.214059 0.844924 -0.490186 -vn 0.227943 -0.950424 0.211508 -vn 0.227943 -0.950424 0.211508 -vn 0.227943 -0.950424 0.211508 -vn 0.227943 -0.950424 0.211508 -vn 0.617891 -0.775405 0.130222 -vn 0.617891 -0.775405 0.130222 -vn 0.617891 -0.775405 0.130222 -vn 0.617891 -0.775405 0.130222 -vn 0.944854 -0.321156 -0.064100 -vn 0.944854 -0.321156 -0.064100 -vn 0.944854 -0.321156 -0.064100 -vn 0.944854 -0.321156 -0.064100 -vn 0.929079 0.241239 -0.280385 -vn 0.929079 0.241239 -0.280385 -vn 0.929079 0.241239 -0.280385 -vn 0.929079 0.241239 -0.280385 -vn 0.325087 0.916404 -0.233498 -vn 0.325087 0.916404 -0.233498 -vn 0.325087 0.916404 -0.233498 -vn 0.325087 0.916404 -0.233498 -vn 0.154864 0.886645 -0.435749 -vn 0.154864 0.886645 -0.435749 -vn 0.154864 0.886645 -0.435749 -vn 0.154864 0.886645 -0.435749 -vn 0.150225 -0.918785 0.365056 -vn 0.150225 -0.918785 0.365056 -vn 0.150225 -0.918785 0.365056 -vn 0.150225 -0.918785 0.365056 -vn 0.393823 -0.763586 0.511703 -vn 0.393823 -0.763586 0.511704 -vn 0.393823 -0.763586 0.511704 -vn 0.393823 -0.763586 0.511704 -vn 0.374806 -0.583624 0.720350 -vn 0.374806 -0.583624 0.720350 -vn 0.374806 -0.583624 0.720350 -vn 0.374806 -0.583624 0.720350 -vn 0.470550 0.815781 0.336279 -vn 0.470550 0.815781 0.336279 -vn 0.470550 0.815781 0.336279 -vn 0.470550 0.815781 0.336279 -vn 0.150257 0.947578 -0.281992 -vn 0.150257 0.947578 -0.281992 -vn 0.150257 0.947578 -0.281992 -vn 0.150257 0.947578 -0.281992 -vn 0.075781 0.931385 -0.356061 -vn 0.075781 0.931385 -0.356061 -vn 0.075781 0.931385 -0.356061 -vn 0.075781 0.931385 -0.356061 -vn -0.031524 -0.942833 0.331772 -vn -0.031524 -0.942833 0.331772 -vn -0.031524 -0.942833 0.331772 -vn -0.031524 -0.942833 0.331772 -vn 0.075537 -0.862695 0.500051 -vn 0.075537 -0.862695 0.500051 -vn 0.075537 -0.862695 0.500051 -vn 0.075537 -0.862695 0.500051 -vn 0.128922 -0.704333 0.698065 -vn 0.128922 -0.704332 0.698065 -vn 0.128922 -0.704333 0.698065 -vn 0.128922 -0.704333 0.698065 -vn 0.205608 0.971180 -0.120562 -vn 0.205608 0.971180 -0.120562 -vn 0.205608 0.971180 -0.120562 -vn 0.205608 0.971180 -0.120562 -vn 0.676093 0.736811 -0.002820 -vn 0.676093 0.736811 -0.002820 -vn 0.676093 0.736811 -0.002820 -vn 0.676093 0.736811 -0.002820 -vn 0.237926 0.970382 -0.041836 -vn 0.237926 0.970382 -0.041836 -vn 0.237926 0.970382 -0.041836 -vn 0.237926 0.970382 -0.041836 -vn 0.233896 -0.972124 0.016377 -vn 0.233896 -0.972124 0.016377 -vn 0.233896 -0.972124 0.016377 -vn 0.233896 -0.972124 0.016377 -vn 0.667955 -0.743794 0.024651 -vn 0.667955 -0.743794 0.024651 -vn 0.667955 -0.743794 0.024651 -vn 0.667955 -0.743793 0.024651 -vn 0.974370 -0.216278 0.061867 -vn 0.974370 -0.216278 0.061867 -vn 0.974370 -0.216278 0.061867 -vn 0.974370 -0.216278 0.061867 -vn 0.969792 0.234352 0.067702 -vn 0.969792 0.234352 0.067702 -vn 0.969792 0.234352 0.067702 -vn 0.969792 0.234352 0.067702 -vn 0.686494 0.723731 0.070278 -vn 0.686494 0.723731 0.070278 -vn 0.686494 0.723731 0.070278 -vn 0.686494 0.723731 0.070278 -vn 0.244986 0.968600 0.042392 -vn 0.244986 0.968600 0.042392 -vn 0.244986 0.968600 0.042392 -vn 0.244986 0.968600 0.042392 -vn 0.229173 -0.970290 0.077571 -vn 0.229173 -0.970290 0.077571 -vn 0.229173 -0.970290 0.077571 -vn 0.229173 -0.970290 0.077571 -vn 0.668631 -0.742201 0.045491 -vn 0.668631 -0.742201 0.045491 -vn 0.668631 -0.742201 0.045491 -vn 0.668631 -0.742201 0.045491 -vn 0.895839 -0.326867 -0.301048 -vn 0.895839 -0.326867 -0.301048 -vn 0.895839 -0.326867 -0.301048 -vn 0.895839 -0.326867 -0.301049 -vn 0.969294 0.232884 0.078960 -vn 0.969294 0.232884 0.078960 -vn 0.969294 0.232884 0.078960 -vn 0.969294 0.232884 0.078960 -vn 0.706267 0.684976 0.178870 -vn 0.706267 0.684976 0.178870 -vn 0.706267 0.684976 0.178870 -vn 0.706267 0.684976 0.178870 -vn 0.265165 0.954873 0.133810 -vn 0.265165 0.954873 0.133810 -vn 0.265165 0.954873 0.133810 -vn 0.265165 0.954873 0.133810 -vn 0.235777 -0.947444 0.216237 -vn 0.235777 -0.947444 0.216237 -vn 0.235777 -0.947444 0.216237 -vn 0.235777 -0.947444 0.216237 -vn 0.703305 -0.658693 0.267369 -vn 0.703305 -0.658693 0.267369 -vn 0.703305 -0.658693 0.267368 -vn 0.703305 -0.658693 0.267368 -vn 0.956315 -0.159673 0.244882 -vn 0.956315 -0.159673 0.244882 -vn 0.956315 -0.159673 0.244882 -vn 0.956315 -0.159673 0.244882 -vn 0.957493 0.187704 0.219030 -vn 0.957493 0.187704 0.219030 -vn 0.957493 0.187704 0.219030 -vn 0.957493 0.187704 0.219030 -vn 0.695163 0.696573 0.177578 -vn 0.695163 0.696573 0.177578 -vn 0.695163 0.696573 0.177578 -vn 0.695163 0.696573 0.177578 -vn 0.280830 0.930459 0.235331 -vn 0.280830 0.930459 0.235331 -vn 0.280830 0.930459 0.235331 -vn 0.280830 0.930459 0.235331 -vn 0.276890 -0.905554 0.321408 -vn 0.276890 -0.905554 0.321408 -vn 0.276890 -0.905554 0.321408 -vn 0.276890 -0.905554 0.321408 -vn 0.603738 -0.765295 0.223215 -vn 0.603738 -0.765295 0.223215 -vn 0.603738 -0.765295 0.223215 -vn 0.603738 -0.765295 0.223215 -vn 0.965052 -0.251456 0.073793 -vn 0.965052 -0.251456 0.073793 -vn 0.965052 -0.251456 0.073793 -vn 0.965052 -0.251456 0.073793 -vn 0.975419 0.209072 0.069619 -vn 0.975419 0.209072 0.069619 -vn 0.975419 0.209073 0.069619 -vn 0.975419 0.209072 0.069619 -vn 0.420557 -0.347934 0.837898 -vn 0.420557 -0.347934 0.837898 -vn 0.420557 -0.347934 0.837898 -vn 0.420557 -0.347934 0.837898 -vn 0.412758 0.110842 0.904071 -vn 0.412757 0.110842 0.904071 -vn 0.412758 0.110842 0.904072 -vn 0.412758 0.110842 0.904071 -vn 0.744917 -0.344723 0.571197 -vn 0.744917 -0.344723 0.571197 -vn 0.744917 -0.344723 0.571197 -vn 0.744917 -0.344723 0.571197 -vn 0.744140 0.122874 0.656626 -vn 0.744140 0.122874 0.656626 -vn 0.744140 0.122874 0.656626 -vn 0.744140 0.122874 0.656626 -vn 0.884548 -0.338006 0.321445 -vn 0.884548 -0.338006 0.321445 -vn 0.884548 -0.338006 0.321445 -vn 0.884548 -0.338006 0.321445 -vn 0.916242 0.220074 0.334767 -vn 0.916242 0.220074 0.334767 -vn 0.916242 0.220074 0.334767 -vn 0.916242 0.220074 0.334767 -vn 0.245529 0.652824 0.716615 -vn 0.245529 0.652824 0.716615 -vn 0.245529 0.652824 0.716615 -vn 0.245529 0.652824 0.716615 -vn 0.605095 0.509496 0.611779 -vn 0.605095 0.509497 0.611779 -vn 0.605095 0.509497 0.611779 -vn 0.214889 -0.938480 0.270328 -vn 0.214889 -0.938480 0.270328 -vn 0.214889 -0.938480 0.270328 -vn 0.214889 -0.938480 0.270328 -vn 0.497748 -0.829070 0.254736 -vn 0.497748 -0.829070 0.254736 -vn 0.497748 -0.829070 0.254736 -vn 0.809185 -0.581456 0.084429 -vn 0.809185 -0.581456 0.084429 -vn 0.809185 -0.581456 0.084429 -vn 0.809185 -0.581456 0.084429 -vn 0.882714 -0.158448 0.442393 -vn 0.882714 -0.158448 0.442393 -vn 0.882713 -0.158448 0.442393 -vn 0.882714 -0.158448 0.442393 -vn 0.987457 0.090678 0.129253 -vn 0.987457 0.090678 0.129253 -vn 0.987457 0.090678 0.129253 -vn 0.987457 0.090678 0.129253 -vn 0.862915 -0.111715 -0.492846 -vn 0.862915 -0.111715 -0.492846 -vn 0.862915 -0.111715 -0.492846 -vn 0.862915 -0.111715 -0.492846 -vn 0.049779 -0.990814 -0.125740 -vn 0.049779 -0.990814 -0.125740 -vn 0.049779 -0.990814 -0.125740 -vn 0.049779 -0.990814 -0.125740 -vn -0.178382 0.021651 0.983723 -vn -0.178381 0.021651 0.983723 -vn -0.178382 0.021651 0.983723 -vn -0.178381 0.021651 0.983723 -vn 0.318089 0.940822 -0.116938 -vn 0.318089 0.940822 -0.116938 -vn 0.318089 0.940822 -0.116938 -vn 0.318089 0.940822 -0.116938 -vn -0.080573 0.128247 -0.988464 -vn -0.080573 0.128247 -0.988464 -vn -0.080573 0.128247 -0.988464 -vn -0.080573 0.128247 -0.988464 -vn -0.291881 -0.949736 -0.113164 -vn -0.291881 -0.949736 -0.113164 -vn -0.291881 -0.949736 -0.113164 -vn -0.291881 -0.949736 -0.113164 -vn -0.044967 -0.137210 0.989521 -vn -0.044967 -0.137210 0.989521 -vn -0.044967 -0.137210 0.989521 -vn -0.044967 -0.137210 0.989521 -vn 0.265506 0.957260 -0.114721 -vn 0.265506 0.957260 -0.114721 -vn 0.265506 0.957260 -0.114721 -vn 0.265506 0.957260 -0.114721 -vn -0.038255 0.277466 -0.959974 -vn -0.038255 0.277466 -0.959974 -vn -0.038255 0.277466 -0.959974 -vn -0.038255 0.277466 -0.959974 -vn -0.192916 -0.972252 -0.132321 -vn -0.192916 -0.972252 -0.132321 -vn -0.192916 -0.972252 -0.132321 -vn -0.192916 -0.972252 -0.132321 -vn 0.150280 -0.213527 0.965309 -vn 0.150280 -0.213527 0.965309 -vn 0.150280 -0.213527 0.965309 -vn 0.150280 -0.213527 0.965309 -vn 0.270087 0.952239 -0.142456 -vn 0.270087 0.952239 -0.142456 -vn 0.270088 0.952239 -0.142456 -vn 0.270087 0.952239 -0.142456 -vn 0.427981 0.028813 -0.903328 -vn 0.427981 0.028813 -0.903328 -vn 0.427981 0.028813 -0.903328 -vn 0.427981 0.028813 -0.903328 -vn 0.183119 -0.972669 -0.142764 -vn 0.183119 -0.972669 -0.142764 -vn 0.183119 -0.972669 -0.142764 -vn 0.183119 -0.972669 -0.142764 -vn 0.619550 -0.442184 0.648561 -vn 0.619550 -0.442183 0.648561 -vn 0.619550 -0.442184 0.648561 -vn 0.619550 -0.442183 0.648562 -vn 0.462999 0.873394 -0.151043 -vn 0.462999 0.873394 -0.151043 -vn 0.462999 0.873394 -0.151043 -vn 0.462999 0.873394 -0.151043 -vn 0.835414 -0.257641 -0.485494 -vn 0.835414 -0.257641 -0.485494 -vn 0.835414 -0.257641 -0.485494 -vn 0.835414 -0.257641 -0.485494 -vn 0.127744 0.981979 -0.139281 -vn 0.127744 0.981979 -0.139281 -vn 0.127744 0.981979 -0.139281 -vn 0.127744 0.981979 -0.139281 -vn -0.044275 -0.115213 0.992354 -vn -0.044275 -0.115213 0.992354 -vn -0.044275 -0.115213 0.992354 -vn -0.044275 -0.115213 0.992354 -vn -0.193302 -0.966953 -0.166244 -vn -0.193302 -0.966953 -0.166244 -vn -0.193302 -0.966953 -0.166244 -vn -0.193302 -0.966953 -0.166244 -vn -0.385158 0.297198 -0.873686 -vn -0.385158 0.297198 -0.873686 -vn -0.385158 0.297198 -0.873686 -vn -0.385158 0.297198 -0.873686 -vn 0.221731 -0.963501 0.150004 -vn 0.221731 -0.963501 0.150004 -vn 0.221731 -0.963501 0.150004 -vn 0.221731 -0.963501 0.150004 -vn 0.683594 -0.708165 0.176637 -vn 0.683594 -0.708165 0.176637 -vn 0.683594 -0.708166 0.176637 -vn 0.683594 -0.708165 0.176637 -vn 0.913093 -0.305398 0.270174 -vn 0.913093 -0.305398 0.270174 -vn 0.913093 -0.305398 0.270174 -vn 0.913093 -0.305398 0.270174 -vn -0.171649 -0.912805 0.370573 -vn -0.171649 -0.912805 0.370573 -vn -0.171649 -0.912805 0.370573 -vn -0.171649 -0.912805 0.370573 -vn -0.085142 -0.955765 0.281539 -vn -0.085142 -0.955765 0.281539 -vn -0.085142 -0.955765 0.281539 -vn -0.085142 -0.955765 0.281539 -vn -0.248597 -0.943071 0.220943 -vn -0.248597 -0.943071 0.220943 -vn -0.248597 -0.943071 0.220943 -vn -0.248597 -0.943071 0.220943 -vn -0.231384 -0.934774 0.269554 -vn -0.231384 -0.934774 0.269554 -vn -0.231384 -0.934774 0.269554 -vn -0.231384 -0.934774 0.269554 -vn 0.116845 -0.937378 0.328130 -vn 0.116845 -0.937378 0.328130 -vn 0.116845 -0.937378 0.328130 -vn 0.116845 -0.937378 0.328130 -vn 0.842330 -0.427190 0.328617 -vn 0.842330 -0.427190 0.328617 -vn 0.842330 -0.427190 0.328617 -vn 0.842330 -0.427190 0.328617 -vn 0.426092 0.892976 0.145053 -vn 0.426092 0.892976 0.145053 -vn 0.426092 0.892976 0.145053 -vn 0.426092 0.892976 0.145053 -vn 0.255152 0.960626 0.109978 -vn 0.255152 0.960626 0.109978 -vn 0.255152 0.960626 0.109978 -vn 0.255152 0.960626 0.109978 -vn 0.254814 0.962143 0.096699 -vn 0.254814 0.962143 0.096699 -vn 0.254814 0.962143 0.096699 -vn 0.254814 0.962143 0.096699 -vn 0.167538 0.976807 0.133342 -vn 0.167538 0.976807 0.133342 -vn 0.167538 0.976807 0.133342 -vn 0.167538 0.976807 0.133342 -vn 0.284322 0.938753 0.194689 -vn 0.284322 0.938753 0.194689 -vn 0.284322 0.938753 0.194689 -vn 0.284322 0.938753 0.194689 -vn 0.982705 0.040831 0.180622 -vn 0.982705 0.040831 0.180622 -vn 0.982705 0.040831 0.180622 -vn 0.982705 0.040831 0.180622 -vn 0.956298 0.220987 0.191463 -vn 0.956298 0.220987 0.191463 -vn 0.956298 0.220987 0.191463 -vn 0.956298 0.220987 0.191463 -vn 0.690710 0.710845 0.132737 -vn 0.690710 0.710845 0.132737 -vn 0.690710 0.710845 0.132737 -vn 0.690710 0.710845 0.132737 -vn 0.249992 0.962710 0.103408 -vn 0.249992 0.962710 0.103408 -vn 0.249992 0.962710 0.103408 -vn 0.249992 0.962710 0.103408 -vn 0.633487 0.687266 0.355471 -vn 0.633487 0.687266 0.355471 -vn 0.633487 0.687266 0.355471 -vn 0.633487 0.687266 0.355471 -vn 0.257975 0.866187 0.427984 -vn 0.257975 0.866186 0.427984 -vn 0.257975 0.866187 0.427984 -vn 0.257975 0.866187 0.427984 -vn 0.265067 -0.958378 0.106072 -vn 0.265067 -0.958378 0.106072 -vn 0.265067 -0.958378 0.106072 -vn 0.265067 -0.958378 0.106072 -vn 0.460332 -0.874532 0.152608 -vn 0.460332 -0.874531 0.152608 -vn 0.460332 -0.874531 0.152608 -vn 0.460332 -0.874531 0.152608 -vn 0.574809 -0.736586 -0.356422 -vn 0.574809 -0.736586 -0.356422 -vn 0.574809 -0.736586 -0.356422 -vn 0.071256 -0.866637 -0.493826 -vn 0.071256 -0.866637 -0.493825 -vn 0.071256 -0.866637 -0.493825 -vn 0.071256 -0.866637 -0.493826 -vn -0.394208 -0.785219 -0.477526 -vn -0.394208 -0.785219 -0.477526 -vn -0.394208 -0.785219 -0.477526 -vn -0.394208 -0.785219 -0.477526 -vn -0.351705 0.159752 -0.922379 -vn -0.351705 0.159752 -0.922379 -vn -0.351705 0.159752 -0.922379 -vn -0.351705 0.159752 -0.922379 -vn 0.165194 0.460444 -0.872183 -vn 0.165194 0.460444 -0.872183 -vn 0.165194 0.460444 -0.872183 -vn 0.165194 0.460444 -0.872183 -vn 0.485919 0.642691 -0.592310 -vn 0.485919 0.642691 -0.592310 -vn 0.485919 0.642691 -0.592310 -vn 0.218215 0.904261 -0.367007 -vn 0.218215 0.904261 -0.367007 -vn 0.218215 0.904261 -0.367007 -vn 0.218215 0.904261 -0.367007 -vn 0.636659 0.700593 -0.322234 -vn 0.636659 0.700593 -0.322234 -vn 0.636659 0.700593 -0.322234 -vn 0.636659 0.700593 -0.322234 -vn 0.940551 0.261661 -0.216559 -vn 0.940551 0.261661 -0.216559 -vn 0.940551 0.261661 -0.216559 -vn 0.940551 0.261661 -0.216559 -vn 0.223297 -0.964572 0.140499 -vn 0.223297 -0.964572 0.140499 -vn 0.223297 -0.964572 0.140499 -vn 0.223297 -0.964572 0.140499 -vn 0.608914 -0.788970 0.082159 -vn 0.608914 -0.788970 0.082159 -vn 0.608914 -0.788970 0.082159 -vn 0.608914 -0.788970 0.082159 -vn 0.943516 -0.326081 -0.058725 -vn 0.943516 -0.326081 -0.058725 -vn 0.943516 -0.326081 -0.058725 -vn 0.943516 -0.326081 -0.058725 -vn 0.649906 0.725503 -0.226425 -vn 0.649906 0.725503 -0.226425 -vn 0.649906 0.725503 -0.226425 -vn 0.649906 0.725503 -0.226425 -vn 0.224665 0.938440 -0.262406 -vn 0.224665 0.938440 -0.262406 -vn 0.224665 0.938440 -0.262406 -vn 0.224665 0.938440 -0.262406 -vn 0.228402 -0.973339 0.021079 -vn 0.228402 -0.973339 0.021079 -vn 0.228402 -0.973339 0.021079 -vn 0.228402 -0.973339 0.021079 -vn 0.617593 -0.786493 -0.002989 -vn 0.617593 -0.786493 -0.002989 -vn 0.617593 -0.786492 -0.002989 -vn 0.617593 -0.786493 -0.002989 -vn 0.947246 -0.312789 -0.069910 -vn 0.947246 -0.312789 -0.069910 -vn 0.947246 -0.312789 -0.069910 -vn 0.947246 -0.312789 -0.069910 -vn 0.948086 0.277190 -0.155882 -vn 0.948086 0.277190 -0.155882 -vn 0.948086 0.277190 -0.155882 -vn 0.948086 0.277190 -0.155882 -vn 0.626997 0.657810 -0.417327 -vn 0.626997 0.657810 -0.417327 -vn 0.626997 0.657810 -0.417327 -vn 0.626997 0.657810 -0.417327 -vn 0.215113 0.851483 -0.478228 -vn 0.215113 0.851483 -0.478228 -vn 0.215113 0.851483 -0.478228 -vn 0.215113 0.851483 -0.478228 -vn 0.228146 -0.954485 0.192116 -vn 0.228146 -0.954485 0.192116 -vn 0.228146 -0.954485 0.192116 -vn 0.228146 -0.954485 0.192116 -vn 0.617842 -0.778021 0.113821 -vn 0.617842 -0.778021 0.113821 -vn 0.617842 -0.778021 0.113821 -vn 0.617842 -0.778021 0.113821 -vn 0.943946 -0.322148 -0.072019 -vn 0.943946 -0.322148 -0.072019 -vn 0.943946 -0.322148 -0.072019 -vn 0.943946 -0.322148 -0.072019 -vn 0.929673 0.241829 -0.277898 -vn 0.929673 0.241829 -0.277898 -vn 0.929673 0.241829 -0.277898 -vn 0.929673 0.241829 -0.277898 -vn 0.493451 0.844010 0.210128 -vn 0.493451 0.844010 0.210128 -vn 0.493451 0.844010 0.210128 -vn 0.493451 0.844010 0.210128 -vn 0.499572 -0.848351 -0.175299 -vn 0.499572 -0.848350 -0.175299 -vn 0.499572 -0.848350 -0.175299 -vn 0.499572 -0.848350 -0.175299 -vn 0.999827 0.003044 0.018370 -vn 0.999827 0.003044 0.018370 -vn 0.999827 0.003044 0.018370 -vn 0.999827 0.003044 0.018370 -vn 0.447601 0.713552 0.538977 -vn 0.447601 0.713552 0.538977 -vn 0.447601 0.713552 0.538977 -vn 0.456287 -0.872946 0.172531 -vn 0.456287 -0.872946 0.172531 -vn 0.456287 -0.872946 0.172531 -vn 0.927353 -0.074343 0.366727 -vn 0.927353 -0.074343 0.366727 -vn 0.927353 -0.074343 0.366727 -vn -0.677295 0.726896 -0.113554 -vn -0.677295 0.726896 -0.113554 -vn -0.677295 0.726896 -0.113554 -vn -0.677295 0.726896 -0.113554 -vn -0.240715 0.964642 -0.107344 -vn -0.240715 0.964642 -0.107344 -vn -0.240715 0.964642 -0.107344 -vn -0.240715 0.964642 -0.107344 -vn -0.240941 -0.965532 -0.098466 -vn -0.240941 -0.965532 -0.098466 -vn -0.240941 -0.965532 -0.098466 -vn -0.240941 -0.965532 -0.098466 -vn -0.655435 -0.749111 -0.096111 -vn -0.655435 -0.749111 -0.096111 -vn -0.655435 -0.749111 -0.096111 -vn -0.655435 -0.749111 -0.096111 -vn -0.956864 -0.276360 -0.089651 -vn -0.956864 -0.276360 -0.089651 -vn -0.956864 -0.276360 -0.089651 -vn -0.956863 -0.276360 -0.089651 -vn -0.958778 0.265131 -0.102229 -vn -0.958778 0.265131 -0.102229 -vn -0.958778 0.265131 -0.102229 -vn -0.958778 0.265131 -0.102229 -vn -0.669182 0.739787 -0.070076 -vn -0.669182 0.739787 -0.070076 -vn -0.669182 0.739787 -0.070076 -vn -0.669182 0.739787 -0.070076 -vn -0.234653 0.968568 -0.082547 -vn -0.234653 0.968568 -0.082547 -vn -0.234653 0.968568 -0.082547 -vn -0.234653 0.968568 -0.082547 -vn -0.235441 -0.971872 -0.005717 -vn -0.235441 -0.971872 -0.005717 -vn -0.235441 -0.971872 -0.005717 -vn -0.235441 -0.971872 -0.005717 -vn -0.665555 -0.746293 -0.009077 -vn -0.665555 -0.746293 -0.009077 -vn -0.665555 -0.746293 -0.009077 -vn -0.665555 -0.746293 -0.009077 -vn -0.964741 -0.263082 -0.007873 -vn -0.964741 -0.263082 -0.007873 -vn -0.964741 -0.263082 -0.007873 -vn -0.964741 -0.263082 -0.007873 -vn -0.965782 0.257564 -0.030434 -vn -0.965782 0.257564 -0.030434 -vn -0.965782 0.257564 -0.030434 -vn -0.965782 0.257564 -0.030434 -vn -0.674194 0.722712 -0.152155 -vn -0.674194 0.722712 -0.152155 -vn -0.674194 0.722712 -0.152155 -vn -0.674194 0.722712 -0.152155 -vn -0.239231 0.956926 -0.164503 -vn -0.239231 0.956926 -0.164503 -vn -0.239231 0.956926 -0.164503 -vn -0.239231 0.956926 -0.164503 -vn -0.240304 -0.961678 -0.132022 -vn -0.240304 -0.961678 -0.132022 -vn -0.240304 -0.961678 -0.132022 -vn -0.240304 -0.961678 -0.132022 -vn -0.636507 -0.760371 -0.129208 -vn -0.636507 -0.760371 -0.129208 -vn -0.636507 -0.760371 -0.129208 -vn -0.636507 -0.760371 -0.129208 -vn -0.948515 -0.289150 -0.129271 -vn -0.948515 -0.289150 -0.129271 -vn -0.948515 -0.289150 -0.129271 -vn -0.948515 -0.289150 -0.129271 -vn -0.952431 0.272514 -0.136424 -vn -0.952431 0.272514 -0.136424 -vn -0.952431 0.272514 -0.136424 -vn -0.952431 0.272514 -0.136424 -vn -0.663038 0.727156 -0.177835 -vn -0.663038 0.727156 -0.177835 -vn -0.663038 0.727156 -0.177835 -vn -0.663038 0.727156 -0.177835 -vn -0.233166 0.954236 -0.187261 -vn -0.233166 0.954236 -0.187261 -vn -0.233166 0.954236 -0.187261 -vn -0.233166 0.954236 -0.187261 -vn -0.236516 -0.970749 -0.041317 -vn -0.236516 -0.970749 -0.041317 -vn -0.236516 -0.970749 -0.041317 -vn -0.236516 -0.970749 -0.041317 -vn -0.630763 -0.773250 -0.064980 -vn -0.630763 -0.773250 -0.064980 -vn -0.630763 -0.773250 -0.064980 -vn -0.630763 -0.773250 -0.064980 -vn -0.948128 -0.297586 -0.111788 -vn -0.948128 -0.297586 -0.111788 -vn -0.948128 -0.297586 -0.111788 -vn -0.948128 -0.297586 -0.111788 -vn -0.948589 0.276826 -0.153447 -vn -0.948589 0.276826 -0.153447 -vn -0.948589 0.276826 -0.153447 -vn -0.948589 0.276826 -0.153447 -vn -0.624895 0.653885 -0.426545 -vn -0.624895 0.653885 -0.426545 -vn -0.624895 0.653885 -0.426544 -vn -0.624895 0.653885 -0.426545 -vn -0.214058 0.844924 -0.490186 -vn -0.214058 0.844924 -0.490186 -vn -0.214058 0.844924 -0.490186 -vn -0.214058 0.844924 -0.490186 -vn -0.227943 -0.950424 0.211508 -vn -0.227943 -0.950424 0.211508 -vn -0.227943 -0.950424 0.211508 -vn -0.227943 -0.950424 0.211508 -vn -0.617891 -0.775405 0.130222 -vn -0.617891 -0.775405 0.130222 -vn -0.617891 -0.775405 0.130222 -vn -0.617891 -0.775405 0.130222 -vn -0.944855 -0.321156 -0.064100 -vn -0.944855 -0.321156 -0.064100 -vn -0.944855 -0.321156 -0.064100 -vn -0.944855 -0.321156 -0.064100 -vn -0.929079 0.241238 -0.280385 -vn -0.929079 0.241238 -0.280385 -vn -0.929079 0.241238 -0.280385 -vn -0.929079 0.241238 -0.280385 -vn -0.325087 0.916404 -0.233498 -vn -0.325087 0.916404 -0.233498 -vn -0.325087 0.916404 -0.233498 -vn -0.325087 0.916404 -0.233498 -vn -0.154863 0.886645 -0.435749 -vn -0.154863 0.886645 -0.435749 -vn -0.154863 0.886645 -0.435749 -vn -0.154863 0.886645 -0.435749 -vn -0.150225 -0.918785 0.365056 -vn -0.150225 -0.918785 0.365056 -vn -0.150225 -0.918785 0.365056 -vn -0.150225 -0.918785 0.365056 -vn -0.393824 -0.763586 0.511703 -vn -0.393824 -0.763585 0.511703 -vn -0.393824 -0.763586 0.511703 -vn -0.393824 -0.763586 0.511703 -vn -0.374806 -0.583624 0.720350 -vn -0.374806 -0.583624 0.720350 -vn -0.374806 -0.583624 0.720350 -vn -0.374806 -0.583624 0.720350 -vn -0.470549 0.815782 0.336280 -vn -0.470549 0.815782 0.336280 -vn -0.470549 0.815782 0.336280 -vn -0.470549 0.815782 0.336280 -vn -0.150258 0.947578 -0.281992 -vn -0.150258 0.947578 -0.281992 -vn -0.150258 0.947578 -0.281992 -vn -0.150258 0.947578 -0.281992 -vn -0.075781 0.931385 -0.356061 -vn -0.075781 0.931385 -0.356061 -vn -0.075781 0.931385 -0.356061 -vn -0.075781 0.931385 -0.356061 -vn 0.031524 -0.942833 0.331772 -vn 0.031524 -0.942833 0.331772 -vn 0.031524 -0.942833 0.331772 -vn 0.031524 -0.942833 0.331772 -vn -0.075537 -0.862695 0.500051 -vn -0.075537 -0.862695 0.500051 -vn -0.075537 -0.862695 0.500051 -vn -0.075537 -0.862695 0.500051 -vn -0.128922 -0.704333 0.698065 -vn -0.128922 -0.704333 0.698065 -vn -0.128922 -0.704333 0.698065 -vn -0.128922 -0.704333 0.698065 -vn -0.205609 0.971180 -0.120562 -vn -0.205609 0.971180 -0.120562 -vn -0.205609 0.971180 -0.120562 -vn -0.205609 0.971180 -0.120562 -vn -0.676093 0.736811 -0.002820 -vn -0.676093 0.736811 -0.002820 -vn -0.676093 0.736811 -0.002820 -vn -0.676093 0.736811 -0.002820 -vn -0.237926 0.970382 -0.041836 -vn -0.237926 0.970382 -0.041836 -vn -0.237926 0.970382 -0.041836 -vn -0.237926 0.970382 -0.041836 -vn -0.233896 -0.972124 0.016377 -vn -0.233896 -0.972124 0.016377 -vn -0.233896 -0.972124 0.016377 -vn -0.233896 -0.972124 0.016377 -vn -0.667955 -0.743794 0.024651 -vn -0.667955 -0.743793 0.024651 -vn -0.667955 -0.743794 0.024651 -vn -0.667955 -0.743794 0.024651 -vn -0.974370 -0.216278 0.061867 -vn -0.974370 -0.216278 0.061867 -vn -0.974370 -0.216278 0.061867 -vn -0.974370 -0.216278 0.061867 -vn -0.969792 0.234352 0.067702 -vn -0.969792 0.234352 0.067702 -vn -0.969792 0.234352 0.067702 -vn -0.969792 0.234352 0.067702 -vn -0.686494 0.723731 0.070278 -vn -0.686494 0.723731 0.070278 -vn -0.686494 0.723731 0.070278 -vn -0.686494 0.723731 0.070278 -vn -0.244986 0.968599 0.042392 -vn -0.244986 0.968600 0.042392 -vn -0.244986 0.968599 0.042392 -vn -0.244986 0.968600 0.042392 -vn -0.229173 -0.970290 0.077571 -vn -0.229173 -0.970290 0.077571 -vn -0.229173 -0.970290 0.077571 -vn -0.229173 -0.970290 0.077571 -vn -0.668631 -0.742201 0.045491 -vn -0.668631 -0.742201 0.045491 -vn -0.668631 -0.742201 0.045491 -vn -0.668631 -0.742201 0.045491 -vn -0.895839 -0.326868 -0.301048 -vn -0.895839 -0.326868 -0.301048 -vn -0.895839 -0.326868 -0.301048 -vn -0.895839 -0.326868 -0.301048 -vn -0.969294 0.232884 0.078960 -vn -0.969294 0.232884 0.078960 -vn -0.969294 0.232884 0.078960 -vn -0.969294 0.232884 0.078960 -vn -0.706267 0.684976 0.178870 -vn -0.706267 0.684976 0.178870 -vn -0.706267 0.684976 0.178870 -vn -0.706267 0.684976 0.178870 -vn -0.265165 0.954873 0.133809 -vn -0.265165 0.954873 0.133809 -vn -0.265165 0.954873 0.133809 -vn -0.265165 0.954873 0.133809 -vn -0.235777 -0.947444 0.216237 -vn -0.235777 -0.947444 0.216237 -vn -0.235777 -0.947444 0.216237 -vn -0.235777 -0.947444 0.216237 -vn -0.703305 -0.658693 0.267369 -vn -0.703305 -0.658693 0.267369 -vn -0.703305 -0.658693 0.267369 -vn -0.703305 -0.658693 0.267369 -vn -0.956315 -0.159673 0.244882 -vn -0.956315 -0.159673 0.244882 -vn -0.956315 -0.159673 0.244882 -vn -0.956315 -0.159673 0.244882 -vn -0.957493 0.187703 0.219030 -vn -0.957493 0.187703 0.219030 -vn -0.957493 0.187703 0.219030 -vn -0.957493 0.187703 0.219030 -vn -0.695163 0.696573 0.177578 -vn -0.695163 0.696573 0.177578 -vn -0.695163 0.696573 0.177578 -vn -0.695163 0.696573 0.177578 -vn -0.280830 0.930459 0.235331 -vn -0.280830 0.930459 0.235331 -vn -0.280830 0.930459 0.235331 -vn -0.280830 0.930459 0.235331 -vn -0.276890 -0.905554 0.321408 -vn -0.276890 -0.905554 0.321408 -vn -0.276890 -0.905554 0.321408 -vn -0.276890 -0.905554 0.321408 -vn -0.603738 -0.765295 0.223215 -vn -0.603738 -0.765295 0.223215 -vn -0.603738 -0.765295 0.223215 -vn -0.603738 -0.765295 0.223215 -vn -0.965052 -0.251456 0.073793 -vn -0.965052 -0.251456 0.073793 -vn -0.965052 -0.251456 0.073793 -vn -0.965052 -0.251456 0.073793 -vn -0.975419 0.209072 0.069619 -vn -0.975419 0.209072 0.069619 -vn -0.975419 0.209072 0.069619 -vn -0.975419 0.209072 0.069619 -vn -0.420557 -0.347934 0.837899 -vn -0.420557 -0.347934 0.837899 -vn -0.420557 -0.347934 0.837898 -vn -0.420557 -0.347934 0.837898 -vn -0.412758 0.110842 0.904072 -vn -0.412758 0.110842 0.904071 -vn -0.412758 0.110842 0.904072 -vn -0.412758 0.110842 0.904071 -vn -0.744917 -0.344723 0.571197 -vn -0.744917 -0.344723 0.571196 -vn -0.744917 -0.344723 0.571196 -vn -0.744917 -0.344723 0.571196 -vn -0.744140 0.122874 0.656626 -vn -0.744140 0.122874 0.656626 -vn -0.744140 0.122874 0.656626 -vn -0.744140 0.122874 0.656626 -vn -0.884548 -0.338006 0.321445 -vn -0.884548 -0.338006 0.321445 -vn -0.884548 -0.338006 0.321445 -vn -0.884548 -0.338006 0.321445 -vn -0.916242 0.220074 0.334767 -vn -0.916242 0.220074 0.334767 -vn -0.916242 0.220074 0.334767 -vn -0.916242 0.220074 0.334767 -vn -0.245529 0.652823 0.716615 -vn -0.245529 0.652824 0.716615 -vn -0.245529 0.652824 0.716615 -vn -0.245529 0.652823 0.716615 -vn -0.605095 0.509496 0.611779 -vn -0.605095 0.509496 0.611779 -vn -0.605095 0.509496 0.611779 -vn -0.214889 -0.938480 0.270328 -vn -0.214889 -0.938480 0.270328 -vn -0.214889 -0.938480 0.270328 -vn -0.214889 -0.938480 0.270328 -vn -0.497748 -0.829070 0.254736 -vn -0.497748 -0.829070 0.254736 -vn -0.497748 -0.829070 0.254736 -vn -0.809185 -0.581456 0.084429 -vn -0.809185 -0.581456 0.084429 -vn -0.809185 -0.581457 0.084429 -vn -0.809185 -0.581456 0.084429 -vn -0.882714 -0.158448 0.442392 -vn -0.882714 -0.158448 0.442392 -vn -0.882714 -0.158448 0.442392 -vn -0.882714 -0.158448 0.442392 -vn -0.987457 0.090678 0.129253 -vn -0.987457 0.090678 0.129253 -vn -0.987457 0.090678 0.129253 -vn -0.987457 0.090678 0.129253 -vn -0.862915 -0.111715 -0.492846 -vn -0.862915 -0.111715 -0.492846 -vn -0.862915 -0.111715 -0.492846 -vn -0.862915 -0.111715 -0.492846 -vn -0.049778 -0.990814 -0.125740 -vn -0.049778 -0.990814 -0.125740 -vn -0.049778 -0.990814 -0.125740 -vn -0.049778 -0.990814 -0.125740 -vn 0.178381 0.021651 0.983723 -vn 0.178381 0.021651 0.983723 -vn 0.178381 0.021651 0.983723 -vn 0.178381 0.021651 0.983723 -vn -0.318088 0.940822 -0.116938 -vn -0.318088 0.940822 -0.116938 -vn -0.318088 0.940822 -0.116938 -vn -0.318088 0.940822 -0.116937 -vn 0.080573 0.128248 -0.988464 -vn 0.080573 0.128248 -0.988464 -vn 0.080573 0.128248 -0.988464 -vn 0.080573 0.128248 -0.988464 -vn 0.291881 -0.949736 -0.113164 -vn 0.291881 -0.949736 -0.113164 -vn 0.291881 -0.949736 -0.113164 -vn 0.291881 -0.949736 -0.113164 -vn 0.044967 -0.137210 0.989521 -vn 0.044967 -0.137210 0.989521 -vn 0.044967 -0.137210 0.989521 -vn 0.044967 -0.137210 0.989521 -vn -0.265506 0.957260 -0.114721 -vn -0.265506 0.957260 -0.114721 -vn -0.265506 0.957260 -0.114721 -vn -0.265506 0.957260 -0.114721 -vn 0.038255 0.277466 -0.959974 -vn 0.038255 0.277466 -0.959974 -vn 0.038255 0.277466 -0.959974 -vn 0.038255 0.277466 -0.959974 -vn 0.192916 -0.972252 -0.132321 -vn 0.192916 -0.972252 -0.132321 -vn 0.192916 -0.972252 -0.132321 -vn 0.192916 -0.972252 -0.132321 -vn -0.150280 -0.213527 0.965309 -vn -0.150280 -0.213527 0.965310 -vn -0.150280 -0.213527 0.965310 -vn -0.150280 -0.213527 0.965309 -vn -0.270088 0.952239 -0.142456 -vn -0.270088 0.952239 -0.142456 -vn -0.270088 0.952239 -0.142456 -vn -0.270088 0.952239 -0.142456 -vn -0.427981 0.028813 -0.903328 -vn -0.427981 0.028813 -0.903328 -vn -0.427981 0.028813 -0.903328 -vn -0.427981 0.028813 -0.903328 -vn -0.183120 -0.972669 -0.142764 -vn -0.183120 -0.972669 -0.142764 -vn -0.183120 -0.972669 -0.142764 -vn -0.183120 -0.972669 -0.142764 -vn -0.619550 -0.442184 0.648561 -vn -0.619550 -0.442184 0.648561 -vn -0.619550 -0.442184 0.648561 -vn -0.619550 -0.442184 0.648561 -vn -0.462998 0.873395 -0.151043 -vn -0.462998 0.873395 -0.151043 -vn -0.462998 0.873395 -0.151043 -vn -0.462998 0.873395 -0.151043 -vn -0.835414 -0.257641 -0.485494 -vn -0.835414 -0.257641 -0.485494 -vn -0.835414 -0.257641 -0.485494 -vn -0.835414 -0.257641 -0.485494 -vn -0.127744 0.981979 -0.139281 -vn -0.127744 0.981979 -0.139281 -vn -0.127744 0.981979 -0.139281 -vn -0.127744 0.981979 -0.139281 -vn 0.044275 -0.115213 0.992354 -vn 0.044275 -0.115213 0.992354 -vn 0.044275 -0.115213 0.992354 -vn 0.044275 -0.115213 0.992354 -vn 0.193302 -0.966953 -0.166244 -vn 0.193302 -0.966953 -0.166244 -vn 0.193302 -0.966953 -0.166244 -vn 0.193302 -0.966953 -0.166244 -vn 0.385158 0.297198 -0.873686 -vn 0.385158 0.297198 -0.873686 -vn 0.385158 0.297198 -0.873686 -vn 0.385158 0.297198 -0.873686 -vn -0.221731 -0.963501 0.150004 -vn -0.221731 -0.963501 0.150004 -vn -0.221731 -0.963501 0.150004 -vn -0.221731 -0.963501 0.150004 -vn -0.683594 -0.708166 0.176637 -vn -0.683594 -0.708166 0.176637 -vn -0.683594 -0.708166 0.176637 -vn -0.683594 -0.708166 0.176637 -vn -0.913093 -0.305398 0.270174 -vn -0.913093 -0.305398 0.270174 -vn -0.913093 -0.305398 0.270174 -vn -0.913093 -0.305398 0.270174 -vn 0.171649 -0.912805 0.370573 -vn 0.171649 -0.912804 0.370573 -vn 0.171649 -0.912805 0.370573 -vn 0.171649 -0.912805 0.370573 -vn 0.085142 -0.955765 0.281539 -vn 0.085142 -0.955765 0.281539 -vn 0.085142 -0.955765 0.281539 -vn 0.085142 -0.955765 0.281539 -vn 0.248597 -0.943071 0.220943 -vn 0.248597 -0.943071 0.220943 -vn 0.248597 -0.943071 0.220943 -vn 0.248597 -0.943071 0.220943 -vn 0.231384 -0.934774 0.269554 -vn 0.231384 -0.934774 0.269554 -vn 0.231384 -0.934774 0.269554 -vn 0.231384 -0.934774 0.269554 -vn -0.116846 -0.937378 0.328130 -vn -0.116846 -0.937378 0.328130 -vn -0.116846 -0.937378 0.328130 -vn -0.116846 -0.937378 0.328130 -vn -0.842330 -0.427189 0.328618 -vn -0.842330 -0.427189 0.328618 -vn -0.842330 -0.427189 0.328618 -vn -0.842330 -0.427189 0.328618 -vn -0.426092 0.892975 0.145053 -vn -0.426092 0.892975 0.145053 -vn -0.426092 0.892975 0.145053 -vn -0.426092 0.892975 0.145053 -vn -0.255152 0.960626 0.109978 -vn -0.255152 0.960626 0.109978 -vn -0.255152 0.960626 0.109978 -vn -0.255152 0.960626 0.109978 -vn -0.254814 0.962143 0.096699 -vn -0.254814 0.962143 0.096699 -vn -0.254814 0.962143 0.096699 -vn -0.254814 0.962143 0.096699 -vn -0.167538 0.976807 0.133342 -vn -0.167538 0.976807 0.133342 -vn -0.167538 0.976807 0.133342 -vn -0.167538 0.976807 0.133342 -vn -0.284322 0.938753 0.194689 -vn -0.284322 0.938753 0.194689 -vn -0.284322 0.938753 0.194689 -vn -0.284322 0.938753 0.194689 -vn -0.982705 0.040831 0.180622 -vn -0.982705 0.040831 0.180622 -vn -0.982705 0.040831 0.180622 -vn -0.982705 0.040831 0.180622 -vn -0.956298 0.220987 0.191464 -vn -0.956298 0.220987 0.191464 -vn -0.956298 0.220987 0.191464 -vn -0.956298 0.220987 0.191464 -vn -0.690710 0.710845 0.132737 -vn -0.690710 0.710845 0.132737 -vn -0.690710 0.710845 0.132737 -vn -0.690710 0.710845 0.132737 -vn -0.249992 0.962710 0.103407 -vn -0.249992 0.962710 0.103407 -vn -0.249992 0.962710 0.103407 -vn -0.249992 0.962710 0.103407 -vn -0.633487 0.687266 0.355471 -vn -0.633487 0.687266 0.355471 -vn -0.633487 0.687266 0.355471 -vn -0.633487 0.687266 0.355471 -vn -0.257975 0.866186 0.427984 -vn -0.257975 0.866186 0.427984 -vn -0.257975 0.866186 0.427984 -vn -0.257975 0.866186 0.427984 -vn -0.265067 -0.958378 0.106072 -vn -0.265067 -0.958378 0.106072 -vn -0.265067 -0.958378 0.106072 -vn -0.265067 -0.958378 0.106072 -vn -0.460332 -0.874531 0.152608 -vn -0.460332 -0.874531 0.152608 -vn -0.460332 -0.874531 0.152608 -vn -0.460332 -0.874531 0.152608 -vn -0.574809 -0.736585 -0.356422 -vn -0.574809 -0.736585 -0.356422 -vn -0.574809 -0.736585 -0.356422 -vn -0.071256 -0.866637 -0.493826 -vn -0.071256 -0.866637 -0.493826 -vn -0.071256 -0.866637 -0.493825 -vn -0.071256 -0.866637 -0.493825 -vn 0.394207 -0.785219 -0.477526 -vn 0.394207 -0.785219 -0.477526 -vn 0.394207 -0.785219 -0.477526 -vn 0.394207 -0.785219 -0.477526 -vn 0.351705 0.159752 -0.922379 -vn 0.351705 0.159752 -0.922379 -vn 0.351705 0.159752 -0.922379 -vn 0.351705 0.159752 -0.922379 -vn -0.165194 0.460444 -0.872183 -vn -0.165194 0.460444 -0.872183 -vn -0.165194 0.460444 -0.872183 -vn -0.165194 0.460444 -0.872183 -vn -0.485919 0.642692 -0.592309 -vn -0.485919 0.642692 -0.592309 -vn -0.485919 0.642692 -0.592309 -vn -0.218215 0.904261 -0.367007 -vn -0.218215 0.904261 -0.367007 -vn -0.218215 0.904261 -0.367007 -vn -0.218215 0.904261 -0.367007 -vn -0.636659 0.700593 -0.322234 -vn -0.636659 0.700593 -0.322234 -vn -0.636659 0.700593 -0.322234 -vn -0.636659 0.700593 -0.322234 -vn -0.940551 0.261661 -0.216559 -vn -0.940551 0.261661 -0.216559 -vn -0.940551 0.261661 -0.216559 -vn -0.940551 0.261661 -0.216559 -vn -0.223297 -0.964572 0.140499 -vn -0.223297 -0.964572 0.140499 -vn -0.223297 -0.964572 0.140499 -vn -0.223297 -0.964572 0.140499 -vn -0.608914 -0.788970 0.082159 -vn -0.608914 -0.788970 0.082159 -vn -0.608914 -0.788970 0.082159 -vn -0.608914 -0.788970 0.082159 -vn -0.943516 -0.326080 -0.058725 -vn -0.943516 -0.326080 -0.058725 -vn -0.943516 -0.326080 -0.058725 -vn -0.943516 -0.326080 -0.058725 -vn -0.649906 0.725503 -0.226425 -vn -0.649906 0.725503 -0.226425 -vn -0.649906 0.725503 -0.226425 -vn -0.649906 0.725503 -0.226425 -vn -0.224665 0.938439 -0.262406 -vn -0.224665 0.938439 -0.262406 -vn -0.224665 0.938439 -0.262406 -vn -0.224665 0.938439 -0.262406 -vn -0.228402 -0.973339 0.021079 -vn -0.228402 -0.973339 0.021079 -vn -0.228402 -0.973339 0.021079 -vn -0.228402 -0.973339 0.021079 -vn -0.617593 -0.786492 -0.002989 -vn -0.617593 -0.786492 -0.002989 -vn -0.617593 -0.786492 -0.002989 -vn -0.617593 -0.786492 -0.002989 -vn -0.947246 -0.312789 -0.069910 -vn -0.947246 -0.312789 -0.069910 -vn -0.947246 -0.312789 -0.069910 -vn -0.947246 -0.312789 -0.069910 -vn -0.948086 0.277190 -0.155882 -vn -0.948086 0.277190 -0.155882 -vn -0.948086 0.277190 -0.155882 -vn -0.948086 0.277190 -0.155882 -vn -0.626997 0.657809 -0.417327 -vn -0.626997 0.657809 -0.417327 -vn -0.626997 0.657809 -0.417327 -vn -0.626997 0.657809 -0.417327 -vn -0.215113 0.851484 -0.478228 -vn -0.215113 0.851484 -0.478228 -vn -0.215113 0.851484 -0.478228 -vn -0.215113 0.851484 -0.478228 -vn -0.228146 -0.954485 0.192116 -vn -0.228146 -0.954485 0.192116 -vn -0.228146 -0.954485 0.192116 -vn -0.228146 -0.954485 0.192116 -vn -0.617843 -0.778020 0.113820 -vn -0.617843 -0.778020 0.113820 -vn -0.617843 -0.778020 0.113820 -vn -0.617843 -0.778020 0.113821 -vn -0.943946 -0.322148 -0.072019 -vn -0.943946 -0.322148 -0.072019 -vn -0.943946 -0.322148 -0.072019 -vn -0.943946 -0.322148 -0.072019 -vn -0.929673 0.241828 -0.277898 -vn -0.929673 0.241828 -0.277898 -vn -0.929673 0.241828 -0.277898 -vn -0.929673 0.241828 -0.277898 -vn -0.493451 0.844010 0.210128 -vn -0.493451 0.844010 0.210128 -vn -0.493451 0.844010 0.210128 -vn -0.493451 0.844010 0.210128 -vn -0.499572 -0.848351 -0.175299 -vn -0.499572 -0.848351 -0.175299 -vn -0.499572 -0.848351 -0.175299 -vn -0.499572 -0.848351 -0.175299 -vn -0.999827 0.003044 0.018370 -vn -0.999827 0.003044 0.018371 -vn -0.999827 0.003044 0.018370 -vn -0.999827 0.003044 0.018370 -vn -0.447601 0.713552 0.538977 -vn -0.447601 0.713552 0.538977 -vn -0.447601 0.713552 0.538977 -vn -0.456287 -0.872946 0.172531 -vn -0.456287 -0.872946 0.172531 -vn -0.456287 -0.872946 0.172531 -vn -0.927354 -0.074343 0.366725 -vn -0.927354 -0.074343 0.366725 -vn -0.927354 -0.074343 0.366725 -s off -g Narwhal_mesh -usemtl Narwhal_Mat -f 32/1/1 35/2/2 34/3/3 33/4/4 -f 35/2/5 1/5/6 3/6/7 34/3/8 -f 2/7/9 37/8/10 36/9/11 4/10/12 -f 37/8/13 39/11/14 38/12/15 36/9/16 -f 39/11/17 41/13/18 40/14/19 38/12/20 -f 41/13/21 32/1/22 33/4/23 40/14/24 -f 33/4/25 34/3/26 43/15/27 42/16/28 -f 34/3/29 3/6/30 5/17/31 43/15/32 -f 4/10/33 36/9/34 44/18/35 6/19/36 -f 36/9/37 38/12/38 45/20/39 44/18/40 -f 38/12/41 40/14/42 46/21/43 45/20/44 -f 40/14/45 33/4/46 42/16/47 46/21/48 -f 35/2/49 32/1/50 48/22/51 47/23/52 -f 1/5/53 35/2/54 47/23/55 7/24/56 -f 37/8/57 2/7/58 8/25/59 49/26/60 -f 39/11/61 37/8/62 49/26/63 50/27/64 -f 41/13/65 39/11/66 50/27/67 51/28/68 -f 32/1/69 41/13/70 51/28/71 48/22/72 -f 47/23/73 48/22/74 53/29/75 52/30/76 -f 7/24/77 47/23/78 52/30/79 9/31/80 -f 49/26/81 8/25/82 10/32/83 54/33/84 -f 50/27/85 49/26/86 54/33/87 55/34/88 -f 51/28/89 50/27/90 55/34/91 56/35/92 -f 48/22/93 51/28/94 56/35/95 53/29/96 -f 57/36/97 58/37/98 63/38/99 62/39/100 -f 11/40/101 57/36/102 62/39/103 13/41/104 -f 59/42/105 12/43/106 14/44/107 64/45/108 -f 60/46/109 59/42/110 64/45/111 65/47/112 -f 61/48/113 60/46/114 65/47/115 66/49/116 -f 58/37/117 61/48/118 66/49/119 63/38/120 -f 62/39/121 63/38/122 68/50/123 67/51/124 -f 13/41/125 62/39/126 67/51/127 15/52/128 -f 64/45/129 14/44/130 16/53/131 69/54/132 -f 65/47/133 64/45/134 69/54/135 70/55/136 -f 66/49/137 65/47/138 70/55/139 71/56/140 -f 63/38/141 66/49/142 71/56/143 68/50/144 -f 67/51/145 68/50/146 73/57/147 72/58/148 -f 15/52/149 67/51/150 72/58/151 17/59/152 -f 69/54/153 16/53/154 18/60/155 74/189/156 -f 70/55/157 69/54/158 74/189/159 75/188/160 -f 71/56/161 70/55/162 75/188/163 76/191/164 -f 68/50/165 71/56/166 76/191/167 73/57/168 -f 42/16/169 43/15/170 78/64/171 77/65/172 -f 43/15/173 5/17/174 19/66/175 78/64/176 -f 6/19/177 44/18/178 79/67/179 20/68/180 -f 44/18/181 45/20/182 80/69/183 79/67/184 -f 45/20/185 46/21/186 81/70/187 80/69/188 -f 46/21/189 42/16/190 77/65/191 81/70/192 -f 77/65/193 78/64/194 83/71/195 82/72/196 -f 78/64/197 19/66/198 31/73/199 83/71/200 -f 20/68/201 79/67/202 84/74/203 30/75/204 -f 79/67/205 80/69/206 85/76/207 84/74/208 -f 86/184/209 89/78/210 88/79/211 87/80/212 -f 81/70/213 77/65/214 82/72/215 90/81/216 -f 91/82/217 94/83/218 93/84/219 92/85/220 -f 94/83/221 21/86/222 23/87/223 93/84/224 -f 22/88/225 96/89/226 95/90/227 24/91/228 -f 96/89/229 98/92/230 97/93/231 95/90/232 -f 98/92/233 100/94/234 99/95/235 97/93/236 -f 100/94/237 91/82/238 92/85/239 99/95/240 -f 92/85/241 93/84/242 102/96/243 101/97/244 -f 93/84/245 23/87/246 25/98/247 102/96/248 -f 24/91/249 95/90/250 103/99/251 26/100/252 -f 95/90/253 97/93/254 104/101/255 103/99/256 -f 97/93/257 99/95/258 105/102/259 104/101/260 -f 99/95/261 92/85/262 101/97/263 105/102/264 -f 28/103/265 27/104/266 107/105/267 106/106/268 -f 29/107/269 28/103/270 106/106/271 108/108/272 -f 106/106/273 107/105/274 110/109/275 109/110/276 -f 108/108/277 106/106/278 109/110/279 111/111/280 -f 109/110/281 110/109/282 104/101/283 105/102/284 -f 111/111/285 109/110/286 105/102/287 101/97/288 -f 144/112/289 145/113/290 29/107/291 108/108/292 -f 111/111/293 144/112/294 108/108/295 -f 107/105/296 27/104/297 146/114/298 147/115/299 -f 110/109/300 107/105/301 147/115/302 -f 80/69/303 113/186/304 112/176/305 85/76/306 -f 98/92/307 115/118/308 114/175/309 100/94/310 -f 90/81/311 117/120/312 116/179/313 81/70/314 -f 81/70/315 116/179/316 113/178/317 80/69/318 -f 113/187/319 119/181/320 118/123/321 112/117/322 -f 115/177/323 121/124/324 120/125/325 114/119/326 -f 117/174/327 123/126/328 122/127/329 116/121/330 -f 116/121/331 122/127/332 119/122/333 113/116/334 -f 124/128/335 127/185/336 126/130/337 125/131/338 -f 128/132/339 131/133/340 130/134/341 129/135/342 -f 132/136/343 135/137/344 134/138/345 133/139/346 -f 133/139/347 134/138/348 127/129/349 124/182/350 -f 127/185/351 137/183/352 136/141/353 126/130/354 -f 131/133/355 139/142/356 138/143/357 130/134/358 -f 135/137/359 141/144/360 140/145/361 134/138/362 -f 134/138/363 140/145/364 137/140/365 127/129/366 -f 137/183/367 86/77/368 87/180/369 136/141/370 -f 139/142/371 143/146/372 142/147/373 138/143/374 -f 141/144/375 88/79/376 89/78/377 140/145/378 -f 140/145/379 89/78/380 86/184/381 137/140/382 -f 123/126/383 132/136/384 133/139/385 122/127/386 -f 121/124/387 128/132/388 129/135/389 120/125/390 -f 119/181/391 124/128/392 125/131/393 118/123/394 -f 122/127/395 133/139/396 124/182/397 119/122/398 -f 84/74/399 96/89/400 22/88/401 30/75/402 -f 85/76/403 98/92/404 96/89/405 84/74/406 -f 112/176/407 115/118/408 98/92/409 85/76/410 -f 118/123/411 121/124/412 115/177/413 112/117/414 -f 125/131/415 128/132/416 121/124/417 118/123/418 -f 126/130/419 131/133/420 128/132/421 125/131/422 -f 136/141/423 139/142/424 131/133/425 126/130/426 -f 87/180/427 143/146/428 139/142/429 136/141/430 -f 88/79/431 142/147/432 143/146/433 87/80/434 -f 138/143/435 142/147/436 88/79/437 141/144/438 -f 130/134/439 138/143/440 141/144/441 135/137/442 -f 129/135/443 130/134/444 135/137/445 132/136/446 -f 120/125/447 129/135/448 132/136/449 123/126/450 -f 114/119/451 120/125/452 123/126/453 117/174/454 -f 100/94/455 114/175/456 117/120/457 90/81/458 -f 82/72/459 91/82/460 100/94/461 90/81/462 -f 83/71/463 94/83/464 91/82/465 82/72/466 -f 31/73/467 21/86/468 94/83/469 83/71/470 -f 101/97/471 102/96/472 144/112/473 111/111/474 -f 102/96/475 25/98/476 145/113/477 144/112/478 -f 147/115/479 146/114/480 26/100/481 103/99/482 -f 110/109/483 147/115/484 103/99/485 104/101/486 -f 150/148/487 76/63/488 75/62/489 -f 149/149/490 150/148/491 75/62/492 74/61/493 -f 148/150/494 149/149/495 74/61/496 18/190/497 -f 17/59/498 72/58/499 149/149/500 148/150/501 -f 72/58/502 73/57/503 150/148/504 149/149/505 -f 73/57/506 76/63/507 150/148/508 -f 151/151/509 152/152/510 156/153/511 155/154/512 -f 152/152/513 151/151/514 153/155/515 154/156/516 -f 154/156/517 153/155/518 163/157/519 164/158/520 -f 158/159/521 157/160/522 160/161/523 159/162/524 -f 159/162/525 160/161/526 162/163/527 161/164/528 -f 161/164/529 162/163/530 164/158/531 163/157/532 -f 52/30/533 53/29/534 153/155/535 151/151/536 -f 9/31/537 52/30/538 151/151/539 155/154/540 -f 54/33/541 10/32/542 158/159/543 159/162/544 -f 55/34/545 54/33/546 159/162/547 161/164/548 -f 56/35/549 55/34/550 161/164/551 163/157/552 -f 53/29/553 56/35/554 163/157/555 153/155/556 -f 152/152/557 154/156/558 58/37/559 57/36/560 -f 156/153/561 152/152/562 57/36/563 11/40/564 -f 160/161/565 157/160/566 12/43/567 59/42/568 -f 162/163/569 160/161/570 59/42/571 60/46/572 -f 164/158/573 162/163/574 60/46/575 61/48/576 -f 154/156/577 164/158/578 61/48/579 58/37/580 -f 165/165/581 166/166/582 170/167/583 169/168/584 -f 167/169/585 168/170/586 172/171/587 171/172/588 -f 168/170/589 165/165/590 169/168/591 172/171/592 -f 169/168/593 170/167/594 173/173/595 -f 171/172/596 172/171/597 173/173/598 -f 172/171/599 169/168/600 173/173/601 -f 174/192/602 177/195/603 176/194/604 175/193/605 -f 175/193/606 176/194/607 3/197/608 1/196/609 -f 2/198/610 4/201/611 179/200/612 178/199/613 -f 178/199/614 179/200/615 181/203/616 180/202/617 -f 180/202/618 181/203/619 183/205/620 182/204/621 -f 182/204/622 183/205/623 177/195/624 174/192/625 -f 177/195/626 185/207/627 184/206/628 176/194/629 -f 176/194/630 184/206/631 5/208/632 3/197/633 -f 4/201/634 6/210/635 186/209/636 179/200/637 -f 179/200/638 186/209/639 187/211/640 181/203/641 -f 181/203/642 187/211/643 188/212/644 183/205/645 -f 183/205/646 188/212/647 185/207/648 177/195/649 -f 175/193/650 190/214/651 189/213/652 174/192/653 -f 1/196/654 7/215/655 190/214/656 175/193/657 -f 178/199/658 191/217/659 8/216/660 2/198/661 -f 180/202/662 192/218/663 191/217/664 178/199/665 -f 182/204/666 193/219/667 192/218/668 180/202/669 -f 174/192/670 189/213/671 193/219/672 182/204/673 -f 190/214/674 195/221/675 194/220/676 189/213/677 -f 7/215/678 9/222/679 195/221/680 190/214/681 -f 191/217/682 196/224/683 10/223/684 8/216/685 -f 192/218/686 197/225/687 196/224/688 191/217/689 -f 193/219/690 198/226/691 197/225/692 192/218/693 -f 189/213/694 194/220/695 198/226/696 193/219/697 -f 199/227/698 202/230/699 201/229/700 200/228/701 -f 11/231/702 13/232/703 202/230/704 199/227/705 -f 203/233/706 204/236/707 14/235/708 12/234/709 -f 205/237/710 206/238/711 204/236/712 203/233/713 -f 207/239/714 208/240/715 206/238/716 205/237/717 -f 200/228/718 201/229/719 208/240/720 207/239/721 -f 202/230/722 210/242/723 209/241/724 201/229/725 -f 13/232/726 15/243/727 210/242/728 202/230/729 -f 204/236/730 211/245/731 16/244/732 14/235/733 -f 206/238/734 212/246/735 211/245/736 204/236/737 -f 208/240/738 213/247/739 212/246/740 206/238/741 -f 201/229/742 209/241/743 213/247/744 208/240/745 -f 210/242/746 215/249/747 214/248/748 209/241/749 -f 15/243/750 17/250/751 215/249/752 210/242/753 -f 211/245/754 216/252/755 18/251/756 16/244/757 -f 212/246/758 217/253/759 216/252/760 211/245/761 -f 213/247/762 218/254/763 217/253/764 212/246/765 -f 209/241/766 214/248/767 218/254/768 213/247/769 -f 185/207/770 220/256/771 219/255/772 184/206/773 -f 184/206/774 219/255/775 19/257/776 5/208/777 -f 6/210/778 20/259/779 221/258/780 186/209/781 -f 186/209/782 221/258/783 222/260/784 187/211/785 -f 187/211/786 222/260/787 223/261/788 188/212/789 -f 188/212/790 223/261/791 220/256/792 185/207/793 -f 220/256/794 225/263/795 224/262/796 219/255/797 -f 219/255/798 224/262/799 31/264/800 19/257/801 -f 20/259/802 30/266/803 226/265/804 221/258/805 -f 221/258/806 226/265/807 227/267/808 222/260/809 -f 228/268/810 231/271/811 230/270/812 229/269/813 -f 223/261/814 232/272/815 225/263/816 220/256/817 -f 233/273/818 236/276/819 235/275/820 234/274/821 -f 234/274/822 235/275/823 23/278/824 21/277/825 -f 22/279/826 24/282/827 238/281/828 237/280/829 -f 237/280/830 238/281/831 240/284/832 239/283/833 -f 239/283/834 240/284/835 242/286/836 241/285/837 -f 241/285/838 242/286/839 236/276/840 233/273/841 -f 236/276/842 244/288/843 243/287/844 235/275/845 -f 235/275/846 243/287/847 25/289/848 23/278/849 -f 24/282/850 26/291/851 245/290/852 238/281/853 -f 238/281/854 245/290/855 246/292/856 240/284/857 -f 240/284/858 246/292/859 247/293/860 242/286/861 -f 242/286/862 247/293/863 244/288/864 236/276/865 -f 28/294/866 249/297/867 248/296/868 27/295/869 -f 29/298/870 250/299/871 249/297/872 28/294/873 -f 249/297/874 252/301/875 251/300/876 248/296/877 -f 250/299/878 253/302/879 252/301/880 249/297/881 -f 252/301/882 247/293/883 246/292/884 251/300/885 -f 253/302/886 244/288/887 247/293/888 252/301/889 -f 254/303/890 250/299/891 29/298/892 145/304/893 -f 253/302/894 250/299/895 254/303/896 -f 248/296/897 255/306/898 146/305/899 27/295/900 -f 251/300/901 255/306/902 248/296/903 -f 222/260/904 227/267/905 257/308/906 256/307/907 -f 239/283/908 241/285/909 259/310/910 258/309/911 -f 232/272/912 223/261/913 261/312/914 260/311/915 -f 223/261/916 222/260/917 256/313/918 261/312/919 -f 256/314/920 257/317/921 263/316/922 262/315/923 -f 258/318/924 259/321/925 265/320/926 264/319/927 -f 260/322/928 261/325/929 267/324/930 266/323/931 -f 261/325/932 256/327/933 262/326/934 267/324/935 -f 268/328/936 271/331/937 270/330/938 269/329/939 -f 272/332/940 275/335/941 274/334/942 273/333/943 -f 276/336/944 279/339/945 278/338/946 277/337/947 -f 279/339/948 268/341/949 269/340/950 278/338/951 -f 269/329/952 270/330/953 281/343/954 280/342/955 -f 273/333/956 274/334/957 283/345/958 282/344/959 -f 277/337/960 278/338/961 285/347/962 284/346/963 -f 278/338/964 269/340/965 280/348/966 285/347/967 -f 280/342/968 281/343/969 231/350/970 228/349/971 -f 282/344/972 283/345/973 287/352/974 286/351/975 -f 284/346/976 285/347/977 229/269/978 230/270/979 -f 285/347/980 280/348/981 228/268/982 229/269/983 -f 266/323/984 267/324/985 279/339/986 276/336/987 -f 264/319/988 265/320/989 275/335/990 272/332/991 -f 262/315/992 263/316/993 271/331/994 268/328/995 -f 267/324/996 262/326/997 268/341/998 279/339/999 -f 226/265/1000 30/266/1001 22/279/1002 237/280/1003 -f 227/267/1004 226/265/1005 237/280/1006 239/283/1007 -f 257/308/1008 227/267/1009 239/283/1010 258/309/1011 -f 263/316/1012 257/317/1013 258/318/1014 264/319/1015 -f 271/331/1016 263/316/1017 264/319/1018 272/332/1019 -f 270/330/1020 271/331/1021 272/332/1022 273/333/1023 -f 281/343/1024 270/330/1025 273/333/1026 282/344/1027 -f 231/350/1028 281/343/1029 282/344/1030 286/351/1031 -f 230/270/1032 231/271/1033 286/351/1034 287/352/1035 -f 283/345/1036 284/346/1037 230/270/1038 287/352/1039 -f 274/334/1040 277/337/1041 284/346/1042 283/345/1043 -f 275/335/1044 276/336/1045 277/337/1046 274/334/1047 -f 265/320/1048 266/323/1049 276/336/1050 275/335/1051 -f 259/321/1052 260/322/1053 266/323/1054 265/320/1055 -f 241/285/1056 232/272/1057 260/311/1058 259/310/1059 -f 225/263/1060 232/272/1061 241/285/1062 233/273/1063 -f 224/262/1064 225/263/1065 233/273/1066 234/274/1067 -f 31/264/1068 224/262/1069 234/274/1070 21/277/1071 -f 244/288/1072 253/302/1073 254/303/1074 243/287/1075 -f 243/287/1076 254/303/1077 145/304/1078 25/289/1079 -f 255/306/1080 245/290/1081 26/291/1082 146/305/1083 -f 251/300/1084 246/292/1085 245/290/1086 255/306/1087 -f 288/353/1088 217/355/1089 218/354/1090 -f 289/356/1091 216/357/1092 217/355/1093 288/353/1094 -f 148/358/1095 18/359/1096 216/357/1097 289/356/1098 -f 17/250/1099 148/358/1100 289/356/1101 215/249/1102 -f 215/249/1103 289/356/1104 288/353/1105 214/248/1106 -f 214/248/1107 288/353/1108 218/354/1109 -f 290/360/1110 155/363/1111 156/362/1112 291/361/1113 -f 291/361/1114 293/365/1115 292/364/1116 290/360/1117 -f 293/365/1118 295/367/1119 294/366/1120 292/364/1121 -f 158/368/1122 297/371/1123 296/370/1124 157/369/1125 -f 297/371/1126 299/373/1127 298/372/1128 296/370/1129 -f 299/373/1130 294/366/1131 295/367/1132 298/372/1133 -f 195/221/1134 290/360/1135 292/364/1136 194/220/1137 -f 9/222/1138 155/363/1139 290/360/1140 195/221/1141 -f 196/224/1142 297/371/1143 158/368/1144 10/223/1145 -f 197/225/1146 299/373/1147 297/371/1148 196/224/1149 -f 198/226/1150 294/366/1151 299/373/1152 197/225/1153 -f 194/220/1154 292/364/1155 294/366/1156 198/226/1157 -f 291/361/1158 199/227/1159 200/228/1160 293/365/1161 -f 156/362/1162 11/231/1163 199/227/1164 291/361/1165 -f 296/370/1166 203/233/1167 12/234/1168 157/369/1169 -f 298/372/1170 205/237/1171 203/233/1172 296/370/1173 -f 295/367/1174 207/239/1175 205/237/1176 298/372/1177 -f 293/365/1178 200/228/1179 207/239/1180 295/367/1181 -f 300/374/1182 301/377/1183 170/376/1184 166/375/1185 -f 167/169/1186 171/172/1187 303/379/1188 302/378/1189 -f 302/378/1190 303/379/1191 301/377/1192 300/374/1193 -f 301/377/1194 173/380/1195 170/376/1196 -f 171/172/1197 173/380/1198 303/379/1199 -f 303/379/1200 173/380/1201 301/377/1202 diff --git a/apps/school/src/assets/obj/nrwl/Narwhal_BaseColor.png b/apps/school/src/assets/obj/nrwl/Narwhal_BaseColor.png deleted file mode 100755 index 7b300d0..0000000 Binary files a/apps/school/src/assets/obj/nrwl/Narwhal_BaseColor.png and /dev/null differ diff --git a/apps/school/src/environments/environment.prod.ts b/apps/school/src/environments/environment.prod.ts deleted file mode 100644 index 3612073..0000000 --- a/apps/school/src/environments/environment.prod.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const environment = { - production: true -}; diff --git a/apps/school/src/environments/environment.ts b/apps/school/src/environments/environment.ts deleted file mode 100644 index b7f639a..0000000 --- a/apps/school/src/environments/environment.ts +++ /dev/null @@ -1,8 +0,0 @@ -// The file contents for the current environment will overwrite these during build. -// The build system defaults to the dev environment which uses `environment.ts`, but if you do -// `ng build --env=prod` then `environment.prod.ts` will be used instead. -// The list of which env maps to which file can be found in `.angular-cli.json`. - -export const environment = { - production: false -}; diff --git a/apps/school/src/favicon.ico b/apps/school/src/favicon.ico deleted file mode 100644 index 8081c7c..0000000 Binary files a/apps/school/src/favicon.ico and /dev/null differ diff --git a/apps/school/src/index.html b/apps/school/src/index.html deleted file mode 100644 index 54ec036..0000000 --- a/apps/school/src/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - School - - - - - - - - - diff --git a/apps/school/src/main.ts b/apps/school/src/main.ts deleted file mode 100644 index 5aa3bf0..0000000 --- a/apps/school/src/main.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { enableProdMode } from '@angular/core'; -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; - -import { AppModule } from './app/app.module'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} - -platformBrowserDynamic() - .bootstrapModule(AppModule) - .catch(err => console.log(err)); diff --git a/apps/school/src/polyfills.ts b/apps/school/src/polyfills.ts deleted file mode 100644 index 781b979..0000000 --- a/apps/school/src/polyfills.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * This file includes polyfills needed by Angular and is loaded before the app. - * You can add your own extra polyfills to this file. - * - * This file is divided into 2 sections: - * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. - * 2. Application imports. Files imported after ZoneJS that should be loaded before your main - * file. - * - * The current setup is for so-called "evergreen" browsers; the last versions of browsers that - * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), - * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. - * - * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html - */ - -/*************************************************************************************************** - * BROWSER POLYFILLS - */ - -/** IE9, IE10 and IE11 requires all of the following polyfills. **/ -// import 'core-js/es6/symbol'; -// import 'core-js/es6/object'; -// import 'core-js/es6/function'; -// import 'core-js/es6/parse-int'; -// import 'core-js/es6/parse-float'; -// import 'core-js/es6/number'; -// import 'core-js/es6/math'; -// import 'core-js/es6/string'; -// import 'core-js/es6/date'; -// import 'core-js/es6/array'; -// import 'core-js/es6/regexp'; -// import 'core-js/es6/map'; -// import 'core-js/es6/weak-map'; -// import 'core-js/es6/set'; - -/** IE10 and IE11 requires the following for NgClass support on SVG elements */ -// import 'classlist.js'; // Run `npm install --save classlist.js`. - -/** IE10 and IE11 requires the following for the Reflect API. */ -// import 'core-js/es6/reflect'; - -/** Evergreen browsers require these. **/ -// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. -import 'core-js/es7/reflect'; - -/** - * Required to support Web Animations `@angular/platform-browser/animations`. - * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation - **/ -// import 'web-animations-js'; // Run `npm install --save web-animations-js`. - -/*************************************************************************************************** - * Zone JS is required by Angular itself. - */ -import 'zone.js/dist/zone'; // Included with Angular CLI. - -/*************************************************************************************************** - * APPLICATION IMPORTS - */ - -/** - * Date, currency, decimal and percent pipes. - * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 - */ -// import 'intl'; // Run `npm install --save intl`. -/** - * Need to import at least one locale-data with intl. - */ -// import 'intl/locale-data/jsonp/en'; diff --git a/apps/school/src/styles.css b/apps/school/src/styles.css deleted file mode 100644 index 882f0a5..0000000 --- a/apps/school/src/styles.css +++ /dev/null @@ -1,41 +0,0 @@ -/* You can add global styles to this file, and also import other style files */ -body { - font-family: monospace; - margin: 0; - overflow: hidden; - position: fixed; - width: 100%; - height: 100vh; - -webkit-user-select: none; - user-select: none; -} -#info { - position: absolute; - left: 50%; - bottom: 0; - transform: translate(-50%, 0); - margin: 1em; - z-index: 10; - display: block; - width: 100%; - line-height: 2em; - text-align: center; -} -#info * { - color: #fff; -} -.title { - background-color: rgba(40, 40, 40, 0.4); - padding: 0.4em 0.6em; - border-radius: 0.1em; -} -.links { - background-color: rgba(40, 40, 40, 0.6); - padding: 0.4em 0.6em; - border-radius: 0.1em; -} -canvas { - position: absolute; - top: 0; - left: 0; -} diff --git a/apps/school/src/test.ts b/apps/school/src/test.ts deleted file mode 100644 index da4d847..0000000 --- a/apps/school/src/test.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /.spec.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/apps/school/tsconfig.app.json b/apps/school/tsconfig.app.json deleted file mode 100644 index bb54441..0000000 --- a/apps/school/tsconfig.app.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/apps/school", - "module": "es2015" - }, - "include": [ - "**/*.ts", - "../../libs/slides/src/index.ts" - ], - "exclude": [ - "**/*.spec.ts", - "src/test.ts" - ] -} diff --git a/apps/school/tsconfig.spec.json b/apps/school/tsconfig.spec.json deleted file mode 100644 index 73c0953..0000000 --- a/apps/school/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/apps/school", - "types": [ - "jasmine", - "node" - ], - "module": "commonjs" - }, - "files": [ - "src/test.ts", - "src/polyfills.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/apps/school/tslint.json b/apps/school/tslint.json deleted file mode 100644 index 19e8161..0000000 --- a/apps/school/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ] - } -} diff --git a/apps/teach-e2e/protractor.conf.js b/apps/teach-e2e/protractor.conf.js deleted file mode 100644 index bde1a8b..0000000 --- a/apps/teach-e2e/protractor.conf.js +++ /dev/null @@ -1,26 +0,0 @@ -// Protractor configuration file, see link for more information -// https://github.com/angular/protractor/blob/master/lib/config.ts - -const { SpecReporter } = require('jasmine-spec-reporter'); - -exports.config = { - allScriptsTimeout: 11000, - specs: ['./src/**/*.e2e-spec.ts'], - capabilities: { - browserName: 'chrome' - }, - directConnect: true, - baseUrl: 'http://localhost:4200/', - framework: 'jasmine', - jasmineNodeOpts: { - showColors: true, - defaultTimeoutInterval: 30000, - print: function() {} - }, - onPrepare() { - require('ts-node').register({ - project: require('path').join(__dirname, './tsconfig.e2e.json') - }); - jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); - } -}; diff --git a/apps/teach-e2e/src/app.e2e-spec.ts b/apps/teach-e2e/src/app.e2e-spec.ts deleted file mode 100644 index b5154d3..0000000 --- a/apps/teach-e2e/src/app.e2e-spec.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { AppPage } from './app.po'; - -describe('teach App', () => { - let page: AppPage; - - beforeEach(() => { - page = new AppPage(); - }); - - it('should display welcome message', () => { - page.navigateTo(); - expect(page.text()).toContain('app works!'); - }); -}); diff --git a/apps/teach-e2e/src/app.po.ts b/apps/teach-e2e/src/app.po.ts deleted file mode 100644 index 531c349..0000000 --- a/apps/teach-e2e/src/app.po.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { browser, by, element } from 'protractor'; - -export class AppPage { - navigateTo() { - return browser.get('/'); - } - - text() { - return browser.findElement(by.css('body')).getText(); - } -} diff --git a/apps/teach-e2e/tsconfig.e2e.json b/apps/teach-e2e/tsconfig.e2e.json deleted file mode 100644 index 9315951..0000000 --- a/apps/teach-e2e/tsconfig.e2e.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/apps/teach-e2e", - "module": "commonjs", - "target": "es5", - "types": [ - "jasmine", - "jasminewd2", - "node" - ] - } -} diff --git a/apps/teach/browserslist b/apps/teach/browserslist deleted file mode 100644 index 8e09ab4..0000000 --- a/apps/teach/browserslist +++ /dev/null @@ -1,9 +0,0 @@ -# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries -# For IE 9-11 support, please uncomment the last line of the file and adjust as needed -> 0.5% -last 2 versions -Firefox ESR -not dead -# IE 9-11 \ No newline at end of file diff --git a/apps/teach/karma.conf.js b/apps/teach/karma.conf.js deleted file mode 100644 index 3df4d0c..0000000 --- a/apps/teach/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function(config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-phantomjs-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../../coverage'), - reports: ['html', 'lcovonly'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false - }); -}; diff --git a/apps/teach/src/app/app.component.html b/apps/teach/src/app/app.component.html deleted file mode 100644 index 79be59c..0000000 --- a/apps/teach/src/app/app.component.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/apps/teach/src/app/app.component.scss b/apps/teach/src/app/app.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/apps/teach/src/app/app.component.spec.ts b/apps/teach/src/app/app.component.spec.ts deleted file mode 100644 index 0f422f6..0000000 --- a/apps/teach/src/app/app.component.spec.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { AppComponent } from './app.component'; -import { RouterTestingModule } from '@angular/router/testing'; - -describe('AppComponent', () => { - let component: AppComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - imports: [RouterTestingModule], - declarations: [AppComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(AppComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/apps/teach/src/app/app.component.ts b/apps/teach/src/app/app.component.ts deleted file mode 100644 index 188205d..0000000 --- a/apps/teach/src/app/app.component.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Component, OnInit, ViewEncapsulation } from '@angular/core'; - -@Component({ - selector: 'app-root', - templateUrl: './app.component.html', - styleUrls: ['./app.component.scss'], - encapsulation: ViewEncapsulation.None -}) -export class AppComponent implements OnInit { - constructor() {} - - ngOnInit() {} -} diff --git a/apps/teach/src/app/app.module.ts b/apps/teach/src/app/app.module.ts deleted file mode 100644 index 7d25730..0000000 --- a/apps/teach/src/app/app.module.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { NgModule } from '@angular/core'; -import { AppComponent } from './app.component'; -import { BrowserModule } from '@angular/platform-browser'; -import { NxModule } from '@nrwl/nx'; -import { RouterModule } from '@angular/router'; -import { IntroComponent } from './intro/intro.component'; -import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; - -@NgModule({ - imports: [ - BrowserModule, - BrowserAnimationsModule, - NxModule.forRoot(), - RouterModule.forRoot( - [ - { path: '', component: IntroComponent }, - { path: 'app1', loadChildren: '@nx-examples/teach/app1#TeachApp1Module' }, - { path: 'app2', loadChildren: '@nx-examples/teach/app2#TeachApp2Module' } - ], - { initialNavigation: 'enabled' } - ) - ], - declarations: [AppComponent, IntroComponent], - bootstrap: [AppComponent] -}) -export class AppModule {} diff --git a/apps/teach/src/app/intro/intro.component.ts b/apps/teach/src/app/intro/intro.component.ts deleted file mode 100644 index ba288f1..0000000 --- a/apps/teach/src/app/intro/intro.component.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'app-intro', - template: ` -
-

- Teach Container App Here -

- - -
- `, - styles: [] -}) -export class IntroComponent implements OnInit { - constructor() {} - - ngOnInit() {} -} diff --git a/apps/teach/src/assets/.gitkeep b/apps/teach/src/assets/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/apps/teach/src/assets/nx-logo.png b/apps/teach/src/assets/nx-logo.png deleted file mode 100644 index bed0370..0000000 Binary files a/apps/teach/src/assets/nx-logo.png and /dev/null differ diff --git a/apps/teach/src/environments/environment.prod.ts b/apps/teach/src/environments/environment.prod.ts deleted file mode 100644 index 3612073..0000000 --- a/apps/teach/src/environments/environment.prod.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const environment = { - production: true -}; diff --git a/apps/teach/src/environments/environment.ts b/apps/teach/src/environments/environment.ts deleted file mode 100644 index b7f639a..0000000 --- a/apps/teach/src/environments/environment.ts +++ /dev/null @@ -1,8 +0,0 @@ -// The file contents for the current environment will overwrite these during build. -// The build system defaults to the dev environment which uses `environment.ts`, but if you do -// `ng build --env=prod` then `environment.prod.ts` will be used instead. -// The list of which env maps to which file can be found in `.angular-cli.json`. - -export const environment = { - production: false -}; diff --git a/apps/teach/src/favicon.ico b/apps/teach/src/favicon.ico deleted file mode 100644 index 8081c7c..0000000 Binary files a/apps/teach/src/favicon.ico and /dev/null differ diff --git a/apps/teach/src/index.html b/apps/teach/src/index.html deleted file mode 100644 index a55714c..0000000 --- a/apps/teach/src/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - Teach - - - - - - - - - diff --git a/apps/teach/src/main.ts b/apps/teach/src/main.ts deleted file mode 100644 index 5aa3bf0..0000000 --- a/apps/teach/src/main.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { enableProdMode } from '@angular/core'; -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; - -import { AppModule } from './app/app.module'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} - -platformBrowserDynamic() - .bootstrapModule(AppModule) - .catch(err => console.log(err)); diff --git a/apps/teach/src/polyfills.ts b/apps/teach/src/polyfills.ts deleted file mode 100644 index 781b979..0000000 --- a/apps/teach/src/polyfills.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** - * This file includes polyfills needed by Angular and is loaded before the app. - * You can add your own extra polyfills to this file. - * - * This file is divided into 2 sections: - * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. - * 2. Application imports. Files imported after ZoneJS that should be loaded before your main - * file. - * - * The current setup is for so-called "evergreen" browsers; the last versions of browsers that - * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), - * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. - * - * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html - */ - -/*************************************************************************************************** - * BROWSER POLYFILLS - */ - -/** IE9, IE10 and IE11 requires all of the following polyfills. **/ -// import 'core-js/es6/symbol'; -// import 'core-js/es6/object'; -// import 'core-js/es6/function'; -// import 'core-js/es6/parse-int'; -// import 'core-js/es6/parse-float'; -// import 'core-js/es6/number'; -// import 'core-js/es6/math'; -// import 'core-js/es6/string'; -// import 'core-js/es6/date'; -// import 'core-js/es6/array'; -// import 'core-js/es6/regexp'; -// import 'core-js/es6/map'; -// import 'core-js/es6/weak-map'; -// import 'core-js/es6/set'; - -/** IE10 and IE11 requires the following for NgClass support on SVG elements */ -// import 'classlist.js'; // Run `npm install --save classlist.js`. - -/** IE10 and IE11 requires the following for the Reflect API. */ -// import 'core-js/es6/reflect'; - -/** Evergreen browsers require these. **/ -// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. -import 'core-js/es7/reflect'; - -/** - * Required to support Web Animations `@angular/platform-browser/animations`. - * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation - **/ -// import 'web-animations-js'; // Run `npm install --save web-animations-js`. - -/*************************************************************************************************** - * Zone JS is required by Angular itself. - */ -import 'zone.js/dist/zone'; // Included with Angular CLI. - -/*************************************************************************************************** - * APPLICATION IMPORTS - */ - -/** - * Date, currency, decimal and percent pipes. - * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10 - */ -// import 'intl'; // Run `npm install --save intl`. -/** - * Need to import at least one locale-data with intl. - */ -// import 'intl/locale-data/jsonp/en'; diff --git a/apps/teach/src/styles.css b/apps/teach/src/styles.css deleted file mode 100644 index 90d4ee0..0000000 --- a/apps/teach/src/styles.css +++ /dev/null @@ -1 +0,0 @@ -/* You can add global styles to this file, and also import other style files */ diff --git a/apps/teach/src/test.ts b/apps/teach/src/test.ts deleted file mode 100644 index da4d847..0000000 --- a/apps/teach/src/test.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /.spec.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/apps/teach/tsconfig.app.json b/apps/teach/tsconfig.app.json deleted file mode 100644 index 3a315fb..0000000 --- a/apps/teach/tsconfig.app.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/apps/teach", - "module": "es2015" - }, - "include": [ - "**/*.ts" - - , "../../libs/teach/app1/src/index.ts" - - , "../../libs/teach/app2/src/index.ts" -], - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] -} diff --git a/apps/teach/tsconfig.spec.json b/apps/teach/tsconfig.spec.json deleted file mode 100644 index a514d47..0000000 --- a/apps/teach/tsconfig.spec.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/apps/teach", - "types": [ - "jasmine", - "node" - ], - "module": "commonjs" - }, - "files": [ - "src/test.ts", - "src/polyfills.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/apps/teach/tslint.json b/apps/teach/tslint.json deleted file mode 100644 index 19e8161..0000000 --- a/apps/teach/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ] - } -} diff --git a/docs/3rdpartylicenses.txt b/docs/3rdpartylicenses.txt deleted file mode 100644 index 7116ee6..0000000 --- a/docs/3rdpartylicenses.txt +++ /dev/null @@ -1,587 +0,0 @@ -core-js@2.5.4 -MIT -Copyright (c) 2014-2018 Denis Pushkarev - -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. - -cache-loader@1.2.2 -MIT -Copyright JS Foundation and other contributors - -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. - -@angular-devkit/build-optimizer@0.3.2 -MIT -The MIT License - -Copyright (c) 2017 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. - -webpack@3.11.0 -MIT -Copyright JS Foundation and other contributors - -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. - -zone.js@0.8.20 -MIT -The MIT License - -Copyright (c) 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. - -@angular/core@5.2.7 -MIT -MIT - -@angular/platform-browser@5.2.7 -MIT -MIT - -@angular/router@5.2.7 -MIT -MIT - -@nrwl/nx@1.0.0 -MIT -(The MIT License) - -Copyright (c) 2017 Narwhal Technologies - -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. - -d3-axis@1.0.8 -BSD-3-Clause -Copyright 2010-2016 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-array@1.2.1 -BSD-3-Clause -Copyright 2010-2016 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-collection@1.0.4 -BSD-3-Clause -Copyright 2010-2016, Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-scale@2.0.0 -BSD-3-Clause -Copyright 2010-2015 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-color@1.0.3 -BSD-3-Clause -Copyright 2010-2016 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-interpolate@1.1.6 -BSD-3-Clause -Copyright 2010-2016 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-format@1.2.2 -BSD-3-Clause -Copyright 2010-2015 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-time@1.0.8 -BSD-3-Clause -Copyright 2010-2016 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-time-format@2.1.1 -BSD-3-Clause -Copyright 2010-2017 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-selection@1.3.0 -BSD-3-Clause -Copyright (c) 2010-2018, Michael Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* The name Michael Bostock may not be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -@angular/common@5.2.7 -MIT -MIT - -@angular/cdk@5.2.4 -MIT -The MIT License - -Copyright (c) 2018 Google LLC. - -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. - -@angular/material@5.2.4 -MIT -The MIT License - -Copyright (c) 2018 Google LLC. - -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. - -@angular/animations@5.2.9 -MIT -MIT - -@ngrx/store@5.1.0 -MIT -The MIT License (MIT) - -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -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. - -@ngrx/effects@5.1.0 -MIT -The MIT License (MIT) - -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -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. - -@ngrx/router-store@5.0.1 -MIT -The MIT License (MIT) - -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -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. - -@angular/forms@5.2.7 -MIT -MIT - -@angular/platform-browser-dynamic@5.2.7 -MIT -MIT \ No newline at end of file diff --git a/docs/404.html b/docs/404.html deleted file mode 100644 index a3d484f..0000000 --- a/docs/404.html +++ /dev/null @@ -1 +0,0 @@ -Demo \ No newline at end of file diff --git a/docs/assets/nx-logo.png b/docs/assets/nx-logo.png deleted file mode 100644 index bed0370..0000000 Binary files a/docs/assets/nx-logo.png and /dev/null differ diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100644 index 8081c7c..0000000 Binary files a/docs/favicon.ico and /dev/null differ diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index a3d484f..0000000 --- a/docs/index.html +++ /dev/null @@ -1 +0,0 @@ -Demo \ No newline at end of file diff --git a/docs/inline.318b50c57b4eba3d437b.bundle.js b/docs/inline.318b50c57b4eba3d437b.bundle.js deleted file mode 100644 index 1e8af07..0000000 --- a/docs/inline.318b50c57b4eba3d437b.bundle.js +++ /dev/null @@ -1 +0,0 @@ -!function(r){var n=window.webpackJsonp;window.webpackJsonp=function(e,u,c){for(var f,i,p,a=0,l=[];a1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===a&&1===t.length&&t[0]instanceof r.a?t[0]:Object(s.a)(n)(new i.a(t,a))};var r=n("YaPU"),i=n("Veqx"),o=n("1Q68"),s=n("8D5t")},0:function(t,e,n){t.exports=n("DfsJ")},"0P3J":function(t,e,n){"use strict";e.a=function(){return function(t){return t.lift(new o(t))}};var r=n("TToO"),i=n("OVmG"),o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new s(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),s=function(t){function e(e,n){t.call(this,e),this.connectable=n}return Object(r.b)(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.a)},"1Bqh":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("TToO"),i=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return Object(r.b)(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n("VwZZ").a)},"1Q68":function(t,e,n){"use strict";e.a=function(t){return t&&"function"==typeof t.schedule}},"3a3m":function(t,e,n){"use strict";e.a=function(){return function(t){return Object(i.a)()(Object(r.a)(s)(t))}};var r=n("Jwyl"),i=n("0P3J"),o=n("g5jc");function s(){return new o.a}},"8D5t":function(t,e,n){"use strict";e.a=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(i.a,null,t)};var r=n("Qnch"),i=n("lAP5")},AMGY:function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return o});var r="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=r||"undefined"!=typeof t&&t||i}).call(e,n("DuR2"))},BX3T:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},DfsJ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("WT6e"),i=function(){function t(){this.data=[{id:1,duration:2384},{id:2,duration:5485},{id:3,duration:2434},{id:4,duration:5565}]}return t.prototype.ngOnInit=function(){},t}(),o=function(){},s=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),a=Array.prototype.slice,u=function(t){return t},c=1,l=2,h=3,f=4,p=1e-6;function d(t){return"translate("+(t+.5)+",0)"}function y(t){return"translate(0,"+(t+.5)+")"}function v(){return!this.__axis}function g(t,e){var n=[],r=null,i=null,o=6,s=6,g=3,m=t===c||t===f?-1:1,b=t===f||t===l?"x":"y",_=t===c||t===h?d:y;function w(a){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,y=null==i?e.tickFormat?e.tickFormat.apply(e,n):u:i,w=Math.max(o,0)+g,E=e.range(),C=+E[0]+.5,S=+E[E.length-1]+.5,x=(e.bandwidth?function(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}:function(t){return function(e){return+t(e)}})(e.copy()),T=a.selection?a.selection():a,O=T.selectAll(".domain").data([null]),k=T.selectAll(".tick").data(d,e).order(),A=k.exit(),N=k.enter().append("g").attr("class","tick"),I=k.select("line"),M=k.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),k=k.merge(N),I=I.merge(N.append("line").attr("stroke","#000").attr(b+"2",m*o)),M=M.merge(N.append("text").attr("fill","#000").attr(b,m*w).attr("dy",t===c?"0em":t===h?"0.71em":"0.32em")),a!==T&&(O=O.transition(a),k=k.transition(a),I=I.transition(a),M=M.transition(a),A=A.transition(a).attr("opacity",p).attr("transform",function(t){return isFinite(t=x(t))?_(t):this.getAttribute("transform")}),N.attr("opacity",p).attr("transform",function(t){var e=this.parentNode.__axis;return _(e&&isFinite(e=e(t))?e:x(t))})),A.remove(),O.attr("d",t===f||t==l?"M"+m*s+","+C+"H0.5V"+S+"H"+m*s:"M"+C+","+m*s+"V0.5H"+S+"V"+m*s),k.attr("opacity",1).attr("transform",function(t){return _(x(t))}),I.attr(b+"2",m*o),M.attr(b,m*w).text(y),T.filter(v).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===l?"start":t===f?"end":"middle"),T.each(function(){this.__axis=x})}return w.scale=function(t){return arguments.length?(e=t,w):e},w.ticks=function(){return n=a.call(arguments),w},w.tickArguments=function(t){return arguments.length?(n=null==t?[]:a.call(t),w):n.slice()},w.tickValues=function(t){return arguments.length?(r=null==t?null:a.call(t),w):r&&r.slice()},w.tickFormat=function(t){return arguments.length?(i=t,w):i},w.tickSize=function(t){return arguments.length?(o=s=+t,w):o},w.tickSizeInner=function(t){return arguments.length?(o=+t,w):o},w.tickSizeOuter=function(t){return arguments.length?(s=+t,w):s},w.tickPadding=function(t){return arguments.length?(g=+t,w):g},w}var m,b,_=function(t,e){return te?1:t>=e?0:NaN},w=(1===(m=_).length&&(b=m,m=function(t,e){return _(b(t),e)}),{left:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;m(t[i],e)<0?n=i+1:r=i}return n},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;m(t[i],e)>0?r=i:n=i+1}return n}}).right;Array;var E=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r0)return[t];if((r=e0)for(t=Math.ceil(t/s),e=Math.floor(e/s),o=new Array(i=Math.ceil(e-t+1));++a=0?(o>=C?10:o>=S?5:o>=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=C?10:o>=S?5:o>=x?2:1)}function k(){}function A(t,e){var n=new k;if(t instanceof k)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=q.exec(t))?J(parseInt(e[1],16)):(e=Q.exec(t))?new rt(e[1],e[2],e[3],1):(e=G.exec(t))?new rt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Z.exec(t))?tt(e[1],e[2],e[3],e[4]):(e=W.exec(t))?tt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=K.exec(t))?it(e[1],e[2]/100,e[3]/100,1):(e=Y.exec(t))?it(e[1],e[2]/100,e[3]/100,e[4]):$.hasOwnProperty(t)?J($[t]):"transparent"===t?new rt(NaN,NaN,NaN,0):null}function J(t){return new rt(t>>16&255,t>>8&255,255&t,1)}function tt(t,e,n,r){return r<=0&&(t=e=n=NaN),new rt(t,e,n,r)}function et(t){return t instanceof V||(t=X(t)),t?new rt((t=t.rgb()).r,t.g,t.b,t.opacity):new rt}function nt(t,e,n,r){return 1===arguments.length?et(t):new rt(t,e,n,null==r?1:r)}function rt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function it(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new st(t,e,n,r)}function ot(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof st)return new st(t.h,t.s,t.l,t.opacity);if(t instanceof V||(t=X(t)),!t)return new st;if(t instanceof st)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,u=(o+i)/2;return a?(s=e===o?(n-r)/a+6*(n0&&u<1?0:s,new st(s,a,u,t.opacity)}(t):new st(t,e,n,null==r?1:r)}function st(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function at(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}L(V,X,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),L(rt,nt,F(V,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),L(st,ot,F(V,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new st(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new st(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new rt(at(t>=240?t-240:t+120,i,r),at(t,i,r),at(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var ut=Math.PI/180,ct=180/Math.PI,lt=.95047,ht=1,ft=1.08883,pt=4/29,dt=6/29,yt=3*dt*dt,vt=dt*dt*dt;function gt(t){if(t instanceof mt)return new mt(t.l,t.a,t.b,t.opacity);if(t instanceof St){var e=t.h*ut;return new mt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof rt||(t=et(t));var n=Et(t.r),r=Et(t.g),i=Et(t.b),o=bt((.4124564*n+.3575761*r+.1804375*i)/lt),s=bt((.2126729*n+.7151522*r+.072175*i)/ht);return new mt(116*s-16,500*(o-s),200*(s-bt((.0193339*n+.119192*r+.9503041*i)/ft)),t.opacity)}function mt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function bt(t){return t>vt?Math.pow(t,1/3):t/yt+pt}function _t(t){return t>dt?t*t*t:yt*(t-pt)}function wt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Et(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ct(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof St)return new St(t.h,t.c,t.l,t.opacity);t instanceof mt||(t=gt(t));var e=Math.atan2(t.b,t.a)*ct;return new St(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new St(t,e,n,null==r?1:r)}function St(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}L(mt,function(t,e,n,r){return 1===arguments.length?gt(t):new mt(t,e,n,null==r?1:r)},F(V,{brighter:function(t){return new mt(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new mt(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=ht*_t(t),new rt(wt(3.2404542*(e=lt*_t(e))-1.5371385*t-.4985314*(n=ft*_t(n))),wt(-.969266*e+1.8760108*t+.041556*n),wt(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),L(St,Ct,F(V,{brighter:function(t){return new St(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new St(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return gt(this).rgb()}}));var xt=-.14861,Tt=1.78277,Ot=-.29227,kt=-.90649,At=1.97294,Nt=At*kt,It=At*Tt,Mt=Tt*Ot-kt*xt;function Pt(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Rt)return new Rt(t.h,t.s,t.l,t.opacity);t instanceof rt||(t=et(t));var e=t.g/255,n=t.b/255,r=(Mt*n+Nt*(t.r/255)-It*e)/(Mt+Nt-It),i=n-r,o=(At*(e-r)-Ot*i)/kt,s=Math.sqrt(o*o+i*i)/(At*r*(1-r)),a=s?Math.atan2(o,i)*ct-120:NaN;return new Rt(a<0?a+360:a,s,r,t.opacity)}(t):new Rt(t,e,n,null==r?1:r)}function Rt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function jt(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}L(Rt,Pt,F(V,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*ut,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new rt(255*(e+n*(xt*r+Tt*i)),255*(e+n*(Ot*r+kt*i)),255*(e+n*(At*r)),this.opacity)}}));var Dt=function(t){return function(){return t}};function Lt(t,e){return function(n){return t+n*e}}function Ft(t,e){var n=e-t;return n?Lt(t,n>180||n<-180?n-360*Math.round(n/360):n):Dt(isNaN(t)?e:t)}function Vt(t,e){var n=e-t;return n?Lt(t,n):Dt(isNaN(t)?e:t)}var Ut=function t(e){var n=function(t){return 1==(t=+t)?Vt:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Dt(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=nt(t)).r,(e=nt(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),s=Vt(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=s(e),t+""}}return r.gamma=t,r}(1);function Bt(t){return function(e){var n,r,i=e.length,o=new Array(i),s=new Array(i),a=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return jt((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,ro&&(i=e.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,u.push({i:s,x:Gt(n,r)})),o=Wt.lastIndex;return o180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Gt(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,s.rotate,a,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Gt(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,s.skewX,a,u),function(t,e,n,r,o,s){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:Gt(t,n)},{i:a-2,x:Gt(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,u),o=s=null,function(t){for(var e,n=-1,r=u.length;++n1?r[0]+r.slice(2):r,+t.slice(n+1)]},fe=function(t){return(t=he(Math.abs(t)))?t[1]:NaN},pe=function(t,e){var n=he(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},de={"":function(t,e){t=t.toPrecision(e);t:for(var n,r=t.length,i=1,o=-1;i0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t},"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return pe(100*t,e)},r:pe,s:function(t,e){var n=he(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(le=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+he(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},ye=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function ve(t){return new ge(t)}function ge(t){if(!(e=ye.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",o=e[4]||"",s=!!e[5],a=e[6]&&+e[6],u=!!e[7],c=e[8]&&+e[8].slice(1),l=e[9]||"";"n"===l?(u=!0,l="g"):de[l]||(l=""),(s||"0"===n&&"="===r)&&(s=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=o,this.zero=s,this.width=a,this.comma=u,this.precision=c,this.type=l}ve.prototype=ge.prototype,ge.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var me,be,_e,we=function(t){return t},Ee=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];me=function(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,o=[],s=0,a=e[0],u=0;i>0&&a>0&&(u+a+1>r&&(a=Math.max(1,r-u)),o.push(t.substring(i-=a,i+a)),!((u+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(n)}):we,i=t.currency,o=t.decimal,s=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):we,a=t.percent||"%";function u(t){var e=(t=ve(t)).fill,n=t.align,u=t.sign,c=t.symbol,l=t.zero,h=t.width,f=t.comma,p=t.precision,d=t.type,y="$"===c?i[0]:"#"===c&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",v="$"===c?i[1]:/[%p]/.test(d)?a:"",g=de[d],m=!d||/[defgprs%]/.test(d);function b(t){var i,a,c,b=y,_=v;if("c"===d)_=g(t)+_,t="";else{var w=(t=+t)<0;if(t=g(Math.abs(t),p),w&&0==+t&&(w=!1),b=(w?"("===u?u:"-":"-"===u||"("===u?"":u)+b,_=("s"===d?Ee[8+le/3]:"")+_+(w&&"("===u?")":""),m)for(i=-1,a=t.length;++i(c=t.charCodeAt(i))||c>57){_=(46===c?o+t.slice(i+1):t.slice(i))+_,t=t.slice(0,i);break}}f&&!l&&(t=r(t,1/0));var E=b.length+t.length+_.length,C=E>1)+b+t+_+C.slice(E);break;default:t=C+b+t+_}return s(t)}return p=null==p?d?6:12:/[gprs]/.test(d)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),b.toString=function(){return t+""},b}return{format:u,formatPrefix:function(t,e){var n=u(((t=ve(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(fe(e)/3))),i=Math.pow(10,-r),o=Ee[8+r/3];return function(t){return n(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),be=me.format,_e=me.formatPrefix;var Ce=function(t,e,n){var r,i=t[0],o=t[t.length-1],s=function(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=C?i*=10:o>=S?i*=5:o>=x&&(i*=2),e0))return a;do{a.push(s=new Date(+n)),e(n,o),t(n)}while(s=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return Se.setTime(+e),xe.setTime(+r),t(Se),t(xe),Math.floor(n(Se,xe))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Oe=Te(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Oe.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Te(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):Oe:null};var ke=6e4,Ae=6048e5,Ne=(Te(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),Te(function(t){t.setTime(Math.floor(t/ke)*ke)},function(t,e){t.setTime(+t+e*ke)},function(t,e){return(e-t)/ke},function(t){return t.getMinutes()}),Te(function(t){var e=t.getTimezoneOffset()*ke%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),Te(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ke)/864e5},function(t){return t.getDate()-1}));function Ie(t){return Te(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ke)/Ae})}var Me=Ie(0),Pe=Ie(1),Re=(Ie(2),Ie(3),Ie(4)),je=(Ie(5),Ie(6),Te(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),Te(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));je.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Te(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var De=je,Le=(Te(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*ke)},function(t,e){return(e-t)/ke},function(t){return t.getUTCMinutes()}),Te(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),Te(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}));function Fe(t){return Te(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/Ae})}var Ve=Fe(0),Ue=Fe(1),Be=(Fe(2),Fe(3),Fe(4)),He=(Fe(5),Fe(6),Te(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),Te(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));He.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Te(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var ze=He;function qe(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Qe(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ge(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var Ze,We,Ke,Ye={"-":"",_:" ",0:"0"},$e=/^\s*\d+/,Xe=/^%/,Je=/[\\^$*+?|[\]().{}]/g;function tn(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function fn(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function pn(t,e,n){var r=$e.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function dn(t,e,n){var r=$e.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function yn(t,e,n){var r=$e.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function vn(t,e,n){var r=$e.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function gn(t,e,n){var r=$e.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function mn(t,e,n){var r=$e.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function bn(t,e,n){var r=$e.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function _n(t,e,n){var r=$e.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function wn(t,e,n){var r=Xe.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function En(t,e,n){var r=$e.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Cn(t,e,n){var r=$e.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function Sn(t,e){return tn(t.getDate(),e,2)}function xn(t,e){return tn(t.getHours(),e,2)}function Tn(t,e){return tn(t.getHours()%12||12,e,2)}function On(t,e){return tn(1+Ne.count(De(t),t),e,3)}function kn(t,e){return tn(t.getMilliseconds(),e,3)}function An(t,e){return kn(t,e)+"000"}function Nn(t,e){return tn(t.getMonth()+1,e,2)}function In(t,e){return tn(t.getMinutes(),e,2)}function Mn(t,e){return tn(t.getSeconds(),e,2)}function Pn(t){var e=t.getDay();return 0===e?7:e}function Rn(t,e){return tn(Me.count(De(t),t),e,2)}function jn(t,e){var n=t.getDay();return t=n>=4||0===n?Re(t):Re.ceil(t),tn(Re.count(De(t),t)+(4===De(t).getDay()),e,2)}function Dn(t){return t.getDay()}function Ln(t,e){return tn(Pe.count(De(t),t),e,2)}function Fn(t,e){return tn(t.getFullYear()%100,e,2)}function Vn(t,e){return tn(t.getFullYear()%1e4,e,4)}function Un(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+tn(e/60|0,"0",2)+tn(e%60,"0",2)}function Bn(t,e){return tn(t.getUTCDate(),e,2)}function Hn(t,e){return tn(t.getUTCHours(),e,2)}function zn(t,e){return tn(t.getUTCHours()%12||12,e,2)}function qn(t,e){return tn(1+Le.count(ze(t),t),e,3)}function Qn(t,e){return tn(t.getUTCMilliseconds(),e,3)}function Gn(t,e){return Qn(t,e)+"000"}function Zn(t,e){return tn(t.getUTCMonth()+1,e,2)}function Wn(t,e){return tn(t.getUTCMinutes(),e,2)}function Kn(t,e){return tn(t.getUTCSeconds(),e,2)}function Yn(t){var e=t.getUTCDay();return 0===e?7:e}function $n(t,e){return tn(Ve.count(ze(t),t),e,2)}function Xn(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Be(t):Be.ceil(t),tn(Be.count(ze(t),t)+(4===ze(t).getUTCDay()),e,2)}function Jn(t){return t.getUTCDay()}function tr(t,e){return tn(Ue.count(ze(t),t),e,2)}function er(t,e){return tn(t.getUTCFullYear()%100,e,2)}function nr(t,e){return tn(t.getUTCFullYear()%1e4,e,4)}function rr(){return"+0000"}function ir(){return"%"}function or(t){return+t}function sr(t){return Math.floor(+t/1e3)}!function(t){Ze=function(e){var n=t.dateTime,r=t.date,i=t.time,o=t.periods,s=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=nn(o),h=rn(o),f=nn(s),p=rn(s),d=nn(a),y=rn(a),v=nn(u),g=rn(u),m=nn(c),b=rn(c),_={a:function(t){return a[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Sn,e:Sn,f:An,H:xn,I:Tn,j:On,L:kn,m:Nn,M:In,p:function(t){return o[+(t.getHours()>=12)]},Q:or,s:sr,S:Mn,u:Pn,U:Rn,V:jn,w:Dn,W:Ln,x:null,X:null,y:Fn,Y:Vn,Z:Un,"%":ir},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Bn,e:Bn,f:Gn,H:Hn,I:zn,j:qn,L:Qn,m:Zn,M:Wn,p:function(t){return o[+(t.getUTCHours()>=12)]},Q:or,s:sr,S:Kn,u:Yn,U:$n,V:Xn,w:Jn,W:tr,x:null,X:null,y:er,Y:nr,Z:rr,"%":ir},E={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=y[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,e,r){return x(t,n,e,r)},d:dn,e:dn,f:_n,H:vn,I:vn,j:yn,L:bn,m:pn,M:gn,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=h[r[0].toLowerCase()],n+r[0].length):-1},Q:En,s:Cn,S:mn,u:sn,U:an,V:un,w:on,W:cn,x:function(t,e,n){return x(t,r,e,n)},X:function(t,e,n){return x(t,i,e,n)},y:hn,Y:ln,Z:fn,"%":wn};function C(t,e){return function(n){var r,i,o,s=[],a=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++a53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=Qe(Ge(o.y))).getUTCDay())>4||0===i?Ue.ceil(r):Ue(r),r=Le.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=e(Ge(o.y))).getDay())>4||0===i?Pe.ceil(r):Pe(r),r=Ne.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Qe(Ge(o.y)).getUTCDay():e(Ge(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Qe(o)):e(o)}}function x(t,e,n,r){for(var i,o,s=0,a=e.length,u=n.length;s=u)return-1;if(37===(i=e.charCodeAt(s++))){if(i=e.charAt(s++),!(o=E[i in Ye?e.charAt(s++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=C(r,_),_.X=C(i,_),_.c=C(n,_),w.x=C(r,w),w.X=C(i,w),w.c=C(n,w),{format:function(t){var e=C(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",qe);return e.toString=function(){return t},e},utcFormat:function(t){var e=C(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t,Qe);return e.toString=function(){return t},e}}}(),We=Ze.utcFormat,Ke=Ze.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Date.prototype.toISOString||We("%Y-%m-%dT%H:%M:%S.%LZ"),+new Date("2000-01-01T00:00:00.000Z")||Ke("%Y-%m-%dT%H:%M:%S.%LZ");var ar="http://www.w3.org/1999/xhtml",ur={svg:"http://www.w3.org/2000/svg",xhtml:ar,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},cr=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ur.hasOwnProperty(e)?{space:ur[e],local:t}:t},lr=function(t){var e=cr(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ar&&e.documentElement.namespaceURI===ar?e.createElement(t):e.createElementNS(n,t)}})(e)};function hr(){}var fr=function(t){return null==t?hr:function(){return this.querySelector(t)}};function pr(){return[]}var dr=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var yr=document.documentElement;if(!yr.matches){var vr=yr.webkitMatchesSelector||yr.msMatchesSelector||yr.mozMatchesSelector||yr.oMatchesSelector;dr=function(t){return function(){return vr.call(this,t)}}}}var gr=dr,mr=function(t){return new Array(t.length)};function br(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}br.prototype={constructor:br,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var _r="$";function wr(t,e,n,r,i,o){for(var s,a=0,u=e.length,c=o.length;ae?1:t>=e?0:NaN}var Sr=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function xr(t){return t.trim().split(/^|\s+/)}function Tr(t){return t.classList||new Or(t)}function Or(t){this._node=t,this._names=xr(t.getAttribute("class")||"")}function kr(t,e){for(var n=Tr(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Fr={},Vr=null;function Ur(t,e,n){return t=Br(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Br(t,e,n){return function(r){var i=Vr;Vr=r;try{t.call(this,this.__data__,e,n)}finally{Vr=i}}}function Hr(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=w&&(w=_+1);!(b=g[w])&&++w=0;)(r=i[o])&&(s&&s!==r.nextSibling&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Cr);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):function(t,e){return t.style.getPropertyValue(e)||Sr(t).getComputedStyle(t,null).getPropertyValue(e)}(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=xr(t+"");if(arguments.length<2){for(var r=Tr(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),s=o.length;if(!(arguments.length<2)){for(a=e?zr:Hr,null==n&&(n=!1),r=0;r2?ce:ue,r=i=null,l}function l(e){return(r||(r=n(o,s,u?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,a)))(+e)}return l.invert=function(t){return(i||(i=n(s,o,ae,u?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},l.domain=function(t){return arguments.length?(o=R.call(t,oe),c()):o.slice()},l.range=function(t){return arguments.length?(s=j.call(t),c()):s.slice()},l.rangeRound=function(t){return s=j.call(t),a=Yt,c()},l.clamp=function(t){return arguments.length?(u=!!t,c()):u},l.interpolate=function(t){return arguments.length?(a=t,c()):a},c()}(ae,Gt);return e.copy=function(){return n=e,t().domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp());var n},function(t){var e=t.domain;return t.ticks=function(t){var n=e();return T(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return Ce(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,s=i.length-1,a=i[o],u=i[s];return u0?r=O(a=Math.floor(a/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=O(a=Math.ceil(a*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(a/r)*r,i[s]=Math.ceil(u/r)*r,e(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[s]=Math.floor(u*r)/r,e(i)),t},t}(e)}(),xAccessor:function(t){return t.id},yAccessor:function(t){return t.duration},size:[]},this.data=[]}return t.prototype.ngOnChanges=function(t){t.data.currentValue!==t.data.previousValue&&t.data.previousValue&&(this.onResize(),this.render())},t.prototype.ngOnInit=function(){this.setUp(),this.render()},t.prototype.setUp=function(){var t;this.svg=(t=this.svgEl.nativeElement,"string"==typeof t?new Gr([[document.querySelector(t)]],[document.documentElement]):new Gr([[t]],Qr)).attr("id","chart_svg"),this.xAxis=this.svg.append("g").attr("class","axis axis--x"),this.yAxis=this.svg.append("g").attr("class","axis axis--y").attr("transform","translate("+this.options.margin.left+", 0)"),this.onResize()},t.prototype.onResize=function(t){this.size=[this.el.nativeElement.offsetWidth,this.el.nativeElement.offsetHeight],this.width=this.size[0]-(this.options.margin.left+this.options.margin.right),this.height=this.width/3-(this.options.margin.top+this.options.margin.bottom),this.svg.attr("width",this.width).attr("height",this.height).attr("transform","translate("+this.options.margin.left+","+this.options.margin.top+")"),this.options.x.range([this.options.margin.left,this.width-this.options.margin.right]),this.options.y.range([this.height-(this.options.margin.top+this.options.margin.bottom),0]),this.xAxis.attr("transform","translate(0, "+(this.height-this.options.margin.bottom)+")")},t.prototype.render=function(){var t=this;this.options.y.domain([0,5565]),this.options.x.domain(this.data.map(function(e){return t.options.xAccessor(e)})),this.xAxis.call(g(h,this.options.x)),this.yAxis.call(function(t){return g(f,t)}(this.options.y).tickFormat(function(t){return t}));var e=this.svg.selectAll("rect").data(this.data);e.exit().remove(),e=e.enter().append("rect").attr("class","bar").attr("fill","#6cb8ff").attr("stroke","white").merge(e).attr("x",function(e){return t.options.x(t.options.xAccessor(e))}).attr("y",function(e){return t.options.y(t.options.yAccessor(e))}).attr("width",function(){return t.options.x.bandwidth()}).attr("height",function(e){return t.height-t.options.margin.bottom-t.options.y(e.duration)})},t}(),Yr=r._1({encapsulation:0,styles:[[""]],data:{}});function $r(t){return r._20(0,[r._17(402653184,1,{svgEl:0}),(t()(),r._3(1,0,[[1,0],["svg",1]],null,1,":svg:svg",[["height","500"],["width","1000"],["xmlns","http://www.w3.org/2000/svg"]],null,[["window","resize"]],function(t,e,n){var r=!0;return"window:resize"===e&&(r=!1!==t.component.onResize(n)&&r),r},null,null)),(t()(),r._19(-1,null,["\n"])),(t()(),r._19(-1,null,["\n"]))],null,null)}var Xr=r._1({encapsulation:0,styles:[[""]],data:{}});function Jr(t){return r._20(0,[(t()(),r._3(0,0,null,null,1,"nx-bar",[],null,null,null,$r,Yr)),r._2(1,638976,null,0,Kr,[r.k],{data:[0,"data"]},null),(t()(),r._19(-1,null,["\n"]))],function(t,e){t(e,1,0,e.component.data)},null)}var ti=r.Z("app-d3-example",i,function(t){return r._20(0,[(t()(),r._3(0,0,null,null,1,"app-d3-example",[],null,null,null,Jr,Xr)),r._2(1,114688,null,0,i,[],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),ei=n("TToO"),ni=function(){},ri=new r.o("Location Initialized"),ii=function(){},oi=new r.o("appBaseHref"),si=function(){function t(e){var n=this;this._subject=new r.m,this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(ai(i)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,ai(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function ai(t){return t.replace(/\/index.html$/,"")}var ui=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(ei.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=si.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+si.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+si.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(ii),ci=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==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.");return r._baseHref=n,r}return Object(ei.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return si.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+si.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+si.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+si.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(ii),li=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],hi={},fi=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),pi=new r.o("UseV4Plurals"),di=function(){},yi=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(ei.b)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=hi[e];if(n)return n;var r=e.split("-")[0];if(n=hi[r])return n;if("en"===r)return li;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[17]}(e||this.locale)(t)){case fi.Zero:return"zero";case fi.One:return"one";case fi.Two:return"two";case fi.Few:return"few";case fi.Many:return"many";default:return"other"}},e}(di),vi=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),gi=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(r.T)()&&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(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.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.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((n=e).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new vi(null,e.ngForOf,-1,-1),i),s=new mi(t,o);n.push(s)}else null==i?e._viewContainer.remove(r):(o=e._viewContainer.get(r),e._viewContainer.move(o,i),s=new mi(t,o),n.push(s))});for(var r=0;rYi?Yi:i:i}()),this.arr=t,this.idx=e,this.len=n}return t.prototype[Qi.a]=function(){return this},t.prototype.next=function(){return this.idx=t.length?r.complete():(r.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.arrayLike,r=this.scheduler,i=n.length;if(r)return r.schedule(e.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:t});for(var o=0;o=2&&(n=!0),function(r){return r.lift(new ko(t,e,n))}}var ko=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Ao(t,this.accumulator,this.seed,this.hasSeed))},t}(),Ao=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this._seed=r,this.hasSeed=i,this.index=0}return Object(ei.b)(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(Ii.a),No=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return Object(ei.b)(e,t),e}(Error);function Io(t){return function(e){return 0===t?new Xi.a:e.lift(new Mo(t))}}var Mo=function(){function t(t){if(this.total=t,this.total<0)throw new No}return t.prototype.call=function(t,e){return e.subscribe(new Po(t,this.total))},t}(),Po=function(t){function e(e,n){t.call(this,e),this.total=n,this.ring=new Array,this.count=0}return Object(ei.b)(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2?function(n){return Object(Do.a)(Oo(t,e),Io(1),(void 0===(r=e)&&(r=null),function(t){return t.lift(new Ro(r))}))(n);var r}:function(e){return Object(Do.a)(Oo(function(e,n,r){return t(e,n,r+1)}),Io(1))(e)}}var Fo=null;function Vo(){return Fo}var Uo,Bo={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ho={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zo={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};r._4.Node&&(Uo=r._4.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var qo,Qo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ei.b)(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,Fo||(Fo=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,n)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return Bo},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return Uo.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;a||(a=t[s]=[]);var c=Os(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:c,handler:o});else{for(var l=!1,h=0;h-1},e}(ss),Rs=["alt","control","meta","shift"],js={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Ds=function(t){function e(e){return t.call(this,e)||this}return Object(ei.b)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var i=e.parseEventName(n),o=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Vo().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(Rs.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=Vo().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Rs.forEach(function(r){r!=n&&(0,js[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(ss),Ls=function(){function t(t,e){this.defaultDoc=t,this.DOM=e;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var r=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(r,this.inertBodyElement),this.DOM.appendChild(n,r)}this.DOM.setInnerHTML(this.inertBodyElement,''),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'

'),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.DOM.createElement("template");return"content"in e?(this.DOM.setInnerHTML(e,t),e):(this.DOM.setInnerHTML(this.inertBodyElement,t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){var e=this;this.DOM.attributeMap(t).forEach(function(n,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.DOM.removeAttribute(t,r)});for(var n=0,r=this.DOM.childNodesAsList(t);n")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=this.DOM.nodeName(t).toLowerCase();Ws.hasOwnProperty(e)&&!qs.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(ea(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&this.DOM.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(t));return e},t}(),Js=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ta=/([^\#-~ |!])/g;function ea(t){return t.replace(/&/g,"&").replace(Js,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ta,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var na=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),ra=/^url\(([^)]+)\)$/,ia=function(){},oa=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(ei.b)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case r.F.NONE:return e;case r.F.HTML:return e instanceof aa?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=Vo(),i=null;try{zs=zs||new Ls(t,n);var o=e?String(e):"";i=zs.getInertBodyElement(o);var s=5,a=o;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,o=a,a=n.getInnerHTML(i),i=zs.getInertBodyElement(o)}while(o!==a);var u=new Xs,c=u.sanitizeChildren(n.getTemplateContent(i)||i);return Object(r.T)()&&u.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),c}finally{if(i)for(var l=n.getTemplateContent(i)||i,h=0,f=n.childNodesAsList(l);ht.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Za(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Wa(t){var e=To.call(t);return Eo.call(e,function(t){return!0===t})}function Ka(t){return Object(r._7)(t)?t:Object(r._8)(t)?bo(Promise.resolve(t)):Oi(t)}function Ya(t,e,n){return n?function(t,e){return qa(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!tu(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!tu(s=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!tu(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var s=i.slice(0,n.segments.length),a=i.slice(n.segments.length);return!!tu(n.segments,s)&&!!n.children[ja]&&e(n.children[ja],r,a)}(e,n,n.segments)}(t.root,e.root)}var $a=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=La(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return iu.serialize(this)},t}(),Xa=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Za(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return ou(this)},t}(),Ja=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=La(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return uu(this)},t}();function tu(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function eu(t,e){var n=[];return Za(t.children,function(t,r){r===ja&&(n=n.concat(e(t,r)))}),Za(t.children,function(t,r){r!==ja&&(n=n.concat(e(t,r)))}),n}var nu=function(){},ru=function(){function t(){}return t.prototype.parse=function(t){var e=new pu(t);return new $a(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return ou(e);if(n){var r=e.children[ja]?t(e.children[ja],!1):"",i=[];return Za(e.children,function(e,n){n!==ja&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=eu(e,function(n,r){return r===ja?[t(e.children[ja],!1)]:[r+":"+t(n,!1)]});return ou(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return su(t)+"="+su(e)}).join("&"):su(t)+"="+su(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),iu=new ru;function ou(t){return t.segments.map(function(t){return uu(t)}).join("/")}function su(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function au(t){return decodeURIComponent(t)}function uu(t){return""+su(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+su(t)+"="+su(e[t])}).join(""));var e}var cu=/^[^\/()?;=&#]+/;function lu(t){var e=t.match(cu);return e?e[0]:""}var hu=/^[^=?&#]+/,fu=/^[^?&#]+/,pu=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Xa([],{}):new Xa([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[ja]=new Xa(t,e)),n},t.prototype.parseSegment=function(){var t=lu(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Ja(au(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=lu(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=lu(this.remaining);r&&this.capture(n=r)}t[au(e)]=au(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(hu))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(fu);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=au(n),s=au(r);if(t.hasOwnProperty(o)){var a=t[o];Array.isArray(a)||(t[o]=a=[a]),a.push(s)}else t[o]=s}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=lu(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=ja);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[ja]:new Xa([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),du=function(t){this.segmentGroup=t||null},yu=function(t){this.urlTree=t};function vu(t){return new Li.a(function(e){return e.error(new du(t))})}function gu(t){return new Li.a(function(e){return e.error(new yu(t))})}function mu(t){return new Li.a(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var bu=function(){function t(t,e,n,i,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(r.v)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,ja),n=ji.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return ho.call(n,function(e){if(e instanceof yu)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof du)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,ja),r=ji.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return ho.call(r,function(t){if(t instanceof du)throw e.noMatchError(t);throw t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,i=t.segments.length>0?new Xa([],((r={})[ja]=t,r)):t;return new $a(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?ji.call(this.expandChildren(t,e,n),function(t){return new Xa([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Oi({});var o=[],s=[],a={};Za(n,function(n,i){var u=ji.call(r.expandSegmentGroup(t,e,n,i),function(t){return a[i]=t});i===ja?o.push(u):s.push(u)});var u=po.call(Oi.apply(void 0,o.concat(s))),c=xo.call(u);return ji.call(c,function(){return a})}(n.children)},t.prototype.expandSegment=function(t,e,n,r,i,o){var s=this,a=Oi.apply(void 0,n),u=ji.call(a,function(a){var u=s.expandSegmentAgainstRoute(t,e,n,a,r,i,o);return ho.call(u,function(t){if(t instanceof du)return Oi(null);throw t})}),c=po.call(u),l=mo.call(c,function(t){return!!t});return ho.call(l,function(t,n){if(t instanceof yo||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,r,i))return Oi(new Xa([],{}));throw new du(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return Cu(r)!==o?vu(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):vu(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?gu(o):Di.call(this.lineralizeSegments(n,o),function(n){var o=new Xa(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=_u(e,r,i),u=a.consumedSegments,c=a.lastChild,l=a.positionalParamSegments;if(!a.matched)return vu(e);var h=this.applyRedirectCommands(u,r.redirectTo,l);return r.redirectTo.startsWith("/")?gu(h):Di.call(this.lineralizeSegments(r,h),function(r){return s.expandSegment(t,e,n,r.concat(i.slice(c)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?ji.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new Xa(r,{})}):Oi(new Xa(r,{}));var o=_u(e,n,r),s=o.consumedSegments,a=o.lastChild;if(!o.matched)return vu(e);var u=r.slice(a),c=this.getChildConfig(t,n);return Di.call(c,function(t){var n=t.module,r=t.routes,o=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return Eu(t,e,n)&&Cu(n)!==ja})}(t,n)?{segmentGroup:wu(new Xa(e,function(t,e){var n={};n[ja]=e;for(var r=0,i=t;r1||!r.children[ja])return mu(t.redirectTo);r=r.children[ja]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new $a(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Za(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return Za(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)}),new Xa(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,i=e;r0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Fa)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function wu(t){if(1===t.numberOfChildren&&t.children[ja]){var e=t.children[ja];return new Xa(t.segments.concat(e.segments),e.children)}return t}function Eu(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Cu(t){return t.outlet||ja}var Su=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=xu(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=xu(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Tu(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return Tu(t,this._root).map(function(t){return t.value})},t}();function xu(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:Object(ei.a)({},t.params,e.params),data:Object(ei.a)({},t.data,e.data),resolve:Object(ei.a)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Pu=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=La(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=La(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Ru=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,ju(r,n),r}return Object(ei.b)(e,t),e.prototype.toString=function(){return Du(this._root)},e}(Su);function ju(t,e){e.value._routerState=t,e.children.forEach(function(e){return ju(t,e)})}function Du(t){var e=t.children.length>0?" { "+t.children.map(Du).join(", ")+" } ":"";return""+t.value+e}function Lu(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,qa(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),qa(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Vu(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Ga(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),Hu=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function zu(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[ja]:""+t}function qu(t,e,n){if(t||(t=new Xa([],{})),0===t.segments.length&&t.hasChildren())return Qu(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var s=t.segments[i],a=zu(n[r]),u=r0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Ku(a,u,s))return o;r+=2}else{if(!Ku(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?Lo(t,e)(this):Lo(t)(this)}).call(r,function(t,e){return t})},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var i=this,o=ku(e);t.children.forEach(function(t){i.setupRouteGuards(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),Za(o,function(t,e){return i.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var i=t.value,o=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){var a=this.shouldRunGuardsAndResolvers(o,i,i.routeConfig.runGuardsAndResolvers);a?this.canActivateChecks.push(new Yu(r)):(i.data=o.data,i._resolvedData=o._resolvedData),this.setupChildRouteGuards(t,e,i.component?s?s.children:null:n,r),a&&this.canDeactivateChecks.push(new $u(s.outlet.component,o))}else o&&this.deactivateRouteAndItsChildren(e,s),this.canActivateChecks.push(new Yu(r)),this.setupChildRouteGuards(t,null,i.component?s?s.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Fu(t,e)||!qa(t.queryParams,e.queryParams);case"paramsChange":default:return!Fu(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=ku(t),i=t.value;Za(r,function(t,r){n.deactivateRouteAndItsChildren(t,i.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new $u(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=oo(this.canDeactivateChecks),n=Di.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return Eo.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=oo(this.canActivateChecks),n=Ni.call(e,function(e){return Wa(oo([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return Eo.call(n,function(t){return!0===t})},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Pa(t)),Oi(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Ia(t)),Oi(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Wa(ji.call(oo(n),function(n){var r,i=e.getToken(n,t);return r=Ka(i.canActivate?i.canActivate(t,e.future):i(t,e.future)),mo.call(r)})):Oi(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return Wa(ji.call(oo(r),function(t){return Wa(ji.call(oo(t.guards),function(r){var i,o=e.getToken(r,t.node);return i=Ka(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)),mo.call(i)}))}))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return Oi(!0);var i=Di.call(oo(r),function(r){var i,o=n.getToken(r,e);return i=Ka(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)),mo.call(i)});return Eo.call(i,function(t){return!0===t})},t.prototype.runResolve=function(t,e){return ji.call(this.resolveNode(t._resolve,t),function(n){return t._resolvedData=n,t.data=Object(ei.a)({},t.data,Mu(t,e).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Oi({});if(1===r.length){var i=r[0];return ji.call(this.getResolver(t[i],e),function(t){return(e={})[i]=t,e;var e})}var o={},s=Di.call(oo(r),function(r){return ji.call(n.getResolver(t[r],e),function(t){return o[r]=t,t})});return ji.call(xo.call(s),function(){return o})},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return Ka(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),Ju=function(){},tc=function(){function t(t,e,n,r,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i}return t.prototype.recognize=function(){try{var t=rc(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,ja),n=new Pu([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},ja,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ou(n,e),i=new Ru(this.url,r);return this.inheritParamsAndData(i._root),Oi(i)}catch(t){return new Li.a(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Mu(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=eu(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.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: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value}),i.sort(function(t,e){return t.value.outlet===ja?-1:e.value.outlet===ja?1:t.value.outlet.localeCompare(e.value.outlet)}),i},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i0?Ga(n).parameters:{};i=new Pu(n,a,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,sc(t),r,t.component,t,ec(e),nc(e)+n.length,ac(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ju;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Fa)(n,t,e);if(!r)throw new Ju;var i={};Za(r.posParams,function(t,e){i[e]=t.path});var o=r.consumed.length>0?Object(ei.a)({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=u.consumedSegments,s=n.slice(u.lastChild),i=new Pu(o,u.parameters,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,sc(t),r,t.component,t,ec(e),nc(e)+o.length,ac(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=rc(e,o,s,c),h=l.segmentGroup,f=l.slicedSegments;if(0===f.length&&h.hasChildren()){var p=this.processChildren(c,h);return[new Ou(i,p)]}if(0===c.length&&0===f.length)return[new Ou(i,[])];var d=this.processSegment(c,h,f,ja);return[new Ou(i,d)]},t}();function ec(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function nc(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function rc(t,e,n,r){if(n.length>0&&function(t,e,n){return r.some(function(n){return ic(t,e,n)&&oc(n)!==ja})}(t,n)){var i=new Xa(e,function(t,e,n,r){var i={};i[ja]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,s=n;o0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function oc(t){return t.outlet||ja}function sc(t){return t.data||{}}function ac(t){return t.resolve||{}}var uc=function(){},cc=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),lc=new r.o("ROUTES"),hc=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return ji.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new Va(Qa(i.injector.get(lc)).map(za),i)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?bo(this.loader.load(t)):Di.call(Ka(t()),function(t){return t instanceof r.t?Oi(t):bo(e.compiler.compileModuleAsync(t))})},t}(),fc=function(){},pc=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function dc(t){throw t}function yc(t){return Oi(null)}var vc=function(){function t(t,e,n,i,o,s,a,u){var c=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=u,this.navigations=new xi(null),this.navigationId=0,this.events=new Ci.a,this.errorHandler=dc,this.navigated=!1,this.hooks={beforePreactivation:yc,afterPreactivation:yc},this.urlHandlingStrategy=new pc,this.routeReuseStrategy=new cc,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=o.get(r.v),this.resetConfig(u),this.currentUrlTree=new $a(new Xa([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new hc(s,a,function(t){return c.triggerEvent(new Aa(t))},function(t){return c.triggerEvent(new Na(t))}),this.routerState=Nu(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){Ua(t),this.config=t.map(za),this.navigated=!1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,i=e.queryParams,o=e.fragment,s=e.preserveQueryParams,a=e.queryParamsHandling,u=e.preserveFragment;Object(r.T)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,l=u?this.currentUrlTree.fragment:o,h=null;if(a)switch(a){case"merge":h=Object(ei.a)({},this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=s?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,i){if(0===n.length)return Uu(e.root,e.root,e,r,i);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Bu(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return Za(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new Bu(n,e,r)}(n);if(o.toRoot())return Uu(e.root,new Xa([],{}),e,r,i);var s=function(t,n,r){if(t.isAbsolute)return new Hu(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new Hu(r.snapshot._urlSegment,!0,0);var i=Vu(t.commands[0])?0:1;return function(e,n,o){for(var s=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+i,u=t.numberOfDoubleDots;u>a;){if(u-=a,!(s=s.parent))throw new Error("Invalid number of '../'");a=s.segments.length}return new Hu(s,!1,a-u)}()}(o,0,t),a=s.processChildren?Qu(s.segmentGroup,s.index,o.commands):qu(s.segmentGroup,s.index,o.commands);return Uu(s.segmentGroup,a,e,r,i)}(c,this.currentUrlTree,t,h,l)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof $a?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0?this._ngZone.runOutsideAngular(function(){var e,n;t._debouncer.pipe((e=t.debounce,void 0===n&&(n=Zc),function(t){return t.lift(new Wc(e,n))})).subscribe(function(e){return t.event.emit(e)})}):this._debouncer.subscribe(function(e){return t.event.emit(e)}),this._observer=this._ngZone.runOutsideAngular(function(){return t._mutationObserverFactory.create(function(e){t._debouncer.next(e)})}),this.disabled||this._enable()},t.prototype.ngOnChanges=function(t){t.disabled&&(t.disabled.currentValue?this._disable():this._enable())},t.prototype.ngOnDestroy=function(){this._disable(),this._debouncer.complete()},t.prototype._disable=function(){this._observer&&this._observer.disconnect()},t.prototype._enable=function(){this._observer&&this._observer.observe(this._elementRef.nativeElement,{characterData:!0,childList:!0,subtree:!0})},t}(),tl=function(){},el=function(){},nl="undefined"!=typeof Intl&&Intl.v8BreakIterator,rl=function(){return function(){this.isBrowser="object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!nl)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}();function il(){if(null==$c&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return $c=!0}}))}finally{$c=$c||!1}return $c}var ol=function(){},sl=n("GK6M"),al=n("/iUD"),ul=n("fKB6"),cl=Object.prototype.toString,ll=function(t){function e(e,n,r,i){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=r,this.options=i}return Object(ei.b)(e,t),e.create=function(t,n,r,i){return Object(al.a)(r)&&(i=r,r=void 0),new e(t,n,i,r)},e.setupSubscription=function(t,n,r,i,o){var s;if(function(t){return!!t&&"[object NodeList]"===cl.call(t)}(t)||function(t){return!!t&&"[object HTMLCollection]"===cl.call(t)}(t))for(var a=0,u=t.length;a=0?this.period=Number(n)<1?1:Number(n):Object(pl.a)(n)&&(r=n),Object(pl.a)(r)||(r=Zc),this.scheduler=r,this.dueTime=(i=e)instanceof Date&&!isNaN(+i)?+e-this.scheduler.now():e}return Object(ei.b)(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}},e.prototype._subscribe=function(t){return this.scheduler.schedule(e.dispatch,this.dueTime,{index:0,period:this.period,subscriber:t})},e}(Li.a).create;function yl(t,e){return void 0===e&&(e=Zc),n=function(){return dl(t,e)},function(t){return t.lift(new hl(n))};var n}var vl=n("/nXB"),gl=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new Ci.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var e=this,n=t.elementScrolled().subscribe(function(){return e._scrolled.next(t)});this.scrollContainers.set(t,n)},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?Li.a.create(function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(yl(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Oi()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)})},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(va(function(t){return!t||n.indexOf(t)>-1}))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach(function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)}),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return ll(window.document,"scroll").subscribe(function(){return t._scrolled.next()})})},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t}();function ml(t,e,n){return t||new gl(e,n)}var bl=function(){function t(t,e){var n=this;this._platform=t,this._change=t.isBrowser?e.runOutsideAngular(function(){return Object(vl.a)(ll(window,"resize"),ll(window,"orientationchange"))}):Oi(),this._invalidateCache=this.change().subscribe(function(){return n._updateViewportSize()})}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(yl(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t}();function _l(t,e,n){return t||new bl(e,n)}var wl=function(){},El=new r.o("cdk-dir-doc"),Cl=function(){return function(t){this.value="ltr",this.change=new r.m,t&&(this.value=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr")}}(),Sl=function(){},xl=new r.o("mat-sanity-checks"),Tl=function(){function t(t){this._sanityChecksEnabled=t,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return t.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&Object(r.T)()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){return this._window&&(this._window.__karma__||this._window.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){if(this._document&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(this._areChecksEnabled()&&!this._window.Hammer&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},t}();function Ol(t,e){return function(t){function n(){for(var n=[],r=0;r` elements explicitly or just place content inside of a `` for a single row.")}()},e}(Ol(function(t){this._elementRef=t})),$l=function(){},Xl=r._1({encapsulation:2,styles:[".mat-tab-nav-bar{overflow:hidden;position:relative;flex-shrink:0}.mat-tab-links{position:relative}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden}.mat-tab-link:focus{outline:0}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.mat-tab-link.mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}@media (max-width:599px){.mat-tab-link{min-width:72px}}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}@media screen and (-ms-high-contrast:active){.mat-ink-bar{outline:solid 2px;height:0}}"],data:{}});function Jl(t){return r._20(2,[r._17(402653184,1,{_inkBar:0}),(t()(),r._3(1,0,null,null,4,"div",[["class","mat-tab-links"]],null,[[null,"cdkObserveContent"]],function(t,e,n){var r=!0;return"cdkObserveContent"===e&&(r=!1!==t.component._alignInkBar()&&r),r},null,null)),r._2(2,1720320,null,0,Jc,[Xc,r.k,r.x],null,{event:"cdkObserveContent"}),r._13(null,0),(t()(),r._3(4,0,null,null,1,"mat-ink-bar",[["class","mat-ink-bar"]],null,null,null,null,null)),r._2(5,16384,[[1,4]],0,Ql,[r.k,r.x],null,null)],null,null)}var th=r._1({encapsulation:2,styles:[".mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],data:{}});function eh(t){return r._20(2,[r._13(null,0),r._13(null,1)],null,null)}var nh=function(){function t(){this.links=[]}return t.prototype.ngOnInit=function(){},t}(),rh=r._1({encapsulation:0,styles:[[""]],data:{}});function ih(t){return r._20(0,[(t()(),r._3(0,0,null,null,5,"a",[["class","mat-tab-link"],["mat-tab-link",""]],[[1,"target",0],[8,"href",4],[1,"aria-disabled",0],[1,"tabIndex",0],[2,"mat-tab-disabled",null],[2,"mat-tab-label-active",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==r._14(t,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),"click"===e&&(i=!1!==r._14(t,2)._handleClick(n)&&i),i},null,null)),r._2(1,671744,null,0,bc,[vc,Iu,ii],{routerLink:[0,"routerLink"]},null),r._2(2,147456,[[2,4]],0,Zl,[Gl,r.k,r.x,rl,[2,Pl],[8,null]],null,null),(t()(),r._19(-1,null,["\n "])),(t()(),r._19(-1,null,["\n "])),(t()(),r._19(5,null,["\n ","\n "]))],function(t,e){t(e,1,0,e.context.$implicit.path)},function(t,e){t(e,0,0,r._14(e,1).target,r._14(e,1).href,r._14(e,2).disabled.toString(),r._14(e,2).tabIndex,r._14(e,2).disabled,r._14(e,2).active),t(e,5,0,e.context.$implicit.label)})}function oh(t){return r._20(0,[(t()(),r._3(0,0,null,null,10,"mat-toolbar-row",[["class","mat-toolbar-row"]],null,null,null,null,null)),r._2(1,16384,[[1,4]],0,Kl,[],null,null),(t()(),r._19(-1,null,["\n "])),(t()(),r._3(3,0,null,null,6,"nav",[["class","mat-tab-nav-bar"],["mat-tab-nav-bar",""]],null,null,null,Jl,Xl)),r._2(4,3325952,null,1,Gl,[r.k,[2,Cl],r.x,r.h,bl],null,null),r._17(603979776,2,{_tabLinks:1}),(t()(),r._19(-1,0,["\n "])),(t()(),r.Y(16777216,null,0,1,null,ih)),r._2(8,802816,null,0,gi,[r.M,r.J,r.q],{ngForOf:[0,"ngForOf"]},null),(t()(),r._19(-1,0,["\n "])),(t()(),r._19(-1,null,["\n "]))],function(t,e){t(e,8,0,e.component.links)},null)}function sh(t){return r._20(0,[(t()(),r._3(0,0,null,null,13,"mat-toolbar",[["class","mat-toolbar"]],[[2,"mat-toolbar-multiple-rows",null],[2,"mat-toolbar-single-row",null]],null,null,eh,th)),r._2(1,4243456,null,1,Yl,[r.k,rl,Ei],null,null),r._17(603979776,1,{_toolbarRows:1}),(t()(),r._19(-1,0,["\n "])),(t()(),r._3(4,0,null,1,5,"mat-toolbar-row",[["class","mat-toolbar-row"]],null,null,null,null,null)),r._2(5,16384,[[1,4]],0,Kl,[],null,null),(t()(),r._19(-1,null,["\n "])),(t()(),r._3(7,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),r._19(-1,null,["First Row"])),(t()(),r._19(-1,null,["\n "])),(t()(),r._19(-1,0,["\n\n "])),(t()(),r.Y(16777216,null,1,1,null,oh)),r._2(12,16384,null,0,bi,[r.M,r.J],{ngIf:[0,"ngIf"]},null),(t()(),r._19(-1,0,["\n"])),(t()(),r._19(-1,null,["\n"]))],function(t,e){t(e,12,0,e.component.links.length)},function(t,e){t(e,0,0,r._14(e,1)._toolbarRows.length,!r._14(e,1)._toolbarRows.length)})}var ah=r._1({encapsulation:0,styles:[[""]],data:{}});function uh(t){return r._20(0,[(t()(),r._3(0,0,null,null,1,"nx-header",[],null,null,null,sh,rh)),r._2(1,114688,null,0,nh,[],null,null),(t()(),r._19(-1,null,["\n\n"])),(t()(),r._3(3,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r._2(4,212992,null,0,Cc,[Ec,r.M,r.j,[8,null],r.h],null,null),(t()(),r._19(-1,null,["\n"]))],function(t,e){t(e,1,0),t(e,4,0)},null)}var ch=r.Z("app-root",s,function(t){return r._20(0,[(t()(),r._3(0,0,null,null,1,"app-root",[],null,null,null,uh,ah)),r._2(1,114688,null,0,s,[],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]);function lh(t){switch(t.length){case 0:return new Ul;case 1:return t[0];default:return new Bl(t)}}function hh(t,e,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var s=[],a=[],u=-1,c=null;if(r.forEach(function(t){var n=t.offset,r=n==u,l=r&&c||{};Object.keys(t).forEach(function(n){var r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),a){case Hl:a=i[n];break;case Dl:a=o[n];break;default:a=e.normalizeStyleValue(n,r,a,s)}l[r]=a}),r||a.push(l),c=l,u=n}),s.length)throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "));return a}function fh(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&ph(n,"start",t.totalTime))});break;case"done":t.onDone(function(){return r(n&&ph(n,"done",t.totalTime))});break;case"destroy":t.onDestroy(function(){return r(n&&ph(n,"destroy",t.totalTime))})}}function ph(t,e,n){var r=dh(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==n?t.totalTime:n),i=t._data;return null!=i&&(r._data=i),r}function dh(t,e,n,r,i,o){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o}}function yh(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function vh(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var gh=function(t,e){return!1},mh=function(t,e){return!1},bh=function(t,e,n){return[]};if("undefined"!=typeof Element){if(gh=function(t,e){return t.contains(e)},Element.prototype.matches)mh=function(t,e){return t.matches(e)};else{var _h=Element.prototype,wh=_h.matchesSelector||_h.mozMatchesSelector||_h.msMatchesSelector||_h.oMatchesSelector||_h.webkitMatchesSelector;wh&&(mh=function(t,e){return wh.apply(t,[e])})}bh=function(t,e,n){var r=[];if(n)r.push.apply(r,t.querySelectorAll(e));else{var i=t.querySelector(e);i&&r.push(i)}return r}}var Eh=null,Ch=!1;function Sh(){return"undefined"!=typeof document?document.body:null}var xh=mh,Th=gh,Oh=bh,kh=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return function(t){Eh||(Eh=Sh()||{},Ch=!!Eh.style&&"WebkitAppearance"in Eh.style);var e=!0;return Eh.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in Eh.style)&&Ch&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Eh.style),e}(t)},t.prototype.matchesElement=function(t,e){return xh(t,e)},t.prototype.containsElement=function(t,e){return Th(t,e)},t.prototype.query=function(t,e,n){return Oh(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,i,o){return void 0===o&&(o=[]),new Ul},t}(),Ah=function(){function t(){}return t.NOOP=new kh,t}(),Nh=1e3;function Ih(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Mh(parseFloat(e[1]),e[2])}function Mh(t,e){switch(e){case"s":return t*Nh;default:return t}}function Ph(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=0,o="";if("string"==typeof t){var s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=Mh(parseFloat(s[1]),s[2]);var a=s[3];null!=a&&(i=Mh(Math.floor(parseFloat(a)),s[4]));var u=s[5];u&&(o=u)}else r=t;if(!n){var c=!1,l=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),c=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&e.splice(l,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:i,easing:o}}(t,e,n)}function Rh(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function jh(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else Rh(t,n);return n}function Dh(t,e){t.style&&Object.keys(e).forEach(function(n){var r=qh(n);t.style[r]=e[n]})}function Lh(t,e){t.style&&Object.keys(e).forEach(function(e){var n=qh(e);t.style[n]=""})}function Fh(t){return Array.isArray(t)?1==t.length?t[0]:Ll(t):t}var Vh=new RegExp("{{\\s*(.+?)\\s*}}","g");function Uh(t){var e=[];if("string"==typeof t){for(var n=t.toString(),r=void 0;r=Vh.exec(n);)e.push(r[1]);Vh.lastIndex=0}return e}function Bh(t,e,n){var r=t.toString(),i=r.replace(Vh,function(t,r){var i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function Hh(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var zh=/-+([a-z0-9])/g;function qh(t){return t.replace(zh,function(){for(var t=[],e=0;e *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],s=i[2],a=i[3];e.push(Kh(o,a)),"<"!=s[0]||o==Gh&&a==Gh||e.push(Kh(a,o))}(t,i,r)}):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:ef(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Qh(n,t,e)}),options:ef(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=Qh(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:ef(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return nf(Ph(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=nf(0,0,"");return i.dynamic=!0,i.strValue=r,i}return nf((n=n||Ph(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:Fl({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,s=!1;if(!o){s=!0;var a={};r.easing&&(a.easing=r.easing),o=Fl(a)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,e);u.isEmptyStep=s,n=u}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==Dl?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(tf(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,u,c=e.collectedStyles[e.currentQuerySelector],l=c[r],h=!0;l&&(o!=i&&o>=l.startTime&&i<=l.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+l.startTime+'ms" and "'+l.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),h=!1),o=l.startTime),h&&(c[r]={startTime:o,endTime:i}),e.options&&(s=e.errors,a=e.options.params||{},(u=Uh(t[r])).length&&u.forEach(function(t){a.hasOwnProperty(t)||s.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,u=0,c=t.steps.map(function(t){var r=n._makeStyleAst(t,e),c=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(tf(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(tf(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),l=0;return null!=c&&(i++,l=r.offset=c),a=a||l<0||l>1,s=s||l0&&i0?i==f?1:h*i:o[i],a=s*y;e.currentTime=p+d.delay+a,d.duration=a,n._validateStyleAst(t,e),t.offset=s,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:Qh(this,Fh(t.animation),e),options:ef(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:ef(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ef(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(Yh,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),o=i[0],s=i[1];e.currentQuerySelector=n.length?n+" "+o:o,yh(e.collectedStyles,e.currentQuerySelector,{});var a=Qh(this,Fh(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:ef(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Ph(t.timings,e.errors,!0);return{type:12,animation:Qh(this,Fh(t.animation),e),timings:n,options:null}},t}(),Jh=function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function tf(t){return!Array.isArray(t)&&"object"==typeof t}function ef(t){var e;return t?(t=Rh(t)).params&&(t.params=(e=t.params)?Rh(e):null):t={},t}function nf(t,e,n){return{duration:t,delay:e,easing:n}}function rf(t,e,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var of=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,e)},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),sf=new RegExp(":enter","g"),af=new RegExp(":leave","g");function uf(t,e,n,r,i,o,s,a,u,c){return void 0===o&&(o={}),void 0===s&&(s={}),void 0===c&&(c=[]),(new cf).buildKeyframes(t,e,n,r,i,o,s,a,u,c)}var cf=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,s,a,u,c){void 0===c&&(c=[]),u=u||new of;var l=new hf(t,e,u,r,i,c,[]);l.options=a,l.currentTimeline.setStyles([o],null,l.errors,a),Qh(this,n,l);var h=l.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(s).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([s],null,l.errors,a)}return h.length?h.map(function(t){return t.buildKeyframes()}):[rf(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?Ih(n.duration):null,o=null!=n.delay?Ih(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),Qh(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=lf);var s=Ih(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return Qh(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Ih(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);o&&a.delayNextStep(o),Qh(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return Ph(e.params?Bh(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?Ih(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=lf);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;var u=null;a.forEach(function(r,i){e.currentQueryIndex=i;var a=e.createSubContext(t.options,r);o&&a.delayNextStep(o),r===e.element&&(u=a.currentTimeline),Qh(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1),a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=e.currentTimeline;a&&u.delayNextStep(a);var c=u.currentTime;Qh(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)},t}(),lf={},hf=function(){function t(t,e,n,r,i,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=lf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ff(this._driver,e,0),s.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=Ih(r.duration)),null!=r.delay&&(i.delay=Ih(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=Bh(o[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=lf,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new pf(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(sf,"."+this._enterClassName)).replace(af,"."+this._leaveClassName);var a=this._driver.query(this.element,t,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,a)}return i||0!=s.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),ff=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||Dl,e._currentKeyframe[t]=Dl}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},s=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=Dl}):jh(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=Bh(s[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:Dl),i._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,s){var a=jh(o,!0);Object.keys(a).forEach(function(t){var r=a[t];r==Hl?e.add(t):r==Dl&&n.add(t)}),r||(a.offset=s/t.duration),i.push(a)});var o=e.size?Hh(e.values()):[],s=n.size?Hh(n.values()):[];if(r){var a=i[0],u=Rh(a);a.offset=0,u.offset=1,i=[a,u]}return rf(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)},t}(),pf=function(t){function e(e,n,r,i,o,s,a){void 0===a&&(a=!1);var u=t.call(this,e,n,s.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=i,u.postStyleProps=o,u._stretchStartingKeyframe=a,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return Object(ei.b)(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,u=jh(t[0],!1);u.offset=0,o.push(u);var c=jh(t[0],!1);c.offset=df(a),o.push(c);for(var l=t.length-1,h=1;h<=l;h++){var f=jh(t[h],!1);f.offset=df((n+f.offset*r)/s),o.push(f)}r=s,n=0,i="",t=o}return rf(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(ff);function df(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var yf=function(){},vf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ei.b)(e,t),e.prototype.normalizePropertyName=function(t,e){return qh(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(gf[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(yf),gf=function(t){var e={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(t){return e[t]=!0}),e}();function mf(t,e,n,r,i,o,s,a,u,c,l,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:c,postStyleProps:l,errors:h}}var bf={},_f=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e){return function(t,e,n){return t.some(function(t){return t(e,n)})}(this.ast.matchers,t,e)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,i,o,s,a,u){var c=[],l=this.ast.options&&this.ast.options.params||bf,h=this.buildStyles(n,s&&s.params||bf,c),f=a&&a.params||bf,p=this.buildStyles(r,f,c),d=new Set,y=new Map,v=new Map,g="void"===r,m={params:Object(ei.a)({},l,f)},b=uf(t,e,this.ast.animation,i,o,h,p,m,u,c);if(c.length)return mf(e,this._triggerName,n,r,g,h,p,[],[],y,v,c);b.forEach(function(t){var n=t.element,r=yh(y,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=yh(v,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&d.add(n)});var _=Hh(d.values());return mf(e,this._triggerName,n,r,g,h,p,b,_,y,v)},t}(),wf=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Rh(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=Bh(o,r,e)),n[t]=o})}}),n},t}(),Ef=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new wf(t.style,t.options&&t.options.params||{})}),Cf(this.states,"true","1"),Cf(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new _f(t,e,n.states))}),this.fallbackTransition=new _f(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e){return this.transitionFactories.find(function(n){return n.match(t,e)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function Cf(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Sf=new of,xf=function(){function t(t,e){this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=$h(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,i=hh(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[])},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var i,o=[],s=this._animations[t],a=new Map;if(s?(i=uf(this._driver,e,s,"ng-enter","ng-leave",{},{},n,Sf,o)).forEach(function(t){var e=yh(a,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));a.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,Dl)})});var u=lh(i.map(function(t){var e=a.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return r.destroy(t)}),this.players.push(u),u},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=dh(e,"","","");return fh(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),Tf=[],Of={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},kf={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},Af="__ng_removed",Nf=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=Rh(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),If=new Nf("void"),Mf=new Nf("DELETED"),Pf=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Bf(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var s=yh(this._elementListeners,t,[]),a={name:e,phase:n,callback:r};s.push(a);var u=yh(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Bf(t,"ng-trigger"),Bf(t,"ng-trigger-"+e),u[e]=If),function(){o._engine.afterFlush(function(){var t=s.indexOf(a);t>=0&&s.splice(t,1),o._triggers[e]||delete u[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),s=new jf(this.id,e,t),a=this._engine.statesByElement.get(t);a||(Bf(t,"ng-trigger"),Bf(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var u=a[e],c=new Nf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),a[e]=c,u){if(u===Mf)return s}else u=If;if("void"===c.value||u.value!==c.value){var l=yh(this._engine.playersByElement,t,[]);l.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(u.value,c.value),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:c,player:s,isFallbackTransition:f}),f||(Bf(t,"ng-animate-queued"),s.onStart(function(){Hf(t,"ng-animate-queued")})),s.onDone(function(){var e=i.players.indexOf(s);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),l.push(s),s}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i=0;S--)this._namespaceList[S].drainQueuedTransitions(e).forEach(function(t){var e=t.player;E.push(e);var o=t.element;if(h&&n.driver.containsElement(h,o)){var l=_.get(o),f=d.get(o),p=n._buildInstruction(t,r,f,l);if(p.errors&&p.errors.length)C.push(p);else{if(t.isFallbackTransition)return e.onStart(function(){return Lh(o,p.fromStyles)}),e.onDestroy(function(){return Dh(o,p.toStyles)}),void i.push(e);p.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(o,p.timelines),s.push({instruction:p,player:e,element:o}),p.queriedElements.forEach(function(t){return yh(a,t,[]).push(e)}),p.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=u.get(e);r||u.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),p.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=c.get(e);r||c.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}}else e.destroy()});if(C.length){var x=[];C.forEach(function(t){x.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return x.push("- "+t+"\n")})}),E.forEach(function(t){return t.destroy()}),this.reportError(x)}var T=new Map,O=new Map;s.forEach(function(t){var e=t.element;r.has(e)&&(O.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,T))}),i.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){yh(T,e,[]).push(t),t.destroy()})});var k=v.filter(function(t){return qf(t,u,c)}),A=new Map;Ff(A,this.driver,m,c,Dl).forEach(function(t){qf(t,u,c)&&k.push(t)});var N=new Map;p.forEach(function(t,e){Ff(N,n.driver,new Set(t),u,Hl)}),k.forEach(function(t){var e=A.get(t),n=N.get(t);A.set(t,Object(ei.a)({},e,n))});var I=[],M=[],P={};s.forEach(function(t){var e=t.element,s=t.player,a=t.instruction;if(r.has(e)){if(l.has(e))return s.onDestroy(function(){return Dh(e,a.toStyles)}),void i.push(s);var u=P;if(O.size>1){for(var c=e,h=[];c=c.parentNode;){var f=O.get(c);if(f){u=f;break}h.push(c)}h.forEach(function(t){return O.set(t,u)})}var p=n._buildAnimation(s.namespaceId,a,T,o,N,A);if(s.setRealPlayer(p),u===P)I.push(s);else{var d=n.playersByElement.get(u);d&&d.length&&(s.parentPlayer=lh(d)),i.push(s)}}else Lh(e,a.fromStyles),s.onDestroy(function(){return Dh(e,a.toStyles)}),M.push(s),l.has(e)&&i.push(s)}),M.forEach(function(t){var e=o.get(t.element);if(e&&e.length){var n=lh(e);t.setRealPlayer(n)}}),i.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var R=0;R0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Ul},t}(),jf=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Ul,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return fh(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){yh(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Df(t){return t&&1===t.nodeType}function Lf(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Ff(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push(Lf(t))});var s=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r[Af]=kf,s.push(r))}),t.set(r,o)});var a=0;return n.forEach(function(t){return Lf(t,o[a++])}),s}function Vf(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),i=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var o=i.get(e);if(o)return o;var s=e.parentNode;return o=n.has(s)?s:r.has(s)?1:t(s),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}var Uf="$$classes";function Bf(t,e){if(t.classList)t.classList.add(e);else{var n=t[Uf];n||(n=t[Uf]={}),n[e]=!0}}function Hf(t,e){if(t.classList)t.classList.remove(e);else{var n=t[Uf];n&&delete n[e]}}function zf(t,e,n){lh(n).onDone(function(){return t.processLeaveNode(e)})}function qf(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach(function(t){return i.add(t)}):e.set(t,r),n.delete(t),!0}var Qf=function(){function t(t,e){var n=this;this._driver=t,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Rf(t,e),this._timelineEngine=new xf(t,e),this._transitionEngine.onRemovalComplete=function(t,e){return n.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,s=this._triggerCache[o];if(!s){var a=[],u=$h(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(t,e){return new Ef(t,e)}(r,u),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var i=vh(n);this._timelineEngine.command(i[0],e,i[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=vh(n);return this._timelineEngine.listen(o[0],e,o[1],i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),Gf=function(t){function e(e,n){var i=t.call(this)||this;return i._nextAnimationId=0,i._renderer=e.createRenderer(n.body,{id:"0",encapsulation:r.N.None,styles:[],data:{animation:[]}}),i}return Object(ei.b)(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Ll(t):t;return Kf(this._renderer,null,e,"register",[n]),new Zf(e,this._renderer)},e}(jl),Zf=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return Object(ei.b)(e,t),e.prototype.create=function(t,e){return new Wf(this._id,t,e||{},this._renderer)},e}(function(){}),Wf=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||sp(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t}();function sp(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function ap(t){if(!sp(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var up=function(){function t(t,e,n,r,i){void 0===i&&(i=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._enabled=!0,i||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._startAnchor.tabIndex=this._endAnchor.tabIndex=this._enabled?0:-1)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;this._startAnchor||(this._startAnchor=this._createAnchor()),this._endAnchor||(this._endAnchor=this._createAnchor()),this._ngZone.runOutsideAngular(function(){t._startAnchor.addEventListener("focus",function(){t.focusLastTabbableElement()}),t._endAnchor.addEventListener("focus",function(){t.focusFirstTabbableElement()}),t._element.parentNode&&(t._element.parentNode.insertBefore(t._startAnchor,t._element),t._element.parentNode.insertBefore(t._endAnchor,t._element.nextSibling))})},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n=0;n--){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return t.tabIndex=this._enabled?0:-1,t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t},t.prototype._executeOnStable=function(t){var e;this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe((e=1,function(t){return 0===e?new Xi.a:t.lift(new rp(e))})).subscribe(t)},t}(),cp=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new up(t,this._checker,this._ngZone,this._document,e)},t}();function lp(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var hp=0,fp=new Map,pp=null,dp=function(){function t(t){this._document=t}return t.prototype.describe=function(t,e){this._canBeDescribed(t,e)&&(fp.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))},t.prototype.removeDescription=function(t,e){if(this._canBeDescribed(t,e)){this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e);var n=fp.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e),pp&&0===pp.childNodes.length&&this._deleteMessagesContainer()}},t.prototype.ngOnDestroy=function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(Qc),Tp=new(function(t){function e(){t.apply(this,arguments)}return Object(ei.b)(e,t),e}(Gc))(xp);function Op(){for(var t=[],e=0;e0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.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)},e}(so.a),Ip=this&&this.__extends||(kp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}kp(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function Mp(t,e){void 0===t&&(t={state:void 0});var n=e[0];return{state:(0,e[1])(t.state,n),action:n}}new r.o("@ngrx/store Internal Initial State"),new r.o("@ngrx/store Initial State"),new r.o("@ngrx/store Reducer Factory"),new r.o("@ngrx/store Reducer Factory Provider"),new r.o("@ngrx/store Initial Reducers"),new r.o("@ngrx/store Internal Initial Reducers"),new r.o("@ngrx/store Meta Reducers"),new r.o("@ngrx/store Store Features"),new r.o("@ngrx/store Internal Store Reducers"),new r.o("@ngrx/store Internal Feature Reducers"),new r.o("@ngrx/store Internal Feature Reducers Token"),new r.o("@ngrx/store Feature Reducers"),(function(t){function e(e,n,r,i){var o=t.call(this,i)||this,s=(function(t,e){return void 0===e&&(e=0),function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new eo(t,e))}}(t,e)(this)}).call(e,Tp),a=(function(){for(var t=[],e=0;e=2?Oo(t,e)(this):Oo(t)(this)}).call(a,Mp,{state:i});return o.stateSubscription=u.subscribe(function(t){var e=t.action;o.next(t.state),r.next(e)}),o}return Ip(e,t),e.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},e}(xi)).INIT="@ngrx/store/init";var Pp=function(t){function e(e,n,r){var i=t.call(this)||this;return i.actionsObserver=n,i.reducerManager=r,i.source=e,i}return Ip(e,t),e.prototype.select=function(t){for(var e=[],n=1;n0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},Rf9G:function(t,e,n){"use strict";e.a=function(){return Object(r.a)()(this)};var r=n("3a3m")},SNlx:function(t,e){function n(t){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+t+"'.")})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="SNlx"},TILf:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("TToO"),i=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return Object(r.b)(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.value,n=t.subscriber;t.done?n.complete():(n.next(e),n.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(n("YaPU").a)},TToO:function(t,e,n){"use strict";e.b=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n.d(e,"a",function(){return i}),e.d=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},e.c=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1?new e(t,r):1===i?new o.a(t[0],r):new s.a(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.subscriber;n>=t.count?r.complete():(r.next(e[n]),r.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):k(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(H,"\n ")}function Z(t,e){return new Error(G(t,e))}var W="ngDebugContext",K="ngOriginalError",Y="ngErrorLogger";function $(t){return t[W]}function X(t){return t[K]}function J(t){for(var e=[],n=1;n0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+k(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)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Xt(t,e){return Array.isArray(e)?e.reduce(Xt,t):Object(r.a)({},t,e)}var Jt=function(){function t(t,e,n,r,a,u){var c=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=a,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Zt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var l=new i.a(function(t){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){t.next(c._stable),t.complete()})}),h=new i.a(function(t){var e;c._zone.runOutsideAngular(function(){e=c._zone.onStable.subscribe(function(){It.assertNotInAngularZone(),T(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,t.next(!0))})})});var n=c._zone.onUnstable.subscribe(function(){It.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,s.a.call(h))}return t.prototype.bootstrap=function(t,e){var n,r=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.");n=t instanceof yt?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof Ct?null:this._injector.get(St),o=n.create(R.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(Ft,null);return s&&o.injector.get(Vt).registerApplication(o.location.nativeElement,s),this._loadComponent(o),Zt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,At(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;te(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(lt,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),te(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=kt("ApplicationRef#tick()"),t}();function te(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var ee=function(){},ne=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}(),re=function(){},ie=function(t){this.nativeElement=t},oe=function(){},se=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Nt,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[x()]=function(){return this._results[x()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),ae=function(){},ue={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ce=function(){function t(t,e){this._compiler=t,this._config=e||ue}return t.prototype.load=function(t){return this._compiler instanceof pt?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),i=r[0],o=r[1];return void 0===o&&(o="default"),n("SNlx")(i).then(function(t){return t[o]}).then(function(t){return le(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("SNlx")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return le(t,r,i)})},t}();function le(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var he=function(){},fe=function(){},pe=function(){},de=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof ye?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),ye=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Object(r.b)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return ve(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return ge(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(de);function ve(t,e,n){t.childNodes.forEach(function(t){t instanceof ye&&(e(t)&&n.push(t),ve(t,e,n))})}function ge(t,e,n){t instanceof ye&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof ye&&ge(t,e,n)})}var me=new Map;function be(t){return me.get(t)||null}function _e(t){me.set(t.nativeNode,t)}function we(t,e){var n=Se(t),r=Se(e);return n&&r?function(t,e,n){for(var r=t[x()](),i=e[x()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(t,e,we):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||O(t,e)}var Ee=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Ce=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Se(t){return!!xe(t)&&(Array.isArray(t)||!(t instanceof Map)&&x()in t)}function xe(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Te=function(){function t(){}return t.prototype.supports=function(t){return Se(t)},t.prototype.create=function(t){return new ke(t)},t}(),Oe=function(t,e){return e},ke=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Oe}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,nr(n,e),nn.dirtyParentQueries(r),tr(r),r}function Jn(t,e,n){var r=e?En(e,e.def.lastRenderRootNode):t.renderElement;In(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function tr(t){In(t,3,null,null,void 0)}function er(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function nr(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var rr=new Object;function ir(t,e,n,r,i,o){return new or(t,e,n,r,i,o)}var or=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=Nn(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=nn.createRootView(t,e||[],n,i,r,rr),a=Je(s,o).instance;return n&&s.renderer.setAttribute(Xe(s,0).renderElement,"ng-version",y.full),new sr(s,new lr(s),a)},e}(yt),sr=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new ie(Xe(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new dr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(function(){});function ar(t,e,n){return new ur(t,e,n)}var ur=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new ie(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new dr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=wn(t),t=t.parent;return t?new dr(t,e):new dr(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Xn(this._data,t);nn.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new lr(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof Ct||(i=o.get(St));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,s=t;return i=s._view,o=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=o.length),i.viewContainerParent=this._view,er(o,r,i),function(t,e){var n=_n(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,i),nn.dirtyParentQueries(i),Jn(n,r>0?o[r-1]:null,i),s.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,s,a=this._embeddedViews.indexOf(t._view);return i=e,s=(o=(n=this._data).viewContainer._embeddedViews)[r=a],nr(o,r),null==i&&(i=o.length),er(o,i,s),nn.dirtyParentQueries(s),tr(s),Jn(n,i>0?o[i-1]:null,s),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Xn(this._data,t);e&&nn.destroyView(e)},t.prototype.detach=function(t){var e=Xn(this._data,t);return e?new lr(e):null},t}();function cr(t){return new lr(t)}var lr=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return In(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){gn(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{nn.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){nn.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),nn.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,tr(this._view),nn.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function hr(t,e){return new fr(t,e)}var fr=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.b)(e,t),e.prototype.createEmbeddedView=function(t){return new lr(nn.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new ie(Xe(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(he);function pr(t,e){return new dr(t,e)}var dr=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=R.THROW_IF_NOT_FOUND),nn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:cn(t)},e)},t}();function yr(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Xe(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return $e(t,n.nodeIndex).renderText;if(20240&n.flags)return Je(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function vr(t){return new gr(t.renderer)}var gr=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Ln(e),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return Pr(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(jr(t,e,n,i[0]));case 2:return r(jr(t,e,n,i[0]),jr(t,e,n,i[1]));case 3:return r(jr(t,e,n,i[0]),jr(t,e,n,i[1]),jr(t,e,n,i[2]));default:for(var s=Array(o),a=0;a0)c=y,Xr(y)||(l=y);else for(;c&&d===c.nodeIndex+c.childCount;){var m=c.parent;m&&(m.childFlags|=c.childFlags,m.childMatchedQueries|=c.childMatchedQueries),l=(c=m)&&Xr(c)?c.renderParent:c}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||an,updateRenderer:r||an,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:p}}function Xr(t){return 0!=(1&t.flags)&&null===t.element.name}function Jr(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function ti(t,e,n,r){var i=ri(t.root,t.renderer,t,e,n);return ii(i,t.component,r),oi(i),i}function ei(t,e,n){var r=ri(t,t.renderer,null,null,e);return ii(r,n,n),oi(r),r}function ni(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,ri(t.root,i,t,e.element.componentProvider,n)}function ri(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function ii(t,e,n){t.component=e,t.context=n}function oi(t){var e;Cn(t)&&(e=Xe(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i0&&qn(t,e,0,n)&&(p=!0),f>1&&qn(t,e,1,r)&&(p=!0),f>2&&qn(t,e,2,i)&&(p=!0),f>3&&qn(t,e,3,o)&&(p=!0),f>4&&qn(t,e,4,s)&&(p=!0),f>5&&qn(t,e,5,a)&&(p=!0),f>6&&qn(t,e,6,u)&&(p=!0),f>7&&qn(t,e,7,c)&&(p=!0),f>8&&qn(t,e,8,l)&&(p=!0),f>9&&qn(t,e,9,h)&&(p=!0),p}(t,e,n,r,i,o,s,a,u,c,l,h);case 2:return function(t,e,n,r,i,o,s,a,u,c,l,h){var f=!1,p=e.bindings,d=p.length;if(d>0&&yn(t,e,0,n)&&(f=!0),d>1&&yn(t,e,1,r)&&(f=!0),d>2&&yn(t,e,2,i)&&(f=!0),d>3&&yn(t,e,3,o)&&(f=!0),d>4&&yn(t,e,4,s)&&(f=!0),d>5&&yn(t,e,5,a)&&(f=!0),d>6&&yn(t,e,6,u)&&(f=!0),d>7&&yn(t,e,7,c)&&(f=!0),d>8&&yn(t,e,8,l)&&(f=!0),d>9&&yn(t,e,9,h)&&(f=!0),f){var y=e.text.prefix;d>0&&(y+=Yr(n,p[0])),d>1&&(y+=Yr(r,p[1])),d>2&&(y+=Yr(i,p[2])),d>3&&(y+=Yr(o,p[3])),d>4&&(y+=Yr(s,p[4])),d>5&&(y+=Yr(a,p[5])),d>6&&(y+=Yr(u,p[6])),d>7&&(y+=Yr(c,p[7])),d>8&&(y+=Yr(l,p[8])),d>9&&(y+=Yr(h,p[9]));var v=$e(t,e.nodeIndex).renderText;t.renderer.setValue(v,y)}return f}(t,e,n,r,i,o,s,a,u,c,l,h);case 16384:return function(t,e,n,r,i,o,s,a,u,c,l,h){var f=Je(t,e.nodeIndex),p=f.instance,d=!1,y=void 0,v=e.bindings.length;return v>0&&dn(t,e,0,n)&&(d=!0,y=Lr(t,f,e,0,n,y)),v>1&&dn(t,e,1,r)&&(d=!0,y=Lr(t,f,e,1,r,y)),v>2&&dn(t,e,2,i)&&(d=!0,y=Lr(t,f,e,2,i,y)),v>3&&dn(t,e,3,o)&&(d=!0,y=Lr(t,f,e,3,o,y)),v>4&&dn(t,e,4,s)&&(d=!0,y=Lr(t,f,e,4,s,y)),v>5&&dn(t,e,5,a)&&(d=!0,y=Lr(t,f,e,5,a,y)),v>6&&dn(t,e,6,u)&&(d=!0,y=Lr(t,f,e,6,u,y)),v>7&&dn(t,e,7,c)&&(d=!0,y=Lr(t,f,e,7,c,y)),v>8&&dn(t,e,8,l)&&(d=!0,y=Lr(t,f,e,8,l,y)),v>9&&dn(t,e,9,h)&&(d=!0,y=Lr(t,f,e,9,h,y)),y&&p.ngOnChanges(y),65536&e.flags&&Ye(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),d}(t,e,n,r,i,o,s,a,u,c,l,h);case 32:case 64:case 128:return function(t,e,n,r,i,o,s,a,u,c,l,h){var f=e.bindings,p=!1,d=f.length;if(d>0&&yn(t,e,0,n)&&(p=!0),d>1&&yn(t,e,1,r)&&(p=!0),d>2&&yn(t,e,2,i)&&(p=!0),d>3&&yn(t,e,3,o)&&(p=!0),d>4&&yn(t,e,4,s)&&(p=!0),d>5&&yn(t,e,5,a)&&(p=!0),d>6&&yn(t,e,6,u)&&(p=!0),d>7&&yn(t,e,7,c)&&(p=!0),d>8&&yn(t,e,8,l)&&(p=!0),d>9&&yn(t,e,9,h)&&(p=!0),p){var y=tn(t,e.nodeIndex),v=void 0;switch(201347067&e.flags){case 32:v=new Array(f.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=i),d>3&&(v[3]=o),d>4&&(v[4]=s),d>5&&(v[5]=a),d>6&&(v[6]=u),d>7&&(v[7]=c),d>8&&(v[8]=l),d>9&&(v[9]=h);break;case 64:v={},d>0&&(v[f[0].name]=n),d>1&&(v[f[1].name]=r),d>2&&(v[f[2].name]=i),d>3&&(v[f[3].name]=o),d>4&&(v[f[4].name]=s),d>5&&(v[f[5].name]=a),d>6&&(v[f[6].name]=u),d>7&&(v[f[7].name]=c),d>8&&(v[f[8].name]=l),d>9&&(v[f[9].name]=h);break;case 128:var g=n;switch(d){case 1:v=g.transform(n);break;case 2:v=g.transform(r);break;case 3:v=g.transform(r,i);break;case 4:v=g.transform(r,i,o);break;case 5:v=g.transform(r,i,o,s);break;case 6:v=g.transform(r,i,o,s,a);break;case 7:v=g.transform(r,i,o,s,a,u);break;case 8:v=g.transform(r,i,o,s,a,u,c);break;case 9:v=g.transform(r,i,o,s,a,u,c,l);break;case 10:v=g.transform(r,i,o,s,a,u,c,l,h)}}y.value=v}return p}(t,e,n,r,i,o,s,a,u,c,l,h);default:throw"unreachable"}}(t,e,r,i,o,s,a,u,c,l,h,f):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i0&&vn(t,e,0,n),f>1&&vn(t,e,1,r),f>2&&vn(t,e,2,i),f>3&&vn(t,e,3,o),f>4&&vn(t,e,4,s),f>5&&vn(t,e,5,a),f>6&&vn(t,e,6,u),f>7&&vn(t,e,7,c),f>8&&vn(t,e,8,l),f>9&&vn(t,e,9,h)}(t,e,r,i,o,s,a,u,c,l,h,f):function(t,e,n){for(var r=0;rdocument.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},"8WbS":function(t,e,n){var r=n("wCso"),o=n("DIVP"),i=n("KOrd"),a=r.has,u=r.key,c=function(t,e,n){if(a(t,e,n))return!0;var r=i(e);return null!==r&&c(t,r,n)};r.exp({hasMetadata:function(t,e){return c(t,o(e),arguments.length<3?void 0:u(arguments[2]))}})},"9GpA":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}},"9vb1":function(t,e,n){var r=n("bN1p"),o=n("kkCw")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},A16L:function(t,e,n){var r=n("R3AP");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},BbyF:function(t,e,n){var r=n("oeih"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},CEne:function(t,e,n){"use strict";var r=n("OzIq"),o=n("lDLk"),i=n("bUqO"),a=n("kkCw")("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},ChGr:function(t,e,n){n("yJ2x"),n("3q4u"),n("NHaJ"),n("v3hU"),n("zZHq"),n("vsh6"),n("8WbS"),n("yOtE"),n("EZ+5"),t.exports=n("7gX0").Reflect},DIVP:function(t,e,n){var r=n("UKM+");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},Dgii:function(t,e,n){"use strict";var r=n("lDLk").f,o=n("7ylX"),i=n("A16L"),a=n("rFzY"),u=n("9GpA"),c=n("vmSO"),s=n("uc2A"),f=n("KB1o"),l=n("CEne"),p=n("bUqO"),h=n("1aA0").fastKey,v=n("zq/X"),d=p?"_s":"size",g=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,s){var f=t(function(t,r){u(t,f,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=r&&c(r,n,t[s],t)});return i(f.prototype,{clear:function(){for(var t=v(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var n=v(this,e),r=g(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[d]--}return!!r},forEach:function(t){v(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(v(this,e),t)}}),p&&r(f.prototype,"size",{get:function(){return v(this,e)[d]}}),f},def:function(t,e,n){var r,o,i=g(t,e);return i?i.v=n:(t._l=i={i:o=h(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){s(t,e,function(t,n){this._t=v(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?f(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,f(1))},n?"entries":"values",!n,!0),l(e)}}},Ds5P:function(t,e,n){var r=n("OzIq"),o=n("7gX0"),i=n("2p1q"),a=n("R3AP"),u=n("rFzY"),c=function(t,e,n){var s,f,l,p,h=t&c.F,v=t&c.G,d=t&c.P,g=t&c.B,y=v?r:t&c.S?r[e]||(r[e]={}):(r[e]||{}).prototype,k=v?o:o[e]||(o[e]={}),_=k.prototype||(k.prototype={});for(s in v&&(n=e),n)l=((f=!h&&y&&void 0!==y[s])?y:n)[s],p=g&&f?u(l,r):d&&"function"==typeof l?u(Function.call,l):l,y&&a(y,s,l,t&c.U),k[s]!=l&&i(k,s,p),d&&_[s]!=l&&(_[s]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},DuR2: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},"EZ+5":function(t,e,n){var r=n("wCso"),o=n("DIVP"),i=n("XSOZ"),a=r.key,u=r.set;r.exp({metadata:function(t,e){return function(n,r){u(t,e,(void 0!==r?o:i)(n),a(r))}}})},FryR:function(t,e,n){var r=n("/whu");t.exports=function(t){return Object(r(t))}},IRJ3:function(t,e,n){"use strict";var r=n("7ylX"),o=n("fU25"),i=n("yYvK"),a={};n("2p1q")(a,n("kkCw")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},KB1o:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},KOrd:function(t,e,n){var r=n("WBcL"),o=n("FryR"),i=n("mZON")("IE_PROTO"),a=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?a:null}},LhTa:function(t,e,n){var r=n("rFzY"),o=n("Q6Nf"),i=n("FryR"),a=n("BbyF"),u=n("plSV");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||u;return function(e,u,v){for(var d,g,y=i(e),k=o(y),_=r(u,v,3),m=a(k.length),b=0,w=n?h(e,m):c?h(e,0):void 0;m>b;b++)if((p||b in k)&&(g=_(d=k[b],b,y),t))if(n)w[b]=g;else if(g)switch(t){case 3:return!0;case 5:return d;case 6:return b;case 2:w.push(d)}else if(f)return!1;return l?-1:s||f?f:w}}},MsuQ:function(t,e,n){"use strict";var r=n("Dgii"),o=n("zq/X");t.exports=n("0Rih")("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},NHaJ:function(t,e,n){var r=n("wCso"),o=n("DIVP"),i=n("KOrd"),a=r.has,u=r.get,c=r.key,s=function(t,e,n){if(a(t,e,n))return u(t,e,n);var r=i(e);return null!==r?s(t,r,n):void 0};r.exp({getMetadata:function(t,e){return s(t,o(e),arguments.length<3?void 0:c(arguments[2]))}})},OzIq:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},PHqh:function(t,e,n){var r=n("Q6Nf"),o=n("/whu");t.exports=function(t){return r(o(t))}},Q6Nf:function(t,e,n){var r=n("ydD5");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},QG7u:function(t,e,n){var r=n("vmSO");t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},QKXm:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},Qh14:function(t,e,n){var r=n("ReGu"),o=n("QKXm");t.exports=Object.keys||function(t){return r(t,o)}},R3AP:function(t,e,n){var r=n("OzIq"),o=n("2p1q"),i=n("WBcL"),a=n("ulTY")("src"),u=Function.toString,c=(""+u).split("toString");n("7gX0").inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||u.call(this)})},ReGu:function(t,e,n){var r=n("WBcL"),o=n("PHqh"),i=n("ot5s")(!1),a=n("mZON")("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},SHe9:function(t,e,n){var r=n("wC1N"),o=n("kkCw")("iterator"),i=n("bN1p");t.exports=n("7gX0").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},"UKM+":function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},"V3l/":function(t,e){t.exports=!1},VWgF:function(t,e,n){var r=n("OzIq"),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},WBcL:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},XO1R:function(t,e,n){var r=n("ydD5");t.exports=Array.isArray||function(t){return"Array"==r(t)}},XSOZ:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},XvUs:function(t,e,n){var r=n("DIVP");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}}},Y1N3:function(t,e){e.f=Object.getOwnPropertySymbols},Y1aA:function(t,e){e.f={}.propertyIsEnumerable},ZDXm:function(t,e,n){"use strict";var r,o=n("LhTa")(0),i=n("R3AP"),a=n("1aA0"),u=n("oYd7"),c=n("fJSx"),s=n("UKM+"),f=n("zgIt"),l=n("zq/X"),p=a.getWeak,h=Object.isExtensible,v=c.ufstore,d={},g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(s(t)){var e=p(t);return!0===e?v(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(l(this,"WeakMap"),t,e)}},k=t.exports=n("0Rih")("WeakMap",g,y,c,!0,!0);f(function(){return 7!=(new k).set((Object.freeze||Object)(d),7).get(d)})&&(u((r=c.getConstructor(g,"WeakMap")).prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=k.prototype,n=e[t];i(e,t,function(e,o){if(s(e)&&!h(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)})}))},ZSR1:function(t,e,n){(function(t){!function(){"use strict";!function(t){var e=t.performance;function n(t){e&&e.mark&&e.mark(t)}function r(t,n){e&&e.measure&&e.measure(t,n)}if(n("Zone"),t.Zone)throw new Error("Zone already loaded.");var o=function(){function e(t,e){this._properties=null,this._parent=t,this._name=e?e.name||"unnamed":"",this._properties=e&&e.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,e)}return e.assertZonePatched=function(){if(t.Promise!==S.ZoneAwarePromise)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(e,"root",{get:function(){for(var t=e.current;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"current",{get:function(){return x.zone},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return P},enumerable:!0,configurable:!0}),e.__load_patch=function(o,i){if(S.hasOwnProperty(o))throw Error("Already loaded patch: "+o);if(!t["__Zone_disable_"+o]){var a="Zone:"+o;n(a),S[o]=i(t,e,D),r(a,a)}},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]},e.prototype.getZoneWith=function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null},e.prototype.fork=function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)},e.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)}},e.prototype.run=function(t,e,n,r){void 0===e&&(e=void 0),void 0===n&&(n=null),void 0===r&&(r=null),x={parent:x,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{x=x.parent}},e.prototype.runGuarded=function(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),x={parent:x,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{x=x.parent}},e.prototype.runTask=function(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||g).name+"; Execution: "+this.name+")");if(t.state!==y||t.type!==O){var r=t.state!=m;r&&t._transitionTo(m,_),t.runCount++;var o=P;P=t,x={parent:x,zone:this};try{t.type==E&&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{t.state!==y&&t.state!==w&&(t.type==O||t.data&&t.data.isPeriodic?r&&t._transitionTo(_,m):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(y,m,y))),x=x.parent,P=o}}},e.prototype.scheduleTask=function(t){if(t.zone&&t.zone!==this)for(var e=this;e;){if(e===t.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+t.zone.name);e=e.parent}t._transitionTo(k,y);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(e){throw t._transitionTo(w,k,y),this._zoneDelegate.handleError(this,e),e}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==k&&t._transitionTo(_,k),t},e.prototype.scheduleMicroTask=function(t,e,n,r){return this.scheduleTask(new c(T,t,e,n,r,null))},e.prototype.scheduleMacroTask=function(t,e,n,r,o){return this.scheduleTask(new c(E,t,e,n,r,o))},e.prototype.scheduleEventTask=function(t,e,n,r,o){return this.scheduleTask(new c(O,t,e,n,r,o))},e.prototype.cancelTask=function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||g).name+"; Execution: "+this.name+")");t._transitionTo(b,_,m);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(w,b),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(y,b),t.runCount=0,t},e.prototype._updateTaskCount=function(t,e){var n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})},t}(),c=function(){function e(n,r,o,i,a,u){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=u,this.callback=o;var c=this;this.invoke=n===O&&i&&i.useG?e.invokeTask:function(){return e.invokeTask.call(t,c,this,arguments)}}return e.invokeTask=function(t,e,n){t||(t=this),z++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==z&&d(),z--}},Object.defineProperty(e.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancelScheduleRequest=function(){this._transitionTo(y,k)},e.prototype._transitionTo=function(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+t+"', expecting state '"+e+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=t,t==y&&(this._zoneDelegates=null)},e.prototype.toString=function(){return this.data&&"undefined"!=typeof this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},e.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},e}(),s=j("setTimeout"),f=j("Promise"),l=j("then"),p=[],h=!1;function v(e){0===z&&0===p.length&&(i||t[f]&&(i=t[f].resolve(0)),i?i[l](d):t[s](d,0)),e&&p.push(e)}function d(){if(!h){for(h=!0;p.length;){var t=p;p=[];for(var e=0;e=0;n--)"function"==typeof t[n]&&(t[n]=h(t[n],e+"_"+n));return t}function w(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&"undefined"==typeof t.set)}var T="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,E=!("nw"in k)&&"undefined"!=typeof k.process&&"[object process]"==={}.toString.call(k.process),O=!E&&!T&&!(!g||!y.HTMLElement),S="undefined"!=typeof k.process&&"[object process]"==={}.toString.call(k.process)&&!T&&!(!g||!y.HTMLElement),D={},x=function(t){if(t=t||k.event){var e=D[t.type];e||(e=D[t.type]=d("ON_PROPERTY"+t.type));var n=(this||t.target||k)[e],r=n&&n.apply(this,arguments);return void 0==r||r||t.preventDefault(),r}};function P(t,r,o){var i=e(t,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){delete i.writable,delete i.value;var a=i.get,u=i.set,c=r.substr(2),s=D[c];s||(s=D[c]=d("ON_PROPERTY"+c)),i.set=function(e){var n=this;n||t!==k||(n=k),n&&(n[s]&&n.removeEventListener(c,x),u&&u.apply(n,m),"function"==typeof e?(n[s]=e,n.addEventListener(c,x,!1)):n[s]=null)},i.get=function(){var e=this;if(e||t!==k||(e=k),!e)return null;var n=e[s];if(n)return n;if(a){var o=a&&a.call(this);if(o)return i.set.call(this,o),"function"==typeof e[_]&&e.removeAttribute(r),o}return null},n(t,r,i)}}function z(t,e,n){if(e)for(var r=0;r1?new r(t,n):new r(t),l=e(f,"onmessage");return l&&!1===l.configurable?(c=o(f),s=f,[a,u,"send","close"].forEach(function(t){c[t]=function(){var e=i.call(arguments);if(t===a||t===u){var n=e.length>0?e[0]:void 0;if(n){var r=Zone.__symbol__("ON_PROPERTY"+n);f[r]=c[r]}}return f[t].apply(f,e)}})):c=f,z(c,["close","error","message","open"],s),c};var c=n.WebSocket;for(var s in r)c[s]=r[s]}(0,c)}}var pt=d("unbound");Zone.__load_patch("util",function(t,e,n){n.patchOnProperties=z,n.patchMethod=I,n.bindArguments=b}),Zone.__load_patch("timers",function(t){X(t,"set","clear","Timeout"),X(t,"set","clear","Interval"),X(t,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(t){X(t,"request","cancel","AnimationFrame"),X(t,"mozRequest","mozCancel","AnimationFrame"),X(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(t,e){for(var n=["alert","prompt","confirm"],r=0;r=0&&"function"==typeof n[r.cbIdx]?v(r.name,n[r.cbIdx],r,i,null):t.apply(e,n)}})}()}),Zone.__load_patch("XHR",function(t,e){!function(e){var u=XMLHttpRequest.prototype,f=u[c],l=u[s];if(!f){var p=t.XMLHttpRequestEventTarget;if(p){var h=p.prototype;f=h[c],l=h[s]}}var d="readystatechange",g="scheduled";function y(t){XMLHttpRequest[i]=!1;var e=t.data,r=e.target,a=r[o];f||(f=r[c],l=r[s]),a&&l.call(r,d,a);var u=r[o]=function(){r.readyState===r.DONE&&!e.aborted&&XMLHttpRequest[i]&&t.state===g&&t.invoke()};return f.call(r,d,u),r[n]||(r[n]=t),b.apply(r,e.args),XMLHttpRequest[i]=!0,t}function k(){}function _(t){var e=t.data;return e.aborted=!0,w.apply(e.target,e.args)}var m=I(u,"open",function(){return function(t,e){return t[r]=0==e[2],t[a]=e[1],m.apply(t,e)}}),b=I(u,"send",function(){return function(t,e){return t[r]?b.apply(t,e):v("XMLHttpRequest.send",k,{target:t,url:t[a],isPeriodic:!1,delay:null,args:e,aborted:!1},y,_)}}),w=I(u,"abort",function(){return function(t){var e=t[n];if(e&&"string"==typeof e.type){if(null==e.cancelFn||e.data&&e.data.aborted)return;e.zone.cancelTask(e)}}})}();var n=d("xhrTask"),r=d("xhrSync"),o=d("xhrListener"),i=d("xhrScheduled"),a=d("xhrURL")}),Zone.__load_patch("geolocation",function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var i=n[o],a=t[i];if(a){if(!w(e(t,i)))return"continue";t[i]=function(t){var e=function(){return t.apply(this,b(arguments,r+"."+i))};return C(e,t),e}(a)}},i=0;i0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},fJSx:function(t,e,n){"use strict";var r=n("A16L"),o=n("1aA0").getWeak,i=n("DIVP"),a=n("UKM+"),u=n("9GpA"),c=n("vmSO"),s=n("LhTa"),f=n("WBcL"),l=n("zq/X"),p=s(5),h=s(6),v=0,d=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},y=function(t,e){return p(t.a,function(t){return t[0]===e})};g.prototype={get:function(t){var e=y(this,t);if(e)return e[1]},has:function(t){return!!y(this,t)},set:function(t,e){var n=y(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=h(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){u(t,s,e,"_i"),t._t=e,t._i=v++,t._l=void 0,void 0!=r&&c(r,n,t[i],t)});return r(s.prototype,{delete:function(t){if(!a(t))return!1;var n=o(t);return!0===n?d(l(this,e)).delete(t):n&&f(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=o(t);return!0===n?d(l(this,e)).has(t):n&&f(n,this._i)}}),s},def:function(t,e,n){var r=o(i(e),!0);return!0===r?d(t).set(e,n):r[t._i]=n,t},ufstore:d}},fU25:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},gvDt:function(t,e,n){var r=n("UKM+"),o=n("DIVP"),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("rFzY")(Function.call,n("x9zv").f(Object.prototype,"__proto__").set,2))(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}},jhxf:function(t,e,n){var r=n("UKM+"),o=n("OzIq").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},kic5:function(t,e,n){var r=n("UKM+"),o=n("gvDt").set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},kkCw:function(t,e,n){var r=n("VWgF")("wks"),o=n("ulTY"),i=n("OzIq").Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},lDLk:function(t,e,n){var r=n("DIVP"),o=n("xZa+"),i=n("s4j0"),a=Object.defineProperty;e.f=n("bUqO")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},mZON:function(t,e,n){var r=n("VWgF")("keys"),o=n("ulTY");t.exports=function(t){return r[t]||(r[t]=o(t))}},oYd7:function(t,e,n){"use strict";var r=n("Qh14"),o=n("Y1N3"),i=n("Y1aA"),a=n("FryR"),u=n("Q6Nf"),c=Object.assign;t.exports=!c||n("zgIt")(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=a(t),c=arguments.length,s=1,f=o.f,l=i.f;c>s;)for(var p,h=u(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},oeih:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},ot5s:function(t,e,n){var r=n("PHqh"),o=n("BbyF"),i=n("zo/l");t.exports=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},plSV:function(t,e,n){var r=n("boo2");t.exports=function(t,e){return new(r(t))(e)}},qkyc:function(t,e,n){var r=n("kkCw")("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],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},rFzY:function(t,e,n){var r=n("XSOZ");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)}}},s4j0:function(t,e,n){var r=n("UKM+");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")}},twxM:function(t,e,n){var r=n("lDLk"),o=n("DIVP"),i=n("Qh14");t.exports=n("bUqO")?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},uc2A:function(t,e,n){"use strict";var r=n("V3l/"),o=n("Ds5P"),i=n("R3AP"),a=n("2p1q"),u=n("bN1p"),c=n("IRJ3"),s=n("yYvK"),f=n("KOrd"),l=n("kkCw")("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,d,g,y){c(n,e,v);var k,_,m,b=function(t){if(!p&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",T="values"==d,E=!1,O=t.prototype,S=O[l]||O["@@iterator"]||d&&O[d],D=S||b(d),x=d?T?b("entries"):D:void 0,P="Array"==e&&O.entries||S;if(P&&(m=f(P.call(new t)))!==Object.prototype&&m.next&&(s(m,w,!0),r||"function"==typeof m[l]||a(m,l,h)),T&&S&&"values"!==S.name&&(E=!0,D=function(){return S.call(this)}),r&&!y||!p&&!E&&O[l]||a(O,l,D),u[e]=D,u[w]=h,d)if(k={values:T?D:b("values"),keys:g?D:b("keys"),entries:x},y)for(_ in k)_ in O||i(O,_,k[_]);else o(o.P+o.F*(p||E),e,k);return k}},ulTY:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},v3hU:function(t,e,n){var r=n("dSUw"),o=n("QG7u"),i=n("wCso"),a=n("DIVP"),u=n("KOrd"),c=i.keys,s=i.key,f=function(t,e){var n=c(t,e),i=u(t);if(null===i)return n;var a=f(i,e);return a.length?n.length?o(new r(n.concat(a))):a:n};i.exp({getMetadataKeys:function(t){return f(a(t),arguments.length<2?void 0:s(arguments[1]))}})},vmSO:function(t,e,n){var r=n("rFzY"),o=n("XvUs"),i=n("9vb1"),a=n("DIVP"),u=n("BbyF"),c=n("SHe9"),s={},f={};(e=t.exports=function(t,e,n,l,p){var h,v,d,g,y=p?function(){return t}:c(t),k=r(n,l,e?2:1),_=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(h=u(t.length);h>_;_++)if((g=e?k(a(v=t[_])[0],v[1]):k(t[_]))===s||g===f)return g}else for(d=y.call(t);!(v=d.next()).done;)if((g=o(d,k,v.value,e))===s||g===f)return g}).BREAK=s,e.RETURN=f},vsh6:function(t,e,n){var r=n("wCso"),o=n("DIVP"),i=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(t){return i(o(t),arguments.length<2?void 0:a(arguments[1]))}})},wC1N:function(t,e,n){var r=n("ydD5"),o=n("kkCw")("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},wCso:function(t,e,n){var r=n("MsuQ"),o=n("Ds5P"),i=n("VWgF")("metadata"),a=i.store||(i.store=new(n("ZDXm"))),u=function(t,e,n){var o=a.get(t);if(!o){if(!n)return;a.set(t,o=new r)}var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}return i};t.exports={store:a,map:u,has:function(t,e,n){var r=u(e,n,!1);return void 0!==r&&r.has(t)},get:function(t,e,n){var r=u(e,n,!1);return void 0===r?void 0:r.get(t)},set:function(t,e,n,r){u(n,r,!0).set(t,e)},keys:function(t,e){var n=u(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){o(o.S,"Reflect",t)}}},wlCs:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("ChGr"),o=(n.n(r),n("ZSR1"));n.n(o)},x9zv:function(t,e,n){var r=n("Y1aA"),o=n("fU25"),i=n("PHqh"),a=n("s4j0"),u=n("WBcL"),c=n("xZa+"),s=Object.getOwnPropertyDescriptor;e.f=n("bUqO")?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},"xZa+":function(t,e,n){t.exports=!n("bUqO")&&!n("zgIt")(function(){return 7!=Object.defineProperty(n("jhxf")("div"),"a",{get:function(){return 7}}).a})},yJ2x:function(t,e,n){var r=n("wCso"),o=n("DIVP"),i=r.key,a=r.set;r.exp({defineMetadata:function(t,e,n,r){a(t,e,o(n),i(r))}})},yOtE:function(t,e,n){var r=n("wCso"),o=n("DIVP"),i=r.has,a=r.key;r.exp({hasOwnMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},yYvK:function(t,e,n){var r=n("lDLk").f,o=n("WBcL"),i=n("kkCw")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},ydD5:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},zZHq:function(t,e,n){var r=n("wCso"),o=n("DIVP"),i=r.get,a=r.key;r.exp({getOwnMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},zgIt:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"zo/l":function(t,e,n){var r=n("oeih"),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},"zq/X":function(t,e,n){var r=n("UKM+");t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}}},[1]); \ No newline at end of file diff --git a/docs/styles.ac89bfdd6de82636b768.bundle.css b/docs/styles.ac89bfdd6de82636b768.bundle.css deleted file mode 100644 index e69de29..0000000 diff --git a/libs/.gitkeep b/libs/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/libs/ar/karma.conf.js b/libs/ar/karma.conf.js deleted file mode 100644 index 3df4d0c..0000000 --- a/libs/ar/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function(config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-phantomjs-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../../coverage'), - reports: ['html', 'lcovonly'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false - }); -}; diff --git a/libs/ar/src/index.ts b/libs/ar/src/index.ts deleted file mode 100644 index 991ecf8..0000000 --- a/libs/ar/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { ArModule } from './lib/ar.module'; diff --git a/libs/ar/src/lib/OBJLoader.ts b/libs/ar/src/lib/OBJLoader.ts deleted file mode 100644 index 8490991..0000000 --- a/libs/ar/src/lib/OBJLoader.ts +++ /dev/null @@ -1,676 +0,0 @@ -// import { Group, DefaultLoadingManager, FileLoader, -// BufferAttribute, BufferGeometry, LineBasicMaterial,MeshPhongMaterial, -// Mesh, LineSegments} from 'three'; -// /** -// * @author mrdoob / http://mrdoob.com/ -// */ -// -// export function OBJLoader () { -// -// // o object_name | g group_name -// var object_pattern = /^[og]\s*(.+)?/; -// // mtllib file_reference -// var material_library_pattern = /^mtllib /; -// // usemtl material_name -// var material_use_pattern = /^usemtl /; -// -// function ParserState() { -// -// var state = { -// objects : [], -// object : {}, -// -// vertices : [], -// normals : [], -// uvs : [], -// -// materialLibraries : [], -// -// startObject: function ( name, fromDeclaration ) { -// -// // If the current object (initial from reset) is not from a g/o declaration in the parsed -// // file. We need to use it for the first parsed g/o to keep things in sync. -// if ( this.object && this.object.fromDeclaration === false ) { -// -// this.object.name = name; -// this.object.fromDeclaration = ( fromDeclaration !== false ); -// return; -// -// } -// -// var previousMaterial = ( this.object && typeof this.object.currentMaterial === 'function' ? this.object.currentMaterial() : undefined ); -// -// if ( this.object && typeof this.object._finalize === 'function' ) { -// -// this.object._finalize( true ); -// -// } -// -// this.object = { -// name : name || '', -// fromDeclaration : ( fromDeclaration !== false ), -// -// geometry : { -// vertices : [], -// normals : [], -// uvs : [] -// }, -// materials : [], -// smooth : true, -// -// startMaterial: function ( name, libraries ) { -// -// var previous = this._finalize( false ); -// -// // New usemtl declaration overwrites an inherited material, except if faces were declared -// // after the material, then it must be preserved for proper MultiMaterial continuation. -// if ( previous && ( previous.inherited || previous.groupCount <= 0 ) ) { -// -// this.materials.splice( previous.index, 1 ); -// -// } -// -// var material = { -// index : this.materials.length, -// name : name || '', -// mtllib : ( Array.isArray( libraries ) && libraries.length > 0 ? libraries[ libraries.length - 1 ] : '' ), -// smooth : ( previous !== undefined ? previous.smooth : this.smooth ), -// groupStart : ( previous !== undefined ? previous.groupEnd : 0 ), -// groupEnd : -1, -// groupCount : -1, -// inherited : false, -// -// clone: function ( index ) { -// var cloned = { -// index : ( typeof index === 'number' ? index : this.index ), -// name : this.name, -// mtllib : this.mtllib, -// smooth : this.smooth, -// groupStart : 0, -// groupEnd : -1, -// groupCount : -1, -// inherited : false, -// clone: undefined -// }; -// cloned.clone = this.clone.bind(cloned); -// return cloned; -// } -// }; -// -// this.materials.push( material ); -// -// return material; -// -// }, -// -// currentMaterial: function () { -// -// if ( this.materials.length > 0 ) { -// return this.materials[ this.materials.length - 1 ]; -// } -// -// return undefined; -// -// }, -// -// _finalize: function ( end ) { -// -// var lastMultiMaterial = this.currentMaterial(); -// if ( lastMultiMaterial && lastMultiMaterial.groupEnd === -1 ) { -// -// lastMultiMaterial.groupEnd = this.geometry.vertices.length / 3; -// lastMultiMaterial.groupCount = lastMultiMaterial.groupEnd - lastMultiMaterial.groupStart; -// lastMultiMaterial.inherited = false; -// -// } -// -// // Ignore objects tail materials if no face declarations followed them before a new o/g started. -// if ( end && this.materials.length > 1 ) { -// -// for ( var mi = this.materials.length - 1; mi >= 0; mi-- ) { -// if ( this.materials[ mi ].groupCount <= 0 ) { -// this.materials.splice( mi, 1 ); -// } -// } -// -// } -// -// // Guarantee at least one empty material, this makes the creation later more straight forward. -// if ( end && this.materials.length === 0 ) { -// -// this.materials.push({ -// name : '', -// smooth : this.smooth -// }); -// -// } -// -// return lastMultiMaterial; -// -// } -// }; -// -// // Inherit previous objects material. -// // Spec tells us that a declared material must be set to all objects until a new material is declared. -// // If a usemtl declaration is encountered while this new object is being parsed, it will -// // overwrite the inherited material. Exception being that there was already face declarations -// // to the inherited material, then it will be preserved for proper MultiMaterial continuation. -// -// if ( previousMaterial && previousMaterial.name && typeof previousMaterial.clone === 'function' ) { -// -// var declared = previousMaterial.clone( 0 ); -// declared.inherited = true; -// this.object.materials.push( declared ); -// -// } -// -// this.objects.push( this.object ); -// -// }, -// -// finalize: function () { -// -// if ( this.object && typeof this.object._finalize === 'function' ) { -// -// this.object._finalize( true ); -// -// } -// -// }, -// -// parseVertexIndex: function ( value, len ) { -// -// var index = parseInt( value, 10 ); -// return ( index >= 0 ? index - 1 : index + len / 3 ) * 3; -// -// }, -// -// parseNormalIndex: function ( value, len ) { -// -// var index = parseInt( value, 10 ); -// return ( index >= 0 ? index - 1 : index + len / 3 ) * 3; -// -// }, -// -// parseUVIndex: function ( value, len ) { -// -// var index = parseInt( value, 10 ); -// return ( index >= 0 ? index - 1 : index + len / 2 ) * 2; -// -// }, -// -// addVertex: function ( a, b, c ) { -// -// var src = this.vertices; -// var dst = this.object.geometry.vertices; -// -// dst.push( src[ a + 0 ], src[ a + 1 ], src[ a + 2 ] ); -// dst.push( src[ b + 0 ], src[ b + 1 ], src[ b + 2 ] ); -// dst.push( src[ c + 0 ], src[ c + 1 ], src[ c + 2 ] ); -// -// }, -// -// addVertexLine: function ( a ) { -// -// var src = this.vertices; -// var dst = this.object.geometry.vertices; -// -// dst.push( src[ a + 0 ], src[ a + 1 ], src[ a + 2 ] ); -// -// }, -// -// addNormal: function ( a, b, c ) { -// -// var src = this.normals; -// var dst = this.object.geometry.normals; -// -// dst.push( src[ a + 0 ], src[ a + 1 ], src[ a + 2 ] ); -// dst.push( src[ b + 0 ], src[ b + 1 ], src[ b + 2 ] ); -// dst.push( src[ c + 0 ], src[ c + 1 ], src[ c + 2 ] ); -// -// }, -// -// addUV: function ( a, b, c ) { -// -// var src = this.uvs; -// var dst = this.object.geometry.uvs; -// -// dst.push( src[ a + 0 ], src[ a + 1 ] ); -// dst.push( src[ b + 0 ], src[ b + 1 ] ); -// dst.push( src[ c + 0 ], src[ c + 1 ] ); -// -// }, -// -// addUVLine: function ( a ) { -// -// var src = this.uvs; -// var dst = this.object.geometry.uvs; -// -// dst.push( src[ a + 0 ], src[ a + 1 ] ); -// -// }, -// -// addFace: function ( a, b, c, ua, ub, uc, na, nb, nc ) { -// -// var vLen = this.vertices.length; -// -// var ia = this.parseVertexIndex( a, vLen ); -// var ib = this.parseVertexIndex( b, vLen ); -// var ic = this.parseVertexIndex( c, vLen ); -// -// this.addVertex( ia, ib, ic ); -// -// if ( ua !== undefined ) { -// -// var uvLen = this.uvs.length; -// -// ia = this.parseUVIndex( ua, uvLen ); -// ib = this.parseUVIndex( ub, uvLen ); -// ic = this.parseUVIndex( uc, uvLen ); -// -// this.addUV( ia, ib, ic ); -// -// } -// -// if ( na !== undefined ) { -// -// // Normals are many times the same. If so, skip function call and parseInt. -// var nLen = this.normals.length; -// ia = this.parseNormalIndex( na, nLen ); -// -// ib = na === nb ? ia : this.parseNormalIndex( nb, nLen ); -// ic = na === nc ? ia : this.parseNormalIndex( nc, nLen ); -// -// this.addNormal( ia, ib, ic ); -// -// } -// -// }, -// -// addLineGeometry: function ( vertices, uvs ) { -// -// this.object.geometry.type = 'Line'; -// -// var vLen = this.vertices.length; -// var uvLen = this.uvs.length; -// -// for ( var vi = 0, l = vertices.length; vi < l; vi ++ ) { -// -// this.addVertexLine( this.parseVertexIndex( vertices[ vi ], vLen ) ); -// -// } -// -// for ( var uvi = 0, l = uvs.length; uvi < l; uvi ++ ) { -// -// this.addUVLine( this.parseUVIndex( uvs[ uvi ], uvLen ) ); -// -// } -// -// } -// -// }; -// -// state.startObject( '', false ); -// -// return state; -// -// } -// -// // -// -// // -// -// function OBJLoader( manager ) { -// -// this.manager = ( manager !== undefined ) ? manager : DefaultLoadingManager; -// -// this.materials = null; -// -// }; -// -// OBJLoader.prototype = { -// -// constructor: OBJLoader, -// -// load: function ( url, onLoad, onProgress, onError ) { -// -// var scope = this; -// -// var loader = new FileLoader( scope.manager ); -// loader.setPath( this.path ); -// loader.load( url, function ( text ) { -// -// onLoad( scope.parse( text ) ); -// -// }, onProgress, onError ); -// -// }, -// -// setPath: function ( value ) { -// -// this.path = value; -// -// }, -// -// setMaterials: function ( materials ) { -// -// this.materials = materials; -// -// return this; -// -// }, -// -// parse: function ( text ) { -// -// console.time( 'OBJLoader' ); -// -// var state = new ParserState(); -// -// if ( text.indexOf( '\r\n' ) !== - 1 ) { -// -// // This is faster than String.split with regex that splits on both -// text = text.replace( /\r\n/g, '\n' ); -// -// } -// -// if ( text.indexOf( '\\\n' ) !== - 1) { -// -// // join lines separated by a line continuation character (\) -// text = text.replace( /\\\n/g, '' ); -// -// } -// -// var lines = text.split( '\n' ); -// var line = '', lineFirstChar = ''; -// var lineLength = 0; -// var result = []; -// -// // Faster to just trim left side of the line. Use if available. -// // var trimLeft = ( typeof ''.trimLeft === 'function' ); -// -// for ( var i = 0, l = lines.length; i < l; i ++ ) { -// -// line = lines[ i ]; -// -// line = line.trim(); -// -// lineLength = line.length; -// -// if ( lineLength === 0 ) continue; -// -// lineFirstChar = line.charAt( 0 ); -// -// // @todo invoke passed in handler if any -// if ( lineFirstChar === '#' ) continue; -// -// if ( lineFirstChar === 'v' ) { -// -// var data = line.split( /\s+/ ); -// -// switch ( data[ 0 ] ) { -// -// case 'v': -// state.vertices.push( -// parseFloat( data[ 1 ] ), -// parseFloat( data[ 2 ] ), -// parseFloat( data[ 3 ] ) -// ); -// break; -// case 'vn': -// state.normals.push( -// parseFloat( data[ 1 ] ), -// parseFloat( data[ 2 ] ), -// parseFloat( data[ 3 ] ) -// ); -// break; -// case 'vt': -// state.uvs.push( -// parseFloat( data[ 1 ] ), -// parseFloat( data[ 2 ] ) -// ); -// break; -// } -// -// } else if ( lineFirstChar === 'f' ) { -// -// var lineData = line.substr( 1 ).trim(); -// var vertexData = lineData.split( /\s+/ ); -// var faceVertices = []; -// -// // Parse the face vertex data into an easy to work with format -// -// for ( var j = 0, jl = vertexData.length; j < jl; j ++ ) { -// -// var vertex = vertexData[ j ]; -// -// if ( vertex.length > 0 ) { -// -// var vertexParts = vertex.split( '/' ); -// faceVertices.push( vertexParts ); -// -// } -// -// } -// -// // Draw an edge between the first vertex and all subsequent vertices to form an n-gon -// -// var v1 = faceVertices[ 0 ]; -// -// for ( var j = 1, jl = faceVertices.length - 1; j < jl; j ++ ) { -// -// var v2 = faceVertices[ j ]; -// var v3 = faceVertices[ j + 1 ]; -// -// state.addFace( -// v1[ 0 ], v2[ 0 ], v3[ 0 ], -// v1[ 1 ], v2[ 1 ], v3[ 1 ], -// v1[ 2 ], v2[ 2 ], v3[ 2 ] -// ); -// -// } -// -// } else if ( lineFirstChar === 'l' ) { -// -// var lineParts = line.substring( 1 ).trim().split( " " ); -// var lineVertices = [], lineUVs = []; -// -// if ( line.indexOf( "/" ) === - 1 ) { -// -// lineVertices = lineParts; -// -// } else { -// -// for ( var li = 0, llen = lineParts.length; li < llen; li ++ ) { -// -// var parts = lineParts[ li ].split( "/" ); -// -// if ( parts[ 0 ] !== "" ) lineVertices.push( parts[ 0 ] ); -// if ( parts[ 1 ] !== "" ) lineUVs.push( parts[ 1 ] ); -// -// } -// -// } -// state.addLineGeometry( lineVertices, lineUVs ); -// -// } else if ( ( result = object_pattern.exec( line ) ) !== null ) { -// -// // o object_name -// // or -// // g group_name -// -// // WORKAROUND: https://bugs.chromium.org/p/v8/issues/detail?id=2869 -// // var name = result[ 0 ].substr( 1 ).trim(); -// var name = ( " " + result[ 0 ].substr( 1 ).trim() ).substr( 1 ); -// -// state.startObject( name ); -// -// } else if ( material_use_pattern.test( line ) ) { -// -// // material -// -// state.object.startMaterial( line.substring( 7 ).trim(), state.materialLibraries ); -// -// } else if ( material_library_pattern.test( line ) ) { -// -// // mtl file -// -// state.materialLibraries.push( line.substring( 7 ).trim() ); -// -// } else if ( lineFirstChar === 's' ) { -// -// result = line.split( ' ' ); -// -// // smooth shading -// -// // @todo Handle files that have varying smooth values for a set of faces inside one geometry, -// // but does not define a usemtl for each face set. -// // This should be detected and a dummy material created (later MultiMaterial and geometry groups). -// // This requires some care to not create extra material on each smooth value for "normal" obj files. -// // where explicit usemtl defines geometry groups. -// // Example asset: examples/models/obj/cerberus/Cerberus.obj -// -// /* -// * http://paulbourke.net/dataformats/obj/ -// * or -// * http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf -// * -// * From chapter "Grouping" Syntax explanation "s group_number": -// * "group_number is the smoothing group number. To turn off smoothing groups, use a value of 0 or off. -// * Polygonal elements use group numbers to put elements in different smoothing groups. For free-form -// * surfaces, smoothing groups are either turned on or off; there is no difference between values greater -// * than 0." -// */ -// if ( result.length > 1 ) { -// -// var value = result[ 1 ].trim().toLowerCase(); -// state.object.smooth = ( value !== '0' && value !== 'off' ); -// -// } else { -// -// // ZBrush can produce "s" lines #11707 -// state.object.smooth = true; -// -// } -// var material = state.object.currentMaterial(); -// if ( material ) material.smooth = state.object.smooth; -// -// } else { -// -// // Handle null terminated files without exception -// if ( line === '\0' ) continue; -// -// throw new Error( "Unexpected line: '" + line + "'" ); -// -// } -// -// } -// -// state.finalize(); -// -// var container = new Group(); -// container.materialLibraries = [].concat( state.materialLibraries ); -// -// for ( var i = 0, l = state.objects.length; i < l; i ++ ) { -// -// var object = state.objects[ i ]; -// var geometry = object.geometry; -// var materials = object.materials; -// var isLine = ( geometry.type === 'Line' ); -// -// // Skip o/g line declarations that did not follow with any faces -// if ( geometry.vertices.length === 0 ) continue; -// -// var buffergeometry = new BufferGeometry(); -// -// buffergeometry.addAttribute( 'position', new BufferAttribute( new Float32Array( geometry.vertices ), 3 ) ); -// -// if ( geometry.normals.length > 0 ) { -// -// buffergeometry.addAttribute( 'normal', new BufferAttribute( new Float32Array( geometry.normals ), 3 ) ); -// -// } else { -// -// buffergeometry.computeVertexNormals(); -// -// } -// -// if ( geometry.uvs.length > 0 ) { -// -// buffergeometry.addAttribute( 'uv', new BufferAttribute( new Float32Array( geometry.uvs ), 2 ) ); -// -// } -// -// // Create materials -// -// var createdMaterials = []; -// -// for ( var mi = 0, miLen = materials.length; mi < miLen ; mi++ ) { -// -// var sourceMaterial = materials[ mi ]; -// var material = undefined; -// -// if ( this.materials !== null ) { -// -// material = this.materials.create( sourceMaterial.name ); -// -// // mtl etc. loaders probably can't create line materials correctly, copy properties to a line material. -// if ( isLine && material && ! ( material instanceof LineBasicMaterial ) ) { -// -// var materialLine = new LineBasicMaterial(); -// materialLine.copy( material ); -// material = materialLine; -// -// } -// -// } -// -// if ( ! material ) { -// -// material = ( ! isLine ? new MeshPhongMaterial() : new LineBasicMaterial() ); -// material.name = sourceMaterial.name; -// -// } -// -// material.flatShading = sourceMaterial.smooth ? false : true; -// -// createdMaterials.push(material); -// -// } -// -// // Create mesh -// -// var mesh; -// -// if ( createdMaterials.length > 1 ) { -// -// for ( var mi = 0, miLen = materials.length; mi < miLen ; mi++ ) { -// -// var sourceMaterial = materials[ mi ]; -// buffergeometry.addGroup( sourceMaterial.groupStart, sourceMaterial.groupCount, mi ); -// -// } -// -// mesh = ( ! isLine ? new Mesh( buffergeometry, createdMaterials ) : new LineSegments( buffergeometry, createdMaterials ) ); -// -// } else { -// -// mesh = ( ! isLine ? new Mesh( buffergeometry, createdMaterials[ 0 ] ) : new LineSegments( buffergeometry, createdMaterials[ 0 ] ) ); -// } -// -// mesh.name = object.name; -// -// container.add( mesh ); -// -// } -// -// console.timeEnd( 'OBJLoader' ); -// -// return container; -// -// } -// -// }; -// -// return OBJLoader; -// -// }; diff --git a/libs/ar/src/lib/VRControls.ts b/libs/ar/src/lib/VRControls.ts deleted file mode 100644 index 36aaa89..0000000 --- a/libs/ar/src/lib/VRControls.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { Matrix4 } from 'three'; - -export function VRControls(object, onError) { - var scope = this; - - var vrDisplay, vrDisplays; - - var standingMatrix = new Matrix4(); - - var frameData = null; - - if ('VRFrameData' in window) { - frameData = new VRFrameData(); - } - - function gotVRDisplays(displays) { - vrDisplays = displays; - - if (displays.length > 0) { - vrDisplay = displays[0]; - } else { - if (onError) onError('VR input not available.'); - } - } - - if (navigator.getVRDisplays) { - navigator - .getVRDisplays() - .then(gotVRDisplays) - .catch(function() { - console.warn('THREE.VRControls: Unable to get VR Displays'); - }); - } - - // the Rift SDK returns the position in meters - // this scale factor allows the user to define how meters - // are converted to scene units. - - this.scale = 1; - - // If true will use "standing space" coordinate system where y=0 is the - // floor and x=0, z=0 is the center of the room. - this.standing = false; - - // Distance from the users eyes to the floor in meters. Used when - // standing=true but the VRDisplay doesn't provide stageParameters. - this.userHeight = 1.6; - - this.getVRDisplay = function() { - return vrDisplay; - }; - - this.setVRDisplay = function(value) { - vrDisplay = value; - }; - - this.getVRDisplays = function() { - console.warn('THREE.VRControls: getVRDisplays() is being deprecated.'); - return vrDisplays; - }; - - this.getStandingMatrix = function() { - return standingMatrix; - }; - - this.update = function() { - if (vrDisplay) { - var pose; - - if (vrDisplay.getFrameData) { - vrDisplay.getFrameData(frameData); - pose = frameData.pose; - } else if (vrDisplay.getPose) { - pose = vrDisplay.getPose(); - } - - if (pose.orientation !== null) { - object.quaternion.fromArray(pose.orientation); - } - - if (pose.position !== null) { - object.position.fromArray(pose.position); - } else { - object.position.set(0, 0, 0); - } - - if (this.standing) { - if (vrDisplay.stageParameters) { - object.updateMatrix(); - - standingMatrix.fromArray(vrDisplay.stageParameters.sittingToStandingTransform); - object.applyMatrix(standingMatrix); - } else { - object.position.setY(object.position.y + this.userHeight); - } - } - - object.position.multiplyScalar(scope.scale); - } - }; - - this.dispose = function() { - vrDisplay = null; - }; -} diff --git a/libs/ar/src/lib/ar.module.spec.ts b/libs/ar/src/lib/ar.module.spec.ts deleted file mode 100644 index 1d02f69..0000000 --- a/libs/ar/src/lib/ar.module.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ArModule } from './ar.module'; - -describe('ArModule', () => { - it('should work', () => { - expect(new ArModule()).toBeDefined(); - }); -}); diff --git a/libs/ar/src/lib/ar.module.ts b/libs/ar/src/lib/ar.module.ts deleted file mode 100644 index 5b3b9cb..0000000 --- a/libs/ar/src/lib/ar.module.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { ModelLoaderComponent } from './model-loader/model-loader.component'; -import { CreateAtCameraComponent } from './create-at-camera/create-at-camera.component'; -import { CreateAtSurfaceComponent } from './create-at-surface/create-at-surface.component'; -import { ArService } from '@nx-examples/ar/src/lib/ar.service'; - -@NgModule({ - imports: [CommonModule], - exports: [ModelLoaderComponent, CreateAtCameraComponent, CreateAtSurfaceComponent], - declarations: [ModelLoaderComponent, CreateAtCameraComponent, CreateAtSurfaceComponent], - providers: [ArService] -}) -export class ArModule {} diff --git a/libs/ar/src/lib/ar.service.spec.ts b/libs/ar/src/lib/ar.service.spec.ts deleted file mode 100644 index dfd34eb..0000000 --- a/libs/ar/src/lib/ar.service.spec.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { TestBed, inject } from '@angular/core/testing'; - -import { ArService } from './ar.service'; - -describe('ArService', () => { - beforeEach(() => { - TestBed.configureTestingModule({ - providers: [ArService] - }); - }); - - it( - 'should be created', - inject([ArService], (service: ArService) => { - expect(service).toBeTruthy(); - }) - ); -}); diff --git a/libs/ar/src/lib/ar.service.ts b/libs/ar/src/lib/ar.service.ts deleted file mode 100644 index 6968383..0000000 --- a/libs/ar/src/lib/ar.service.ts +++ /dev/null @@ -1,162 +0,0 @@ -import { Injectable } from '@angular/core'; -import { BoxGeometry, Color, Mesh, MeshBasicMaterial, Scene, VertexColors } from 'three'; -import { ARUtils, ARDebug } from 'three.ar.js'; - -const colors = [ - new Color(0xffffff), - new Color(0xffff00), - new Color(0xff00ff), - new Color(0xff0000), - new Color(0x00ffff), - new Color(0x00ff00), - new Color(0x0000ff), - new Color(0x000000) -]; - -@Injectable() -export class ArService { - vrDisplay; - vrControls; - arView; - - scene = new Scene(); - camera; - renderer; - arDebug; - - cube; - boxSize = 0.2; - boxGeometry; - - constructor() {} - - initAR(options) { - ARUtils.getARDisplay().then(this.arDisplayCallback.bind(this)); - if (options.debug) { - this.arDebug = new ARDebug(this.vrDisplay); - document.body.appendChild(this.arDebug.getElement()); - } - } - - arDisplayCallback(display, cb) { - if (display) { - this.vrDisplay = display; - cb(); - } else { - ARUtils.displayUnsupportedMessage(); - } - } - - onError(e) { - console.warn('VRControls error ', e); - } - - // setUp() { - // this.arDebug = new ARDebug(this.vrDisplay); - // document.body.appendChild(this.arDebug.getElement()); - // - // // Setup the js rendering environment - // this.renderer = new WebGLRenderer({ alpha: true, canvas: this.canvas }); - // this.renderer.setPixelRatio(window.devicePixelRatio); - // this.renderer.setSize(window.innerWidth, window.innerHeight); - // this.renderer.autoClear = false; - // - // // Creates an ARView with a VRDisplay and a WebGLRenderer. - // // Handles the pass through camera differences between ARCore and ARKit platforms, - // // and renders the camera behind your scene. - // this.arView = new ARView(this.vrDisplay, this.renderer); - // - // // The ARPerspectiveCamera is very similar to PerspectiveCamera, - // // except when using an AR-capable browser, the camera uses - // // the projection matrix provided from the device, so that the - // // perspective camera's depth planes and field of view matches - // // the physical camera on the device. - // // Only the projectionMatrix is updated if using an AR-capable device, and the fov, aspect, near, far properties are not applicable. - // this.camera = new ARPerspectiveCamera( - // this.vrDisplay, - // 60, - // window.innerWidth / window.innerHeight, - // this.vrDisplay.depthNear, - // this.vrDisplay.depthFar - // ); - // - // // VRControls is a utility from js that applies the device's - // // orientation/position to the perspective camera, keeping our - // // real world and virtual world in sync. - // this.vrControls = new VRControls(this.camera, this.onError); - // - // // TODO: move to service with create box method - // this.boxGeometry = new BoxGeometry(this.boxSize, this.boxSize, this.boxSize); - // var faceIndices = ['a', 'b', 'c']; - // for (var i = 0; i < this.boxGeometry.faces.length; i++) { - // var f = this.boxGeometry.faces[i]; - // for (var j = 0; j < 3; j++) { - // var vertexIndex = f[faceIndices[j]]; - // f.vertexColors[j] = this.colors[vertexIndex]; - // } - // } - // - // // Shift the cube geometry vertices upwards, so that the "pivot" of - // // the cube is at it's base. When the cube is added to the scene, - // // this will help make it appear to be sitting on top of the real- - // // world surface. - // this.boxGeometry.translate(0, this.boxSize / 2, 0); - // const material = new MeshBasicMaterial({ vertexColors: VertexColors }); - // this.cube = new Mesh(this.boxGeometry, material); - // this.cube.position.set(10000, 10000, 10000); - // - // this.scene.add(this.cube); - // this.zone.runOutsideAngular(this.update.bind(this)); - // } - - update() { - // Clears color from the frame before rendering the camera (arView) or scene. - this.renderer.clearColor(); - // Render the device's camera stream on screen first of all. - // It allows to get the right pose synchronized with the right frame. - // Usually called on every frame in a render loop before rendering other objects in the scene. - this.arView.render(); - // Update our camera projection matrix in the event that - // the near or far planes have updated - this.camera.updateProjectionMatrix(); - // Update our perspective camera's positioning - this.vrControls.update(); - // Render our js virtual scene - this.renderer.clearDepth(); - this.renderer.render(this.scene, this.camera); - // Kick off the requestAnimationFrame to call this function - // when a new VRDisplay frame is rendered - - this.vrDisplay.requestAnimationFrame(this.update.bind(this)); - } - - onWindowResize() { - this.camera.aspect = window.innerWidth / window.innerHeight; - this.camera.updateProjectionMatrix(); - this.renderer.setSize(window.innerWidth, window.innerHeight); - } - - createCube() { - let boxGeometry = new BoxGeometry(this.boxSize, this.boxSize, this.boxSize); - var faceIndices = ['a', 'b', 'c']; - for (var i = 0; i < boxGeometry.faces.length; i++) { - var f = this.boxGeometry.faces[i]; - for (var j = 0; j < 3; j++) { - var vertexIndex = f[faceIndices[j]]; - f.vertexColors[j] = colors[vertexIndex]; - } - } - - // Shift the cube geometry vertices upwards, so that the "pivot" of - // the cube is at it's base. When the cube is added to the scene, - // this will help make it appear to be sitting on top of the real- - // world surface. - boxGeometry.translate(0, this.boxSize / 2, 0); - const material = new MeshBasicMaterial({ vertexColors: VertexColors }); - let cube = new Mesh(this.boxGeometry, material); - cube.position.set(10000, 10000, 10000); - return cube; - } - - createModel() {} -} diff --git a/libs/ar/src/lib/create-at-camera/create-at-camera.component.html b/libs/ar/src/lib/create-at-camera/create-at-camera.component.html deleted file mode 100644 index 2f9dbff..0000000 --- a/libs/ar/src/lib/create-at-camera/create-at-camera.component.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libs/ar/src/lib/create-at-camera/create-at-camera.component.scss b/libs/ar/src/lib/create-at-camera/create-at-camera.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/libs/ar/src/lib/create-at-camera/create-at-camera.component.spec.ts b/libs/ar/src/lib/create-at-camera/create-at-camera.component.spec.ts deleted file mode 100644 index 580432f..0000000 --- a/libs/ar/src/lib/create-at-camera/create-at-camera.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { CreateAtCameraComponent } from './create-at-camera.component'; - -describe('CreateAtCameraComponent', () => { - let component: CreateAtCameraComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - declarations: [CreateAtCameraComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(CreateAtCameraComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/libs/ar/src/lib/create-at-camera/create-at-camera.component.ts b/libs/ar/src/lib/create-at-camera/create-at-camera.component.ts deleted file mode 100644 index 3dc8053..0000000 --- a/libs/ar/src/lib/create-at-camera/create-at-camera.component.ts +++ /dev/null @@ -1,241 +0,0 @@ -import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; - -import { - Scene, - WebGLRenderer, - PCFSoftShadowMap, - DirectionalLight, - AmbientLight, - PlaneGeometry, - Mesh, - ShadowMaterial, - Matrix4, - Vector3, - Color, - BoxGeometry, - MeshBasicMaterial, - VertexColors, - Quaternion -} from 'three'; -import { ARUtils, ARPerspectiveCamera, ARView, ARDebug } from 'three.ar.js'; -import { VRControls } from '../VRControls'; -@Component({ - selector: 'app-create-at-camera', - templateUrl: './create-at-camera.component.html', - styleUrls: ['./create-at-camera.component.scss'] -}) -export class CreateAtCameraComponent implements OnInit { - colors = [ - new Color(0xffffff), - new Color(0xffff00), - new Color(0xff00ff), - new Color(0xff0000), - new Color(0x00ffff), - new Color(0x00ff00), - new Color(0x0000ff), - new Color(0x000000) - ]; - - scene = new Scene(); - camera; - renderer; - vrDisplay; - vrFrameData; - vrControls; - arDebug; - arView; - model; - cube; - shadowMesh; - // Make a large plane to receive our shadows - planeGeometry = new PlaneGeometry(2000, 2000); - light = new AmbientLight(); - directionalLight = new DirectionalLight(); - boxGeometry = new BoxGeometry(0.05, 0.05, 0.05); - - // raycaster = new Raycaster(); - - @ViewChild('canvas') private canvasRef: ElementRef; - - private get canvas(): HTMLCanvasElement { - return this.canvasRef.nativeElement; - } - - constructor() {} - - ngOnInit() { - /** - * Use the `getARDisplay()` utility to leverage the WebVR API - * to see if there are any AR-capable WebVR VRDisplays. Returns - * a valid display if found. Otherwise, display the unsupported - * browser message. - */ - ARUtils.getARDisplay().then(this.arDisplayCallback.bind(this)); - } - - arDisplayCallback(display) { - if (display) { - this.vrFrameData = new VRFrameData(); - this.vrDisplay = display; - this.setUp(); - } else { - ARUtils.displayUnsupportedMessage(); - } - } - - onClick(e) { - // // Fetch the pose data from the current frame - var pose = this.vrFrameData && this.vrFrameData.pose && this.vrFrameData.pose; - - // // Convert the pose orientation and position into - // // Quaternion and Vector3 respectively - // // This is used for rotating things without encountering the dreaded gimbal lock issue, amongst other advantages. - // // More info: https://threejs.org/docs/index.html#api/math/Quaternion - // const ori = new Quaternion( - // pose.orientation[0], - // pose.orientation[1], - // pose.orientation[2], - // pose.orientation[3] - // ); - // var pos = new Vector3( - // pose.position[0], - // pose.position[1], - // pose.position[2] - // ); - // const dirMtx = new Matrix4(); - // dirMtx.makeRotationFromQuaternion(ori); - // const push = new Vector3(0, 0, -1.0); - // push.transformDirection(dirMtx); - // pos.addScaledVector(push, 0.125); - // // Clone our cube object and place it at the camera's - // // current position - // let clone = this.cube.clone(); - // this.scene.add(clone); - // clone.position.copy(pos); - // clone.quaternion.copy(ori); - } - - setUp() { - // this.arDebug = new ARDebug(this.vrDisplay); - // document.body.appendChild(this.arDebug.getElement()); - // Setup the js rendering environment - this.renderer = new WebGLRenderer({ alpha: true, canvas: this.canvas }); - this.renderer.setPixelRatio(window.devicePixelRatio); - this.renderer.setSize(window.innerWidth, window.innerHeight); //this.canvas.width, this.canvas.height); - this.renderer.autoClear = false; - - // Creates an ARView with a VRDisplay and a WebGLRenderer. - // Handles the pass through camera differences between ARCore and ARKit platforms, - // and renders the camera behind your scene. - this.arView = new ARView(this.vrDisplay, this.renderer); - - // The ARPerspectiveCamera is very similar to PerspectiveCamera, - // except when using an AR-capable browser, the camera uses - // the projection matrix provided from the device, so that the - // perspective camera's depth planes and field of view matches - // the physical camera on the device. - // Only the projectionMatrix is updated if using an AR-capable device, and the fov, aspect, near, far properties are not applicable. - this.camera = new ARPerspectiveCamera( - this.vrDisplay, - 60, - window.innerWidth / window.innerHeight, - this.vrDisplay.depthNear, - this.vrDisplay.depthFar - ); - - // VRControls is a utility from js that applies the device's - // orientation/position to the perspective camera, keeping our - // real world and virtual world in sync. - this.vrControls = new VRControls(this.camera, this.onError); - - // For shadows to work - this.renderer.shadowMap.enabled = true; - this.renderer.shadowMap.type = PCFSoftShadowMap; - - this.directionalLight.intensity = 0.3; - this.directionalLight.position.set(10, 15, 10); - // We want this light to cast shadow - this.directionalLight.castShadow = true; - - this.scene.add(this.light); - this.scene.add(this.directionalLight); - - // Rotate our plane to be parallel to the floor - this.planeGeometry.rotateX(-Math.PI / 2); - - // Create a mesh with a shadow material, resulting in a mesh - // that only renders shadows once we flip the `receiveShadow` property - const clr = new Color(0x111111); - this.shadowMesh = new Mesh( - this.planeGeometry, - new ShadowMaterial({ - opacity: 0.15 - }) - ); - this.shadowMesh.receiveShadow = true; - this.scene.add(this.shadowMesh); - - // Create the cube geometry that we'll copy and place in the - // scene when the user clicks the screen - - var faceIndices = ['a', 'b', 'c']; - for (var i = 0; i < this.boxGeometry.faces.length; i++) { - var f = this.boxGeometry.faces[i]; - for (var j = 0; j < 3; j++) { - var vertexIndex = f[faceIndices[j]]; - f.vertexColors[j] = this.colors[vertexIndex]; - } - } - const material = new MeshBasicMaterial({ vertexColors: VertexColors }); - this.cube = new Mesh(this.boxGeometry, material); - - // ARUtils.loadModel({ß - // objPath: OBJ_PATH, - // mtlPath: MTL_PATH, - // OBJLoader: undefined, - // MTLLoader: undefined, // uses window.MTLLoader by default - // }).then(function(group) { - // this.model = group; - // // As OBJ models may contain a group with several meshes, - // // we want all of them to cast shadow - // this.model.children.forEach(function(mesh) { mesh.castShadow = true; }); - // this.model.scale.set(SCALE, SCALE, SCALE); - // // Place the model very far to initialize - // this.model.position.set(10000, 10000, 10000); - // this.scene.add(this.model); - // }); - - this.update(); - } - - update() { - // Clears color from the frame before rendering the camera (arView) or scene. - this.renderer.clearColor(); - // Render the device's camera stream on screen first of all. - // It allows to get the right pose synchronized with the right frame. - // Usually called on every frame in a render loop before rendering other objects in the scene. - this.arView.render(); - // Update our camera projection matrix in the event that - // the near or far planes have updated - this.camera.updateProjectionMatrix(); - // Update our perspective camera's positioning - this.vrControls.update(); - // Render our js virtual scene - this.renderer.clearDepth(); - this.renderer.render(this.scene, this.camera); - // Kick off the requestAnimationFrame to call this function - // when a new VRDisplay frame is rendered - this.vrDisplay.requestAnimationFrame(this.update.bind(this)); - } - - onWindowResize(e) { - console.log('setRenderer size', window.innerWidth, window.innerHeight); - this.camera.aspect = window.innerWidth / window.innerHeight; - this.camera.updateProjectionMatrix(); - this.renderer.setSize(window.innerWidth, window.innerHeight); - } - - onError() { - console.log('VRControls error'); - } -} diff --git a/libs/ar/src/lib/create-at-surface/create-at-surface.component.html b/libs/ar/src/lib/create-at-surface/create-at-surface.component.html deleted file mode 100644 index 6558253..0000000 --- a/libs/ar/src/lib/create-at-surface/create-at-surface.component.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libs/ar/src/lib/create-at-surface/create-at-surface.component.scss b/libs/ar/src/lib/create-at-surface/create-at-surface.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/libs/ar/src/lib/create-at-surface/create-at-surface.component.spec.ts b/libs/ar/src/lib/create-at-surface/create-at-surface.component.spec.ts deleted file mode 100644 index c96ebd9..0000000 --- a/libs/ar/src/lib/create-at-surface/create-at-surface.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { CreateAtSurfaceComponent } from './create-at-surface.component'; - -describe('CreateAtSurfaceComponent', () => { - let component: CreateAtSurfaceComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - declarations: [CreateAtSurfaceComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(CreateAtSurfaceComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/libs/ar/src/lib/create-at-surface/create-at-surface.component.ts b/libs/ar/src/lib/create-at-surface/create-at-surface.component.ts deleted file mode 100644 index 3b78dff..0000000 --- a/libs/ar/src/lib/create-at-surface/create-at-surface.component.ts +++ /dev/null @@ -1,174 +0,0 @@ -import { Component, ElementRef, OnInit, ViewChild, Input, NgZone } from '@angular/core'; -import { Color, Scene, WebGLRenderer } from 'three'; -import { ARUtils, ARPerspectiveCamera, ARView } from 'three.ar.js'; -import { VRControls } from '@nx-examples/ar/src/lib/VRControls'; -import { ArService } from '@nx-examples/ar/src/lib/ar.service'; - -@Component({ - selector: 'app-create-at-surface', - templateUrl: './create-at-surface.component.html', - styleUrls: ['./create-at-surface.component.scss'] -}) -export class CreateAtSurfaceComponent implements OnInit { - @Input() boxSize = 0.2; - - @ViewChild('canvas') private canvasRef: ElementRef; - private get canvas(): HTMLCanvasElement { - return this.canvasRef.nativeElement; - } - - colors = [ - new Color(0xffffff), - new Color(0xffff00), - new Color(0xff00ff), - new Color(0xff0000), - new Color(0x00ffff), - new Color(0x00ff00), - new Color(0x0000ff), - new Color(0x000000) - ]; - - vrDisplay; - vrControls; - arView; - - scene = new Scene(); - camera; - renderer; - arDebug; - cube; - - boxGeometry; - - constructor(private zone: NgZone, private arService: ArService) {} - - ngOnInit() { - /** - * Use the `getARDisplay()` utility to leverage the WebVR API - * to see if there are any AR-capable WebVR VRDisplays. Returns - * a valid display if found. Otherwise, display the unsupported - * browser message. - */ - ARUtils.getARDisplay().then(this.arDisplayCallback.bind(this)); - } - - arDisplayCallback(display) { - if (display) { - this.vrDisplay = display; - this.setUp(); - } else { - ARUtils.displayUnsupportedMessage(); - } - } - - setUp() { - // Setup the js rendering environment - this.renderer = new WebGLRenderer({ alpha: true, canvas: this.canvas }); - this.renderer.setPixelRatio(window.devicePixelRatio); - this.renderer.setSize(window.innerWidth, window.innerHeight); - this.renderer.autoClear = false; - - // Creates an ARView with a VRDisplay and a WebGLRenderer. - // Handles the pass through camera differences between ARCore and ARKit platforms, - // and renders the camera behind your scene. - this.arView = new ARView(this.vrDisplay, this.renderer); - - // The ARPerspectiveCamera is very similar to PerspectiveCamera, - // except when using an AR-capable browser, the camera uses - // the projection matrix provided from the device, so that the - // perspective camera's depth planes and field of view matches - // the physical camera on the device. - // Only the projectionMatrix is updated if using an AR-capable device, and the fov, aspect, near, far properties are not applicable. - this.camera = new ARPerspectiveCamera( - this.vrDisplay, - 60, - window.innerWidth / window.innerHeight, - this.vrDisplay.depthNear, - this.vrDisplay.depthFar - ); - - // VRControls is a utility from js that applies the device's - // orientation/position to the perspective camera, keeping our - // real world and virtual world in sync. - this.vrControls = new VRControls(this.camera, this.onError); - - // TODO: move to service with create box method - // this.boxGeometry = new BoxGeometry(this.boxSize, this.boxSize, this.boxSize); - // var faceIndices = ['a', 'b', 'c']; - // for (var i = 0; i < this.boxGeometry.faces.length; i++) { - // var f = this.boxGeometry.faces[i]; - // for (var j = 0; j < 3; j++) { - // var vertexIndex = f[faceIndices[j]]; - // f.vertexColors[j] = this.colors[vertexIndex]; - // } - // } - - // Shift the cube geometry vertices upwards, so that the "pivot" of - // the cube is at it's base. When the cube is added to the scene, - // this will help make it appear to be sitting on top of the real- - // world surface. - // this.boxGeometry.translate(0, this.boxSize / 2, 0); - // const material = new MeshBasicMaterial({ vertexColors: VertexColors }); - // this.cube = new Mesh(this.boxGeometry, material); - // this.cube.position.set(10000, 10000, 10000); - let cube = this.arService.createCube({}); - this.scene.add(cube); - this.zone.runOutsideAngular(this.update.bind(this)); - } - - // TODO: move to a service - update() { - // Clears color from the frame before rendering the camera (arView) or scene. - this.renderer.clearColor(); - // Render the device's camera stream on screen first of all. - // It allows to get the right pose synchronized with the right frame. - // Usually called on every frame in a render loop before rendering other objects in the scene. - this.arView.render(); - // Update our camera projection matrix in the event that - // the near or far planes have updated - this.camera.updateProjectionMatrix(); - // Update our perspective camera's positioning - this.vrControls.update(); - // Render our js virtual scene - this.renderer.clearDepth(); - this.renderer.render(this.scene, this.camera); - // Kick off the requestAnimationFrame to call this function - // when a new VRDisplay frame is rendered - - this.vrDisplay.requestAnimationFrame(this.update.bind(this)); - } - - onClick(e) { - // Inspect the event object and generate normalize screen coordinates - // (between 0 and 1) for the screen position. - var x = e.touches[0].pageX / window.innerWidth; - var y = e.touches[0].pageY / window.innerHeight; - - var hits = this.vrDisplay.hitTest(x, y); - - // If a hit is found, just use the first one - if (hits && hits.length) { - var hit = hits[0]; - - // Use the `placeObjectAtHit` utility to position - // the cube where the hit occurred - ARUtils.placeObjectAtHit( - this.cube, // The object to place - hit, // The VRHit object to move the cube to - 1, // Easing value from 0 to 1; we want to move - // the cube directly to the hit position - true - ); - } - } - - onWindowResize() { - this.camera.aspect = window.innerWidth / window.innerHeight; - this.camera.updateProjectionMatrix(); - this.renderer.setSize(window.innerWidth, window.innerHeight); - } - - onError(e) { - console.warn('VRControls error ', e); - } -} diff --git a/libs/ar/src/lib/js/EnableThreeExamples.js b/libs/ar/src/lib/js/EnableThreeExamples.js deleted file mode 100644 index 6c66a72..0000000 --- a/libs/ar/src/lib/js/EnableThreeExamples.js +++ /dev/null @@ -1 +0,0 @@ -THREE=require('three'); diff --git a/libs/ar/src/lib/model-loader/model-loader.component.html b/libs/ar/src/lib/model-loader/model-loader.component.html deleted file mode 100644 index d039396..0000000 --- a/libs/ar/src/lib/model-loader/model-loader.component.html +++ /dev/null @@ -1,2 +0,0 @@ -Model Loader - diff --git a/libs/ar/src/lib/model-loader/model-loader.component.scss b/libs/ar/src/lib/model-loader/model-loader.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/libs/ar/src/lib/model-loader/model-loader.component.spec.ts b/libs/ar/src/lib/model-loader/model-loader.component.spec.ts deleted file mode 100644 index 43d18f6..0000000 --- a/libs/ar/src/lib/model-loader/model-loader.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { ModelLoaderComponent } from './model-loader.component'; - -describe('ModelLoaderComponent', () => { - let component: ModelLoaderComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - declarations: [ModelLoaderComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(ModelLoaderComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/libs/ar/src/lib/model-loader/model-loader.component.ts b/libs/ar/src/lib/model-loader/model-loader.component.ts deleted file mode 100644 index c68b8da..0000000 --- a/libs/ar/src/lib/model-loader/model-loader.component.ts +++ /dev/null @@ -1,225 +0,0 @@ -import { Component, OnInit, ViewChild, ElementRef, NgZone } from '@angular/core'; -import * as THREE from 'three'; -import '../js/EnableThreeExamples'; -import 'three/examples/js/loaders/OBJLoader'; -import 'three/examples/js/loaders/MTLLoader'; -import { ARUtils, ARPerspectiveCamera, ARView } from 'three.ar.js'; -import { VRControls } from '../VRControls'; -// Get these as input -const OBJ_PATH = 'assets/obj/nrwl/Narwhal.obj'; -const MTL_PATH = 'assets/obj/nrwl/Narwhal.mtl'; -const SCALE = 0.1; -@Component({ - selector: 'app-model-loader', - templateUrl: './model-loader.component.html', - styleUrls: ['./model-loader.component.scss'] -}) -export class ModelLoaderComponent implements OnInit { - @ViewChild('canvas') private canvasRef: ElementRef; - private get canvas(): HTMLCanvasElement { - return this.canvasRef.nativeElement; - } - - scene = new THREE.Scene(); - camera; - renderer; - - vrDisplay; - vrControls; - arView; - - model; - // Make a large plane to receive our shadows - shadowMesh; - planeGeometry = new THREE.PlaneGeometry(2000, 2000); - - light = new THREE.AmbientLight(); - directionalLight = new THREE.DirectionalLight(); - - // raycaster = new Raycaster(); - - constructor(private zone: NgZone) {} - - ngOnInit() { - /** - * Use the `getARDisplay()` utility to leverage the WebVR API - * to see if there are any AR-capable WebVR VRDisplays. Returns - * a valid display if found. Otherwise, display the unsupported - * browser message. - */ - ARUtils.getARDisplay().then(this.arCallback.bind(this)); - } - - arCallback(display) { - if (display) { - this.vrDisplay = display; - this.zone.runOutsideAngular(this.setUp.bind(this)); - } else { - ARUtils.displayUnsupportedMessage(); - } - } - - setUp() { - // Setup the three.js rendering environment - this.renderer = new THREE.WebGLRenderer({ alpha: true, canvas: this.canvas }); - this.renderer.setPixelRatio(window.devicePixelRatio); - this.renderer.setSize(window.innerWidth, window.innerHeight); //this.canvas.width, this.canvas.height); - this.renderer.autoClear = false; - - // Creates an ARView with a VRDisplay and a THREE.WebGLRenderer. - // Handles the pass through camera differences between ARCore and ARKit platforms, - // and renders the camera behind your scene. - this.arView = new ARView(this.vrDisplay, this.renderer); - - // The ARPerspectiveCamera is very similar to THREE.PerspectiveCamera, - // except when using an AR-capable browser, the camera uses - // the projection matrix provided from the device, so that the - // perspective camera's depth planes and field of view matches - // the physical camera on the device. - // Only the projectionMatrix is updated if using an AR-capable device, and the fov, aspect, near, far properties are not applicable. - this.camera = new ARPerspectiveCamera( - this.vrDisplay, - 60, - window.innerWidth / window.innerHeight, - this.vrDisplay.depthNear, - this.vrDisplay.depthFar - ); - - // VRControls is a utility from three.js that applies the device's - // orientation/position to the perspective camera, keeping our - // real world and virtual world in sync. - this.vrControls = new VRControls(this.camera, this.onError); - - // For shadows to work - this.renderer.shadowMap.enabled = true; - this.renderer.shadowMap.type = THREE.PCFSoftShadowMap; - - this.directionalLight.intensity = 0.3; - this.directionalLight.position.set(10, 15, 10); - // We want this light to cast shadow - this.directionalLight.castShadow = true; - - this.scene.add(this.light); - this.scene.add(this.directionalLight); - - // Rotate our plane to be parallel to the floor - this.planeGeometry.rotateX(-Math.PI / 2); - - // Create a mesh with a shadow material, resulting in a mesh - // that only renders shadows once we flip the `receiveShadow` property - const clr = new THREE.Color(0x111111); - this.shadowMesh = new THREE.Mesh( - this.planeGeometry, - new THREE.ShadowMaterial({ - opacity: 0.15 - }) - ); - this.shadowMesh.receiveShadow = true; - this.scene.add(this.shadowMesh); - - ARUtils.loadModel({ - objPath: OBJ_PATH, - mtlPath: MTL_PATH, - OBJLoader: THREE.OBJLoader, //undefined, //THREE.OBJLoader, - MTLLoader: THREE.MTLLoader //undefined//THREE.MTLLoader //by default - }).then(this.loadModelCb.bind(this)); - - this.update(); - } - - loadModelCb(group) { - this.model = group; - // As OBJ models may contain a group with several meshes, - // we want all of them to cast shadow - this.model.children.forEach(function(mesh) { - mesh.castShadow = true; - }); - this.model.scale.set(SCALE, SCALE, SCALE); - // Place the model very far to initialize - this.model.position.set(10000, 10000, 10000); - console.log('Adding model ', this.model); - this.scene.add(this.model); - } - - update() { - // if(this.model){ - // this.model.rotation.x += 0.1; - // this.model.rotation.y += 0.1; - // } - // Clears color from the frame before rendering the camera (arView) or scene. - this.renderer.clearColor(); - // Render the device's camera stream on screen first of all. - // It allows to get the right pose synchronized with the right frame. - // Usually called on every frame in a render loop before rendering other objects in the scene. - this.arView.render(); - // Update our camera projection matrix in the event that - // the near or far planes have updated - this.camera.updateProjectionMatrix(); - // Update our perspective camera's positioning - this.vrControls.update(); - // Render our three.js virtual scene - this.renderer.clearDepth(); - this.renderer.render(this.scene, this.camera); - - // Kick off the requestAnimationFrame to call this function - // when a new VRDisplay frame is rendered - this.vrDisplay.requestAnimationFrame(this.update.bind(this)); - } - - onClick(e) { - // Inspect the event object and generate normalize screen coordinates - // (between 0 and 1) for the screen position. - var x = e.changedTouches[0].clientX / window.innerWidth; - var y = e.changedTouches[0].clientY / window.innerHeight; - - // Send a ray from the point of click to the real world surface - // and attempt to find a hit. `hitTest` returns an array of potential - // hits. - var hits = this.vrDisplay.hitTest(x, y); - if (!this.model) { - console.warn('Model not yet loaded'); - return; - } - // If a hit is found, just use the first one - if (hits && hits.length) { - var hit = hits[0]; - // Turn the model matrix from the VRHit into a - // THREE.Matrix4 so we can extract the position - // elements out so we can position the shadow mesh - // to be directly under our model. This is a complicated - // way to go about it to illustrate the process, and could - // be done by manually extracting the "Y" value from the - // hit matrix via `hit.modelMatrix[13]` - const matrix = new THREE.Matrix4(); - const position = new THREE.Vector3(); - matrix.fromArray(hit.modelMatrix); - position.setFromMatrixPosition(matrix); - // Set our shadow mesh to be at the same Y value - // as our hit where we're placing our model - // @TODO use the rotation from hit.modelMatrix - this.shadowMesh.position.y = position.y; - // Use the `placeObjectAtHit` utility to position - // the cube where the hit occurred - console.log('model at hit ', this.model); - ARUtils.placeObjectAtHit( - this.model, // The object to place - hit, // The VRHit object to move the cube to - 1, // Easing value from 0 to 1; we want to move - // the cube directly to the hit position - true - ); // Whether or not we also apply orientation - // Rotate the model to be facing the user - const angle = Math.atan2( - this.camera.position.x - this.model.position.x, - this.camera.position.z - this.model.position.z - ); - this.model.rotation.set(0, angle, 0); - } - } - - onWindowResize(e) {} - - onError() { - console.log('VRControls error'); - } -} diff --git a/libs/ar/src/lib/typings.d.ts b/libs/ar/src/lib/typings.d.ts deleted file mode 100644 index e45d65f..0000000 --- a/libs/ar/src/lib/typings.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare var OBJLoader: any; -declare var MTLLoader: any; -declare var VRControls: any; diff --git a/libs/ar/src/test.ts b/libs/ar/src/test.ts deleted file mode 100644 index be4725e..0000000 --- a/libs/ar/src/test.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'core-js/es7/reflect'; -import 'zone.js/dist/zone'; -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/libs/ar/tsconfig.lib.json b/libs/ar/tsconfig.lib.json deleted file mode 100644 index bb7e682..0000000 --- a/libs/ar/tsconfig.lib.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../out-tsc/libs/ar", - "target": "es2015", - "module": "es2015", - "moduleResolution": "node", - "declaration": true, - "sourceMap": true, - "inlineSources": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "importHelpers": true, - "types": [], - "lib": [ - "dom", - "es2015" - ] - }, - "angularCompilerOptions": { - "annotateForClosureCompiler": true, - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, - "flatModuleId": "AUTOGENERATED", - "flatModuleOutFile": "AUTOGENERATED" - }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] -} diff --git a/libs/ar/tsconfig.spec.json b/libs/ar/tsconfig.spec.json deleted file mode 100644 index b1dfcb2..0000000 --- a/libs/ar/tsconfig.spec.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/libs/ar", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "src/test.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/libs/ar/tslint.json b/libs/ar/tslint.json deleted file mode 100644 index 19e8161..0000000 --- a/libs/ar/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ] - } -} diff --git a/libs/login/karma.conf.js b/libs/login/karma.conf.js deleted file mode 100644 index 3df4d0c..0000000 --- a/libs/login/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function(config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-phantomjs-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../../coverage'), - reports: ['html', 'lcovonly'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false - }); -}; diff --git a/libs/login/src/index.ts b/libs/login/src/index.ts deleted file mode 100644 index d46494a..0000000 --- a/libs/login/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LoginModule } from './lib/login.module'; diff --git a/libs/login/src/lib/login.module.spec.ts b/libs/login/src/lib/login.module.spec.ts deleted file mode 100644 index 6901400..0000000 --- a/libs/login/src/lib/login.module.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { LoginModule } from './login.module'; - -describe('LoginModule', () => { - it('should work', () => { - expect(new LoginModule()).toBeDefined(); - }); -}); diff --git a/libs/login/src/lib/login.module.ts b/libs/login/src/lib/login.module.ts deleted file mode 100644 index 478bf91..0000000 --- a/libs/login/src/lib/login.module.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; - -@NgModule({ - imports: [CommonModule] -}) -export class LoginModule {} diff --git a/libs/login/src/test.ts b/libs/login/src/test.ts deleted file mode 100644 index be4725e..0000000 --- a/libs/login/src/test.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'core-js/es7/reflect'; -import 'zone.js/dist/zone'; -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/libs/login/tsconfig.lib.json b/libs/login/tsconfig.lib.json deleted file mode 100644 index d453975..0000000 --- a/libs/login/tsconfig.lib.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../out-tsc/libs/login", - "target": "es2015", - "module": "es2015", - "moduleResolution": "node", - "declaration": true, - "sourceMap": true, - "inlineSources": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "importHelpers": true, - "types": [], - "lib": [ - "dom", - "es2015" - ] - }, - "angularCompilerOptions": { - "annotateForClosureCompiler": true, - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, - "flatModuleId": "AUTOGENERATED", - "flatModuleOutFile": "AUTOGENERATED" - }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] -} diff --git a/libs/login/tsconfig.spec.json b/libs/login/tsconfig.spec.json deleted file mode 100644 index cee64b4..0000000 --- a/libs/login/tsconfig.spec.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/libs/login", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "src/test.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/libs/login/tslint.json b/libs/login/tslint.json deleted file mode 100644 index 19e8161..0000000 --- a/libs/login/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ] - } -} diff --git a/libs/model/karma.conf.js b/libs/model/karma.conf.js deleted file mode 100644 index 3df4d0c..0000000 --- a/libs/model/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function(config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-phantomjs-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../../coverage'), - reports: ['html', 'lcovonly'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false - }); -}; diff --git a/libs/model/src/index.ts b/libs/model/src/index.ts deleted file mode 100644 index 1800c35..0000000 --- a/libs/model/src/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { ModelModule } from './lib/model.module'; -export { appReducer } from './lib/+state/app.reducer'; -export { appInitialState } from './lib/+state/app.init'; diff --git a/libs/model/src/lib/+state/app.actions.ts b/libs/model/src/lib/+state/app.actions.ts deleted file mode 100644 index edc9c36..0000000 --- a/libs/model/src/lib/+state/app.actions.ts +++ /dev/null @@ -1,11 +0,0 @@ -export interface LoadData { - type: 'LOAD_DATA'; - payload: {}; -} - -export interface DataLoaded { - type: 'DATA_LOADED'; - payload: {}; -} - -export type AppAction = LoadData | DataLoaded; diff --git a/libs/model/src/lib/+state/app.effects.spec.ts b/libs/model/src/lib/+state/app.effects.spec.ts deleted file mode 100644 index 7f64d33..0000000 --- a/libs/model/src/lib/+state/app.effects.spec.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { TestBed } from '@angular/core/testing'; -import { StoreModule } from '@ngrx/store'; -import { provideMockActions } from '@ngrx/effects/testing'; -import { DataPersistence } from '@nrwl/nx'; -import { readAll, hot } from '@nrwl/nx/testing'; -import { AppEffects } from './app.effects'; - -describe('AppEffects', () => { - let actions; - let effects: AppEffects; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [StoreModule.forRoot({})], - providers: [AppEffects, DataPersistence, provideMockActions(() => actions)] - }); - - effects = TestBed.get(AppEffects); - }); - - describe('someEffect', () => { - it('should work', async () => { - actions = hot('-a-|', { a: { type: 'LOAD_DATA' } }); - expect(await readAll(effects.loadData)).toEqual([{ type: 'DATA_LOADED', payload: {} }]); - }); - }); -}); diff --git a/libs/model/src/lib/+state/app.effects.ts b/libs/model/src/lib/+state/app.effects.ts deleted file mode 100644 index 0c05100..0000000 --- a/libs/model/src/lib/+state/app.effects.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Effect, Actions } from '@ngrx/effects'; -import { DataPersistence } from '@nrwl/nx'; - -import { AppState } from './app.interfaces'; -import { LoadData } from './app.actions'; - -@Injectable() -export class AppEffects { - @Effect() - loadData = this.d.fetch('LOAD_DATA', { - run: (a: LoadData, state: AppState) => { - return { - type: 'DATA_LOADED', - payload: {} - }; - }, - - onError: (a: LoadData, error) => { - console.error('Error', error); - } - }); - - constructor(private actions: Actions, private d: DataPersistence) {} -} diff --git a/libs/model/src/lib/+state/app.init.ts b/libs/model/src/lib/+state/app.init.ts deleted file mode 100644 index 5c64652..0000000 --- a/libs/model/src/lib/+state/app.init.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { App } from './app.interfaces'; - -export const appInitialState: App = { - // fill it initial state here -}; diff --git a/libs/model/src/lib/+state/app.interfaces.ts b/libs/model/src/lib/+state/app.interfaces.ts deleted file mode 100644 index d9f537a..0000000 --- a/libs/model/src/lib/+state/app.interfaces.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface App { - // define state here -} - -export interface AppState { - readonly app: App; -} diff --git a/libs/model/src/lib/+state/app.reducer.spec.ts b/libs/model/src/lib/+state/app.reducer.spec.ts deleted file mode 100644 index c2d79b0..0000000 --- a/libs/model/src/lib/+state/app.reducer.spec.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { appReducer } from './app.reducer'; -import { appInitialState } from './app.init'; -import { App } from './app.interfaces'; -import { DataLoaded } from './app.actions'; - -describe('appReducer', () => { - it('should work', () => { - const state: App = {}; - const action: DataLoaded = { type: 'DATA_LOADED', payload: {} }; - const actual = appReducer(state, action); - expect(actual).toEqual({}); - }); -}); diff --git a/libs/model/src/lib/+state/app.reducer.ts b/libs/model/src/lib/+state/app.reducer.ts deleted file mode 100644 index 1b11e4b..0000000 --- a/libs/model/src/lib/+state/app.reducer.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { App } from './app.interfaces'; -import { AppAction } from './app.actions'; - -export function appReducer(state: App, action: AppAction): App { - switch (action.type) { - case 'DATA_LOADED': { - return { ...state, ...action.payload }; - } - default: { - return state; - } - } -} diff --git a/libs/model/src/lib/model.module.spec.ts b/libs/model/src/lib/model.module.spec.ts deleted file mode 100644 index c108f47..0000000 --- a/libs/model/src/lib/model.module.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ModelModule } from './model.module'; - -describe('ModelModule', () => { - it('should work', () => { - expect(new ModelModule()).toBeDefined(); - }); -}); diff --git a/libs/model/src/lib/model.module.ts b/libs/model/src/lib/model.module.ts deleted file mode 100644 index 6df07e5..0000000 --- a/libs/model/src/lib/model.module.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { StoreModule } from '@ngrx/store'; -import { EffectsModule } from '@ngrx/effects'; -import { appReducer } from './+state/app.reducer'; -import { appInitialState } from './+state/app.init'; -import { AppEffects } from './+state/app.effects'; - -@NgModule({ - imports: [ - CommonModule, - StoreModule.forFeature('app', appReducer, { initialState: appInitialState }), - EffectsModule.forFeature([AppEffects]) - ], - providers: [AppEffects] -}) -export class ModelModule {} diff --git a/libs/model/src/test.ts b/libs/model/src/test.ts deleted file mode 100644 index be4725e..0000000 --- a/libs/model/src/test.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'core-js/es7/reflect'; -import 'zone.js/dist/zone'; -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/libs/model/tsconfig.lib.json b/libs/model/tsconfig.lib.json deleted file mode 100644 index f0cdd22..0000000 --- a/libs/model/tsconfig.lib.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../out-tsc/libs/model", - "target": "es2015", - "module": "es2015", - "moduleResolution": "node", - "declaration": true, - "sourceMap": true, - "inlineSources": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "importHelpers": true, - "types": [], - "lib": [ - "dom", - "es2015" - ] - }, - "angularCompilerOptions": { - "annotateForClosureCompiler": true, - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, - "flatModuleId": "AUTOGENERATED", - "flatModuleOutFile": "AUTOGENERATED" - }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] -} diff --git a/libs/model/tsconfig.spec.json b/libs/model/tsconfig.spec.json deleted file mode 100644 index 0acb467..0000000 --- a/libs/model/tsconfig.spec.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/libs/model", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "src/test.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/libs/model/tslint.json b/libs/model/tslint.json deleted file mode 100644 index 19e8161..0000000 --- a/libs/model/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ] - } -} diff --git a/libs/nx-d3/karma.conf.js b/libs/nx-d3/karma.conf.js deleted file mode 100644 index 3df4d0c..0000000 --- a/libs/nx-d3/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function(config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-phantomjs-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../../coverage'), - reports: ['html', 'lcovonly'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false - }); -}; diff --git a/libs/nx-d3/src/index.ts b/libs/nx-d3/src/index.ts deleted file mode 100644 index c86c87b..0000000 --- a/libs/nx-d3/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { NxD3Module } from './lib/nx-d3.module'; diff --git a/libs/nx-d3/src/lib/bar/bar.component.html b/libs/nx-d3/src/lib/bar/bar.component.html deleted file mode 100644 index 82ace3f..0000000 --- a/libs/nx-d3/src/lib/bar/bar.component.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/libs/nx-d3/src/lib/bar/bar.component.scss b/libs/nx-d3/src/lib/bar/bar.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/libs/nx-d3/src/lib/bar/bar.component.spec.ts b/libs/nx-d3/src/lib/bar/bar.component.spec.ts deleted file mode 100644 index 52606c1..0000000 --- a/libs/nx-d3/src/lib/bar/bar.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { BarComponent } from './bar.component'; - -describe('BarComponent', () => { - let component: BarComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - declarations: [BarComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(BarComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/libs/nx-d3/src/lib/bar/bar.component.ts b/libs/nx-d3/src/lib/bar/bar.component.ts deleted file mode 100644 index ff6c5f6..0000000 --- a/libs/nx-d3/src/lib/bar/bar.component.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { Component, ElementRef, Input, OnChanges, OnInit, ViewChild } from '@angular/core'; - -import { max } from 'd3-array'; -import { axisBottom, axisLeft } from 'd3-axis'; -import { scaleBand, scaleLinear } from 'd3-scale'; -import { select } from 'd3-selection'; - -@Component({ - selector: 'nx-bar', - templateUrl: './bar.component.html', - styleUrls: ['./bar.component.scss'] -}) -export class BarComponent implements OnInit, OnChanges { - @Input() - options: any = { - margin: { top: 20, right: 50, bottom: 30, left: 50 }, - x: scaleBand().padding(0.1), - y: scaleLinear(), - xAccessor: d => d.id, - yAccessor: d => d.duration, - size: [] - }; - @Input() data = []; - - @ViewChild('svg') private svgEl: ElementRef; - - svg; - xAxis; - yAxis; - width; - height; - private size; - - ngOnChanges(changes) { - if (changes.data.currentValue !== changes.data.previousValue) { - if (changes.data.previousValue) { - this.onResize(); - this.render(); - } - } - } - - ngOnInit() { - this.setUp(); - this.render(); - } - - setUp() { - this.svg = select(this.svgEl.nativeElement).attr('id', 'chart_svg'); - - this.xAxis = this.svg.append('g').attr('class', 'axis axis--x'); - - this.yAxis = this.svg - .append('g') - .attr('class', 'axis axis--y') - .attr('transform', `translate(${this.options.margin.left}, 0)`); - - this.onResize(); - } - - onResize(e?) { - //TODO: Get the parent container size and subtract margins to calculate width/scale. Check for input size - this.size = [this.el.nativeElement.offsetWidth, this.el.nativeElement.offsetHeight]; - this.width = this.size[0] - (this.options.margin.left + this.options.margin.right); - this.height = this.width / 3 - (this.options.margin.top + this.options.margin.bottom); - this.svg - .attr('width', this.width) - .attr('height', this.height) - .attr('transform', 'translate(' + this.options.margin.left + ',' + this.options.margin.top + ')'); - - this.options.x.range([this.options.margin.left, this.width - this.options.margin.right]); - let yRange = this.height - (this.options.margin.top + this.options.margin.bottom); - this.options.y.range([yRange, 0]); - - this.xAxis.attr('transform', `translate(0, ${this.height - this.options.margin.bottom})`); - } - - render() { - //TODO: calculate domain from max(this.data, this.options.yAccessor) - this.options.y.domain([0, 5565]); - this.options.x.domain(this.data.map(d => this.options.xAccessor(d))); - - this.xAxis.call(axisBottom(this.options.x)); - - //TODO: add tickFormat - this.yAxis.call(axisLeft(this.options.y).tickFormat(d => d)); - - let bars = this.svg.selectAll('rect').data(this.data); - - bars.exit().remove(); - - let enter = bars - .enter() - .append('rect') - .attr('class', 'bar') - .attr('fill', '#6cb8ff') - .attr('stroke', 'white'); - - //TODO: add onmouseover - bars = enter - .merge(bars) - .attr('x', d => this.options.x(this.options.xAccessor(d))) - .attr('y', d => this.options.y(this.options.yAccessor(d))) - .attr('width', () => this.options.x.bandwidth()) - .attr('height', d => this.height - this.options.margin.bottom - this.options.y(d.duration)); - } - - constructor(private el: ElementRef) {} -} diff --git a/libs/nx-d3/src/lib/nx-d3.module.spec.ts b/libs/nx-d3/src/lib/nx-d3.module.spec.ts deleted file mode 100644 index ba63369..0000000 --- a/libs/nx-d3/src/lib/nx-d3.module.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { NxD3Module } from './nx-d3.module'; - -describe('NxD3Module', () => { - it('should work', () => { - expect(new NxD3Module()).toBeDefined(); - }); -}); diff --git a/libs/nx-d3/src/lib/nx-d3.module.ts b/libs/nx-d3/src/lib/nx-d3.module.ts deleted file mode 100644 index 54da1de..0000000 --- a/libs/nx-d3/src/lib/nx-d3.module.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { BarComponent } from './bar/bar.component'; - -@NgModule({ - imports: [CommonModule], - declarations: [BarComponent], - exports: [BarComponent] -}) -export class NxD3Module {} diff --git a/libs/nx-d3/src/test.ts b/libs/nx-d3/src/test.ts deleted file mode 100644 index be4725e..0000000 --- a/libs/nx-d3/src/test.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'core-js/es7/reflect'; -import 'zone.js/dist/zone'; -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/libs/nx-d3/tsconfig.lib.json b/libs/nx-d3/tsconfig.lib.json deleted file mode 100644 index b609466..0000000 --- a/libs/nx-d3/tsconfig.lib.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../out-tsc/libs/nx-d3", - "target": "es2015", - "module": "es2015", - "moduleResolution": "node", - "declaration": true, - "sourceMap": true, - "inlineSources": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "importHelpers": true, - "types": [], - "lib": [ - "dom", - "es2015" - ] - }, - "angularCompilerOptions": { - "annotateForClosureCompiler": true, - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, - "flatModuleId": "AUTOGENERATED", - "flatModuleOutFile": "AUTOGENERATED" - }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] -} diff --git a/libs/nx-d3/tsconfig.spec.json b/libs/nx-d3/tsconfig.spec.json deleted file mode 100644 index b63b3de..0000000 --- a/libs/nx-d3/tsconfig.spec.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/libs/nx-d3", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "src/test.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/libs/nx-d3/tslint.json b/libs/nx-d3/tslint.json deleted file mode 100644 index 19e8161..0000000 --- a/libs/nx-d3/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ] - } -} diff --git a/libs/school-ui/karma.conf.js b/libs/school-ui/karma.conf.js deleted file mode 100644 index 3df4d0c..0000000 --- a/libs/school-ui/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function(config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-phantomjs-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../../coverage'), - reports: ['html', 'lcovonly'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false - }); -}; diff --git a/libs/school-ui/src/index.ts b/libs/school-ui/src/index.ts deleted file mode 100644 index f54bda4..0000000 --- a/libs/school-ui/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { SchoolUiModule, schoolUiRoutes } from './lib/school-ui.module'; diff --git a/libs/school-ui/src/lib/exams/exams.component.html b/libs/school-ui/src/lib/exams/exams.component.html deleted file mode 100644 index 3801c76..0000000 --- a/libs/school-ui/src/lib/exams/exams.component.html +++ /dev/null @@ -1,4 +0,0 @@ -

- Exams -

- diff --git a/libs/school-ui/src/lib/exams/exams.component.scss b/libs/school-ui/src/lib/exams/exams.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/libs/school-ui/src/lib/exams/exams.component.spec.ts b/libs/school-ui/src/lib/exams/exams.component.spec.ts deleted file mode 100644 index eadbf22..0000000 --- a/libs/school-ui/src/lib/exams/exams.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { ExamsComponent } from './exams.component'; - -describe('ExamsComponent', () => { - let component: ExamsComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - declarations: [ExamsComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(ExamsComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/libs/school-ui/src/lib/exams/exams.component.ts b/libs/school-ui/src/lib/exams/exams.component.ts deleted file mode 100644 index 8b37f58..0000000 --- a/libs/school-ui/src/lib/exams/exams.component.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'app-exams', - templateUrl: './exams.component.html', - styleUrls: ['./exams.component.scss'] -}) -export class ExamsComponent implements OnInit { - constructor() {} - - ngOnInit() {} -} diff --git a/libs/school-ui/src/lib/lessons/lessons.component.html b/libs/school-ui/src/lib/lessons/lessons.component.html deleted file mode 100644 index 3b13af4..0000000 --- a/libs/school-ui/src/lib/lessons/lessons.component.html +++ /dev/null @@ -1,4 +0,0 @@ -

- lessons works! -

- diff --git a/libs/school-ui/src/lib/lessons/lessons.component.scss b/libs/school-ui/src/lib/lessons/lessons.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/libs/school-ui/src/lib/lessons/lessons.component.spec.ts b/libs/school-ui/src/lib/lessons/lessons.component.spec.ts deleted file mode 100644 index a6dc66d..0000000 --- a/libs/school-ui/src/lib/lessons/lessons.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { LessonsComponent } from './lessons.component'; - -describe('LessonsComponent', () => { - let component: LessonsComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - declarations: [LessonsComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(LessonsComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/libs/school-ui/src/lib/lessons/lessons.component.ts b/libs/school-ui/src/lib/lessons/lessons.component.ts deleted file mode 100644 index d1a2f2f..0000000 --- a/libs/school-ui/src/lib/lessons/lessons.component.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'app-lessons', - templateUrl: './lessons.component.html', - styleUrls: ['./lessons.component.scss'] -}) -export class LessonsComponent implements OnInit { - constructor() {} - - ngOnInit() {} -} diff --git a/libs/school-ui/src/lib/quiz/quiz.component.html b/libs/school-ui/src/lib/quiz/quiz.component.html deleted file mode 100644 index af8a63e..0000000 --- a/libs/school-ui/src/lib/quiz/quiz.component.html +++ /dev/null @@ -1,3 +0,0 @@ -

- quiz {{name}} -

diff --git a/libs/school-ui/src/lib/quiz/quiz.component.scss b/libs/school-ui/src/lib/quiz/quiz.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/libs/school-ui/src/lib/quiz/quiz.component.spec.ts b/libs/school-ui/src/lib/quiz/quiz.component.spec.ts deleted file mode 100644 index 2fd896e..0000000 --- a/libs/school-ui/src/lib/quiz/quiz.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { QuizComponent } from './quiz.component'; - -describe('QuizComponent', () => { - let component: QuizComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - declarations: [QuizComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(QuizComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/libs/school-ui/src/lib/quiz/quiz.component.ts b/libs/school-ui/src/lib/quiz/quiz.component.ts deleted file mode 100644 index 1476621..0000000 --- a/libs/school-ui/src/lib/quiz/quiz.component.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Component, OnInit, Input } from '@angular/core'; - -@Component({ - selector: 'app-quiz', - templateUrl: './quiz.component.html', - styleUrls: ['./quiz.component.scss'] -}) -export class QuizComponent implements OnInit { - @Input() name = 'Test 1'; - @Input() - questions = [ - { - name: 'Q1', - q: 'What is your name', - options: ['Victor', 'Jeff', 'Justin', 'Aysegul', 'Tor', 'Dan'] - } - ]; - - constructor() {} - - ngOnInit() {} -} diff --git a/libs/school-ui/src/lib/school-ui.module.spec.ts b/libs/school-ui/src/lib/school-ui.module.spec.ts deleted file mode 100644 index 2a1db49..0000000 --- a/libs/school-ui/src/lib/school-ui.module.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SchoolUiModule } from './school-ui.module'; - -describe('SchoolUiModule', () => { - it('should work', () => { - expect(new SchoolUiModule()).toBeDefined(); - }); -}); diff --git a/libs/school-ui/src/lib/school-ui.module.ts b/libs/school-ui/src/lib/school-ui.module.ts deleted file mode 100644 index 31e92c6..0000000 --- a/libs/school-ui/src/lib/school-ui.module.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { RouterModule, Route } from '@angular/router'; -import { LessonsComponent } from './lessons/lessons.component'; -import { QuizComponent } from './quiz/quiz.component'; -import { ExamsComponent } from './exams/exams.component'; -import { SchoolComponent } from './school/school.component'; -import { StudentsComponent } from './students/students.component'; - -export const schoolUiRoutes: Route[] = [ - { - path: '', - component: SchoolComponent, - children: [ - { path: 'lessons', component: LessonsComponent }, - { path: 'exams', component: ExamsComponent }, - { path: 'quiz', component: QuizComponent }, - { path: 'students', component: StudentsComponent } - ] - } -]; - -@NgModule({ - imports: [CommonModule, RouterModule], - declarations: [LessonsComponent, QuizComponent, ExamsComponent, SchoolComponent, StudentsComponent] -}) -export class SchoolUiModule {} diff --git a/libs/school-ui/src/lib/school/school.component.html b/libs/school-ui/src/lib/school/school.component.html deleted file mode 100644 index aacaecd..0000000 --- a/libs/school-ui/src/lib/school/school.component.html +++ /dev/null @@ -1,5 +0,0 @@ -Lessons -Exams -Quiz -Students - diff --git a/libs/school-ui/src/lib/school/school.component.scss b/libs/school-ui/src/lib/school/school.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/libs/school-ui/src/lib/school/school.component.spec.ts b/libs/school-ui/src/lib/school/school.component.spec.ts deleted file mode 100644 index 1405667..0000000 --- a/libs/school-ui/src/lib/school/school.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { SchoolComponent } from './school.component'; - -describe('SchoolComponent', () => { - let component: SchoolComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - declarations: [SchoolComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(SchoolComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/libs/school-ui/src/lib/school/school.component.ts b/libs/school-ui/src/lib/school/school.component.ts deleted file mode 100644 index c3cd502..0000000 --- a/libs/school-ui/src/lib/school/school.component.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'school', - templateUrl: './school.component.html', - styleUrls: ['./school.component.scss'] -}) -export class SchoolComponent implements OnInit { - constructor() {} - - ngOnInit() {} -} diff --git a/libs/school-ui/src/lib/students/students.component.html b/libs/school-ui/src/lib/students/students.component.html deleted file mode 100644 index ca271fd..0000000 --- a/libs/school-ui/src/lib/students/students.component.html +++ /dev/null @@ -1,3 +0,0 @@ -

- students works! -

diff --git a/libs/school-ui/src/lib/students/students.component.scss b/libs/school-ui/src/lib/students/students.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/libs/school-ui/src/lib/students/students.component.spec.ts b/libs/school-ui/src/lib/students/students.component.spec.ts deleted file mode 100644 index 2061f38..0000000 --- a/libs/school-ui/src/lib/students/students.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { StudentsComponent } from './students.component'; - -describe('StudentsComponent', () => { - let component: StudentsComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - declarations: [StudentsComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(StudentsComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/libs/school-ui/src/lib/students/students.component.ts b/libs/school-ui/src/lib/students/students.component.ts deleted file mode 100644 index 2f990de..0000000 --- a/libs/school-ui/src/lib/students/students.component.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'students', - templateUrl: './students.component.html', - styleUrls: ['./students.component.scss'] -}) -export class StudentsComponent implements OnInit { - constructor() {} - - ngOnInit() {} -} diff --git a/libs/school-ui/src/test.ts b/libs/school-ui/src/test.ts deleted file mode 100644 index be4725e..0000000 --- a/libs/school-ui/src/test.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'core-js/es7/reflect'; -import 'zone.js/dist/zone'; -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/libs/school-ui/tsconfig.lib.json b/libs/school-ui/tsconfig.lib.json deleted file mode 100644 index d072457..0000000 --- a/libs/school-ui/tsconfig.lib.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../out-tsc/libs/school-ui", - "target": "es2015", - "module": "es2015", - "moduleResolution": "node", - "declaration": true, - "sourceMap": true, - "inlineSources": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "importHelpers": true, - "types": [], - "lib": [ - "dom", - "es2015" - ] - }, - "angularCompilerOptions": { - "annotateForClosureCompiler": true, - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, - "flatModuleId": "AUTOGENERATED", - "flatModuleOutFile": "AUTOGENERATED" - }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] -} diff --git a/libs/school-ui/tsconfig.spec.json b/libs/school-ui/tsconfig.spec.json deleted file mode 100644 index 0928c7f..0000000 --- a/libs/school-ui/tsconfig.spec.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/libs/school-ui", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "src/test.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/libs/school-ui/tslint.json b/libs/school-ui/tslint.json deleted file mode 100644 index 19e8161..0000000 --- a/libs/school-ui/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ] - } -} diff --git a/libs/shared-components/karma.conf.js b/libs/shared-components/karma.conf.js deleted file mode 100644 index 3df4d0c..0000000 --- a/libs/shared-components/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function(config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-phantomjs-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../../coverage'), - reports: ['html', 'lcovonly'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false - }); -}; diff --git a/libs/shared-components/src/index.ts b/libs/shared-components/src/index.ts deleted file mode 100644 index 5208fd5..0000000 --- a/libs/shared-components/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { SharedComponentsModule } from './lib/shared-components.module'; diff --git a/libs/shared-components/src/lib/header/header.component.html b/libs/shared-components/src/lib/header/header.component.html deleted file mode 100644 index 4d11e3b..0000000 --- a/libs/shared-components/src/lib/header/header.component.html +++ /dev/null @@ -1,17 +0,0 @@ - - - First Row - - - - - - diff --git a/libs/shared-components/src/lib/header/header.component.scss b/libs/shared-components/src/lib/header/header.component.scss deleted file mode 100644 index e69de29..0000000 diff --git a/libs/shared-components/src/lib/header/header.component.spec.ts b/libs/shared-components/src/lib/header/header.component.spec.ts deleted file mode 100644 index 21d002a..0000000 --- a/libs/shared-components/src/lib/header/header.component.spec.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { async, ComponentFixture, TestBed } from '@angular/core/testing'; - -import { HeaderComponent } from './header.component'; - -describe('HeaderComponent', () => { - let component: HeaderComponent; - let fixture: ComponentFixture; - - beforeEach( - async(() => { - TestBed.configureTestingModule({ - declarations: [HeaderComponent] - }).compileComponents(); - }) - ); - - beforeEach(() => { - fixture = TestBed.createComponent(HeaderComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/libs/shared-components/src/lib/header/header.component.ts b/libs/shared-components/src/lib/header/header.component.ts deleted file mode 100644 index d549619..0000000 --- a/libs/shared-components/src/lib/header/header.component.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Component, OnInit, Input } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -@Component({ - selector: 'nx-header', - templateUrl: './header.component.html', - styleUrls: ['./header.component.scss'] -}) -export class HeaderComponent implements OnInit { - @Input() links = []; - - constructor() {} - - ngOnInit() {} -} diff --git a/libs/shared-components/src/lib/shared-components.module.spec.ts b/libs/shared-components/src/lib/shared-components.module.spec.ts deleted file mode 100644 index 4ea5f8c..0000000 --- a/libs/shared-components/src/lib/shared-components.module.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SharedComponentsModule } from './shared-components.module'; - -describe('SharedComponentsModule', () => { - it('should work', () => { - expect(new SharedComponentsModule()).toBeDefined(); - }); -}); diff --git a/libs/shared-components/src/lib/shared-components.module.ts b/libs/shared-components/src/lib/shared-components.module.ts deleted file mode 100644 index b1f44b2..0000000 --- a/libs/shared-components/src/lib/shared-components.module.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { NoopAnimationsModule } from '@angular/platform-browser/animations'; -import { RouterModule } from '@angular/router'; -import { MatButtonModule, MatCheckboxModule, MatToolbarModule, MatTabsModule } from '@angular/material'; - -import { HeaderComponent } from './header/header.component'; - -@NgModule({ - imports: [ - CommonModule, - RouterModule, - MatButtonModule, - MatCheckboxModule, - MatToolbarModule, - MatTabsModule, - NoopAnimationsModule - ], - declarations: [HeaderComponent], - exports: [HeaderComponent, MatButtonModule, MatCheckboxModule, MatToolbarModule, MatTabsModule, NoopAnimationsModule] -}) -export class SharedComponentsModule {} diff --git a/libs/shared-components/src/test.ts b/libs/shared-components/src/test.ts deleted file mode 100644 index be4725e..0000000 --- a/libs/shared-components/src/test.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'core-js/es7/reflect'; -import 'zone.js/dist/zone'; -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/libs/shared-components/tsconfig.lib.json b/libs/shared-components/tsconfig.lib.json deleted file mode 100644 index 75ac85e..0000000 --- a/libs/shared-components/tsconfig.lib.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../out-tsc/libs/shared-components", - "target": "es2015", - "module": "es2015", - "moduleResolution": "node", - "declaration": true, - "sourceMap": true, - "inlineSources": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "importHelpers": true, - "types": [], - "lib": [ - "dom", - "es2015" - ] - }, - "angularCompilerOptions": { - "annotateForClosureCompiler": true, - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, - "flatModuleId": "AUTOGENERATED", - "flatModuleOutFile": "AUTOGENERATED" - }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] -} diff --git a/libs/shared-components/tsconfig.spec.json b/libs/shared-components/tsconfig.spec.json deleted file mode 100644 index 90e9aff..0000000 --- a/libs/shared-components/tsconfig.spec.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/libs/shared-components", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "src/test.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/libs/shared-components/tslint.json b/libs/shared-components/tslint.json deleted file mode 100644 index 19e8161..0000000 --- a/libs/shared-components/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ] - } -} diff --git a/libs/slides/karma.conf.js b/libs/slides/karma.conf.js deleted file mode 100644 index 3df4d0c..0000000 --- a/libs/slides/karma.conf.js +++ /dev/null @@ -1,32 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -module.exports = function(config) { - config.set({ - basePath: '', - frameworks: ['jasmine', '@angular-devkit/build-angular'], - plugins: [ - require('karma-jasmine'), - require('karma-chrome-launcher'), - require('karma-phantomjs-launcher'), - require('karma-jasmine-html-reporter'), - require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') - ], - client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser - }, - coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../../coverage'), - reports: ['html', 'lcovonly'], - fixWebpackSourcePaths: true - }, - reporters: ['progress', 'kjhtml'], - port: 9876, - colors: true, - logLevel: config.LOG_INFO, - autoWatch: true, - browsers: ['Chrome'], - singleRun: false - }); -}; diff --git a/libs/slides/src/index.ts b/libs/slides/src/index.ts deleted file mode 100644 index 5de74e4..0000000 --- a/libs/slides/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { SlidesModule } from './lib/slides.module'; diff --git a/libs/slides/src/lib/+state/slides.actions.ts b/libs/slides/src/lib/+state/slides.actions.ts deleted file mode 100644 index 2243fc0..0000000 --- a/libs/slides/src/lib/+state/slides.actions.ts +++ /dev/null @@ -1,11 +0,0 @@ -export interface LoadData { - type: 'LOAD_DATA'; - payload: {}; -} - -export interface DataLoaded { - type: 'DATA_LOADED'; - payload: {}; -} - -export type SlidesAction = LoadData | DataLoaded; diff --git a/libs/slides/src/lib/+state/slides.effects.spec.ts b/libs/slides/src/lib/+state/slides.effects.spec.ts deleted file mode 100644 index afb0180..0000000 --- a/libs/slides/src/lib/+state/slides.effects.spec.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { TestBed } from '@angular/core/testing'; -import { StoreModule } from '@ngrx/store'; -import { provideMockActions } from '@ngrx/effects/testing'; -import { DataPersistence } from '@nrwl/nx'; -import { readAll, hot } from '@nrwl/nx/testing'; -import { SlidesEffects } from './slides.effects'; - -describe('SlidesEffects', () => { - let actions; - let effects: SlidesEffects; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [StoreModule.forRoot({})], - providers: [SlidesEffects, DataPersistence, provideMockActions(() => actions)] - }); - - effects = TestBed.get(SlidesEffects); - }); - - describe('someEffect', () => { - it('should work', async () => { - actions = hot('-a-|', { a: { type: 'LOAD_DATA' } }); - expect(await readAll(effects.loadData)).toEqual([{ type: 'DATA_LOADED', payload: {} }]); - }); - }); -}); diff --git a/libs/slides/src/lib/+state/slides.effects.ts b/libs/slides/src/lib/+state/slides.effects.ts deleted file mode 100644 index 0258367..0000000 --- a/libs/slides/src/lib/+state/slides.effects.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Effect, Actions } from '@ngrx/effects'; -import { DataPersistence } from '@nrwl/nx'; - -import { SlidesState } from './slides.interfaces'; -import { LoadData } from './slides.actions'; - -@Injectable() -export class SlidesEffects { - @Effect() - loadData = this.d.fetch('LOAD_DATA', { - run: (a: LoadData, state: SlidesState) => { - return { - type: 'DATA_LOADED', - payload: {} - }; - }, - - onError: (a: LoadData, error) => { - console.error('Error', error); - } - }); - - constructor(private actions: Actions, private d: DataPersistence) {} -} diff --git a/libs/slides/src/lib/+state/slides.init.ts b/libs/slides/src/lib/+state/slides.init.ts deleted file mode 100644 index 685397a..0000000 --- a/libs/slides/src/lib/+state/slides.init.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Slides } from './slides.interfaces'; - -export const slidesInitialState: Slides = { - // fill it initial state here -}; diff --git a/libs/slides/src/lib/+state/slides.interfaces.ts b/libs/slides/src/lib/+state/slides.interfaces.ts deleted file mode 100644 index 99d7ab9..0000000 --- a/libs/slides/src/lib/+state/slides.interfaces.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface Slides { - // define state here -} - -export interface SlidesState { - readonly slides: Slides; -} diff --git a/libs/slides/src/lib/+state/slides.reducer.spec.ts b/libs/slides/src/lib/+state/slides.reducer.spec.ts deleted file mode 100644 index ab40c21..0000000 --- a/libs/slides/src/lib/+state/slides.reducer.spec.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { slidesReducer } from './slides.reducer'; -import { slidesInitialState } from './slides.init'; -import { Slides } from './slides.interfaces'; -import { DataLoaded } from './slides.actions'; - -describe('slidesReducer', () => { - it('should work', () => { - const state: Slides = {}; - const action: DataLoaded = { type: 'DATA_LOADED', payload: {} }; - const actual = slidesReducer(state, action); - expect(actual).toEqual({}); - }); -}); diff --git a/libs/slides/src/lib/+state/slides.reducer.ts b/libs/slides/src/lib/+state/slides.reducer.ts deleted file mode 100644 index 6acb7bb..0000000 --- a/libs/slides/src/lib/+state/slides.reducer.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Slides } from './slides.interfaces'; -import { SlidesAction } from './slides.actions'; - -export function slidesReducer(state: Slides, action: SlidesAction): Slides { - switch (action.type) { - case 'DATA_LOADED': { - return { ...state, ...action.payload }; - } - default: { - return state; - } - } -} diff --git a/libs/slides/src/lib/slides.module.spec.ts b/libs/slides/src/lib/slides.module.spec.ts deleted file mode 100644 index d30a08e..0000000 --- a/libs/slides/src/lib/slides.module.spec.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SlidesModule } from './slides.module'; - -describe('SlidesModule', () => { - it('should work', () => { - expect(new SlidesModule()).toBeDefined(); - }); -}); diff --git a/libs/slides/src/lib/slides.module.ts b/libs/slides/src/lib/slides.module.ts deleted file mode 100644 index 1c1e13c..0000000 --- a/libs/slides/src/lib/slides.module.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { RouterModule } from '@angular/router'; -import { StoreModule } from '@ngrx/store'; -import { EffectsModule } from '@ngrx/effects'; -import { slidesReducer } from './+state/slides.reducer'; -import { slidesInitialState } from './+state/slides.init'; -import { SlidesEffects } from './+state/slides.effects'; - -@NgModule({ - imports: [ - CommonModule, - RouterModule.forChild([ - /* {path: '', pathMatch: 'full', component: InsertYourComponentHere} */ - ]), - StoreModule.forFeature('slides', slidesReducer, { initialState: slidesInitialState }), - EffectsModule.forFeature([SlidesEffects]) - ], - providers: [SlidesEffects] -}) -export class SlidesModule {} diff --git a/libs/slides/src/test.ts b/libs/slides/src/test.ts deleted file mode 100644 index be4725e..0000000 --- a/libs/slides/src/test.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'core-js/es7/reflect'; -import 'zone.js/dist/zone'; -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/libs/slides/tsconfig.lib.json b/libs/slides/tsconfig.lib.json deleted file mode 100644 index 6ef9999..0000000 --- a/libs/slides/tsconfig.lib.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../out-tsc/libs/slides", - "target": "es2015", - "module": "es2015", - "moduleResolution": "node", - "declaration": true, - "sourceMap": true, - "inlineSources": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "importHelpers": true, - "types": [], - "lib": [ - "dom", - "es2015" - ] - }, - "angularCompilerOptions": { - "annotateForClosureCompiler": true, - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, - "flatModuleId": "AUTOGENERATED", - "flatModuleOutFile": "AUTOGENERATED" - }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] -} diff --git a/libs/slides/tsconfig.spec.json b/libs/slides/tsconfig.spec.json deleted file mode 100644 index de92886..0000000 --- a/libs/slides/tsconfig.spec.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "../../dist/out-tsc/libs/slides", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "src/test.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/libs/slides/tslint.json b/libs/slides/tslint.json deleted file mode 100644 index 19e8161..0000000 --- a/libs/slides/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "app", - "camelCase" - ], - "component-selector": [ - true, - "element", - "app", - "kebab-case" - ] - } -} diff --git a/libs/teach/app1/karma.conf.js b/libs/teach/app1/karma.conf.js deleted file mode 100644 index 2788479..0000000 --- a/libs/teach/app1/karma.conf.js +++ /dev/null @@ -1,16 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -const { join } = require('path'); -const getBaseKarmaConfig = require('../../../karma.conf'); - -module.exports = function(config) { - const baseConfig = getBaseKarmaConfig(); - config.set({ - ...baseConfig, - coverageIstanbulReporter: { - ...baseConfig.coverageIstanbulReporter, - dir: join(__dirname, '../../../coverage/libs/teach/app1') - } - }); -}; diff --git a/libs/teach/app1/ng-package.json b/libs/teach/app1/ng-package.json deleted file mode 100644 index 66ca229..0000000 --- a/libs/teach/app1/ng-package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../../dist/libs/teach/app1", - "deleteDestPath": false, - "lib": { - "entryFile": "src/index.ts" - } -} diff --git a/libs/teach/app1/ng-package.prod.json b/libs/teach/app1/ng-package.prod.json deleted file mode 100644 index 96850ad..0000000 --- a/libs/teach/app1/ng-package.prod.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../../dist/libs/teach/app1", - "lib": { - "entryFile": "src/index.ts" - } -} diff --git a/libs/teach/app1/package.json b/libs/teach/app1/package.json deleted file mode 100644 index c4e536f..0000000 --- a/libs/teach/app1/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "teach-app1", - "version": "0.0.1", - "peerDependencies": { - "@angular/common": "^6.0.0-rc.0 || ^6.0.0", - "@angular/core": "^6.0.0-rc.0 || ^6.0.0" - } -} \ No newline at end of file diff --git a/libs/teach/app1/src/index.ts b/libs/teach/app1/src/index.ts deleted file mode 100644 index e8fe145..0000000 --- a/libs/teach/app1/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './lib/teach-app1.module'; diff --git a/libs/teach/app1/src/lib/app1-shell/app1-shell.component.ts b/libs/teach/app1/src/lib/app1-shell/app1-shell.component.ts deleted file mode 100644 index 224b0b4..0000000 --- a/libs/teach/app1/src/lib/app1-shell/app1-shell.component.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'app1-shell', - template: ` - - App1 - - - You can have a whole app as app1 library - Content 2 - Content 3 - - `, - styles: [] -}) -export class App1ShellComponent implements OnInit { - constructor() {} - - ngOnInit() {} -} diff --git a/libs/teach/app1/src/lib/teach-app1.module.spec.ts b/libs/teach/app1/src/lib/teach-app1.module.spec.ts deleted file mode 100644 index 2aa1c3d..0000000 --- a/libs/teach/app1/src/lib/teach-app1.module.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { async, TestBed } from '@angular/core/testing'; -import { TeachApp1Module } from './teach-app1.module'; - -describe('TeachApp1Module', () => { - beforeEach( - async(() => { - TestBed.configureTestingModule({ - imports: [TeachApp1Module] - }).compileComponents(); - }) - ); - - it('should create', () => { - expect(TeachApp1Module).toBeDefined(); - }); -}); diff --git a/libs/teach/app1/src/lib/teach-app1.module.ts b/libs/teach/app1/src/lib/teach-app1.module.ts deleted file mode 100644 index 2bddcc2..0000000 --- a/libs/teach/app1/src/lib/teach-app1.module.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { RouterModule } from '@angular/router'; -import { App1ShellComponent } from './app1-shell/app1-shell.component'; -import { MatTabsModule, MatToolbarModule } from '@angular/material'; - -@NgModule({ - imports: [ - CommonModule, - MatTabsModule, - MatToolbarModule, - RouterModule.forChild([{ path: '', pathMatch: 'full', component: App1ShellComponent }]) - ], - declarations: [App1ShellComponent], - exports: [App1ShellComponent], - entryComponents: [App1ShellComponent] -}) -export class TeachApp1Module {} diff --git a/libs/teach/app1/src/test.ts b/libs/teach/app1/src/test.ts deleted file mode 100644 index be4725e..0000000 --- a/libs/teach/app1/src/test.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'core-js/es7/reflect'; -import 'zone.js/dist/zone'; -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/libs/teach/app1/tsconfig.lib.json b/libs/teach/app1/tsconfig.lib.json deleted file mode 100644 index b8ecf5b..0000000 --- a/libs/teach/app1/tsconfig.lib.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "outDir": "../../../dist/out-tsc/libs/teach/app1", - "target": "es2015", - "module": "es2015", - "moduleResolution": "node", - "declaration": true, - "sourceMap": true, - "inlineSources": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "importHelpers": true, - "types": [], - "lib": [ - "dom", - "es2015" - ] - }, - "angularCompilerOptions": { - "annotateForClosureCompiler": true, - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, - "flatModuleId": "AUTOGENERATED", - "flatModuleOutFile": "AUTOGENERATED" - }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts", - "karma.conf.ts" - ] -} diff --git a/libs/teach/app1/tsconfig.spec.json b/libs/teach/app1/tsconfig.spec.json deleted file mode 100644 index 9e1f9cb..0000000 --- a/libs/teach/app1/tsconfig.spec.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "outDir": "../../../dist/out-tsc/libs/teach/app1", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "src/test.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/libs/teach/app1/tslint.json b/libs/teach/app1/tslint.json deleted file mode 100644 index 28ae021..0000000 --- a/libs/teach/app1/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "nx-examples", - "camelCase" - ], - "component-selector": [ - true, - "element", - "nx-examples", - "kebab-case" - ] - } -} diff --git a/libs/teach/app2/karma.conf.js b/libs/teach/app2/karma.conf.js deleted file mode 100644 index 0f8e1ad..0000000 --- a/libs/teach/app2/karma.conf.js +++ /dev/null @@ -1,16 +0,0 @@ -// Karma configuration file, see link for more information -// https://karma-runner.github.io/1.0/config/configuration-file.html - -const { join } = require('path'); -const getBaseKarmaConfig = require('../../../karma.conf'); - -module.exports = function(config) { - const baseConfig = getBaseKarmaConfig(); - config.set({ - ...baseConfig, - coverageIstanbulReporter: { - ...baseConfig.coverageIstanbulReporter, - dir: join(__dirname, '../../../coverage/libs/teach/app2') - } - }); -}; diff --git a/libs/teach/app2/ng-package.json b/libs/teach/app2/ng-package.json deleted file mode 100644 index a95c4fb..0000000 --- a/libs/teach/app2/ng-package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../../dist/libs/teach/app2", - "deleteDestPath": false, - "lib": { - "entryFile": "src/index.ts" - } -} diff --git a/libs/teach/app2/ng-package.prod.json b/libs/teach/app2/ng-package.prod.json deleted file mode 100644 index af383d8..0000000 --- a/libs/teach/app2/ng-package.prod.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../../dist/libs/teach/app2", - "lib": { - "entryFile": "src/index.ts" - } -} diff --git a/libs/teach/app2/package.json b/libs/teach/app2/package.json deleted file mode 100644 index 9bc72ba..0000000 --- a/libs/teach/app2/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "teach-app2", - "version": "0.0.1", - "peerDependencies": { - "@angular/common": "^6.0.0-rc.0 || ^6.0.0", - "@angular/core": "^6.0.0-rc.0 || ^6.0.0" - } -} \ No newline at end of file diff --git a/libs/teach/app2/src/index.ts b/libs/teach/app2/src/index.ts deleted file mode 100644 index 7d1ccc3..0000000 --- a/libs/teach/app2/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './lib/teach-app2.module'; diff --git a/libs/teach/app2/src/lib/app2-shell/app2-shell.component.ts b/libs/teach/app2/src/lib/app2-shell/app2-shell.component.ts deleted file mode 100644 index c4414d9..0000000 --- a/libs/teach/app2/src/lib/app2-shell/app2-shell.component.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'nx-examples-app2-shell', - template: ` -

- app2 works! -

- `, - styles: [] -}) -export class App2ShellComponent implements OnInit { - constructor() {} - - ngOnInit() {} -} diff --git a/libs/teach/app2/src/lib/teach-app2.module.spec.ts b/libs/teach/app2/src/lib/teach-app2.module.spec.ts deleted file mode 100644 index 1e88dcf..0000000 --- a/libs/teach/app2/src/lib/teach-app2.module.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { async, TestBed } from '@angular/core/testing'; -import { TeachApp2Module } from './teach-app2.module'; - -describe('TeachApp2Module', () => { - beforeEach( - async(() => { - TestBed.configureTestingModule({ - imports: [TeachApp2Module] - }).compileComponents(); - }) - ); - - it('should create', () => { - expect(TeachApp2Module).toBeDefined(); - }); -}); diff --git a/libs/teach/app2/src/lib/teach-app2.module.ts b/libs/teach/app2/src/lib/teach-app2.module.ts deleted file mode 100644 index 0fec988..0000000 --- a/libs/teach/app2/src/lib/teach-app2.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { RouterModule } from '@angular/router'; -import { App2ShellComponent } from './app2-shell/app2-shell.component'; -@NgModule({ - imports: [CommonModule, RouterModule.forChild([{ path: '', pathMatch: 'full', component: App2ShellComponent }])], - declarations: [App2ShellComponent], - exports: [App2ShellComponent], - entryComponents: [App2ShellComponent] -}) -export class TeachApp2Module {} diff --git a/libs/teach/app2/src/test.ts b/libs/teach/app2/src/test.ts deleted file mode 100644 index be4725e..0000000 --- a/libs/teach/app2/src/test.ts +++ /dev/null @@ -1,16 +0,0 @@ -// This file is required by karma.conf.js and loads recursively all the .spec and framework files - -import 'core-js/es7/reflect'; -import 'zone.js/dist/zone'; -import 'zone.js/dist/zone-testing'; -import { getTestBed } from '@angular/core/testing'; -import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; - -declare const require: any; - -// First, initialize the Angular testing environment. -getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/libs/teach/app2/tsconfig.lib.json b/libs/teach/app2/tsconfig.lib.json deleted file mode 100644 index ad28fc4..0000000 --- a/libs/teach/app2/tsconfig.lib.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "outDir": "../../../dist/out-tsc/libs/teach/app2", - "target": "es2015", - "module": "es2015", - "moduleResolution": "node", - "declaration": true, - "sourceMap": true, - "inlineSources": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "importHelpers": true, - "types": [], - "lib": [ - "dom", - "es2015" - ] - }, - "angularCompilerOptions": { - "annotateForClosureCompiler": true, - "skipTemplateCodegen": true, - "strictMetadataEmit": true, - "fullTemplateTypeCheck": true, - "strictInjectionParameters": true, - "flatModuleId": "AUTOGENERATED", - "flatModuleOutFile": "AUTOGENERATED" - }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts", - "karma.conf.ts" - ] -} diff --git a/libs/teach/app2/tsconfig.spec.json b/libs/teach/app2/tsconfig.spec.json deleted file mode 100644 index 05b18c3..0000000 --- a/libs/teach/app2/tsconfig.spec.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "outDir": "../../../dist/out-tsc/libs/teach/app2", - "types": [ - "jasmine", - "node" - ] - }, - "files": [ - "src/test.ts" - ], - "include": [ - "**/*.spec.ts", - "**/*.d.ts" - ] -} diff --git a/libs/teach/app2/tslint.json b/libs/teach/app2/tslint.json deleted file mode 100644 index 28ae021..0000000 --- a/libs/teach/app2/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../../tslint.json", - "rules": { - "directive-selector": [ - true, - "attribute", - "nx-examples", - "camelCase" - ], - "component-selector": [ - true, - "element", - "nx-examples", - "kebab-case" - ] - } -} diff --git a/nx-examples/3rdpartylicenses.txt b/nx-examples/3rdpartylicenses.txt deleted file mode 100644 index 2f1f467..0000000 --- a/nx-examples/3rdpartylicenses.txt +++ /dev/null @@ -1,531 +0,0 @@ -core-js@2.5.3 -MIT -Copyright (c) 2014-2017 Denis Pushkarev - -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. - -cache-loader@1.2.2 -MIT -Copyright JS Foundation and other contributors - -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. - -@angular-devkit/build-optimizer@0.3.2 -MIT -The MIT License - -Copyright (c) 2017 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. - -webpack@3.11.0 -MIT -Copyright JS Foundation and other contributors - -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. - -zone.js@0.8.20 -MIT -The MIT License - -Copyright (c) 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. - -@angular/common@5.2.7 -MIT -MIT - -@angular/core@5.2.7 -MIT -MIT - -@angular/platform-browser@5.2.7 -MIT -MIT - -@angular/router@5.2.7 -MIT -MIT - -@ngrx/effects@5.1.0 -MIT -The MIT License (MIT) - -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -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. - -@ngrx/router-store@5.0.1 -MIT -The MIT License (MIT) - -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -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. - -@ngrx/store@5.1.0 -MIT -The MIT License (MIT) - -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -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. - -@nrwl/nx@0.9.0 -MIT -(The MIT License) - -Copyright (c) 2017 Narwhal Technologies - -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. - -d3-axis@1.0.8 -BSD-3-Clause -Copyright 2010-2016 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-array@1.2.1 -BSD-3-Clause -Copyright 2010-2016 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-collection@1.0.4 -BSD-3-Clause -Copyright 2010-2016, Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-scale@2.0.0 -BSD-3-Clause -Copyright 2010-2015 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-color@1.0.3 -BSD-3-Clause -Copyright 2010-2016 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-interpolate@1.1.6 -BSD-3-Clause -Copyright 2010-2016 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-format@1.2.2 -BSD-3-Clause -Copyright 2010-2015 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-time@1.0.8 -BSD-3-Clause -Copyright 2010-2016 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-time-format@2.1.1 -BSD-3-Clause -Copyright 2010-2017 Mike Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the author nor the names of contributors may be used to - endorse or promote products derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -d3-selection@1.3.0 -BSD-3-Clause -Copyright (c) 2010-2018, Michael Bostock -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* The name Michael Bostock may not be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -@angular/platform-browser-dynamic@5.2.7 -MIT -MIT \ No newline at end of file diff --git a/nx-examples/assets/nx-logo.png b/nx-examples/assets/nx-logo.png deleted file mode 100644 index bed0370..0000000 Binary files a/nx-examples/assets/nx-logo.png and /dev/null differ diff --git a/nx-examples/favicon.ico b/nx-examples/favicon.ico deleted file mode 100644 index 8081c7c..0000000 Binary files a/nx-examples/favicon.ico and /dev/null differ diff --git a/nx-examples/index.html b/nx-examples/index.html deleted file mode 100644 index ceefb66..0000000 --- a/nx-examples/index.html +++ /dev/null @@ -1 +0,0 @@ -Demo \ No newline at end of file diff --git a/nx-examples/inline.318b50c57b4eba3d437b.bundle.js b/nx-examples/inline.318b50c57b4eba3d437b.bundle.js deleted file mode 100644 index 1e8af07..0000000 --- a/nx-examples/inline.318b50c57b4eba3d437b.bundle.js +++ /dev/null @@ -1 +0,0 @@ -!function(r){var n=window.webpackJsonp;window.webpackJsonp=function(e,u,c){for(var f,i,p,a=0,l=[];a=2?function(n){return Object(u.a)(Object(r.a)(t,e),Object(i.a)(1),Object(o.a)(e))(n)}:function(e){return Object(u.a)(Object(r.a)(function(e,n,r){return t(e,n,r+1)}),Object(i.a)(1))(e)}};var r=n("E5SG"),i=n("T1Dh"),o=n("2ESx"),u=n("f9aG")},"/iUD":function(t,e,n){"use strict";e.a=function(t){return"function"==typeof t}},"/nXB":function(t,e,n){"use strict";e.a=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof a&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.Observable?t[0]:Object(u.a)(n)(new i.a(t,s))};var r=n("YaPU"),i=n("Veqx"),o=n("1Q68"),u=n("8D5t")},0:function(t,e,n){t.exports=n("DfsJ")},"0P3J":function(t,e,n){"use strict";e.a=function(){return function(t){return t.lift(new o(t))}};var r=n("TToO"),i=n("OVmG"),o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new u(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),u=function(t){function e(e,n){t.call(this,e),this.connectable=n}return Object(r.__extends)(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.a)},"1Bqh":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("TToO"),i=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return Object(r.__extends)(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n("VwZZ").a)},"1Q68":function(t,e,n){"use strict";e.a=function(t){return t&&"function"==typeof t.schedule}},"2ESx":function(t,e,n){"use strict";e.a=function(t){return void 0===t&&(t=null),function(e){return e.lift(new o(t))}};var r=n("TToO"),i=n("OVmG"),o=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.defaultValue))},t}(),u=function(t){function e(e,n){t.call(this,e),this.defaultValue=n,this.isEmpty=!0}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(i.a)},"319O":function(t,e,n){"use strict";e.a=function(){return Object(r.a)(1)};var r=n("8D5t")},"3a3m":function(t,e,n){"use strict";e.a=function(){return function(t){return Object(i.a)()(Object(r.a)(u)(t))}};var r=n("Jwyl"),i=n("0P3J"),o=n("g5jc");function u(){return new o.a}},"4zOZ":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("TToO"),i=n("g5jc"),o=n("x6VL"),u=function(t){function e(e){t.call(this),this._value=e}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},"5Agy":function(t,e,n){"use strict";e.a=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),Object(r.a)(t,e,n)(this)};var r=n("Qnch")},"6VmJ":function(t,e,n){"use strict";e.a=function(t,e){return Object(r.a)(t,e,1)};var r=n("Qnch")},"8AXl":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("dyjq"),i=n("/nXB"),o=n("MKMw"),u=n("VeP7"),s=n("gL+p"),a=n("WT6e"),c=n("YaPU"),l=n("l5y7"),f=n("MNFA"),h=n("5Agy"),p=n("I7Gx"),d=n("PlIH"),v=n("Uw6n"),y=n("g5jc");n.d(e,"Effect",function(){return _}),n.d(e,"getEffectsMetadata",function(){return C}),n.d(e,"mergeEffects",function(){return O}),n.d(e,"Actions",function(){return E}),n.d(e,"ofType",function(){return j}),n.d(e,"EffectsModule",function(){return D}),n.d(e,"EffectSources",function(){return I}),n.d(e,"ROOT_EFFECTS_INIT",function(){return R}),n.d(e,"\u0275c",function(){return P}),n.d(e,"\u0275a",function(){return V}),n.d(e,"\u0275b",function(){return k}),n.d(e,"\u0275f",function(){return N}),n.d(e,"\u0275e",function(){return M}),n.d(e,"\u0275d",function(){return A});var g,m=this&&this.__extends||(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),b="__@ngrx/effects__";function _(t){var e=(void 0===t?{dispatch:!0}:t).dispatch;return function(t,n){var r,i,o;r=[{propertyName:n,dispatch:e}],o=(i=t.constructor).hasOwnProperty(b)?i[b]:Object.defineProperty(i,b,{value:[]})[b],Array.prototype.push.apply(o,r)}}function w(t){return Object.getPrototypeOf(t)}var x=Object(r.compose)(function(t){return t.constructor[b]||[]},w);function C(t){var e={};return x(t).forEach(function(t){e[t.propertyName]={dispatch:t.dispatch}}),e}var S="ngrxOnRunEffects";function O(t){var e=w(t).constructor.name,n=x(t).map(function(n){var r=n.propertyName,i=n.dispatch,a="function"==typeof t[r]?t[r]():t[r];if(!1===i)return(function(){return Object(o.a)()(this)}).call(a);var c=(function(){return Object(u.a)()(this)}).call(a);return s.a.call(c,function(n){return{effect:t[r],notification:n,propertyName:r,sourceName:e,sourceInstance:t}})});return i.a.apply(void 0,n)}function T(t){var e=O(t);return function(t){var e=w(t);return S in e&&"function"==typeof e[S]}(t)?t.ngrxOnRunEffects(e):e}var E=function(t){function e(e){var n=t.call(this)||this;return e&&(n.source=e),n}return m(e,t),e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.ofType=function(){for(var t=[],e=0;ee?1:t>=e?0:NaN},w=(1===(m=_).length&&(b=m,m=function(t,e){return _(b(t),e)}),{left:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;m(t[i],e)<0?n=i+1:r=i}return n},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n>>1;m(t[i],e)>0?r=i:n=i+1}return n}}).right;Array;var x=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r0)return[t];if((r=e0)for(t=Math.ceil(t/u),e=Math.floor(e/u),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=C?10:o>=S?5:o>=O?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=C?10:o>=S?5:o>=O?2:1)}function j(){}function I(t,e){var n=new j;if(t instanceof j)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=q.exec(t))?J(parseInt(e[1],16)):(e=W.exec(t))?new rt(e[1],e[2],e[3],1):(e=G.exec(t))?new rt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Y.exec(t))?tt(e[1],e[2],e[3],e[4]):(e=Z.exec(t))?tt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Q.exec(t))?it(e[1],e[2]/100,e[3]/100,1):(e=K.exec(t))?it(e[1],e[2]/100,e[3]/100,e[4]):X.hasOwnProperty(t)?J(X[t]):"transparent"===t?new rt(NaN,NaN,NaN,0):null}function J(t){return new rt(t>>16&255,t>>8&255,255&t,1)}function tt(t,e,n,r){return r<=0&&(t=e=n=NaN),new rt(t,e,n,r)}function et(t){return t instanceof U||(t=$(t)),t?new rt((t=t.rgb()).r,t.g,t.b,t.opacity):new rt}function nt(t,e,n,r){return 1===arguments.length?et(t):new rt(t,e,n,null==r?1:r)}function rt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function it(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ut(t,e,n,r)}function ot(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof ut)return new ut(t.h,t.s,t.l,t.opacity);if(t instanceof U||(t=$(t)),!t)return new ut;if(t instanceof ut)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),u=NaN,s=o-i,a=(o+i)/2;return s?(u=e===o?(n-r)/s+6*(n0&&a<1?0:u,new ut(u,s,a,t.opacity)}(t):new ut(t,e,n,null==r?1:r)}function ut(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function st(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}V(U,$,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),V(rt,nt,F(U,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),V(ut,ot,F(U,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new ut(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new ut(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new rt(st(t>=240?t-240:t+120,i,r),st(t,i,r),st(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var at=Math.PI/180,ct=180/Math.PI,lt=.95047,ft=1,ht=1.08883,pt=4/29,dt=6/29,vt=3*dt*dt,yt=dt*dt*dt;function gt(t){if(t instanceof mt)return new mt(t.l,t.a,t.b,t.opacity);if(t instanceof St){var e=t.h*at;return new mt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof rt||(t=et(t));var n=xt(t.r),r=xt(t.g),i=xt(t.b),o=bt((.4124564*n+.3575761*r+.1804375*i)/lt),u=bt((.2126729*n+.7151522*r+.072175*i)/ft);return new mt(116*u-16,500*(o-u),200*(u-bt((.0193339*n+.119192*r+.9503041*i)/ht)),t.opacity)}function mt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function bt(t){return t>yt?Math.pow(t,1/3):t/vt+pt}function _t(t){return t>dt?t*t*t:vt*(t-pt)}function wt(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function xt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ct(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof St)return new St(t.h,t.c,t.l,t.opacity);t instanceof mt||(t=gt(t));var e=Math.atan2(t.b,t.a)*ct;return new St(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new St(t,e,n,null==r?1:r)}function St(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}V(mt,function(t,e,n,r){return 1===arguments.length?gt(t):new mt(t,e,n,null==r?1:r)},F(U,{brighter:function(t){return new mt(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new mt(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=ft*_t(t),new rt(wt(3.2404542*(e=lt*_t(e))-1.5371385*t-.4985314*(n=ht*_t(n))),wt(-.969266*e+1.8760108*t+.041556*n),wt(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),V(St,Ct,F(U,{brighter:function(t){return new St(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new St(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return gt(this).rgb()}}));var Ot=-.14861,Tt=1.78277,Et=-.29227,jt=-.90649,It=1.97294,At=It*jt,Mt=It*Tt,Nt=Tt*Et-jt*Ot;function Rt(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof kt)return new kt(t.h,t.s,t.l,t.opacity);t instanceof rt||(t=et(t));var e=t.g/255,n=t.b/255,r=(Nt*n+At*(t.r/255)-Mt*e)/(Nt+At-Mt),i=n-r,o=(It*(e-r)-Et*i)/jt,u=Math.sqrt(o*o+i*i)/(It*r*(1-r)),s=u?Math.atan2(o,i)*ct-120:NaN;return new kt(s<0?s+360:s,u,r,t.opacity)}(t):new kt(t,e,n,null==r?1:r)}function kt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Pt(t,e,n,r,i){var o=t*t,u=o*t;return((1-3*t+3*o-u)*e+(4-6*o+3*u)*n+(1+3*t+3*o-3*u)*r+u*i)/6}V(kt,Rt,F(U,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new kt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new kt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*at,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new rt(255*(e+n*(Ot*r+Tt*i)),255*(e+n*(Et*r+jt*i)),255*(e+n*(It*r)),this.opacity)}}));var Dt=function(t){return function(){return t}};function Vt(t,e){return function(n){return t+n*e}}function Ft(t,e){var n=e-t;return n?Vt(t,n>180||n<-180?n-360*Math.round(n/360):n):Dt(isNaN(t)?e:t)}function Ut(t,e){var n=e-t;return n?Vt(t,n):Dt(isNaN(t)?e:t)}var Lt=function t(e){var n=function(t){return 1==(t=+t)?Ut:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Dt(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=nt(t)).r,(e=nt(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),u=Ut(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=u(e),t+""}}return r.gamma=t,r}(1);function Ht(t){return function(e){var n,r,i=e.length,o=new Array(i),u=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1];return Pt((n-r/e)*e,r>0?t[r-1]:2*i-o,i,o,ro&&(i=e.slice(o,i),s[u]?s[u]+=i:s[++u]=i),(n=n[0])===(r=r[0])?s[u]?s[u]+=r:s[++u]=r:(s[++u]=null,a.push({i:u,x:Gt(n,r)})),o=Zt.lastIndex;return o180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Gt(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,u.rotate,s,a),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Gt(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,u.skewX,s,a),function(t,e,n,r,o,u){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");u.push({i:s-4,x:Gt(t,n)},{i:s-2,x:Gt(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,u.scaleX,u.scaleY,s,a),o=u=null,function(t){for(var e,n=-1,r=a.length;++n1?r[0]+r.slice(2):r,+t.slice(n+1)]},he=function(t){return(t=fe(Math.abs(t)))?t[1]:NaN},pe=function(t,e){var n=fe(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},de={"":function(t,e){t=t.toPrecision(e);t:for(var n,r=t.length,i=1,o=-1;i0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t},"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return pe(100*t,e)},r:pe,s:function(t,e){var n=fe(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(le=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+fe(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},ve=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function ye(t){return new ge(t)}function ge(t){if(!(e=ve.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",o=e[4]||"",u=!!e[5],s=e[6]&&+e[6],a=!!e[7],c=e[8]&&+e[8].slice(1),l=e[9]||"";"n"===l?(a=!0,l="g"):de[l]||(l=""),(u||"0"===n&&"="===r)&&(u=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=o,this.zero=u,this.width=s,this.comma=a,this.precision=c,this.type=l}ye.prototype=ge.prototype,ge.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var me,be,_e,we=function(t){return t},xe=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];me=function(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,o=[],u=0,s=e[0],a=0;i>0&&s>0&&(a+s+1>r&&(s=Math.max(1,r-a)),o.push(t.substring(i-=s,i+s)),!((a+=s+1)>r));)s=e[u=(u+1)%e.length];return o.reverse().join(n)}):we,i=t.currency,o=t.decimal,u=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):we,s=t.percent||"%";function a(t){var e=(t=ye(t)).fill,n=t.align,a=t.sign,c=t.symbol,l=t.zero,f=t.width,h=t.comma,p=t.precision,d=t.type,v="$"===c?i[0]:"#"===c&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",y="$"===c?i[1]:/[%p]/.test(d)?s:"",g=de[d],m=!d||/[defgprs%]/.test(d);function b(t){var i,s,c,b=v,_=y;if("c"===d)_=g(t)+_,t="";else{var w=(t=+t)<0;if(t=g(Math.abs(t),p),w&&0==+t&&(w=!1),b=(w?"("===a?a:"-":"-"===a||"("===a?"":a)+b,_=("s"===d?xe[8+le/3]:"")+_+(w&&"("===a?")":""),m)for(i=-1,s=t.length;++i(c=t.charCodeAt(i))||c>57){_=(46===c?o+t.slice(i+1):t.slice(i))+_,t=t.slice(0,i);break}}h&&!l&&(t=r(t,1/0));var x=b.length+t.length+_.length,C=x>1)+b+t+_+C.slice(x);break;default:t=C+b+t+_}return u(t)}return p=null==p?d?6:12:/[gprs]/.test(d)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),b.toString=function(){return t+""},b}return{format:a,formatPrefix:function(t,e){var n=a(((t=ye(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(he(e)/3))),i=Math.pow(10,-r),o=xe[8+r/3];return function(t){return n(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),be=me.format,_e=me.formatPrefix;var Ce=function(t,e,n){var r,i=t[0],o=t[t.length-1],u=function(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=C?i*=10:o>=S?i*=5:o>=O&&(i*=2),e0))return s;do{s.push(u=new Date(+n)),e(n,o),t(n)}while(u=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,r){return Se.setTime(+e),Oe.setTime(+r),t(Se),t(Oe),Math.floor(n(Se,Oe))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Ee=Te(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Ee.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Te(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):Ee:null};var je=6e4,Ie=6048e5,Ae=(Te(function(t){t.setTime(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(+t+1e3*e)},function(t,e){return(e-t)/1e3},function(t){return t.getUTCSeconds()}),Te(function(t){t.setTime(Math.floor(t/je)*je)},function(t,e){t.setTime(+t+e*je)},function(t,e){return(e-t)/je},function(t){return t.getMinutes()}),Te(function(t){var e=t.getTimezoneOffset()*je%36e5;e<0&&(e+=36e5),t.setTime(36e5*Math.floor((+t-e)/36e5)+e)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getHours()}),Te(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*je)/864e5},function(t){return t.getDate()-1}));function Me(t){return Te(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*je)/Ie})}var Ne=Me(0),Re=Me(1),ke=(Me(2),Me(3),Me(4)),Pe=(Me(5),Me(6),Te(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),Te(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));Pe.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Te(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var De=Pe,Ve=(Te(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*je)},function(t,e){return(e-t)/je},function(t){return t.getUTCMinutes()}),Te(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+36e5*e)},function(t,e){return(e-t)/36e5},function(t){return t.getUTCHours()}),Te(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1}));function Fe(t){return Te(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/Ie})}var Ue=Fe(0),Le=Fe(1),He=(Fe(2),Fe(3),Fe(4)),ze=(Fe(5),Fe(6),Te(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),Te(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));ze.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Te(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var Be=ze;function qe(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function We(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ge(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var Ye,Ze,Qe,Ke={"-":"",_:" ",0:"0"},Xe=/^\s*\d+/,$e=/^%/,Je=/[\\^$*+?|[\]().{}]/g;function tn(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function hn(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function pn(t,e,n){var r=Xe.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function dn(t,e,n){var r=Xe.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function vn(t,e,n){var r=Xe.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function yn(t,e,n){var r=Xe.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function gn(t,e,n){var r=Xe.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function mn(t,e,n){var r=Xe.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function bn(t,e,n){var r=Xe.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function _n(t,e,n){var r=Xe.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function wn(t,e,n){var r=$e.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function xn(t,e,n){var r=Xe.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Cn(t,e,n){var r=Xe.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function Sn(t,e){return tn(t.getDate(),e,2)}function On(t,e){return tn(t.getHours(),e,2)}function Tn(t,e){return tn(t.getHours()%12||12,e,2)}function En(t,e){return tn(1+Ae.count(De(t),t),e,3)}function jn(t,e){return tn(t.getMilliseconds(),e,3)}function In(t,e){return jn(t,e)+"000"}function An(t,e){return tn(t.getMonth()+1,e,2)}function Mn(t,e){return tn(t.getMinutes(),e,2)}function Nn(t,e){return tn(t.getSeconds(),e,2)}function Rn(t){var e=t.getDay();return 0===e?7:e}function kn(t,e){return tn(Ne.count(De(t),t),e,2)}function Pn(t,e){var n=t.getDay();return t=n>=4||0===n?ke(t):ke.ceil(t),tn(ke.count(De(t),t)+(4===De(t).getDay()),e,2)}function Dn(t){return t.getDay()}function Vn(t,e){return tn(Re.count(De(t),t),e,2)}function Fn(t,e){return tn(t.getFullYear()%100,e,2)}function Un(t,e){return tn(t.getFullYear()%1e4,e,4)}function Ln(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+tn(e/60|0,"0",2)+tn(e%60,"0",2)}function Hn(t,e){return tn(t.getUTCDate(),e,2)}function zn(t,e){return tn(t.getUTCHours(),e,2)}function Bn(t,e){return tn(t.getUTCHours()%12||12,e,2)}function qn(t,e){return tn(1+Ve.count(Be(t),t),e,3)}function Wn(t,e){return tn(t.getUTCMilliseconds(),e,3)}function Gn(t,e){return Wn(t,e)+"000"}function Yn(t,e){return tn(t.getUTCMonth()+1,e,2)}function Zn(t,e){return tn(t.getUTCMinutes(),e,2)}function Qn(t,e){return tn(t.getUTCSeconds(),e,2)}function Kn(t){var e=t.getUTCDay();return 0===e?7:e}function Xn(t,e){return tn(Ue.count(Be(t),t),e,2)}function $n(t,e){var n=t.getUTCDay();return t=n>=4||0===n?He(t):He.ceil(t),tn(He.count(Be(t),t)+(4===Be(t).getUTCDay()),e,2)}function Jn(t){return t.getUTCDay()}function tr(t,e){return tn(Le.count(Be(t),t),e,2)}function er(t,e){return tn(t.getUTCFullYear()%100,e,2)}function nr(t,e){return tn(t.getUTCFullYear()%1e4,e,4)}function rr(){return"+0000"}function ir(){return"%"}function or(t){return+t}function ur(t){return Math.floor(+t/1e3)}!function(t){Ye=function(e){var n=t.dateTime,r=t.date,i=t.time,o=t.periods,u=t.days,s=t.shortDays,a=t.months,c=t.shortMonths,l=nn(o),f=rn(o),h=nn(u),p=rn(u),d=nn(s),v=rn(s),y=nn(a),g=rn(a),m=nn(c),b=rn(c),_={a:function(t){return s[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:Sn,e:Sn,f:In,H:On,I:Tn,j:En,L:jn,m:An,M:Mn,p:function(t){return o[+(t.getHours()>=12)]},Q:or,s:ur,S:Nn,u:Rn,U:kn,V:Pn,w:Dn,W:Vn,x:null,X:null,y:Fn,Y:Un,Z:Ln,"%":ir},w={a:function(t){return s[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Hn,e:Hn,f:Gn,H:zn,I:Bn,j:qn,L:Wn,m:Yn,M:Zn,p:function(t){return o[+(t.getUTCHours()>=12)]},Q:or,s:ur,S:Qn,u:Kn,U:Xn,V:$n,w:Jn,W:tr,x:null,X:null,y:er,Y:nr,Z:rr,"%":ir},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=v[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,e,r){return O(t,n,e,r)},d:dn,e:dn,f:_n,H:yn,I:yn,j:vn,L:bn,m:pn,M:gn,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=f[r[0].toLowerCase()],n+r[0].length):-1},Q:xn,s:Cn,S:mn,u:un,U:sn,V:an,w:on,W:cn,x:function(t,e,n){return O(t,r,e,n)},X:function(t,e,n){return O(t,i,e,n)},y:fn,Y:ln,Z:hn,"%":wn};function C(t,e){return function(n){var r,i,o,u=[],s=-1,a=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=We(Ge(o.y))).getUTCDay())>4||0===i?Le.ceil(r):Le(r),r=Ve.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=e(Ge(o.y))).getDay())>4||0===i?Re.ceil(r):Re(r),r=Ae.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?We(Ge(o.y)).getUTCDay():e(Ge(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,We(o)):e(o)}}function O(t,e,n,r){for(var i,o,u=0,s=e.length,a=n.length;u=a)return-1;if(37===(i=e.charCodeAt(u++))){if(i=e.charAt(u++),!(o=x[i in Ke?e.charAt(u++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=C(r,_),_.X=C(i,_),_.c=C(n,_),w.x=C(r,w),w.X=C(i,w),w.c=C(n,w),{format:function(t){var e=C(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",qe);return e.toString=function(){return t},e},utcFormat:function(t){var e=C(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t,We);return e.toString=function(){return t},e}}}(),Ze=Ye.utcFormat,Qe=Ye.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Date.prototype.toISOString||Ze("%Y-%m-%dT%H:%M:%S.%LZ"),+new Date("2000-01-01T00:00:00.000Z")||Qe("%Y-%m-%dT%H:%M:%S.%LZ");var sr="http://www.w3.org/1999/xhtml",ar={svg:"http://www.w3.org/2000/svg",xhtml:sr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},cr=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ar.hasOwnProperty(e)?{space:ar[e],local:t}:t},lr=function(t){var e=cr(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===sr&&e.documentElement.namespaceURI===sr?e.createElement(t):e.createElementNS(n,t)}})(e)};function fr(){}var hr=function(t){return null==t?fr:function(){return this.querySelector(t)}};function pr(){return[]}var dr=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var vr=document.documentElement;if(!vr.matches){var yr=vr.webkitMatchesSelector||vr.msMatchesSelector||vr.mozMatchesSelector||vr.oMatchesSelector;dr=function(t){return function(){return yr.call(this,t)}}}}var gr=dr,mr=function(t){return new Array(t.length)};function br(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}br.prototype={constructor:br,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var _r="$";function wr(t,e,n,r,i,o){for(var u,s=0,a=e.length,c=o.length;se?1:t>=e?0:NaN}var Sr=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Or(t){return t.trim().split(/^|\s+/)}function Tr(t){return t.classList||new Er(t)}function Er(t){this._node=t,this._names=Or(t.getAttribute("class")||"")}function jr(t,e){for(var n=Tr(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Fr={},Ur=null;function Lr(t,e,n){return t=Hr(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Hr(t,e,n){return function(r){var i=Ur;Ur=r;try{t.call(this,this.__data__,e,n)}finally{Ur=i}}}function zr(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=w&&(w=_+1);!(b=g[w])&&++w=0;)(r=i[o])&&(u&&u!==r.nextSibling&&u.parentNode.insertBefore(r,u),u=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Cr);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):function(t,e){return t.style.getPropertyValue(e)||Sr(t).getComputedStyle(t,null).getPropertyValue(e)}(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=Or(t+"");if(arguments.length<2){for(var r=Tr(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),u=o.length;if(!(arguments.length<2)){for(s=e?Br:zr,null==n&&(n=!1),r=0;r2?ce:ae,r=i=null,l}function l(e){return(r||(r=n(o,u,a?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,s)))(+e)}return l.invert=function(t){return(i||(i=n(u,o,se,a?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},l.domain=function(t){return arguments.length?(o=k.call(t,oe),c()):o.slice()},l.range=function(t){return arguments.length?(u=P.call(t),c()):u.slice()},l.rangeRound=function(t){return u=P.call(t),s=Kt,c()},l.clamp=function(t){return arguments.length?(a=!!t,c()):a},l.interpolate=function(t){return arguments.length?(s=t,c()):s},c()}(se,Gt);return e.copy=function(){return n=e,t().domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp());var n},function(t){var e=t.domain;return t.ticks=function(t){var n=e();return T(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return Ce(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,u=i.length-1,s=i[o],a=i[u];return a0?r=E(s=Math.floor(s/r)*r,a=Math.ceil(a/r)*r,n):r<0&&(r=E(s=Math.ceil(s*r)/r,a=Math.floor(a*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[u]=Math.ceil(a/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[u]=Math.floor(a*r)/r,e(i)),t},t}(e)}(),xAccessor:function(t){return t.id},yAccessor:function(t){return t.duration},size:[]},this.data=[]}return t.prototype.ngOnChanges=function(t){t.data.currentValue!==t.data.previousValue&&t.data.previousValue&&(this.onResize(),this.render())},t.prototype.ngOnInit=function(){this.setUp(),this.render()},t.prototype.setUp=function(){var t;this.svg=(t=this.svgEl.nativeElement,"string"==typeof t?new Gr([[document.querySelector(t)]],[document.documentElement]):new Gr([[t]],Wr)).attr("id","chart_svg"),this.xAxis=this.svg.append("g").attr("class","axis axis--x"),this.yAxis=this.svg.append("g").attr("class","axis axis--y").attr("transform","translate("+this.options.margin.left+", 0)"),this.onResize()},t.prototype.onResize=function(t){this.size=[this.el.nativeElement.offsetWidth,this.el.nativeElement.offsetHeight],this.width=this.size[0]-(this.options.margin.left+this.options.margin.right),this.height=this.width/3-(this.options.margin.top+this.options.margin.bottom),this.svg.attr("width",this.width).attr("height",this.height).attr("transform","translate("+this.options.margin.left+","+this.options.margin.top+")"),this.options.x.range([this.options.margin.left,this.width-this.options.margin.right]),this.options.y.range([this.height-(this.options.margin.top+this.options.margin.bottom),0]),this.xAxis.attr("transform","translate(0, "+(this.height-this.options.margin.bottom)+")")},t.prototype.render=function(){var t=this;this.options.y.domain([0,5565]),this.options.x.domain(this.data.map(function(e){return t.options.xAccessor(e)})),this.xAxis.call(g(f,this.options.x)),this.yAxis.call(function(t){return g(h,t)}(this.options.y).tickFormat(function(t){return t}));var e=this.svg.selectAll("rect").data(this.data);e.exit().remove(),e=e.enter().append("rect").attr("class","bar").attr("fill","#6cb8ff").attr("stroke","white").merge(e).attr("x",function(e){return t.options.x(t.options.xAccessor(e))}).attr("y",function(e){return t.options.y(t.options.yAccessor(e))}).attr("width",function(){return t.options.x.bandwidth()}).attr("height",function(e){return t.height-t.options.margin.bottom-t.options.y(e.duration)})},t}(),Kr=r["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function Xr(t){return r["\u0275vid"](0,[r["\u0275qud"](402653184,1,{svgEl:0}),(t()(),r["\u0275eld"](1,0,[[1,0],["svg",1]],null,1,":svg:svg",[["height","700"],["width","1560"],["xmlns","http://www.w3.org/2000/svg"]],null,[["window","resize"]],function(t,e,n){var r=!0;return"window:resize"===e&&(r=!1!==t.component.onResize(n)&&r),r},null,null)),(t()(),r["\u0275ted"](-1,null,["\n"])),(t()(),r["\u0275ted"](-1,null,["\n"]))],null,null)}var $r=r["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function Jr(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"nx-bar",[],null,null,null,Xr,Kr)),r["\u0275did"](1,638976,null,0,Qr,[r.ElementRef],{data:[0,"data"]},null),(t()(),r["\u0275ted"](-1,null,["\n"]))],function(t,e){t(e,1,0,e.component.data)},null)}var ti=r["\u0275ccf"]("app-d3-example",i,function(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"app-d3-example",[],null,null,null,Jr,$r)),r["\u0275did"](1,114688,null,0,i,[],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),ei=n("bfOx"),ni=r["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}});function ri(t){return r["\u0275vid"](0,[(t()(),r["\u0275ted"](-1,null,["\n"])),(t()(),r["\u0275eld"](1,0,null,null,6,"div",[["style","text-align:center"]],null,null,null,null,null)),(t()(),r["\u0275ted"](-1,null,["\n "])),(t()(),r["\u0275eld"](3,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),r["\u0275ted"](-1,null,["\n Welcome to an Angular CLI app built with Nrwl Nx!\n "])),(t()(),r["\u0275ted"](-1,null,["\n "])),(t()(),r["\u0275eld"](6,0,null,null,0,"img",[["src","assets/nx-logo.png"],["width","300"]],null,null,null,null,null)),(t()(),r["\u0275ted"](-1,null,["\n"])),(t()(),r["\u0275ted"](-1,null,["\n\n"])),(t()(),r["\u0275eld"](9,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r["\u0275did"](10,212992,null,0,ei.o,[ei.b,r.ViewContainerRef,r.ComponentFactoryResolver,[8,null],r.ChangeDetectorRef],null,null),(t()(),r["\u0275ted"](-1,null,["\n"]))],function(t,e){t(e,10,0)},null)}var ii=r["\u0275ccf"]("app-root",u,function(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"app-root",[],null,null,null,ri,ni)),r["\u0275did"](1,114688,null,0,u,[],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),oi=n("Xjw4"),ui=n("OE0E"),si=n("c4mK"),ai=n("dyjq"),ci=n("8AXl"),li=function(){},fi=n("YIHu"),hi=r["\u0275cmf"](o,[u],function(t){return r["\u0275mod"]([r["\u0275mpd"](512,r.ComponentFactoryResolver,r["\u0275CodegenComponentFactoryResolver"],[[8,[ti,ii]],[3,r.ComponentFactoryResolver],r.NgModuleRef]),r["\u0275mpd"](5120,r.LOCALE_ID,r["\u0275q"],[[3,r.LOCALE_ID]]),r["\u0275mpd"](4608,oi.i,oi.h,[r.LOCALE_ID,[2,oi.m]]),r["\u0275mpd"](5120,r.APP_ID,r["\u0275i"],[]),r["\u0275mpd"](5120,r.IterableDiffers,r["\u0275n"],[]),r["\u0275mpd"](5120,r.KeyValueDiffers,r["\u0275o"],[]),r["\u0275mpd"](4608,ui.b,ui.q,[oi.c]),r["\u0275mpd"](6144,r.Sanitizer,null,[ui.b]),r["\u0275mpd"](4608,ui.e,ui.f,[]),r["\u0275mpd"](5120,ui.c,function(t,e,n,r,i){return[new ui.j(t,e),new ui.n(n),new ui.m(r,i)]},[oi.c,r.NgZone,oi.c,oi.c,ui.e]),r["\u0275mpd"](4608,ui.d,ui.d,[ui.c,r.NgZone]),r["\u0275mpd"](135680,ui.l,ui.l,[oi.c]),r["\u0275mpd"](4608,ui.k,ui.k,[ui.d,ui.l]),r["\u0275mpd"](6144,r.RendererFactory2,null,[ui.k]),r["\u0275mpd"](6144,ui.o,null,[ui.l]),r["\u0275mpd"](4608,r.Testability,r.Testability,[r.NgZone]),r["\u0275mpd"](4608,ui.g,ui.g,[oi.c]),r["\u0275mpd"](4608,ui.h,ui.h,[oi.c]),r["\u0275mpd"](5120,ei.a,ei.y,[ei.m]),r["\u0275mpd"](4608,ei.f,ei.f,[]),r["\u0275mpd"](6144,ei.h,null,[ei.f]),r["\u0275mpd"](135680,ei.p,ei.p,[ei.m,r.NgModuleFactoryLoader,r.Compiler,r.Injector,ei.h]),r["\u0275mpd"](4608,ei.g,ei.g,[]),r["\u0275mpd"](5120,ei.j,ei.B,[ei.z]),r["\u0275mpd"](5120,r.APP_BOOTSTRAP_LISTENER,function(t){return[t]},[ei.j]),r["\u0275mpd"](4608,si.DataPersistence,si.DataPersistence,[ai.Store,ci.Actions]),r["\u0275mpd"](512,oi.b,oi.b,[]),r["\u0275mpd"](1024,r.ErrorHandler,ui.p,[]),r["\u0275mpd"](1024,r.NgProbeToken,function(){return[ei.u()]},[]),r["\u0275mpd"](512,ei.z,ei.z,[r.Injector]),r["\u0275mpd"](1024,r.APP_INITIALIZER,function(t,e){return[ui.s(t),ei.A(e)]},[[2,r.NgProbeToken],ei.z]),r["\u0275mpd"](512,r.ApplicationInitStatus,r.ApplicationInitStatus,[[2,r.APP_INITIALIZER]]),r["\u0275mpd"](131584,r.ApplicationRef,r.ApplicationRef,[r.NgZone,r["\u0275Console"],r.Injector,r.ErrorHandler,r.ComponentFactoryResolver,r.ApplicationInitStatus]),r["\u0275mpd"](512,r.ApplicationModule,r.ApplicationModule,[r.ApplicationRef]),r["\u0275mpd"](512,ui.a,ui.a,[[3,ui.a]]),r["\u0275mpd"](1024,ei.t,ei.w,[[3,ei.m]]),r["\u0275mpd"](512,ei.s,ei.c,[]),r["\u0275mpd"](512,ei.b,ei.b,[]),r["\u0275mpd"](256,ei.i,{},[]),r["\u0275mpd"](1024,oi.g,ei.v,[oi.k,[2,oi.a],ei.i]),r["\u0275mpd"](512,oi.f,oi.f,[oi.g]),r["\u0275mpd"](512,r.Compiler,r.Compiler,[]),r["\u0275mpd"](512,r.NgModuleFactoryLoader,r.SystemJsNgModuleLoader,[r.Compiler,[2,r.SystemJsNgModuleLoaderConfig]]),r["\u0275mpd"](1024,ei.k,function(){return[[{path:"",pathMatch:"full",redirectTo:"d3"},{path:"d3",component:i}]]},[]),r["\u0275mpd"](1024,ei.m,ei.x,[r.ApplicationRef,ei.s,ei.b,oi.f,r.Injector,r.NgModuleFactoryLoader,r.Compiler,ei.k,ei.i,[2,ei.r],[2,ei.l]]),r["\u0275mpd"](512,ei.n,ei.n,[[2,ei.t],[2,ei.m]]),r["\u0275mpd"](512,li,li,[]),r["\u0275mpd"](512,fi.NxModule,fi.NxModule,[]),r["\u0275mpd"](512,o,o,[])])});Object(r.enableProdMode)(),ui.i().bootstrapModuleFactory(hi).catch(function(t){return console.log(t)})},DuR2: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},E5SG:function(t,e,n){"use strict";e.a=function(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new o(t,e,n))}};var r=n("TToO"),i=n("OVmG"),o=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.accumulator,this.seed,this.hasSeed))},t}(),u=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this._seed=r,this.hasSeed=i,this.index=0}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(i.a)},FcdX:function(t,e,n){"use strict";e.a=function(t,e,n){return function(r){return r.lift(new u(t,e,n,r))}};var r=n("TToO"),i=n("OVmG"),o=n("CB8l"),u=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),s=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,"undefined"!=typeof i&&(this.lastValue=i,this.hasValue=!0)}return Object(r.__extends)(e,t),e.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}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new o.a)},e}(i.a)},GK6M:function(t,e,n){"use strict";e.a=function(t){return r=t,o};var r,i=n("fKB6");function o(){try{return r.apply(this,arguments)}catch(t){return i.a.e=t,i.a}}},HdCx:function(t,e,n){"use strict";e.a=function(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(t,e))}};var r=n("TToO"),i=n("OVmG"),o=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.thisArg))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return Object(r.__extends)(e,t),e.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)},e}(i.a)},I7Gx:function(t,e,n){"use strict";e.a=function(t,e){return function(n){return n.lift(new u(t,e))}};var r=n("TToO"),i=n("tZ2B"),o=n("PIsA"),u=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.resultSelector))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var r=this.project(t,e);this.hasSubscription=!0,this.add(Object(o.a)(this,r,t,e))}catch(t){n.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.destination;this.resultSelector?this.trySelectResult(t,e,n,r):o.next(e)},e.prototype.trySelectResult=function(t,e,n,r){var i=this.resultSelector,o=this.destination;try{var u=i(t,e,n,r);o.next(u)}catch(t){o.error(t)}},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.a)},Jwyl:function(t,e,n){"use strict";var r=n("TToO"),i=n("g5jc"),o=n("YaPU"),u=(n("OVmG"),n("VwZZ")),s=n("0P3J"),a=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(r.__extends)(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new u.a).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed?(this._connection=null,t=u.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return Object(s.a)()(this)},e}(o.Observable).prototype,c={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:a._subscribe},_isComplete:{value:a._isComplete,writable:!0},getSubject:{value:a.getSubject},connect:{value:a.connect},refCount:{value:a.refCount}},l=function(t){function e(e,n){t.call(this,e),this.connectable=n}return Object(r.__extends)(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);e.a=function(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new f(r,e));var i=Object.create(n,c);return i.source=n,i.subjectFactory=r,i}};var f=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}()},MKMw:function(t,e,n){"use strict";e.a=function(){return function(t){return t.lift(new u)}};var r=n("TToO"),i=n("OVmG"),o=n("gIN1"),u=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(){t.apply(this,arguments)}return Object(r.__extends)(e,t),e.prototype._next=function(t){Object(o.a)()},e}(i.a)},MNFA:function(t,e,n){"use strict";var r=n("TToO"),i=n("OVmG"),o=n("VwZZ"),u=n("YaPU"),s=n("g5jc"),a=n("AMGY"),c=function(){function t(){this.size=0,this._values=[],this._keys=[]}return t.prototype.get=function(t){var e=this._keys.indexOf(t);return-1===e?void 0:this._values[e]},t.prototype.set=function(t,e){var n=this._keys.indexOf(t);return-1===n?(this._keys.push(t),this._values.push(e),this.size++):this._values[n]=e,this},t.prototype.delete=function(t){var e=this._keys.indexOf(t);return-1!==e&&(this._values.splice(e,1),this._keys.splice(e,1),this.size--,!0)},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},t.prototype.forEach=function(t,e){for(var n=0;n0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;s||(s=t[u]=[]);var c=$(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:c,handler:o});else{for(var l=!1,f=0;f-1},e}(M),ot=["alt","control","meta","shift"],ut={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},st=function(t){function e(e){return t.call(this,e)||this}return Object(o.__extends)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var i=e.parseEventName(n),o=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(ot.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var u={};return u.domEventName=r,u.fullKey=o,u},e.getEventFullKey=function(t){var e="",n=s().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ot.forEach(function(r){r!=n&&(0,ut[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(M),at=function(){function t(t,e){this.defaultDoc=t,this.DOM=e;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var r=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(r,this.inertBodyElement),this.DOM.appendChild(n,r)}this.DOM.setInnerHTML(this.inertBodyElement,''),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'

'),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.DOM.createElement("template");return"content"in e?(this.DOM.setInnerHTML(e,t),e):(this.DOM.setInnerHTML(this.inertBodyElement,t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){var e=this;this.DOM.attributeMap(t).forEach(function(n,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.DOM.removeAttribute(t,r)});for(var n=0,r=this.DOM.childNodesAsList(t);n")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=this.DOM.nodeName(t).toLowerCase();bt.hasOwnProperty(e)&&!vt.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Tt(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&this.DOM.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(t));return e},t}(),St=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ot=/([^\#-~ |!])/g;function Tt(t){return t.replace(/&/g,"&").replace(St,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ot,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Et=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),jt=/^url\(([^)]+)\)$/,It=function(){},At=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(o.__extends)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case i.SecurityContext.NONE:return e;case i.SecurityContext.HTML:return e instanceof Nt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=s(),r=null;try{dt=dt||new at(t,n);var o=e?String(e):"";r=dt.getInertBodyElement(o);var u=5,a=o;do{if(0===u)throw new Error("Failed to sanitize html because the input is unstable");u--,o=a,a=n.getInnerHTML(r),r=dt.getInertBodyElement(o)}while(o!==a);var c=new Ct,l=c.sanitizeChildren(n.getTemplateContent(r)||r);return Object(i.isDevMode)()&&c.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),l}finally{if(r)for(var f=n.getTemplateContent(r)||r,h=0,p=n.childNodesAsList(f);h0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},Rf9G:function(t,e,n){"use strict";e.a=function(){return Object(r.a)()(this)};var r=n("3a3m")},RxTE:function(t,e,n){"use strict";e.a=function(){for(var t=[],e=0;e0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=0;s--)(i=t[s])&&(u=(o<3?i(u):o>3?i(e,n,u):i(e,n))||u);return o>3&&u&&Object.defineProperty(e,n,u),u},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function u(t){try{a(r.next(t))}catch(t){o(t)}}function s(t){try{a(r.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(u,s)}a((r=r.apply(t,e||[])).next())})},e.__generator=function(t,e){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1||a(t,e)})})}function a(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(c,l):f(o[0][2],n)}catch(t){f(o[0][3],t)}var n}function c(t){a("next",t)}function l(t){a("throw",t)}function f(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){t[r]&&(e[r]=function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e})}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator];return e?e.call(t):"function"==typeof o?o(t):t[Symbol.iterator]()},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},e.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}};var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function s(t){return this instanceof s?(this.v=t,this):new s(t)}},Uw6n:function(t,e,n){"use strict";e.a=function(t,e){return Object(r.a)(t,e)(this)};var r=n("w9is")},VeP7:function(t,e,n){"use strict";e.a=function(){return function(t){return t.lift(new u)}};var r=n("TToO"),i=n("OVmG"),o=n("jhW9"),u=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){t.call(this,e)}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.destination.next(o.a.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(o.a.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(o.a.createComplete()),t.complete()},e}(i.a)},Veqx:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("TToO"),i=n("YaPU"),o=n("TILf"),u=n("+3/4"),s=n("1Q68"),a=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return Object(r.__extends)(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n1?new e(t,r):1===i?new o.a(t[0],r):new u.a(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.subscriber;n>=t.count?r.complete():(r.next(e[n]),r.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var u=e[o];i.push(o+":"+("string"==typeof u?JSON.stringify(u):tt(u)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(vt,"\n ")}function _t(t,e){return new Error(bt(t,e))}var wt="ngDebugContext",xt="ngOriginalError",Ct="ngErrorLogger";function St(t){return t[wt]}function Ot(t){return t[xt]}function Tt(t){for(var e=[],n=1;n1?" ("+function(t){for(var e=[],n=0;n-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(function(t){return tt(t.token)}).join(" -> ")+")":""}function It(t,e,n,r){var i=[e],o=n(i),u=r?function(t,e){var n=o+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[xt]=e,r}(0,r):Error(o);return u.addKey=At,u.keys=i,u.injectors=[t],u.constructResolvingMessage=n,u[xt]=r,u}function At(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function Mt(t,e){for(var n=[],r=0,i=e.length;r=this._providers.length)throw function(t){return Error("Index "+t+" is out-of-bounds.")}(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw It(this,t.key,function(t){return"Cannot instantiate cyclic dependency!"+jt(t)});return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+tt(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)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function dn(t,e){return Array.isArray(e)?e.reduce(dn,t):Object(r.__assign)({},t,e)}var vn=function(){function t(t,e,n,r,s,a){var c=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=un(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var l=new i.Observable(function(t){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){t.next(c._stable),t.complete()})}),f=new i.Observable(function(t){var e;c._zone.runOutsideAngular(function(){e=c._zone.onStable.subscribe(function(){Be.assertNotInAngularZone(),$(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,t.next(!0))})})});var n=c._zone.onUnstable.subscribe(function(){Be.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,u.a.call(f))}return t.prototype.bootstrap=function(t,e){var n,r=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.");n=t instanceof _e?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof je?null:this._injector.get(Ie),o=n.create(st.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var u=o.injector.get(Ke,null);return u&&o.injector.get(Xe).registerApplication(o.location.nativeElement,u),this._loadComponent(o),un()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,Ue(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;yn(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(fe,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),yn(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Fe("ApplicationRef#tick()"),t}();function yn(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var gn=function(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o},mn=function(){},bn=function(){},_n=function(){},wn=function(){},xn=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}(),Cn=function(){},Sn=function(t){this.nativeElement=t},On=function(){},Tn=new Map;function En(t,e){var n=Tn.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);Tn.set(t,e)}function jn(t){var e=Tn.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}var In=function(){function t(){this.dirty=!0,this._results=[],this.changes=new ze,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[X()]=function(){return this._results[X()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),An=function(){},Mn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Nn=function(){function t(t,e){this._compiler=t,this._config=e||Mn}return t.prototype.load=function(t){return this._compiler instanceof ye?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),i=r[0],o=r[1];return void 0===o&&(o="default"),n("SNlx")(i).then(function(t){return t[o]}).then(function(t){return Rn(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("SNlx")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return Rn(t,r,i)})},t}();function Rn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var kn=function(){},Pn=function(){},Dn=function(){},Vn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(Dn),Fn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(Vn),Un=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Ln?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Ln=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Object(r.__extends)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return zn(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Bn(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Un);function Hn(t){return t.map(function(t){return t.nativeElement})}function zn(t,e,n){t.childNodes.forEach(function(t){t instanceof Ln&&(e(t)&&n.push(t),zn(t,e,n))})}function Bn(t,e,n){t instanceof Ln&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Ln&&Bn(t,e,n)})}var qn=new Map;function Wn(t){return qn.get(t)||null}function Gn(t){qn.set(t.nativeNode,t)}function Yn(t,e){var n=Kn(t),r=Kn(e);return n&&r?function(t,e,n){for(var r=t[X()](),i=e[X()]();;){var o=r.next(),u=i.next();if(o.done&&u.done)return!0;if(o.done||u.done)return!1;if(!n(o.value,u.value))return!1}}(t,e,Yn):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||J(t,e)}var Zn=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Qn=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Kn(t){return!!Xn(t)&&(Array.isArray(t)||!(t instanceof Map)&&X()in t)}function Xn(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var $n=function(){function t(){}return t.prototype.supports=function(t){return Kn(t)},t.prototype.create=function(t){return new tr(t)},t}(),Jn=function(t,e){return e},tr=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Jn}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Ui(n,e),Nr.dirtyParentQueries(r),Vi(r),r}function Di(t,e,n){var r=e?Jr(e,e.def.lastRenderRootNode):t.renderElement;ci(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Vi(t){ci(t,3,null,null,void 0)}function Fi(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ui(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Li=new Object;function Hi(t,e,n,r,i,o){return new Bi(t,e,n,r,i,o)}function zi(t){return t.viewDefFactory}var Bi=function(t){function e(e,n,r,i,o,u){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=u,s.viewDefFactory=r,s}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=ai(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,u=Nr.createRootView(t,e||[],n,i,r,Li),s=jr(u,o).instance;return n&&u.renderer.setAttribute(Er(u,0).renderElement,"ng-version",U.full),new qi(u,new Zi(u),s)},e}(_e),qi=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Sn(Er(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new $i(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(be);function Wi(t,e,n){return new Gi(t,e,n)}var Gi=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Sn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new $i(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=$r(t),t=t.parent;return t?new $i(t,e):new $i(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Pi(this._data,t);Nr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Zi(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof je||(i=o.get(Ie));var u=t.create(o,r,void 0,i);return this.insert(u.hostView,e),u},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,u=t;return i=u._view,o=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=o.length),i.viewContainerParent=this._view,Fi(o,r,i),function(t,e){var n=Xr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,i),Nr.dirtyParentQueries(i),Di(n,r>0?o[r-1]:null,i),u.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,u,s=this._embeddedViews.indexOf(t._view);return i=e,u=(o=(n=this._data).viewContainer._embeddedViews)[r=s],Ui(o,r),null==i&&(i=o.length),Fi(o,i,u),Nr.dirtyParentQueries(u),Vi(u),Di(n,i>0?o[i-1]:null,u),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Pi(this._data,t);e&&Nr.destroyView(e)},t.prototype.detach=function(t){var e=Pi(this._data,t);return e?new Zi(e):null},t}();function Yi(t){return new Zi(t)}var Zi=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return ci(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Zr(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Nr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Nr.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Nr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Vi(this._view),Nr.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Qi(t,e){return new Ki(t,e)}var Ki=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.__extends)(e,t),e.prototype.createEmbeddedView=function(t){return new Zi(Nr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Sn(Er(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(kn);function Xi(t,e){return new $i(t,e)}var $i=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=st.THROW_IF_NOT_FOUND),Nr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Fr(t)},e)},t}();function Ji(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Er(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Tr(t,n.nodeIndex).renderText;if(20240&n.flags)return jr(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function to(t){return new eo(t.renderer)}var eo=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=vi(e),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return wo(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(Co(t,e,n,i[0]));case 2:return r(Co(t,e,n,i[0]),Co(t,e,n,i[1]));case 3:return r(Co(t,e,n,i[0]),Co(t,e,n,i[1]),Co(t,e,n,i[2]));default:for(var u=Array(o),s=0;s0)c=v,qo(v)||(l=v);else for(;c&&d===c.nodeIndex+c.childCount;){var m=c.parent;m&&(m.childFlags|=c.childFlags,m.childMatchedQueries|=c.childMatchedQueries),l=(c=m)&&qo(c)?c.renderParent:c}}return{factory:null,nodeFlags:u,rootNodeFlags:s,nodeMatchedQueries:a,flags:t,nodes:e,updateDirectives:n||Dr,updateRenderer:r||Dr,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:p}}function qo(t){return 0!=(1&t.flags)&&null===t.element.name}function Wo(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Go(t,e,n,r){var i=Qo(t.root,t.renderer,t,e,n);return Ko(i,t.component,r),Xo(i),i}function Yo(t,e,n){var r=Qo(t,t.renderer,null,null,e);return Ko(r,n,n),Xo(r),r}function Zo(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,Qo(t.root,i,t,e.element.componentProvider,n)}function Qo(t,e,n,r,i){var o=new Array(i.nodes.length),u=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:u,initIndex:-1}}function Ko(t,e,n){t.component=e,t.context=n}function Xo(t){var e;ei(t)&&(e=Er(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i0&&Ei(t,e,0,n)&&(p=!0),h>1&&Ei(t,e,1,r)&&(p=!0),h>2&&Ei(t,e,2,i)&&(p=!0),h>3&&Ei(t,e,3,o)&&(p=!0),h>4&&Ei(t,e,4,u)&&(p=!0),h>5&&Ei(t,e,5,s)&&(p=!0),h>6&&Ei(t,e,6,a)&&(p=!0),h>7&&Ei(t,e,7,c)&&(p=!0),h>8&&Ei(t,e,8,l)&&(p=!0),h>9&&Ei(t,e,9,f)&&(p=!0),p}(t,e,n,r,i,o,u,s,a,c,l,f);case 2:return function(t,e,n,r,i,o,u,s,a,c,l,f){var h=!1,p=e.bindings,d=p.length;if(d>0&&Gr(t,e,0,n)&&(h=!0),d>1&&Gr(t,e,1,r)&&(h=!0),d>2&&Gr(t,e,2,i)&&(h=!0),d>3&&Gr(t,e,3,o)&&(h=!0),d>4&&Gr(t,e,4,u)&&(h=!0),d>5&&Gr(t,e,5,s)&&(h=!0),d>6&&Gr(t,e,6,a)&&(h=!0),d>7&&Gr(t,e,7,c)&&(h=!0),d>8&&Gr(t,e,8,l)&&(h=!0),d>9&&Gr(t,e,9,f)&&(h=!0),h){var v=e.text.prefix;d>0&&(v+=zo(n,p[0])),d>1&&(v+=zo(r,p[1])),d>2&&(v+=zo(i,p[2])),d>3&&(v+=zo(o,p[3])),d>4&&(v+=zo(u,p[4])),d>5&&(v+=zo(s,p[5])),d>6&&(v+=zo(a,p[6])),d>7&&(v+=zo(c,p[7])),d>8&&(v+=zo(l,p[8])),d>9&&(v+=zo(f,p[9]));var y=Tr(t,e.nodeIndex).renderText;t.renderer.setValue(y,v)}return h}(t,e,n,r,i,o,u,s,a,c,l,f);case 16384:return function(t,e,n,r,i,o,u,s,a,c,l,f){var h=jr(t,e.nodeIndex),p=h.instance,d=!1,v=void 0,y=e.bindings.length;return y>0&&Wr(t,e,0,n)&&(d=!0,v=Oo(t,h,e,0,n,v)),y>1&&Wr(t,e,1,r)&&(d=!0,v=Oo(t,h,e,1,r,v)),y>2&&Wr(t,e,2,i)&&(d=!0,v=Oo(t,h,e,2,i,v)),y>3&&Wr(t,e,3,o)&&(d=!0,v=Oo(t,h,e,3,o,v)),y>4&&Wr(t,e,4,u)&&(d=!0,v=Oo(t,h,e,4,u,v)),y>5&&Wr(t,e,5,s)&&(d=!0,v=Oo(t,h,e,5,s,v)),y>6&&Wr(t,e,6,a)&&(d=!0,v=Oo(t,h,e,6,a,v)),y>7&&Wr(t,e,7,c)&&(d=!0,v=Oo(t,h,e,7,c,v)),y>8&&Wr(t,e,8,l)&&(d=!0,v=Oo(t,h,e,8,l,v)),y>9&&Wr(t,e,9,f)&&(d=!0,v=Oo(t,h,e,9,f,v)),v&&p.ngOnChanges(v),65536&e.flags&&Or(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),d}(t,e,n,r,i,o,u,s,a,c,l,f);case 32:case 64:case 128:return function(t,e,n,r,i,o,u,s,a,c,l,f){var h=e.bindings,p=!1,d=h.length;if(d>0&&Gr(t,e,0,n)&&(p=!0),d>1&&Gr(t,e,1,r)&&(p=!0),d>2&&Gr(t,e,2,i)&&(p=!0),d>3&&Gr(t,e,3,o)&&(p=!0),d>4&&Gr(t,e,4,u)&&(p=!0),d>5&&Gr(t,e,5,s)&&(p=!0),d>6&&Gr(t,e,6,a)&&(p=!0),d>7&&Gr(t,e,7,c)&&(p=!0),d>8&&Gr(t,e,8,l)&&(p=!0),d>9&&Gr(t,e,9,f)&&(p=!0),p){var v=Ir(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=i),d>3&&(y[3]=o),d>4&&(y[4]=u),d>5&&(y[5]=s),d>6&&(y[6]=a),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=f);break;case 64:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=i),d>3&&(y[h[3].name]=o),d>4&&(y[h[4].name]=u),d>5&&(y[h[5].name]=s),d>6&&(y[h[6].name]=a),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=f);break;case 128:var g=n;switch(d){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,i);break;case 4:y=g.transform(r,i,o);break;case 5:y=g.transform(r,i,o,u);break;case 6:y=g.transform(r,i,o,u,s);break;case 7:y=g.transform(r,i,o,u,s,a);break;case 8:y=g.transform(r,i,o,u,s,a,c);break;case 9:y=g.transform(r,i,o,u,s,a,c,l);break;case 10:y=g.transform(r,i,o,u,s,a,c,l,f)}}v.value=y}return p}(t,e,n,r,i,o,u,s,a,c,l,f);default:throw"unreachable"}}(t,e,r,i,o,u,s,a,c,l,f,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i0&&Yr(t,e,0,n),h>1&&Yr(t,e,1,r),h>2&&Yr(t,e,2,i),h>3&&Yr(t,e,3,o),h>4&&Yr(t,e,4,u),h>5&&Yr(t,e,5,s),h>6&&Yr(t,e,6,a),h>7&&Yr(t,e,7,c),h>8&&Yr(t,e,8,l),h>9&&Yr(t,e,9,f)}(t,e,r,i,o,u,s,a,c,l,f,h):function(t,e,n){for(var r=0;r0&&ls(n[e-1],r.next),n.splice(e,1),function(t){for(var e=t;e;){var n=null;if(e.views&&e.views.length?n=e.views[0].data:e.child?n=e.child:e.next&&(hs(e),n=e.next),null==n){for(;e&&!e.next;)hs(e),e=fs(e,t);hs(e||t),n=e&&e.next}e=n}}(r.data),as(t,r,!1),t.query&&t.query.removeView(t,r,e),r}function ls(t,e){t.next=e,t.data.next=e?e.data:null}function fs(t,e){var n;return(n=t.node)&&2==(3&n.flags)?n.parent.data:t.parent===e?null:t.parent}function hs(t){if(t.cleanup){for(var e=t.cleanup,n=0;n=bs.length?bs[t]=null:s.staticData=bs[t],ms?(ws=null,gs.view!==_s&&2!=(3&gs.flags)||(ngDevMode&&ns(gs.child,null,"previousNode.child"),gs.child=s)):gs&&(ngDevMode&&ns(gs.next,null,"previousNode.next"),gs.next=s)),gs=s,ms=!0,s}function Rs(t,e,n,r){var i,o;if(null==e){var u=Cs[t];o=u&&u.native}else{ngDevMode&&ns(_s.bindingStartIndex,null,"bindingStartIndex");var s="string"!=typeof e,a=s?e.tag:e;if(null===a)throw"for now name is required";o=vs.createElement(a);var c=null;if(s){var l=ks(e.template);c=Xs(Ms(-1,ys.createRenderer(o,e.rendererType),l))}null==(i=Ns(t,3,o,c)).staticData&&(ngDevMode&&na(t-1),i.staticData=bs[t]=Us(a,n||null,null,r||null)),n&&function(t,e){ngDevMode&&ns(e.length%2,0,"attrs.length % 2");for(var n=vs.setAttribute,r=0;r>12,i=r,o=r+((4092&t)>>2);i=bs.length&&(bs[t]=n,r)){ngDevMode&&rs(gs.staticData,"previousOrParentNode.staticData");var u=gs.staticData;(u.localNames||(u.localNames=[])).push(r,t)}var s=n.diPublic;s&&s(n);var a=gs.staticData;a&&a.attrs&&function(t,e,r){var i=((4092&gs.flags)>>2)-1,o=r.initialInputs;(void 0===o||i>=o.length)&&(o=function(t,e,n){var r=n.initialInputs||(n.initialInputs=[]);r[t]=null;for(var i=n.attrs,o=0;o=n.length||null==n[t])&&(n[t]=[]),n[t]}(t,e));Is(u,Ns(null,2,null,u)),n.nextIndex++}return!o}function Qs(){ms=!1;var t=gs=_s.node,e=gs.parent;ngDevMode&&us(t,2),ngDevMode&&us(e,0);var n=e.data,r=n.nextIndex<=n.views.length?n.views[n.nextIndex-1]:null;(null==r||r.data.id!==t.data.id)&&(function(t,e,n){var r=t.data,i=r.views;n>0&&ls(i[n-1],e),n=i.length&&i.push(e),r.nextIndex<=n&&r.nextIndex++,null!==t.data.renderParent&&as(t,e,!0,function(e,n,r){var i=n.views;return e+1")}function ra(t,e){void 0===e&&(e={});var n,r=e.rendererFactory||Es,i=t.ngComponentDef,o=Ds(r,e.host||i.tag),u=Is(Ms(-1,r.createRenderer(o,i.rendererType),[]),null);try{ms=!1,gs=null,Ns(0,3,o,Ms(-1,vs,ks(i.template))),n=Bs(1,i.n(),i)}finally{As(u)}return e.features&&e.features.forEach(function(t){return t(n,i)}),ia(n),n}function ia(t){ngDevMode&&rs(t,"component");var e=t[js];ngDevMode&&!e&&Ps("Not a directive instance",t),ngDevMode&&rs(e.data,"hostNode.data"),function(t,n,r,i){var o=Is(n,e);try{ys.begin&&ys.begin(),r.constructor.ngComponentDef.r(1,0)}finally{ys.end&&ys.end(),n.creationMode=!1,As(o)}}(0,e.view,t)}function oa(t){var e={type:t.type,diPublic:null,n:t.factory,tag:t.tag||null,template:t.template||null,r:t.refresh||function(e,n){Ks(e,n,t.template)},h:t.hostBindings||sa,inputs:aa(t.inputs),outputs:aa(t.outputs),methods:aa(t.methods),rendererType:qr(t.rendererType)||null},n=t.features;return n&&n.forEach(function(t){return t(e)}),e}var ua={};function sa(){}function aa(t){if(null==t)return ua;var e={};for(var n in t)e[t[n]]=n;return e}function ca(t,e){return{type:7,name:t,definitions:e,options:{}}}function la(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function fa(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function ha(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function pa(t){return{type:6,styles:t,offset:null}}function da(t,e,n){return{type:0,name:t,styles:e,options:n}}function va(t){return{type:5,steps:t}}function ya(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}var ga="*";function ma(t,e){return ca(t,e)}function ba(t,e){return la(t,e)}function _a(t){return fa(t)}function wa(t){return ha(t)}function xa(t){return pa(t)}function Ca(t,e){return da(t,e)}function Sa(t){return va(t)}function Oa(t,e){return ya(t,e)}}).call(e,n("DuR2"))},Xjw4:function(t,e,n){"use strict";n.d(e,"h",function(){return m}),n.d(e,"i",function(){return g}),n.d(e,"n",function(){return b}),n.d(e,"b",function(){return _}),n.d(e,"c",function(){return w}),n.d(e,"l",function(){return x}),n.d(e,"k",function(){return o}),n.d(e,"e",function(){return u}),n.d(e,"g",function(){return s}),n.d(e,"a",function(){return a}),n.d(e,"d",function(){return f}),n.d(e,"j",function(){return h}),n.d(e,"f",function(){return c}),n.d(e,"m",function(){return y});var r=n("WT6e"),i=n("TToO"),o=function(){},u=new r.InjectionToken("Location Initialized"),s=function(){},a=new r.InjectionToken("appBaseHref"),c=function(){function t(e){var n=this;this._subject=new r.EventEmitter,this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(l(i)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,l(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function l(t){return t.replace(/\/index.html$/,"")}var f=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(i.__extends)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=c.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+c.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+c.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),h=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==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.");return r._baseHref=n,r}return Object(i.__extends)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return c.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+c.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),p=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],d={},v=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),y=new r.InjectionToken("UseV4Plurals"),g=function(){},m=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(i.__extends)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=d[e];if(n)return n;var r=e.split("-")[0];if(n=d[r])return n;if("en"===r)return p;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[17]}(e||this.locale)(t)){case v.Zero:return"zero";case v.One:return"one";case v.Two:return"two";case v.Few:return"few";case v.Many:return"many";default:return"other"}},e}(g);function b(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n0){var u=o.indexOf(n);-1!==u&&o.splice(u,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.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)},e}(i.a)},YIHu:function(t,e,n){"use strict";var r=n("TToO").__decorate;Object.defineProperty(e,"__esModule",{value:!0});var i=n("WT6e"),o=n("c4mK");e.NxModule=function(){function t(){}return e=t,t.forRoot=function(){return{ngModule:e,providers:[o.DataPersistence]}},e=r([i.NgModule({})],t);var e}()},YWe0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"of",function(){return r});var r=n("Veqx").a.of},YaPU:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("AMGY"),i=n("OVmG"),o=n("tLDX"),u=n("t7NR"),s=n("+CnV"),a=n("f9aG");n.d(e,"Observable",function(){return c});var c=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,s=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[o.a])return t[o.a]()}return t||e||n?new i.a(t,e,n):new i.a(u.a)}(t,e,n);if(r?r.call(s,this.source):s.add(this.source||!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?e=r.a.Rx.config.Promise:r.a.Promise&&(e=r.a.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[s.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;et.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function ut(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function st(t){var e=j.call(t);return S.call(e,function(t){return!0===t})}function at(t){return Object(i["\u0275isObservable"])(t)?t:Object(i["\u0275isPromise"])(t)?x(Promise.resolve(t)):Object(a.of)(t)}function ct(t,e,n){return n?function(t,e){return rt(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!pt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!pt(u=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!pt(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var u=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!pt(n.segments,u)&&!!n.children[Z]&&e(n.children[Z],r,s)}(e,n,n.segments)}(t.root,e.root)}var lt=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=K(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return gt.serialize(this)},t}(),ft=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,ut(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return mt(this)},t}(),ht=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=K(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return wt(this)},t}();function pt(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function dt(t,e){var n=[];return ut(t.children,function(t,r){r===Z&&(n=n.concat(e(t,r)))}),ut(t.children,function(t,r){r!==Z&&(n=n.concat(e(t,r)))}),n}var vt=function(){},yt=function(){function t(){}return t.prototype.parse=function(t){var e=new Tt(t);return new lt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return mt(e);if(n){var r=e.children[Z]?t(e.children[Z],!1):"",i=[];return ut(e.children,function(e,n){n!==Z&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=dt(e,function(n,r){return r===Z?[t(e.children[Z],!1)]:[r+":"+t(n,!1)]});return mt(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return bt(t)+"="+bt(e)}).join("&"):bt(t)+"="+bt(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),gt=new yt;function mt(t){return t.segments.map(function(t){return wt(t)}).join("/")}function bt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function _t(t){return decodeURIComponent(t)}function wt(t){return""+bt(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+bt(t)+"="+bt(e[t])}).join(""));var e}var xt=/^[^\/()?;=&#]+/;function Ct(t){var e=t.match(xt);return e?e[0]:""}var St=/^[^=?&#]+/,Ot=/^[^?&#]+/,Tt=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ft([],{}):new ft([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Z]=new ft(t,e)),n},t.prototype.parseSegment=function(){var t=Ct(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new ht(_t(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Ct(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Ct(this.remaining);r&&this.capture(n=r)}t[_t(e)]=_t(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(St))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Ot);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=_t(n),u=_t(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(u)}else t[o]=u}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ct(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Z);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Z]:new ft([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Et=function(t){this.segmentGroup=t||null},jt=function(t){this.urlTree=t};function It(t){return new p.Observable(function(e){return e.error(new Et(t))})}function At(t){return new p.Observable(function(e){return e.error(new jt(t))})}function Mt(t){return new p.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var Nt=function(){function t(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(i.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Z),n=f.a.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return y.call(n,function(e){if(e instanceof jt)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Et)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,Z),r=f.a.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return y.call(r,function(t){if(t instanceof Et)throw e.noMatchError(t);throw t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,i=t.segments.length>0?new ft([],((r={})[Z]=t,r)):t;return new lt(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?f.a.call(this.expandChildren(t,e,n),function(t){return new ft([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Object(a.of)({});var o=[],u=[],s={};ut(n,function(n,i){var a=f.a.call(r.expandSegmentGroup(t,e,n,i),function(t){return s[i]=t});i===Z?o.push(a):u.push(a)});var c=m.call(a.of.apply(void 0,o.concat(u))),l=T.call(c);return f.a.call(l,function(){return s})}(n.children)},t.prototype.expandSegment=function(t,e,n,r,i,o){var u=this,s=a.of.apply(void 0,n),c=f.a.call(s,function(s){var c=u.expandSegmentAgainstRoute(t,e,n,s,r,i,o);return y.call(c,function(t){if(t instanceof Et)return Object(a.of)(null);throw t})}),l=m.call(c),h=_.call(l,function(t){return!!t});return y.call(h,function(t,n){if(t instanceof w.a||"EmptyError"===t.name){if(u.noLeftoversInUrl(e,r,i))return Object(a.of)(new ft([],{}));throw new Et(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,u){return Dt(r)!==o?It(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):It(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?At(o):h.a.call(this.lineralizeSegments(n,o),function(n){var o=new ft(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var u=this,s=Rt(e,r,i),a=s.consumedSegments,c=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return It(e);var f=this.applyRedirectCommands(a,r.redirectTo,l);return r.redirectTo.startsWith("/")?At(f):h.a.call(this.lineralizeSegments(r,f),function(r){return u.expandSegment(t,e,n,r.concat(i.slice(c)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?f.a.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new ft(r,{})}):Object(a.of)(new ft(r,{}));var u=Rt(e,n,r),s=u.consumedSegments,c=u.lastChild;if(!u.matched)return It(e);var l=r.slice(c),p=this.getChildConfig(t,n);return h.a.call(p,function(t){var n=t.module,r=t.routes,u=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return Pt(t,e,n)&&Dt(n)!==Z})}(t,n)?{segmentGroup:kt(new ft(e,function(t,e){var n={};n[Z]=e;for(var r=0,i=t;r1||!r.children[Z])return Mt(t.redirectTo);r=r.children[Z]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new lt(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return ut(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),u={};return ut(e.children,function(e,o){u[o]=i.createSegmentGroup(t,e,n,r)}),new ft(o,u)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,i=e;r0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||X)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function kt(t){if(1===t.numberOfChildren&&t.children[Z]){var e=t.children[Z];return new ft(t.segments.concat(e.segments),e.children)}return t}function Pt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Dt(t){return t.outlet||Z}var Vt=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=Ft(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Ft(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Ut(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return Ut(t,this._root).map(function(t){return t.value})},t}();function Ft(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n=1;){var i=n[r],u=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(u.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:Object(o.__assign)({},t.params,e.params),data:Object(o.__assign)({},t.data,e.data),resolve:Object(o.__assign)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Gt=function(){function t(t,e,n,r,i,o,u,s,a,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=u,this.routeConfig=s,this._urlSegment=a,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=K(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=K(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Yt=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Zt(r,n),r}return Object(o.__extends)(e,t),e.prototype.toString=function(){return Qt(this._root)},e}(Vt);function Zt(t,e){e.value._routerState=t,e.children.forEach(function(e){return Zt(t,e)})}function Qt(t){var e=t.children.length>0?" { "+t.children.map(Qt).join(", ")+" } ":"";return""+t.value+e}function Kt(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,rt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),rt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&$t(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==ot(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),ee=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function ne(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Z]:""+t}function re(t,e,n){if(t||(t=new ft([],{})),0===t.segments.length&&t.hasChildren())return ie(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var u=t.segments[i],s=ne(n[r]),a=r0&&void 0===s)break;if(s&&a&&"object"==typeof a&&void 0===a.outlets){if(!ae(s,a,u))return o;r+=2}else{if(!ae(s,{},u))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?Object(I.a)(t,e)(this):Object(I.a)(t)(this)}).call(r,function(t,e){return t})},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var i=this,o=Ht(e);t.children.forEach(function(t){i.setupRouteGuards(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),ut(o,function(t,e){return i.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var i=t.value,o=e?e.value:null,u=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){var s=this.shouldRunGuardsAndResolvers(o,i,i.routeConfig.runGuardsAndResolvers);s?this.canActivateChecks.push(new ce(r)):(i.data=o.data,i._resolvedData=o._resolvedData),this.setupChildRouteGuards(t,e,i.component?u?u.children:null:n,r),s&&this.canDeactivateChecks.push(new le(u.outlet.component,o))}else o&&this.deactivateRouteAndItsChildren(e,u),this.canActivateChecks.push(new ce(r)),this.setupChildRouteGuards(t,null,i.component?u?u.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(t,e)||!rt(t.queryParams,e.queryParams);case"paramsChange":default:return!Xt(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=Ht(t),i=t.value;ut(r,function(t,r){n.deactivateRouteAndItsChildren(t,i.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new le(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=Object(d.a)(this.canDeactivateChecks),n=h.a.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return S.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=Object(d.a)(this.canActivateChecks),n=l.call(e,function(e){return st(Object(d.a)([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return S.call(n,function(t){return!0===t})},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new G(t)),Object(a.of)(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new q(t)),Object(a.of)(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?st(f.a.call(Object(d.a)(n),function(n){var r,i=e.getToken(n,t);return r=at(i.canActivate?i.canActivate(t,e.future):i(t,e.future)),_.call(r)})):Object(a.of)(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return st(f.a.call(Object(d.a)(r),function(t){return st(f.a.call(Object(d.a)(t.guards),function(r){var i,o=e.getToken(r,t.node);return i=at(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)),_.call(i)}))}))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return Object(a.of)(!0);var i=h.a.call(Object(d.a)(r),function(r){var i,o=n.getToken(r,e);return i=at(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)),_.call(i)});return S.call(i,function(t){return!0===t})},t.prototype.runResolve=function(t,e){return f.a.call(this.resolveNode(t._resolve,t),function(n){return t._resolvedData=n,t.data=Object(o.__assign)({},t.data,Wt(t,e).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Object(a.of)({});if(1===r.length){var i=r[0];return f.a.call(this.getResolver(t[i],e),function(t){return(e={})[i]=t,e;var e})}var o={},u=h.a.call(Object(d.a)(r),function(r){return f.a.call(n.getResolver(t[r],e),function(t){return o[r]=t,t})});return f.a.call(T.call(u),function(){return o})},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return at(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),he=function(){},pe=function(){function t(t,e,n,r,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i}return t.prototype.recognize=function(){try{var t=ye(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Z),n=new Gt([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Z,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Lt(n,e),i=new Yt(this.url,r);return this.inheritParamsAndData(i._root),Object(a.of)(i)}catch(t){return new p.Observable(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Wt(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=dt(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.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: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value}),i.sort(function(t,e){return t.value.outlet===Z?-1:e.value.outlet===Z?1:t.value.outlet.localeCompare(e.value.outlet)}),i},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i0?ot(n).parameters:{};i=new Gt(n,a,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,be(t),r,t.component,t,de(e),ve(e)+n.length,_e(t))}else{var c=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new he;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||X)(n,t,e);if(!r)throw new he;var i={};ut(r.posParams,function(t,e){i[e]=t.path});var u=r.consumed.length>0?Object(o.__assign)({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:u}}(e,t,n);u=c.consumedSegments,s=n.slice(c.lastChild),i=new Gt(u,c.parameters,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,be(t),r,t.component,t,de(e),ve(e)+u.length,_e(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=ye(e,u,s,l),h=f.segmentGroup,p=f.slicedSegments;if(0===p.length&&h.hasChildren()){var d=this.processChildren(l,h);return[new Lt(i,d)]}if(0===l.length&&0===p.length)return[new Lt(i,[])];var v=this.processSegment(l,h,p,Z);return[new Lt(i,v)]},t}();function de(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function ve(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function ye(t,e,n,r){if(n.length>0&&function(t,e,n){return r.some(function(n){return ge(t,e,n)&&me(n)!==Z})}(t,n)){var i=new ft(e,function(t,e,n,r){var i={};i[Z]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,u=n;o0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function me(t){return t.outlet||Z}function be(t){return t.data||{}}function _e(t){return t.resolve||{}}var we=function(){},xe=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),Ce=new i.InjectionToken("ROUTES"),Se=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return f.a.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new $(it(i.injector.get(Ce)).map(nt),i)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?x(this.loader.load(t)):h.a.call(at(t()),function(t){return t instanceof i.NgModuleFactory?Object(a.of)(t):x(e.compiler.compileModuleAsync(t))})},t}(),Oe=function(){},Te=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Ee(t){throw t}function je(t){return Object(a.of)(null)}var Ie=function(){function t(t,e,n,r,o,a,c,l){var f=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=l,this.navigations=new u.a(null),this.navigationId=0,this.events=new s.a,this.errorHandler=Ee,this.navigated=!1,this.hooks={beforePreactivation:je,afterPreactivation:je},this.urlHandlingStrategy=new Te,this.routeReuseStrategy=new xe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=o.get(i.NgModuleRef),this.resetConfig(l),this.currentUrlTree=new lt(new ft([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Se(a,c,function(t){return f.triggerEvent(new z(t))},function(t){return f.triggerEvent(new B(t))}),this.routerState=Bt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){J(t),this.config=t.map(nt),this.navigated=!1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,u=e.fragment,s=e.preserveQueryParams,a=e.queryParamsHandling,c=e.preserveFragment;Object(i.isDevMode)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,f=c?this.currentUrlTree.fragment:u,h=null;if(a)switch(a){case"merge":h=Object(o.__assign)({},this.currentUrlTree.queryParams,r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=s?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,i){if(0===n.length)return Jt(e.root,e.root,e,r,i);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new te(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return ut(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new te(n,e,r)}(n);if(o.toRoot())return Jt(e.root,new ft([],{}),e,r,i);var u=function(t,n,r){if(t.isAbsolute)return new ee(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new ee(r.snapshot._urlSegment,!0,0);var i=$t(t.commands[0])?0:1;return function(e,n,o){for(var u=r.snapshot._urlSegment,s=r.snapshot._lastPathIndex+i,a=t.numberOfDoubleDots;a>s;){if(a-=s,!(u=u.parent))throw new Error("Invalid number of '../'");s=u.segments.length}return new ee(u,!1,s-a)}()}(o,0,t),s=u.processChildren?ie(u.segmentGroup,u.index,o.commands):re(u.segmentGroup,u.index,o.commands);return Jt(u.segmentGroup,s,e,r,i)}(l,this.currentUrlTree,t,h,f)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof lt?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0?R.apply(null,e.concat([t])):t}var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e}(i.Observable),D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e}(m),V="@ngrx/store/update-reducers",F=function(t){function e(e,n,r,i){var o=t.call(this,i(r,n))||this;return o.dispatcher=e,o.initialState=n,o.reducers=r,o.reducerFactory=i,o}return y(e,t),e.prototype.addFeature=function(t){var e=t.reducers,n=t.metaReducers,r=t.initialState,i=t.key,o="function"==typeof e?function(t,i){return function(t,e){return Array.isArray(e)&&e.length>0?R.apply(void 0,e)(t):t}(e,n)(t||r,i)}:k(t.reducerFactory,n)(e,r);this.addReducer(i,o)},e.prototype.removeFeature=function(t){this.removeReducer(t.key)},e.prototype.addReducer=function(t,e){var n;this.reducers=Object.assign({},this.reducers,((n={})[t]=e,n)),this.updateReducers()},e.prototype.removeReducer=function(t){var e,n;this.reducers=(e=this.reducers,n=t,Object.keys(e).filter(function(t){return t!==n}).reduce(function(t,n){return Object.assign(t,((r={})[n]=e[n],r));var r},{})),this.updateReducers()},e.prototype.updateReducers=function(){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:V})},e.prototype.ngOnDestroy=function(){this.complete()},e}(c.a),U=[F,{provide:P,useExisting:F},{provide:D,useExisting:m}],L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e.prototype.ngOnDestroy=function(){this.complete()},e}(d.a),H=[L],z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e}(i.Observable),B=function(t){function e(e,n,r,i){var o=t.call(this,i)||this,u=(function(t,e){return void 0===e&&(e=0),Object(f.b)(t,e)(this)}).call(e,l.a),s=(function(){for(var t=[],e=0;e=2?Object(p.a)(t,e)(this):Object(p.a)(t)(this)}).call(s,q,{state:i});return o.stateSubscription=a.subscribe(function(t){var e=t.action;o.next(t.state),r.next(e)}),o}return y(e,t),e.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},e}(c.a);function q(t,e){void 0===t&&(t={state:void 0});var n=e[0];return{state:(0,e[1])(t.state,n),action:n}}B.INIT=g;var W=[B,{provide:z,useExisting:B}],G=function(t){function e(e,n,r){var i=t.call(this)||this;return i.actionsObserver=n,i.reducerManager=r,i.source=e,i}return y(e,t),e.prototype.select=function(t){for(var e=[],n=1;n=0}var v=n("YaPU"),y=n("1Q68");function g(t){return t instanceof Date&&!isNaN(+t)}var m=function(t){function e(e,n,r){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,d(n)?this.period=Number(n)<1?1:Number(n):Object(y.a)(n)&&(r=n),Object(y.a)(r)||(r=h),this.scheduler=r,this.dueTime=g(e)?+e-this.scheduler.now():e}return Object(r.__extends)(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}},e.prototype._subscribe=function(t){return this.scheduler.schedule(e.dispatch,this.dueTime,{index:0,period:this.period,subscriber:t})},e}(v.Observable).create;function b(t,e){return void 0===e&&(e=h),a(function(){return m(t,e)})}function _(t){return function(e){return e.lift(new w(t))}}var w=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new x(t,this.closingNotifier))},t}(),x=function(t){function e(e,n){t.call(this,e),this.buffer=[],this.add(Object(s.a)(this,n))}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(u.a),C=n("OVmG");function S(t,e){return void 0===e&&(e=null),function(n){return n.lift(new O(t,e))}}var O=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?E:T}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),T=function(t){function e(e,n){t.call(this,e),this.bufferSize=n,this.buffer=[]}return Object(r.__extends)(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(C.a),E=function(t){function e(e,n,r){t.call(this,e),this.bufferSize=n,this.startBufferEvery=r,this.buffers=[],this.count=0}return Object(r.__extends)(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var u=r[o];u.push(t),u.length===e&&(r.splice(o,1),this.destination.next(u))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(C.a);function j(t){var e=arguments.length,n=h;Object(y.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new I(t,r,i,n))}}var I=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new A(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),A=function(t){function e(e,n,r,i,o){t.call(this,e),this.bufferTimeSpan=n,this.bufferCreationInterval=r,this.maxBufferSize=i,this.scheduler=o,this.contexts=[];var u=this.openContext();if(this.timespanOnly=null==r||r<0,this.timespanOnly)this.add(u.closeAction=o.schedule(M,n,{subscriber:this,context:u,bufferTimeSpan:n}));else{var s={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:this,scheduler:o};this.add(u.closeAction=o.schedule(R,n,{subscriber:this,context:u})),this.add(o.schedule(N,r,s))}}return Object(r.__extends)(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.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 n=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(M,n,{subscriber:this,context:t,bufferTimeSpan:n}))}},e.prototype.openContext=function(){var t=new function(){this.buffer=[]};return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(C.a);function M(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function N(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(R,n,{subscriber:r,context:o})),this.schedule(t,e))}function R(t){t.subscriber.closeContext(t.context)}var k=n("VwZZ");function P(t,e){return function(n){return n.lift(new D(t,e))}}var D=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new V(t,this.openings,this.closingSelector))},t}(),V=function(t){function e(e,n,r){t.call(this,e),this.openings=n,this.closingSelector=r,this.contexts=[],this.add(Object(s.a)(this,n))}return Object(r.__extends)(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.subscription;this.destination.next(t.buffer),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new k.a,r={buffer:[],subscription:n};e.push(r);var i=Object(s.a)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(u.a);function F(t){return function(e){return e.lift(new U(t))}}var U=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new L(t,this.closingSelector))},t}(),L=function(t){function e(e,n){t.call(this,e),this.closingSelector=n,this.subscribing=!1,this.openBuffer()}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];var e=Object(i.a)(this.closingSelector)();e===o.a?this.error(o.a.e):(t=new k.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(s.a)(this,e)),this.subscribing=!1)},e}(u.a),H=n("T4hI"),z=n("Veqx"),B={};function q(){for(var t=[],e=0;e0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new yt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ht.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(ht.a.createComplete())},e}(C.a),yt=function(t,e){this.time=t,this.notification=e};function gt(t,e){return e?function(n){return new _t(n,e).lift(new mt(t))}:function(e){return e.lift(new mt(t))}}var mt=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new bt(t,this.delayDurationSelector))},t}(),bt=function(t){function e(e,n){t.call(this,e),this.delayDurationSelector=n,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return Object(r.__extends)(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),n=null;return-1!==e&&(n=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),n},e.prototype.tryDelay=function(t,e){var n=Object(s.a)(this,t,e);n&&!n.closed&&(this.add(n),this.delayNotifierSubscriptions.push(n)),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(u.a),_t=function(t){function e(e,n){t.call(this),this.source=e,this.subscriptionDelay=n}return Object(r.__extends)(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new wt(t,this.source))},e}(v.Observable),wt=function(t){function e(e,n){t.call(this),this.parent=e,this.source=n,this.sourceSubscribed=!1}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(C.a),xt=n("PlIH"),Ct=n("AMGY").a.Set||function(){return function(){function t(){this._values=[]}return t.prototype.add=function(t){this.has(t)||this._values.push(t)},t.prototype.has=function(t){return-1!==this._values.indexOf(t)},Object.defineProperty(t.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this._values.length=0},t}()}();function St(t,e){return function(n){return n.lift(new Ot(t,e))}}var Ot=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new Tt(t,this.keySelector,this.flushes))},t}(),Tt=function(t){function e(e,n,r){t.call(this,e),this.keySelector=n,this.values=new Ct,r&&this.add(Object(s.a)(this,r))}return Object(r.__extends)(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(u.a),Et=n("BaTJ");function jt(t,e){return Object(Et.a)(function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})}var It=n("pU/0");function At(t,e){return function(n){return n.lift(new Mt(t,e))}}var Mt=function(){function t(t,e){if(this.index=t,this.defaultValue=e,t<0)throw new It.a}return t.prototype.call=function(t,e){return e.subscribe(new Nt(t,this.index,this.defaultValue))},t}(),Nt=function(t){function e(e,n,r){t.call(this,e),this.index=n,this.defaultValue=r}return Object(r.__extends)(e,t),e.prototype._next=function(t){0==this.index--&&(this.destination.next(t),this.destination.complete())},e.prototype._complete=function(){var t=this.destination;this.index>=0&&("undefined"!=typeof this.defaultValue?t.next(this.defaultValue):t.error(new It.a)),t.complete()},e}(C.a),Rt=n("ehgS");function kt(){return function(t){return t.lift(new Pt)}}var Pt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Dt(t))},t}(),Dt=function(t){function e(e){t.call(this,e),this.hasCompleted=!1,this.hasSubscription=!1}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(s.a)(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(u.a),Vt=n("I7Gx");function Ft(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new Ut(t,e,n))}}var Ut=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new Lt(t,this.project,this.concurrent,this.scheduler))},t}(),Lt=function(t){function e(e,n,r,i){t.call(this,e),this.project=n,this.concurrent=r,this.scheduler=i,this.index=0,this.active=0,this.hasCompleted=!1,r0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(u.a),Ht=n("w9is");function zt(t){return function(e){return e.lift(new Bt(t))}}var Bt=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new qt(t,this.callback))},t}(),qt=function(t){function e(e,n){t.call(this,e),this.add(new k.a(n))}return Object(r.__extends)(e,t),e}(C.a);function Wt(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new Gt(t,n,!1,e))}}var Gt=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new Yt(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),Yt=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.source=r,this.yieldIndex=i,this.thisArg=o,this.index=0}return Object(r.__extends)(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(C.a);function Zt(t,e){return function(n){return n.lift(new Gt(t,n,!0,e))}}var Qt=n("keGL"),Kt=n("MNFA"),Xt=n("MKMw");function $t(){return function(t){return t.lift(new Jt)}}var Jt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new te(t))},t}(),te=function(t){function e(e){t.call(this,e)}return Object(r.__extends)(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(C.a),ee=n("FcdX"),ne=n("HdCx");function re(t){return function(e){return e.lift(new ie(t))}}var ie=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new oe(t,this.value))},t}(),oe=function(t){function e(e,n){t.call(this,e),this.value=n}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(C.a),ue=n("VeP7"),se=n("/4Bh");function ae(t){var e="function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e};return Object(se.a)(e)}var ce=n("/nXB");function le(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(u.a);function ye(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new ge(t,e,n))}}var ge=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new me(t,this.accumulator,this.seed,this.concurrent))},t}(),me=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this.acc=r,this.concurrent=i,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return Object(r.__extends)(e,t),e.prototype._next=function(t){if(this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(u.a);function be(t){var e="function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return te&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(Ae.a),Le=function(t,e){this.time=t,this.value=e};function He(t,e,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new Ue(t,e,r);return function(t){return Object(_e.a)(function(){return o},i)(t)}}var ze=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Be(t))},t}(),Be=function(t){function e(e){t.call(this,e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(C.a);function Qe(t){return function(e){return e.lift(new Ke(t))}}var Ke=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Xe(t,this.notifier,e))},t}(),Xe=function(t){function e(e,n,r){t.call(this,e),this.notifier=n,this.source=r,this.sourceIsBeingSubscribedTo=!0}return Object(r.__extends)(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries){if(this.retriesSubscription.closed)return t.prototype.complete.call(this)}else this.subscribeToRetries();this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this.notifications,n=this.retries,r=this.retriesSubscription;return this.notifications=null,this.retries=null,this.retriesSubscription=null,t.prototype._unsubscribeAndRecycle.call(this),this.notifications=e,this.retries=n,this.retriesSubscription=r,this},e.prototype.subscribeToRetries=function(){this.notifications=new Ae.a;var e=Object(i.a)(this.notifier)(this.notifications);if(e===o.a)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=Object(s.a)(this,e)},e}(u.a);function $e(t){return void 0===t&&(t=-1),function(e){return e.lift(new Je(t,e))}}var Je=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new tn(t,this.count,this.source))},t}(),tn=function(t){function e(e,n,r){t.call(this,e),this.count=n,this.source=r}return Object(r.__extends)(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(C.a);function en(t){return function(e){return e.lift(new nn(t,e))}}var nn=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new rn(t,this.notifier,this.source))},t}(),rn=function(t){function e(e,n,r){t.call(this,e),this.notifier=n,this.source=r}return Object(r.__extends)(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,u=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new Ae.a,(r=Object(i.a)(this.notifier)(n))===o.a)return t.prototype.error.call(this,o.a.e);u=Object(s.a)(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=u,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.errors,u=this.retries,s=this.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=o,this.retries=u,this.retriesSubscription=s,this.source.subscribe(this)},e}(u.a),on=n("0P3J");function un(t){return function(e){return e.lift(new sn(t))}}var sn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new an(t),r=e.subscribe(n);return r.add(Object(s.a)(n,this.notifier)),r},t}(),an=function(t){function e(){t.apply(this,arguments),this.hasValue=!1}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(u.a);function cn(t,e){return void 0===e&&(e=h),function(n){return n.lift(new ln(t,e))}}var ln=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new fn(t,this.period,this.scheduler))},t}(),fn=function(t){function e(e,n,r){t.call(this,e),this.period=n,this.scheduler=r,this.hasValue=!1,this.add(r.schedule(hn,n,{subscriber:this,period:n}))}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(C.a);function hn(t){var e=t.period;t.subscriber.notifyNext(),this.schedule(t,e)}var pn=n("E5SG");function dn(t,e){return function(n){return n.lift(new vn(t,e))}}var vn=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new yn(t,this.compareTo,this.comparor))},t}(),yn=function(t){function e(e,n,r){t.call(this,e),this.compareTo=n,this.comparor=r,this._a=[],this._b=[],this._oneComplete=!1,this.add(n.subscribe(new gn(e,this)))}return Object(r.__extends)(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparor;t.length>0&&e.length>0;){var r=t.shift(),u=e.shift(),s=!1;n?(s=Object(i.a)(n)(r,u))===o.a&&this.destination.error(o.a.e):s=r===u,s||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e}(C.a),gn=function(t){function e(e,n){t.call(this,e),this.parent=n}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(C.a),mn=n("3a3m");function bn(t,e,n){return function(r){return r.lift(function(t,e,n){var r,i,o=0,u=!1,s=!1;return function(a){o++,r&&!u||(u=!1,r=new Ue(t,e,n),i=a.subscribe({next:function(t){r.next(t)},error:function(t){u=!0,r.error(t)},complete:function(){s=!0,r.complete()}}));var c=r.subscribe(this);return function(){o--,c.unsubscribe(),i&&0===o&&s&&i.unsubscribe()}}}(t,e,n))}}var _n=n("CB8l");function wn(t){return function(e){return e.lift(new xn(t,e))}}var xn=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Cn(t,this.predicate,this.source))},t}(),Cn=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.source=r,this.seenValue=!1,this.index=0}return Object(r.__extends)(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new _n.a)},e}(C.a);function Sn(t){return function(e){return e.lift(new On(t))}}var On=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Tn(t,this.total))},t}(),Tn=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return Object(r.__extends)(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(C.a);function En(t){return function(e){return e.lift(new jn(t))}}var jn=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new It.a}return t.prototype.call=function(t,e){return e.subscribe(0===this._skipCount?new C.a(t):new In(t,this._skipCount))},t}(),In=function(t){function e(e,n){t.call(this,e),this._skipCount=n,this._count=0,this._ring=new Array(n)}return Object(r.__extends)(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n1?new z.a(t,n):new We.a(n),e)}}function Fn(t,e){return function(n){return n.lift(new Un(t,e))}}var Un=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Ln(t,this.project,this.resultSelector))},t}(),Ln=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.index=0}return Object(r.__extends)(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=Object(s.a)(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._tryNotifyNext(t,e,n,r):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e}(u.a),Hn=n("lAP5");function zn(){return Fn(Hn.a)}function Bn(t,e){return function(n){return n.lift(new qn(t,e))}}var qn=function(){function t(t,e){this.observable=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Wn(t,this.observable,this.resultSelector))},t}(),Wn=function(t){function e(e,n,r){t.call(this,e),this.inner=n,this.resultSelector=r,this.index=0}return Object(r.__extends)(e,t),e.prototype._next=function(t){var e=this.innerSubscription;e&&e.unsubscribe(),this.add(this.innerSubscription=Object(s.a)(this,this.inner,t,this.index++))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.destination;this.resultSelector?this.tryResultSelector(t,e,n,r):o.next(e)},e.prototype.tryResultSelector=function(t,e,n,r){var i,o=this.resultSelector,u=this.destination;try{i=o(t,e,n,r)}catch(t){return void u.error(t)}u.next(i)},e}(u.a);function Gn(t){return function(e){return 0===t?new We.a:e.lift(new Yn(t))}}var Yn=function(){function t(t){if(this.total=t,this.total<0)throw new It.a}return t.prototype.call=function(t,e){return e.subscribe(new Zn(t,this.total))},t}(),Zn=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return Object(r.__extends)(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(C.a),Qn=n("T1Dh");function Kn(t){return function(e){return e.lift(new Xn(t))}}var Xn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new $n(t,this.notifier))},t}(),$n=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(Object(s.a)(this,n))}return Object(r.__extends)(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.complete()},e.prototype.notifyComplete=function(){},e}(u.a);function Jn(t){return function(e){return e.lift(new tr(t))}}var tr=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new er(t,this.predicate))},t}(),er=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.index=0}return Object(r.__extends)(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()},e}(C.a);function nr(t,e,n){return function(r){return r.lift(new rr(t,e,n))}}var rr=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new ir(t,this.nextOrObserver,this.error,this.complete))},t}(),ir=function(t){function e(e,n,r,i){t.call(this,e);var o=new C.a(n,r,i);o.syncErrorThrowable=!0,this.add(o),this.safeSubscriber=o}return Object(r.__extends)(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),this.destination.error(e.syncErrorThrown?e.syncErrorValue:t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(C.a),or={leading:!0,trailing:!1};function ur(t,e){return void 0===e&&(e=or),function(n){return n.lift(new sr(t,e.leading,e.trailing))}}var sr=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new ar(t,this.durationSelector,this.leading,this.trailing))},t}(),ar=function(t){function e(e,n,r,i){t.call(this,e),this.destination=e,this.durationSelector=n,this._leading=r,this._trailing=i,this._hasTrailingValue=!1}return Object(r.__extends)(e,t),e.prototype._next=function(t){if(this.throttled)this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t);else{var e=this.tryDurationSelector(t);e&&this.add(this.throttled=Object(s.a)(this,e)),this._leading&&(this.destination.next(t),this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t))}},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype._unsubscribe=function(){var t=this.throttled;this._trailingValue=null,this._hasTrailingValue=!1,t&&(this.remove(t),this.throttled=null,t.unsubscribe())},e.prototype._sendTrailing=function(){var t=this;t.throttled&&t._trailing&&t._hasTrailingValue&&(t.destination.next(t._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1)},e.prototype.notifyNext=function(t,e,n,r,i){this._sendTrailing(),this._unsubscribe()},e.prototype.notifyComplete=function(){this._sendTrailing(),this._unsubscribe()},e}(u.a);function cr(t,e,n){return void 0===e&&(e=h),void 0===n&&(n=or),function(r){return r.lift(new lr(t,e,n.leading,n.trailing))}}var lr=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new fr(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),fr=function(t){function e(e,n,r,i,o){t.call(this,e),this.duration=n,this.scheduler=r,this.leading=i,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}return Object(r.__extends)(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(hr,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(C.a);function hr(t){t.subscriber.clearThrottle()}function pr(t){return void 0===t&&(t=h),function(e){return e.lift(new dr(t))}}var dr=function(){function t(t){this.scheduler=t}return t.prototype.call=function(t,e){return e.subscribe(new vr(t,this.scheduler))},t}(),vr=function(t){function e(e,n){t.call(this,e),this.scheduler=n,this.lastTime=0,this.lastTime=n.now()}return Object(r.__extends)(e,t),e.prototype._next=function(t){var e=this.scheduler.now(),n=e-this.lastTime;this.lastTime=e,this.destination.next(new function(t,e){this.value=t,this.interval=e}(t,n))},e}(C.a),yr=function(t){function e(){var e=t.call(this,"Timeout has occurred");this.name=e.name="TimeoutError",this.stack=e.stack,this.message=e.message}return Object(r.__extends)(e,t),e}(Error);function gr(t,e){void 0===e&&(e=h);var n=g(t),r=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new mr(r,n,e,new yr))}}var mr=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.scheduler=n,this.errorInstance=r}return t.prototype.call=function(t,e){return e.subscribe(new br(t,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},t}(),br=function(t){function e(e,n,r,i,o){t.call(this,e),this.absoluteTimeout=n,this.waitFor=r,this.scheduler=i,this.errorInstance=o,this.action=null,this.scheduleTimeout()}return Object(r.__extends)(e,t),e.dispatchTimeout=function(t){t.error(t.errorInstance)},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.errorInstance=null},e}(C.a);function _r(t,e,n){return void 0===n&&(n=h),function(r){var i=g(t),o=i?+t-n.now():Math.abs(t);return r.lift(new wr(o,i,e,n))}}var wr=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new xr(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),xr=function(t){function e(e,n,r,i,o){t.call(this,e),this.absoluteTimeout=n,this.waitFor=r,this.withObservable=i,this.scheduler=o,this.action=null,this.scheduleTimeout()}return Object(r.__extends)(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(Object(s.a)(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(u.a);function Cr(t){return void 0===t&&(t=h),Object(ne.a)(function(e){return new Sr(e,t.now())})}var Sr=function(t,e){this.value=t,this.timestamp=e};function Or(t,e,n){return 0===n?[e]:(t.push(e),t)}function Tr(){return Object(se.a)(Or,[])}function Er(t){return function(e){return e.lift(new jr(t))}}var jr=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new Ir(t),r=e.subscribe(n);return r.closed||n.add(Object(s.a)(n,this.windowBoundaries)),r},t}(),Ir=function(t){function e(e){t.call(this,e),this.window=new Ae.a,e.next(this.window)}return Object(r.__extends)(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new Ae.a;e.next(n)},e}(u.a);function Ar(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Mr(t,e))}}var Mr=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new Nr(t,this.windowSize,this.startWindowEvery))},t}(),Nr=function(t){function e(e,n,r){t.call(this,e),this.destination=e,this.windowSize=n,this.startWindowEvery=r,this.windows=[new Ae.a],this.count=0,e.next(this.windows[0])}return Object(r.__extends)(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,u=0;u=0&&s%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var a=new Ae.a;i.push(a),n.next(a)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(C.a);function Rr(t){var e=h,n=null,r=Number.POSITIVE_INFINITY;return Object(y.a)(arguments[3])&&(e=arguments[3]),Object(y.a)(arguments[2])?e=arguments[2]:d(arguments[2])&&(r=arguments[2]),Object(y.a)(arguments[1])?e=arguments[1]:d(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new kr(t,n,r,e))}}var kr=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new Dr(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),Pr=function(t){function e(){t.apply(this,arguments),this._numberOfNextedValues=0}return Object(r.__extends)(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(Ae.a),Dr=function(t){function e(e,n,r,i,o){t.call(this,e),this.destination=e,this.windowTimeSpan=n,this.windowCreationInterval=r,this.maxWindowSize=i,this.scheduler=o,this.windows=[];var u=this.openWindow();if(null!==r&&r>=0){var s={windowTimeSpan:n,windowCreationInterval:r,subscriber:this,scheduler:o};this.add(o.schedule(Ur,n,{subscriber:this,window:u,context:null})),this.add(o.schedule(Fr,r,s))}else this.add(o.schedule(Vr,n,{subscriber:this,window:u,windowTimeSpan:n}))}return Object(r.__extends)(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new Pr;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(C.a);function Vr(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function Fr(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),u={action:this,subscription:null};u.subscription=r.schedule(Ur,e,{subscriber:n,window:o,context:u}),this.add(u.subscription),this.schedule(t,i)}function Ur(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function Lr(t,e){return function(n){return n.lift(new Hr(t,e))}}var Hr=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new zr(t,this.openings,this.closingSelector))},t}(),zr=function(t){function e(e,n,r){t.call(this,e),this.openings=n,this.closingSelector=r,this.contexts=[],this.add(this.openSubscription=Object(s.a)(this,n,n))}return Object(r.__extends)(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;rthis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Jr=function(t){function e(e,n,r){t.call(this,e),this.parent=n,this.observable=r,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return Object(r.__extends)(e,t),e.prototype[Yr.a]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return Object(s.a)(this,this.observable,this,e)},e}(u.a);function ti(t){return function(e){return e.lift(new Qr(t))}}n.d(e,"audit",function(){return a}),n.d(e,"auditTime",function(){return b}),n.d(e,"buffer",function(){return _}),n.d(e,"bufferCount",function(){return S}),n.d(e,"bufferTime",function(){return j}),n.d(e,"bufferToggle",function(){return P}),n.d(e,"bufferWhen",function(){return F}),n.d(e,"catchError",function(){return H.a}),n.d(e,"combineAll",function(){return Y}),n.d(e,"combineLatest",function(){return q}),n.d(e,"concat",function(){return $}),n.d(e,"concatAll",function(){return K.a}),n.d(e,"concatMap",function(){return J.a}),n.d(e,"concatMapTo",function(){return tt}),n.d(e,"count",function(){return et}),n.d(e,"debounce",function(){return it}),n.d(e,"debounceTime",function(){return st}),n.d(e,"defaultIfEmpty",function(){return ft.a}),n.d(e,"delay",function(){return pt}),n.d(e,"delayWhen",function(){return gt}),n.d(e,"dematerialize",function(){return xt.a}),n.d(e,"distinct",function(){return St}),n.d(e,"distinctUntilChanged",function(){return Et.a}),n.d(e,"distinctUntilKeyChanged",function(){return jt}),n.d(e,"elementAt",function(){return At}),n.d(e,"every",function(){return Rt.a}),n.d(e,"exhaust",function(){return kt}),n.d(e,"exhaustMap",function(){return Vt.a}),n.d(e,"expand",function(){return Ft}),n.d(e,"filter",function(){return Ht.a}),n.d(e,"finalize",function(){return zt}),n.d(e,"find",function(){return Wt}),n.d(e,"findIndex",function(){return Zt}),n.d(e,"first",function(){return Qt.a}),n.d(e,"groupBy",function(){return Kt.a}),n.d(e,"ignoreElements",function(){return Xt.a}),n.d(e,"isEmpty",function(){return $t}),n.d(e,"last",function(){return ee.a}),n.d(e,"map",function(){return ne.a}),n.d(e,"mapTo",function(){return re}),n.d(e,"materialize",function(){return ue.a}),n.d(e,"max",function(){return ae}),n.d(e,"merge",function(){return le}),n.d(e,"mergeAll",function(){return fe.a}),n.d(e,"mergeMap",function(){return he.a}),n.d(e,"flatMap",function(){return he.a}),n.d(e,"mergeMapTo",function(){return pe}),n.d(e,"mergeScan",function(){return ye}),n.d(e,"min",function(){return be}),n.d(e,"multicast",function(){return _e.a}),n.d(e,"observeOn",function(){return we.b}),n.d(e,"onErrorResumeNext",function(){return xe}),n.d(e,"pairwise",function(){return Oe}),n.d(e,"partition",function(){return je}),n.d(e,"pluck",function(){return Ie.a}),n.d(e,"publish",function(){return Me}),n.d(e,"publishBehavior",function(){return Re}),n.d(e,"publishLast",function(){return Pe}),n.d(e,"publishReplay",function(){return He}),n.d(e,"race",function(){return qe}),n.d(e,"reduce",function(){return se.a}),n.d(e,"repeat",function(){return Ge}),n.d(e,"repeatWhen",function(){return Qe}),n.d(e,"retry",function(){return $e}),n.d(e,"retryWhen",function(){return en}),n.d(e,"refCount",function(){return on.a}),n.d(e,"sample",function(){return un}),n.d(e,"sampleTime",function(){return cn}),n.d(e,"scan",function(){return pn.a}),n.d(e,"sequenceEqual",function(){return dn}),n.d(e,"share",function(){return mn.a}),n.d(e,"shareReplay",function(){return bn}),n.d(e,"single",function(){return wn}),n.d(e,"skip",function(){return Sn}),n.d(e,"skipLast",function(){return En}),n.d(e,"skipUntil",function(){return An}),n.d(e,"skipWhile",function(){return Rn}),n.d(e,"startWith",function(){return Vn}),n.d(e,"switchAll",function(){return zn}),n.d(e,"switchMap",function(){return Fn}),n.d(e,"switchMapTo",function(){return Bn}),n.d(e,"take",function(){return Gn}),n.d(e,"takeLast",function(){return Qn.a}),n.d(e,"takeUntil",function(){return Kn}),n.d(e,"takeWhile",function(){return Jn}),n.d(e,"tap",function(){return nr}),n.d(e,"throttle",function(){return ur}),n.d(e,"throttleTime",function(){return cr}),n.d(e,"timeInterval",function(){return pr}),n.d(e,"timeout",function(){return gr}),n.d(e,"timeoutWith",function(){return _r}),n.d(e,"timestamp",function(){return Cr}),n.d(e,"toArray",function(){return Tr}),n.d(e,"window",function(){return Er}),n.d(e,"windowCount",function(){return Ar}),n.d(e,"windowTime",function(){return Rr}),n.d(e,"windowToggle",function(){return Lr}),n.d(e,"windowWhen",function(){return Br}),n.d(e,"withLatestFrom",function(){return Gr.a}),n.d(e,"zip",function(){return Zr}),n.d(e,"zipAll",function(){return ti})},lAP5:function(t,e,n){"use strict";e.a=function(t){return t}},mnL7:function(t,e,n){"use strict";var r=n("TToO"),i=n("BX3T"),o=n("N4j0"),u=n("cQXm"),s=n("nsdQ"),a=n("AMGY"),c=n("YaPU"),l=n("etqZ"),f=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=d(e)}return Object(r.__extends)(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.iterator,r=t.subscriber;if(t.hasError)r.error(t.error);else{var i=n.next();i.done?r.complete():(r.next(i.value),t.index=e+1,r.closed?"function"==typeof n.return&&n.return():this.schedule(t))}},e.prototype._subscribe=function(t){var n=this.iterator,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{index:0,iterator:n,subscriber:t});for(;;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed){"function"==typeof n.return&&n.return();break}}},e}(c.Observable),h=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[l.a]=function(){return this},t.prototype.next=function(){return this.idxv?v:i:i}()),this.arr=t,this.idx=e,this.len=n}return t.prototype[l.a]=function(){return this},t.prototype.next=function(){return this.idx=t.length?r.complete():(r.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.arrayLike,r=this.scheduler,i=n.length;if(r)return r.schedule(e.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:t});for(var o=0;o0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n("Ne5x").a),o=function(t){function e(){t.apply(this,arguments)}return Object(r.__extends)(e,t),e}(n("Z4xk").a);n.d(e,"a",function(){return u});var u=new o(i)},"r/Om":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"ROUTER_ERROR",function(){return f}),n.d(e,"ROUTER_CANCEL",function(){return l}),n.d(e,"ROUTER_NAVIGATION",function(){return c}),n.d(e,"routerReducer",function(){return h}),n.d(e,"StoreRouterConnectingModule",function(){return g}),n.d(e,"ROUTER_CONFIG",function(){return d}),n.d(e,"DEFAULT_ROUTER_FEATURENAME",function(){return v}),n.d(e,"RouterStateSerializer",function(){return s}),n.d(e,"DefaultRouterStateSerializer",function(){return a}),n.d(e,"\u0275a",function(){return p}),n.d(e,"\u0275b",function(){return y});var r=n("WT6e"),i=n("bfOx"),o=n("dyjq"),u=n("YWe0"),s=function(){},a=function(){function t(){}return t.prototype.serialize=function(t){return t},t}(),c="ROUTER_NAVIGATION",l="ROUTER_CANCEL",f="ROUTE_ERROR";function h(t,e){switch(e.type){case c:case f:case l:return{state:e.payload.routerState,navigationId:e.payload.event.id};default:return t}}var p=new r.InjectionToken("@ngrx/router-store Internal Configuration"),d=new r.InjectionToken("@ngrx/router-store Configuration"),v="routerReducer";function y(t){var e;return e="function"==typeof t?t():t||{},Object.assign({stateKey:v},e)}var g=function(){function t(t,e,n,r){this.store=t,this.router=e,this.serializer=n,this.config=r,this.dispatchTriggeredByRouter=!1,this.navigationTriggeredByDispatch=!1,this.stateKey=this.config.stateKey,this.setUpBeforePreactivationHook(),this.setUpStoreStateListener(),this.setUpStateRollbackEvents()}return t.forRoot=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[{provide:p,useValue:e},{provide:d,useFactory:y,deps:[p]}]}},t.prototype.setUpBeforePreactivationHook=function(){var t=this;this.router.hooks.beforePreactivation=function(e){return t.routerState=t.serializer.serialize(e),t.shouldDispatchRouterNavigation()&&t.dispatchRouterNavigation(),Object(u.of)(!0)}},t.prototype.setUpStoreStateListener=function(){var t=this;this.store.subscribe(function(e){t.storeState=e}),this.store.pipe(Object(o.select)(this.stateKey)).subscribe(function(){t.navigateIfNeeded()})},t.prototype.shouldDispatchRouterNavigation=function(){return!this.storeState[this.stateKey]||!this.navigationTriggeredByDispatch},t.prototype.navigateIfNeeded=function(){this.storeState[this.stateKey]&&this.storeState[this.stateKey].state&&(this.dispatchTriggeredByRouter||this.router.url!==this.storeState[this.stateKey].state.url&&(this.navigationTriggeredByDispatch=!0,this.router.navigateByUrl(this.storeState[this.stateKey].state.url)))},t.prototype.setUpStateRollbackEvents=function(){var t=this;this.router.events.subscribe(function(e){e instanceof i.q?t.lastRoutesRecognized=e:e instanceof i.d?t.dispatchRouterCancel(e):e instanceof i.e&&t.dispatchRouterError(e)})},t.prototype.dispatchRouterNavigation=function(){this.dispatchRouterAction(c,{routerState:this.routerState,event:new i.q(this.lastRoutesRecognized.id,this.lastRoutesRecognized.url,this.lastRoutesRecognized.urlAfterRedirects,this.routerState)})},t.prototype.dispatchRouterCancel=function(t){this.dispatchRouterAction(l,{routerState:this.routerState,storeState:this.storeState,event:t})},t.prototype.dispatchRouterError=function(t){this.dispatchRouterAction(f,{routerState:this.routerState,storeState:this.storeState,event:new i.e(t.id,t.url,""+t)})},t.prototype.dispatchRouterAction=function(t,e){this.dispatchTriggeredByRouter=!0;try{this.store.dispatch({type:t,payload:e})}finally{this.dispatchTriggeredByRouter=!1,this.navigationTriggeredByDispatch=!1}},t}()},t7NR:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},tLDX:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("AMGY").a.Symbol,i="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},tZ2B:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("TToO"),i=function(t){function e(){t.apply(this,arguments)}return Object(r.__extends)(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n("OVmG").a)},w9is:function(t,e,n){"use strict";e.a=function(t,e){return function(n){return n.lift(new o(t,e))}};var r=n("TToO"),i=n("OVmG"),o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.thisArg))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0}return Object(r.__extends)(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.a)},x6VL:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("TToO"),i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return Object(r.__extends)(e,t),e}(Error)},zVgD:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=n("mnL7").a.create},zrQW:function(t,e,n){"use strict";e.b=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new u(t,e))}},n.d(e,"a",function(){return s});var r=n("TToO"),i=n("OVmG"),o=n("jhW9"),u=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.scheduler,this.delay))},t}(),s=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return Object(r.__extends)(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new a(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.a.createError(t))},e.prototype._complete=function(){this.scheduleMessage(o.a.createComplete())},e}(i.a),a=function(t,e){this.notification=t,this.destination=e}}},[0]); \ No newline at end of file diff --git a/nx-examples/polyfills.b43b27ae2cdff163a847.bundle.js b/nx-examples/polyfills.b43b27ae2cdff163a847.bundle.js deleted file mode 100644 index 3f52191..0000000 --- a/nx-examples/polyfills.b43b27ae2cdff163a847.bundle.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([0],{"/whu":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"0Rih":function(t,e,n){"use strict";var r=n("OzIq"),o=n("Ds5P"),i=n("R3AP"),a=n("A16L"),c=n("1aA0"),u=n("vmSO"),s=n("9GpA"),l=n("UKM+"),f=n("zgIt"),p=n("qkyc"),h=n("yYvK"),v=n("kic5");t.exports=function(t,e,n,d,g,y){var k=r[t],_=k,m=g?"set":"add",b=_&&_.prototype,w={},T=function(t){var e=b[t];i(b,t,"delete"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!l(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 _&&(y||b.forEach&&!f(function(){(new _).entries().next()}))){var E=new _,O=E[m](y?{}:-0,1)!=E,S=f(function(){E.has(1)}),D=p(function(t){new _(t)}),x=!y&&f(function(){for(var t=new _,e=5;e--;)t[m](e,e);return!t.has(-0)});D||((_=e(function(e,n){s(e,_,t);var r=v(new k,e,_);return void 0!=n&&u(n,g,r[m],r),r})).prototype=b,b.constructor=_),(S||x)&&(T("delete"),T("has"),g&&T("get")),(x||O)&&T(m),y&&b.clear&&delete b.clear}else _=d.getConstructor(e,t,g,m),a(_.prototype,n),c.NEED=!0;return h(_,t),w[t]=_,o(o.G+o.W+o.F*(_!=k),w),y||d.setStrong(_,t,g),_}},1:function(t,e,n){t.exports=n("wlCs")},"1aA0":function(t,e,n){var r=n("ulTY")("meta"),o=n("UKM+"),i=n("WBcL"),a=n("lDLk").f,c=0,u=Object.isExtensible||function(){return!0},s=!n("zgIt")(function(){return u(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++c,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return s&&f.NEED&&u(t)&&!i(t,r)&&l(t),t}}},"2p1q":function(t,e,n){var r=n("lDLk"),o=n("fU25");t.exports=n("bUqO")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"3q4u":function(t,e,n){var r=n("wCso"),o=n("DIVP"),i=r.key,a=r.map,c=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:i(arguments[2]),r=a(o(e),n,!1);if(void 0===r||!r.delete(t))return!1;if(r.size)return!0;var u=c.get(e);return u.delete(n),!!u.size||c.delete(e)}})},"7gX0":function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},"7ylX":function(t,e,n){var r=n("DIVP"),o=n("twxM"),i=n("QKXm"),a=n("mZON")("IE_PROTO"),c=function(){},u=function(){var t,e=n("jhxf")("iframe"),r=i.length;for(e.style.display="none",n("d075").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("