diff --git a/app/app.component.ts b/app/app.component.ts index 73ec3c7..405b4e3 100644 --- a/app/app.component.ts +++ b/app/app.component.ts @@ -3,7 +3,6 @@ import { ROUTER_DIRECTIVES } from '@angular/router'; @Component({ directives: [ROUTER_DIRECTIVES], - providers: [Location], selector: 'my-app', styles: [`h1 { color: white; @@ -21,4 +20,4 @@ export class AppComponent { name: string = "Angular 2 on Express"; constructor() {} -} \ No newline at end of file +} diff --git a/app/app.module.ts b/app/app.module.ts new file mode 100644 index 0000000..4d10acf --- /dev/null +++ b/app/app.module.ts @@ -0,0 +1,21 @@ +import { NgModule } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; + +import { AppComponent } from './app.component'; +import { AboutComponent } from "./components/about/about.component"; +import { routing } from "./routes"; +import { HomeComponent } from "./components/home/home.component"; + +@NgModule({ + imports: [ + BrowserModule, + routing + ], + declarations: [ + AppComponent, + AboutComponent, + HomeComponent + ], + bootstrap: [ AppComponent ] +}) +export class AppModule { } diff --git a/app/components/home/home.component.html b/app/components/home/home.component.html index 1013afb..07cc697 100644 --- a/app/components/home/home.component.html +++ b/app/components/home/home.component.html @@ -1,5 +1,5 @@

Page: {{name}}

Response from server: /users
-
{{ ( users | async)?.name }}
-
{{ ( users | async)?.last }}
\ No newline at end of file +
{{ users?.name }}
+
{{ users?.last }}
\ No newline at end of file diff --git a/app/components/home/home.component.ts b/app/components/home/home.component.ts index 68da00d..54b4bd8 100755 --- a/app/components/home/home.component.ts +++ b/app/components/home/home.component.ts @@ -12,6 +12,8 @@ export class HomeComponent { users: {}; constructor(http: Http) { - this.users = http.get("/users").map(data => data.json()); + http.get("/users") + .map(data => data.json()) + .subscribe((data) => this.users = data); } } \ No newline at end of file diff --git a/app/main.ts b/app/main.ts index f9d4627..fecb4c6 100644 --- a/app/main.ts +++ b/app/main.ts @@ -1,10 +1,8 @@ -import { bootstrap } from '@angular/platform-browser-dynamic'; -import { Type } from '@angular/core'; import { HTTP_PROVIDERS } from "@angular/http"; -import { AppComponent } from './app.component' -import { APP_ROUTER_PROVIDERS } from "./routes"; -bootstrap(AppComponent, [ +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; +import { AppModule } from './app.module'; + +platformBrowserDynamic([ HTTP_PROVIDERS, - APP_ROUTER_PROVIDERS -]); \ No newline at end of file +]).bootstrapModule(AppModule); diff --git a/app/routes.ts b/app/routes.ts index 2511819..194669f 100644 --- a/app/routes.ts +++ b/app/routes.ts @@ -1,23 +1,11 @@ -import { provideRouter, RouterConfig } from '@angular/router'; -import { LocationStrategy, HashLocationStrategy } from "@angular/common"; -import { Type } from '@angular/core'; - -import {ComponentResolver, SystemJsComponentResolver} from '@angular/core'; -import {RuntimeCompiler} from '@angular/compiler'; +import { Routes, RouterModule } from '@angular/router'; import { HomeComponent } from './components/home/home.component'; import { AboutComponent } from './components/about/about.component'; -const routes: RouterConfig = [ - { path: '', component: HomeComponent, terminal: true }, - { path: 'about', component: AboutComponent } +export const routes: Routes = [ + { path: '', component: HomeComponent, terminal: true }, + { path: 'about', component: AboutComponent } ]; -export const APP_ROUTER_PROVIDERS = [ - provideRouter(routes), { - provide: ComponentResolver, - useFactory: (compiler) => new SystemJsComponentResolver(compiler), - deps: [RuntimeCompiler] - }, - { provide: LocationStrategy, useClass: HashLocationStrategy } -]; +export const routing = RouterModule.forRoot(routes, { useHash: true }); diff --git a/package.json b/package.json index 4d069c8..7c1e03e 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "tsc:w": "tsc -w", "typings": "typings install", "bundle": "node bin/bundler.js", - "bundle:prod": "node bin/bundler.js --prod" + "bundle:prod": "node bin/bundler.js --prod", + "ngc": "ngc -p ." + }, "dependencies": { "body-parser": "~1.13.2", @@ -19,25 +21,26 @@ "serve-favicon": "~2.3.0" }, "devDependencies": { - "@angular/common": "2.0.0-rc.3", - "@angular/compiler": "2.0.0-rc.3", - "@angular/core": "2.0.0-rc.3", - "@angular/http": "2.0.0-rc.3", - "@angular/platform-browser": "2.0.0-rc.3", - "@angular/platform-browser-dynamic": "2.0.0-rc.3", - "@angular/router": "^3.0.0-alpha.7", + "@angular/common": "2.0.0-rc.5", + "@angular/compiler": "2.0.0-rc.5", + "@angular/core": "2.0.0-rc.5", + "@angular/forms": "0.3.0", + "@angular/http": "2.0.0-rc.5", + "@angular/platform-browser": "2.0.0-rc.5", + "@angular/platform-browser-dynamic": "2.0.0-rc.5", + "@angular/router": "3.0.0-rc.1", "@angular/router-deprecated": "2.0.0-rc.2", - "@angular/upgrade": "2.0.0-rc.3", - "systemjs": "0.19.27", + "@angular/upgrade": "2.0.0-rc.5", + "angular2-in-memory-web-api": "0.0.15", + "concurrently": "^2.0.0", "core-js": "^2.4.0", "reflect-metadata": "^0.1.3", "rxjs": "5.0.0-beta.6", - "zone.js": "^0.6.12", - "angular2-in-memory-web-api": "0.0.12", - "concurrently": "^2.0.0", + "systemjs": "0.19.27", "systemjs-builder": "^0.15.17", "typescript": "^1.8.10", "typings": "^1.3.0", - "yargs": "^4.7.1" + "yargs": "^4.7.1", + "zone.js": "^0.6.12" } } diff --git a/public/index.html b/public/index.html index 8b123e0..1f9c74f 100755 --- a/public/index.html +++ b/public/index.html @@ -12,6 +12,7 @@ - + < diff --git a/public/js/bundle.min.js b/public/js/bundle.min.js index 97ed7a4..9e82b22 100644 --- a/public/js/bundle.min.js +++ b/public/js/bundle.min.js @@ -1,22 +1,23 @@ -!function(a){function b(a,b,e){return 4===arguments.length?c.apply(this,arguments):void d(a,{declarative:!0,deps:b,declare:e})}function c(a,b,c,e){d(a,{declarative:!1,deps:b,executingRequire:c,execute:e})}function d(a,b){b.name=a,a in o||(o[a]=b),b.normalizedDeps=b.deps}function e(a,b){if(b[a.groupIndex]=b[a.groupIndex]||[],-1==p.call(b[a.groupIndex],a)){b[a.groupIndex].push(a);for(var c=0,d=a.normalizedDeps.length;d>c;c++){var f=a.normalizedDeps[c],g=o[f];if(g&&!g.evaluated){var h=a.groupIndex+(g.declarative!=a.declarative);if(void 0===g.groupIndex||g.groupIndex=0;f--){for(var g=c[f],i=0;if;f++){var h=c.importers[f];if(!h.locked)for(var i=0;if;f++){var j,k=b.normalizedDeps[f],l=o[k],m=t[k];m?j=m.exports:l&&!l.declarative?j=l.esModule:l?(h(l),m=l.module,j=m.exports):j=n(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](j)}}}function i(a){var b,c=o[a];if(c)c.declarative?m(a,[]):c.evaluated||j(c),b=c.module.exports;else if(b=n(a),!b)throw new Error("Unable to load dependency "+a+".");return(!c||c.declarative)&&b&&b.__useDefault?b["default"]:b}function j(b){if(!b.module){var c={},d=b.module={exports:c,id:b.name};if(!b.executingRequire)for(var e=0,f=b.normalizedDeps.length;f>e;e++){var g=b.normalizedDeps[e],h=o[g];h&&j(h)}b.evaluated=!0;var l=b.execute.call(a,function(a){for(var c=0,d=b.deps.length;d>c;c++)if(b.deps[c]==a)return i(b.normalizedDeps[c]);throw new TypeError("Module "+a+" not declared as a dependency.")},c,d);l&&(d.exports=l),c=d.exports,c&&c.__esModule?b.esModule=c:b.esModule=k(c)}}function k(b){var c={};if(("object"==typeof b||"function"==typeof b)&&b!==a)if(q)for(var d in b)"default"!==d&&l(c,b,d);else{var e=b&&b.hasOwnProperty;for(var d in b)"default"===d||e&&!b.hasOwnProperty(d)||(c[d]=b[d])}return c["default"]=b,s(c,"__useDefault",{value:!0}),c}function l(a,b,c){try{var d;(d=Object.getOwnPropertyDescriptor(b,c))&&s(a,c,d)}catch(e){return a[c]=b[c],!1}}function m(b,c){var d=o[b];if(d&&!d.evaluated&&d.declarative){c.push(b);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==p.call(c,g)&&(o[g]?m(g,c):n(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(a))}}function n(a){if(v[a])return v[a];if("@node/"==a.substr(0,6))return u(a.substr(6));var b=o[a];if(!b)throw"Module "+a+" not present.";return f(a),m(a,[]),o[a]=void 0,b.declarative&&s(b.module.exports,"__esModule",{value:!0}),v[a]=b.declarative?b.module.exports:b.esModule}var o={},p=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},q=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(r){q=!1}var s;!function(){try{Object.defineProperty({},"a",{})&&(s=Object.defineProperty)}catch(a){s=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}();var t={},u="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,v={"@empty":{}};return function(a,d,e,f){return function(g){g(function(g){for(var h={_nodeRequire:u,register:b,registerDynamic:c,get:n,set:function(a,b){v[a]=b},newModule:function(a){return a}},i=0;i1)for(var i=1;ib;b++)if(this[b]===a)return b;return-1},h=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,i="(?:^|[^$_a-zA-Z\\xA0-\\uFFFF.])",j="\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)",k=/\(([^\)]*)\)/,l=/^\s+|\s+$/g,m={};e.amd={};var n={isBundle:!1,anonDefine:null};f.amdDefine=e,f.amdRequire=d}("undefined"!=typeof self?self:global),function(){var e=a.amdDefine,f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};!function(a,f){"object"==typeof c&&"undefined"!=typeof d?f(c,b("@angular/common"),b("@angular/compiler"),b("@angular/core"),b("@angular/platform-browser"),b("rxjs/Subject"),b("rxjs/observable/PromiseObservable"),b("rxjs/operator/toPromise"),b("rxjs/Observable")):"function"==typeof e&&e.amd?e("2",["exports","3","4","5","6","7","8","9","a"],f):f((a.ng=a.ng||{},a.ng.platformBrowserDynamic=a.ng.platformBrowserDynamic||{}),a.ng.common,a.ng.compiler,a.ng.core,a.ng.platformBrowser,a.Rx,a.Rx,a.Rx.Observable.prototype,a.Rx)}(this,function(a,b,c,d,e,g,h,i,j){"use strict";function k(a){return void 0!==a&&null!==a}function l(a){return void 0===a||null===a}function m(a){return Array.isArray(a)}function n(a,b){if(k(a))for(var c=0;c-1?(a.splice(c,1),!0):!1},a.clear=function(a){a.length=0},a.isEmpty=function(a){return 0==a.length},a.fill=function(a,b,c,d){void 0===c&&(c=0),void 0===d&&(d=null),a.fill(b,c,null===d?a.length:d)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;cd&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return n(a,b),b},a.addAll=function(a,b){for(var c=0;c=200&&300>=e?b.resolve(d):b.reject("Failed to load "+a,null)},c.onerror=function(){b.reject("Failed to load "+a,null)},c.send(),b.promise},b}(c.XHR),D=[c.COMPILER_PROVIDERS,{provide:c.CompilerConfig,useFactory:function(a,b){return new c.CompilerConfig({platformDirectives:a,platformPipes:b})},deps:[d.PLATFORM_DIRECTIVES,d.PLATFORM_PIPES]},{provide:c.XHR,useClass:C},{provide:d.PLATFORM_DIRECTIVES,useValue:b.COMMON_DIRECTIVES,multi:!0},{provide:d.PLATFORM_PIPES,useValue:b.COMMON_PIPES,multi:!0}],E=[{provide:c.XHR,useClass:B}],F=[c.COMPILER_PROVIDERS,{provide:c.CompilerConfig,useFactory:function(a,b){return new c.CompilerConfig({platformDirectives:a,platformPipes:b})},deps:[d.PLATFORM_DIRECTIVES,d.PLATFORM_PIPES]},{provide:c.XHR,useClass:C},{provide:d.PLATFORM_DIRECTIVES,useValue:b.COMMON_DIRECTIVES,multi:!0},{provide:d.PLATFORM_PIPES,useValue:b.COMMON_PIPES,multi:!0}];a.BROWSER_APP_COMPILER_PROVIDERS=D,a.CACHED_TEMPLATE_PROVIDER=E,a.bootstrap=o,a.bootstrapWorkerUi=p,a.bootstrapWorkerApp=q})}(),a.registerDynamic("b",["5","c"],!0,function(a,b,c){"use strict";var d=this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g},e=this&&this.__metadata||function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},f=a("5"),g=a("c"),h=function(){function a(){this.name="Angular 2 on Express"}return a=d([f.Component({directives:[g.ROUTER_DIRECTIVES],providers:[Location],selector:"my-app",styles:["h1 {\n color: white;\n background: darkgray;\n padding: 20px;\n}\n"],template:"\n

My First {{name}} app

\n\n\nHome | About"}),e("design:paramtypes",[])],a)}();return b.AppComponent=h,c.exports}),a.registerDynamic("d",["3","5","e","f"],!0,function(a,b,c){"use strict";var d=this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g},e=this&&this.__metadata||function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},f=a("3"),g=a("5"),h=a("e"),i=a("f"),j=function(){function a(a,b,c){this.router=a,this.route=b,this.locationStrategy=c,this.commands=[]}return Object.defineProperty(a.prototype,"routerLink",{set:function(a){Array.isArray(a)?this.commands=a:this.commands=[a]},enumerable:!0,configurable:!0}),a.prototype.ngOnChanges=function(a){this.updateTargetUrlAndHref()},a.prototype.onClick=function(a,b,c){return 0!==a||b||c?!0:"string"==typeof this.target&&"_self"!=this.target?!0:(this.router.navigateByUrl(this.urlTree),!1)},a.prototype.updateTargetUrlAndHref=function(){this.urlTree=this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment}),this.urlTree&&(this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)))},d([g.Input(),e("design:type",String)],a.prototype,"target",void 0),d([g.Input(),e("design:type",Object)],a.prototype,"queryParams",void 0),d([g.Input(),e("design:type",String)],a.prototype,"fragment",void 0),d([g.HostBinding(),e("design:type",String)],a.prototype,"href",void 0),d([g.Input(),e("design:type",Object),e("design:paramtypes",[Object])],a.prototype,"routerLink",null),d([g.HostListener("click",["$event.button","$event.ctrlKey","$event.metaKey"]),e("design:type",Function),e("design:paramtypes",[Number,Boolean,Boolean]),e("design:returntype",Boolean)],a.prototype,"onClick",null),a=d([g.Directive({selector:"[routerLink]"}),e("design:paramtypes",[h.Router,i.ActivatedRoute,f.LocationStrategy])],a)}();return b.RouterLink=j,c.exports}),a.registerDynamic("10",["5","e","11","d"],!0,function(a,b,c){"use strict";var d=this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g},e=this&&this.__metadata||function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},f=a("5"),g=a("e"),h=a("11"),i=a("d"),j=function(){function a(a,b,c){var d=this;this.router=a,this.element=b,this.renderer=c,this.classes=[],this.routerLinkActiveOptions={exact:!0},this.subscription=a.events.subscribe(function(a){a instanceof g.NavigationEnd&&d.update()})}return a.prototype.ngAfterContentInit=function(){var a=this;this.links.changes.subscribe(function(b){return a.update()}),this.update()},Object.defineProperty(a.prototype,"routerLinkActive",{set:function(a){Array.isArray(a)?this.classes=a:this.classes=a.split(" ")},enumerable:!0,configurable:!0}),a.prototype.ngOnChanges=function(a){this.update()},a.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},a.prototype.update=function(){var a=this;if(this.links&&0!==this.links.length){var b=this.router.parseUrl(this.router.url),c=this.links.reduce(function(c,d){return c||h.containsTree(b,d.urlTree,a.routerLinkActiveOptions.exact)},!1);this.classes.forEach(function(b){return a.renderer.setElementClass(a.element.nativeElement,b,c)})}},d([f.ContentChildren(i.RouterLink),e("design:type",f.QueryList)],a.prototype,"links",void 0),d([f.Input(),e("design:type",Object)],a.prototype,"routerLinkActiveOptions",void 0),d([f.Input(),e("design:type",Object),e("design:paramtypes",[Object])],a.prototype,"routerLinkActive",null),a=d([f.Directive({selector:"[routerLinkActive]"}),e("design:paramtypes",[g.Router,f.ElementRef,f.Renderer])],a)}();return b.RouterLinkActive=j,c.exports}),a.registerDynamic("12",["5","13","14"],!0,function(a,b,c){"use strict";var d=this&&this.__decorate||function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g},e=this&&this.__metadata||function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},f=this&&this.__param||function(a,b){return function(c,d){b(c,d,a)}},g=a("5"),h=a("13"),i=a("14"),j=function(){function a(a,b,c){this.location=b,a.registerOutlet(c?c:i.PRIMARY_OUTLET,this)}return Object.defineProperty(a.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),a.prototype.deactivate=function(){this.activated&&(this.activated.destroy(),this.activated=null)},a.prototype.activate=function(a,b,c,d){this.outletMap=d,this._activatedRoute=b;var e=g.ReflectiveInjector.fromResolvedProviders(c,this.location.parentInjector);this.activated=this.location.createComponent(a,this.location.length,e,[])},a=d([g.Directive({selector:"router-outlet"}),f(2,g.Attribute("name")),e("design:paramtypes",[h.RouterOutletMap,g.ViewContainerRef,String])],a)}();return b.RouterOutlet=j,c.exports}),a.registerDynamic("15",["16"],!0,function(a,b,c){"use strict";function d(a,b){return this.lift(new g(a,b))}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("16");b.scan=d;var g=function(){function a(a,b){this.accumulator=a,this.seed=b}return a.prototype.call=function(a,b){return b._subscribe(new h(a,this.accumulator,this.seed))},a}(),h=function(a){function b(b,c,d){a.call(this,b),this.accumulator=c,this.accumulatorSet=!1,this.seed=d,this.accumulator=c,this.accumulatorSet="undefined"!=typeof d}return e(b,a),Object.defineProperty(b.prototype,"seed",{get:function(){return this._seed},set:function(a){this.accumulatorSet=!0,this._seed=a},enumerable:!0,configurable:!0}),b.prototype._next=function(a){return this.accumulatorSet?this._tryNext(a):(this.seed=a,void this.destination.next(a))},b.prototype._tryNext=function(a){var b;try{b=this.accumulator(this.seed,a)}catch(c){this.destination.error(c)}this.seed=b,this.destination.next(b)},b}(f.Subscriber);return c.exports}),a.registerDynamic("17",["a","15"],!0,function(a,b,c){"use strict";var d=a("a"),e=a("15");return d.Observable.prototype.scan=e.scan,c.exports}),a.registerDynamic("18",["a","19"],!0,function(a,b,c){"use strict";var d=a("a"),e=a("19");return d.Observable.prototype.mergeMap=e.mergeMap,d.Observable.prototype.flatMap=e.mergeMap,c.exports}),a.registerDynamic("1a",["1b","1c","1d"],!0,function(a,b,c){"use strict";function d(){for(var a=[],b=0;b0?this._next(b.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},b}(g.OuterSubscriber);return b.MergeMapSubscriber=i,c.exports}),a.registerDynamic("21",["19"],!0,function(a,b,c){"use strict";function d(a,b){return this.lift(new e.MergeMapOperator(a,b,1))}var e=a("19");return b.concatMap=d,c.exports}),a.registerDynamic("22",["a","21"],!0,function(a,b,c){"use strict";var d=a("a"),e=a("21");return d.Observable.prototype.concatMap=e.concatMap,c.exports}),a.registerDynamic("23",["16"],!0,function(a,b,c){"use strict";function d(a,b){var c=this;return c.lift(new g(a,b,c))}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("16");b.every=d;var g=function(){function a(a,b,c){this.predicate=a,this.thisArg=b,this.source=c}return a.prototype.call=function(a,b){return b._subscribe(new h(a,this.predicate,this.thisArg,this.source))},a}(),h=function(a){function b(b,c,d,e){a.call(this,b),this.predicate=c,this.thisArg=d,this.source=e,this.index=0,this.thisArg=d||this}return e(b,a),b.prototype.notifyComplete=function(a){this.destination.next(a),this.destination.complete()},b.prototype._next=function(a){var b=!1;try{b=this.predicate.call(this.thisArg,a,this.index++,this.source)}catch(c){return void this.destination.error(c)}b||this.notifyComplete(!1)},b.prototype._complete=function(){this.notifyComplete(!0)},b}(f.Subscriber);return c.exports}),a.registerDynamic("24",["a","23"],!0,function(a,b,c){"use strict";var d=a("a"),e=a("23");return d.Observable.prototype.every=e.every,c.exports}),a.registerDynamic("1d",["20","1f"],!0,function(a,b,c){"use strict";function d(a){return void 0===a&&(a=Number.POSITIVE_INFINITY),this.lift(new h(a))}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("20"),g=a("1f");b.mergeAll=d;var h=function(){function a(a){this.concurrent=a}return a.prototype.call=function(a,b){return b._subscribe(new i(a,this.concurrent))},a}();b.MergeAllOperator=h;var i=function(a){function b(b,c){a.call(this,b),this.concurrent=c,this.hasCompleted=!1,this.buffer=[],this.active=0}return e(b,a),b.prototype._next=function(a){this.active0?this._next(b.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},b}(f.OuterSubscriber);return b.MergeAllSubscriber=i,c.exports}),a.registerDynamic("25",["a","1d"],!0,function(a,b,c){"use strict";var d=a("a"),e=a("1d");return d.Observable.prototype.mergeAll=e.mergeAll,c.exports}),a.registerDynamic("26",["27","28","29","a","2a","2b","2c"],!0,function(a,b,c){"use strict";function d(a){var b=a[n.$$iterator];if(!b&&"string"==typeof a)return new q(a);if(!b&&void 0!==a.length)return new r(a);if(!b)throw new TypeError("Object is not iterable");return a[n.$$iterator]()}function e(a){var b=+a.length;return isNaN(b)?0:0!==b&&f(b)?(b=g(b)*Math.floor(Math.abs(b)),0>=b?0:b>s?s:b):b}function f(a){return"number"==typeof a&&i.root.isFinite(a)}function g(a){var b=+a;return 0===b?b:isNaN(b)?b:0>b?-1:1}var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},i=a("27"),j=a("28"),k=a("29"),l=a("a"),m=a("2a"),n=a("2b"),o=a("2c"),p=function(a){function b(b,c,e,f){if(a.call(this),null==b)throw new Error("iterator cannot be null.");if(j.isObject(c))this.thisArg=c,this.scheduler=e;else if(m.isFunction(c))this.project=c,this.thisArg=e,this.scheduler=f;else if(null!=c)throw new Error("When provided, `project` must be a function.");this.iterator=d(b)}return h(b,a),b.create=function(a,c,d,e){return new b(a,c,d,e)},b.dispatch=function(a){var b=a.index,c=a.hasError,d=a.thisArg,e=a.project,f=a.iterator,g=a.subscriber;if(c)return void g.error(a.error);var h=f.next();return h.done?void g.complete():(e?(h=k.tryCatch(e).call(d,h.value,b),h===o.errorObject?(a.error=o.errorObject.e,a.hasError=!0):(g.next(h),a.index=b+1)):(g.next(h.value),a.index=b+1),void(g.isUnsubscribed||this.schedule(a)))},b.prototype._subscribe=function(a){var c=0,d=this,e=d.iterator,f=d.project,g=d.thisArg,h=d.scheduler;if(h)return h.schedule(b.dispatch,0,{index:c,thisArg:g,project:f,iterator:e,subscriber:a});for(;;){var i=e.next();if(i.done){a.complete();break}if(f){if(i=k.tryCatch(f).call(g,i.value,c++),i===o.errorObject){a.error(o.errorObject.e);break}a.next(i)}else a.next(i.value);if(a.isUnsubscribed)break}},b}(l.Observable);b.IteratorObservable=p;var q=function(){function a(a,b,c){void 0===b&&(b=0),void 0===c&&(c=a.length),this.str=a,this.idx=b,this.len=c}return a.prototype[n.$$iterator]=function(){return this},a.prototype.next=function(){return this.idx=d)return void f.complete();var g=e?e(b[c],c):b[c];f.next(g),a.index=c+1,this.schedule(a)}},b.prototype._subscribe=function(a){var c=0,d=this,e=d.arrayLike,f=d.mapFn,g=d.scheduler,h=e.length;if(g)return g.schedule(b.dispatch,0,{arrayLike:e,index:c,length:h,mapFn:f,subscriber:a});for(var i=0;h>i&&!a.isUnsubscribed;i++){var j=f?f(e[i],i):e[i];a.next(j)}a.complete()},b}(e.Observable);return b.ArrayLikeObservable=h,c.exports}),a.registerDynamic("30",["a"],!0,function(a,b,c){"use strict";var d=a("a"),e=function(){function a(a,b,c){this.kind=a,this.value=b,this.exception=c,this.hasValue="N"===a}return a.prototype.observe=function(a){switch(this.kind){case"N":return a.next&&a.next(this.value);case"E":return a.error&&a.error(this.exception);case"C":return a.complete&&a.complete()}},a.prototype["do"]=function(a,b,c){var d=this.kind;switch(d){case"N":return a&&a(this.value);case"E":return b&&b(this.exception);case"C":return c&&c()}},a.prototype.accept=function(a,b,c){return a&&"function"==typeof a.next?this.observe(a):this["do"](a,b,c)},a.prototype.toObservable=function(){var a=this.kind;switch(a){case"N":return d.Observable.of(this.value);case"E":return d.Observable["throw"](this.exception);case"C":return d.Observable.empty()}},a.createNext=function(b){return"undefined"!=typeof b?new a("N",b):this.undefinedValueNotification},a.createError=function(b){return new a("E",void 0,b)},a.createComplete=function(){return this.completeNotification},a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0),a}();return b.Notification=e,c.exports}),a.registerDynamic("31",["16","30"],!0,function(a,b,c){ -"use strict";function d(a,b){return void 0===b&&(b=0),this.lift(new h(a,b))}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("16"),g=a("30");b.observeOn=d;var h=function(){function a(a,b){void 0===b&&(b=0),this.scheduler=a,this.delay=b}return a.prototype.call=function(a,b){return b._subscribe(new i(a,this.scheduler,this.delay))},a}();b.ObserveOnOperator=h;var i=function(a){function b(b,c,d){void 0===d&&(d=0),a.call(this,b),this.scheduler=c,this.delay=d}return e(b,a),b.dispatch=function(a){var b=a.notification,c=a.destination;b.observe(c)},b.prototype.scheduleMessage=function(a){this.add(this.scheduler.schedule(b.dispatch,this.delay,new j(a,this.destination)))},b.prototype._next=function(a){this.scheduleMessage(g.Notification.createNext(a))},b.prototype._error=function(a){this.scheduleMessage(g.Notification.createError(a))},b.prototype._complete=function(){this.scheduleMessage(g.Notification.createComplete())},b}(f.Subscriber);b.ObserveOnSubscriber=i;var j=function(){function a(a,b){this.notification=a,this.destination=b}return a}();return b.ObserveOnMessage=j,c.exports}),a.registerDynamic("32",["33","2a","34","1b","8","26","1c","2d","35","2b","a","31"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("33"),f=a("2a"),g=a("34"),h=a("1b"),i=a("8"),j=a("26"),k=a("1c"),l=a("2d"),m=a("35"),n=a("2b"),o=a("a"),p=a("31"),q=function(a){return a&&"number"==typeof a.length},r=function(a){function b(b,c){a.call(this,null),this.ish=b,this.scheduler=c}return d(b,a),b.create=function(a,c,d,p){var r=null,s=null;if(f.isFunction(c)?(r=p||null,s=c):h.isScheduler(r)&&(r=c),null!=a){if("function"==typeof a[m.$$observable])return a instanceof o.Observable&&!r?a:new b(a,r);if(e.isArray(a))return new k.ArrayObservable(a,r);if(g.isPromise(a))return new i.PromiseObservable(a,r);if("function"==typeof a[n.$$iterator]||"string"==typeof a)return new j.IteratorObservable(a,null,null,r);if(q(a))return new l.ArrayLikeObservable(a,s,d,r)}throw new TypeError((null!==a&&typeof a||a)+" is not observable")},b.prototype._subscribe=function(a){var b=this.ish,c=this.scheduler;return null==c?b[m.$$observable]().subscribe(a):b[m.$$observable]().subscribe(new p.ObserveOnSubscriber(a,c,0))},b}(o.Observable);return b.FromObservable=r,c.exports}),a.registerDynamic("36",["32"],!0,function(a,b,c){"use strict";var d=a("32");return b.from=d.FromObservable.create,c.exports}),a.registerDynamic("37",["a","36"],!0,function(a,b,c){"use strict";var d=a("a"),e=a("36");return d.Observable.from=e.from,c.exports}),a.registerDynamic("38",["a","39","14","11"],!0,function(a,b,c){"use strict";function d(a,b){try{return e(a,f(b,a.root,u.PRIMARY_OUTLET))}catch(c){return c instanceof x?e(a,new v.UrlSegment([],(d={},d[u.PRIMARY_OUTLET]=new v.UrlSegment(c.paths,{}),d))):c instanceof w?new s.Observable(function(a){return a.error(new Error("Cannot match any routes: '"+c.segment+"'"))}):new s.Observable(function(a){return a.error(c)})}var d}function e(a,b){return t.of(new v.UrlTree(b,a.queryParams,a.fragment))}function f(a,b,c){return 0===b.pathsWithParams.length&&Object.keys(b.children).length>0?new v.UrlSegment([],g(a,b)):h(b,a,b.pathsWithParams,c,!0)}function g(a,b){return v.mapChildren(b,function(b,c){return f(a,b,c)})}function h(a,b,c,d,e){for(var f=0,g=b;f0){var k=g(i,a);return new v.UrlSegment(e,k)}var l=h(a,i,j,u.PRIMARY_OUTLET,!0);return new v.UrlSegment(e.concat(l.pathsWithParams),l.children)}function n(a,b,c){if(""===b.path){if(b.terminal&&(Object.keys(a.children).length>0||c.length>0))throw new w;return{consumedPaths:[],lastChild:0,positionalParamSegments:{}}}for(var d=b.path,e=d.split("/"),f={},g=[],h=0,i=0;i=c.length)throw new w;var j=c[h],k=e[i],l=k.startsWith(":");if(!l&&k!==j.path)throw new w;l&&(f[k.substring(1)]=j),g.push(j),h++}if(b.terminal&&(Object.keys(a.children).length>0||h-1){var d=b[c];return b.splice(c),d}return new v.UrlPathWithParams(a,{})}var s=a("a"),t=a("39"),u=a("14"),v=a("11"),w=function(){function a(a){void 0===a&&(a=null),this.segment=a}return a}(),x=function(){function a(a){this.paths=a}return a}();return b.applyRedirects=d,c.exports}),a.registerDynamic("3a",[],!0,function(a,b,c){"use strict";function d(a){a.forEach(e)}function e(a){if(a.redirectTo&&a.children)throw new Error("Invalid configuration of route '"+a.path+"': redirectTo and children cannot be used together");if(a.redirectTo&&a.component)throw new Error("Invalid configuration of route '"+a.path+"': redirectTo and component cannot be used together");if(void 0===a.path)throw new Error("Invalid route configuration: routes must have path specified");if(a.path.startsWith("/"))throw new Error("Invalid route configuration of route '"+a.path+"': path cannot start with a slash")}return b.validateConfig=d,c.exports}),a.registerDynamic("3b",["3c","f","3d"],!0,function(a,b,c){"use strict";function d(a,b){var c=e(a._root,b?b._root:void 0),d=b?b.queryParams:new i.BehaviorSubject(a.queryParams),f=b?b.fragment:new i.BehaviorSubject(a.fragment);return new j.RouterState(c,d,f,a)}function e(a,b){if(b&&h(b.value.snapshot,a.value)){var c=b.value;c._futureSnapshot=a.value;var d=f(a,b);return new k.TreeNode(c,d)}var c=g(a.value),d=a.children.map(function(a){return e(a)});return new k.TreeNode(c,d)}function f(a,b){return a.children.map(function(a){var c=b.children.findIndex(function(b){return h(b.value.snapshot,a.value)});return c>=0?e(a,b.children[c]):e(a)})}function g(a){return new j.ActivatedRoute(new i.BehaviorSubject(a.url),new i.BehaviorSubject(a.params),a.outlet,a.component,a)}function h(a,b){return a._routeConfig===b._routeConfig}var i=a("3c"),j=a("f"),k=a("3d");return b.createRouterState=d,c.exports}),a.registerDynamic("3e",["14","11","3f"],!0,function(a,b,c){"use strict";function d(a,b,c,d,f){if(0===c.length)return e(b.root,b.root,b,d,f);var j=h(c);if(g(j))return e(b.root,new s.UrlSegment([],{}),b,d,f);var k=i(j,b,a),n=k.processChildren?m(k.segment,k.index,j.commands):l(k.segment,k.index,j.commands);return e(k.segment,n,b,d,f)}function e(a,b,c,d,e){var g=d?p(d):c.queryParams,h=e?e:c.fragment;return c.root===a?new s.UrlTree(b,g,h):new s.UrlTree(f(c.root,a,b),g,h)}function f(a,b,c){var d={};return t.forEach(a.children,function(a,e){a===b?d[e]=c:d[e]=f(a,b,c)}),new s.UrlSegment(a.pathsWithParams,d)}function g(a){return a.isAbsolute&&1===a.commands.length&&"/"==a.commands[0]}function h(a){if("string"==typeof a[0]&&1===a.length&&"/"==a[0])return new u(!0,0,a);for(var b=0,c=!1,d=[],e=0;e=0)return new v(c.snapshot._urlSegment,!1,c.snapshot._lastPathIndex+1-a.numberOfDoubleDots);throw new Error("Invalid number of '../'")}function j(a){if("string"!=typeof a)return a.toString();var b=a.toString().split(":");return b.length>1?b[1]:a}function k(a){if("string"!=typeof a[0])return r.PRIMARY_OUTLET;var b=a[0].toString().split(":");return b.length>1?b[0]:r.PRIMARY_OUTLET}function l(a,b,c){if(a||(a=new s.UrlSegment([],{})),0===a.pathsWithParams.length&&Object.keys(a.children).length>0)return m(a,b,c);var d=n(a,b,c),e=c.slice(d.lastIndex);return d.match&&0===e.length?new s.UrlSegment(a.pathsWithParams,{}):d.match&&0===Object.keys(a.children).length?o(a,b,c):d.match?m(a,0,e):o(a,b,c)}function m(a,b,c){if(0===c.length)return new s.UrlSegment(a.pathsWithParams,{});var d=k(c),e={};return e[d]=l(a.children[d],b,c),t.forEach(a.children,function(a,b){b!==d&&(e[b]=a)}),new s.UrlSegment(a.pathsWithParams,e)}function n(a,b,c){for(var d=0,e=b,f={match:!1,lastIndex:0};e=c.length)return f;var g=a.pathsWithParams[e],h=j(c[d]),i=d1?new b(a,d):1===e?new f.ScalarObservable(a[0],d):new g.EmptyObservable(d)},b.dispatch=function(a){var b=a.array,c=a.index,d=a.count,e=a.subscriber;return c>=d?void e.complete():(e.next(b[c]),void(e.isUnsubscribed||(a.index=c+1,this.schedule(a))))},b.prototype._subscribe=function(a){var c=0,d=this.array,e=d.length,f=this.scheduler;if(f)return f.schedule(b.dispatch,0,{array:d,index:c,count:e,subscriber:a});for(var g=0;e>g&&!a.isUnsubscribed;g++)a.next(d[g]);a.complete()},b}(e.Observable);return b.ArrayObservable=i,c.exports}),a.registerDynamic("39",["1c"],!0,function(a,b,c){"use strict";var d=a("1c");return b.of=d.ArrayObservable.of,c.exports}),a.registerDynamic("40",["a","39","f","14","11","3f","3d"],!0,function(a,b,c){"use strict";function d(a,b,c,d){try{var f=e(b,c.root,o.PRIMARY_OUTLET),g=new n.ActivatedRouteSnapshot([],{},o.PRIMARY_OUTLET,a,null,c.root,-1),h=new r.TreeNode(g,f);return m.of(new n.RouterStateSnapshot(d,h,c.queryParams,c.fragment))}catch(i){return i instanceof s?new l.Observable(function(a){return a.error(new Error("Cannot match any routes: '"+i.segment+"'"))}):new l.Observable(function(a){return a.error(i)})}}function e(a,b,c){return 0===b.pathsWithParams.length&&Object.keys(b.children).length>0?f(a,b):[h(a,b,0,b.pathsWithParams,c)]}function f(a,b){var c=p.mapChildrenIntoArray(b,function(b,c){return e(a,b,c)});return k(c),g(c),c}function g(a){a.sort(function(a,b){return a.value.outlet===o.PRIMARY_OUTLET?-1:b.value.outlet===o.PRIMARY_OUTLET?1:a.value.outlet.localeCompare(b.value.outlet)})}function h(a,b,c,d,e){for(var f=0,g=a;f0?q.last(d).parameters:{},i=new n.ActivatedRouteSnapshot(d,g,e,a.component,a,b,-1);return new r.TreeNode(i,[])}var k=j(b,a,d),l=k.consumedPaths,m=k.parameters,p=k.lastChild,t=new n.ActivatedRouteSnapshot(l,m,e,a.component,a,b,c+p-1),u=d.slice(p),v=a.children?a.children:[];if(0===v.length&&0===u.length)return new r.TreeNode(t,[]);if(0===u.length&&Object.keys(b.children).length>0){var w=f(v,b);return new r.TreeNode(t,w)}var x=h(v,b,c+p,u,o.PRIMARY_OUTLET);return new r.TreeNode(t,[x])}function j(a,b,c){if(""===b.path){if(b.terminal&&(Object.keys(a.children).length>0||c.length>0))throw new s;return{consumedPaths:[],lastChild:0,parameters:{}}}for(var d=b.path,e=d.split("/"),f={},g=[],h=0,i=0;i=c.length)throw new s;var j=c[h],k=e[i],l=k.startsWith(":");if(!l&&k!==j.path)throw new s;l&&(f[k.substring(1)]=j.path),g.push(j),h++}if(b.terminal&&(Object.keys(a.children).length>0||hm&&!l.isUnsubscribed;m++)l.next(b[m]);l.isUnsubscribed||l.complete()}else{if(g.isPromise(b))return b.then(function(a){l.isUnsubscribed||(l.next(a),l.complete())},function(a){return l.error(a)}).then(null,function(a){e.root.setTimeout(function(){throw a})}),l;if("function"==typeof b[i.$$iterator]){for(var o=0,p=b;of;f++){var g=c[f],i=h.subscribeToResult(this,g,null,f);i&&(i.outerIndex=f,this.add(i))}}return d(b,a),b.prototype.notifyNext=function(a,b,c,d,e){this.values[c]=b,e._hasValue||(e._hasValue=!0,this.haveValues++)},b.prototype.notifyComplete=function(a){var b=this.destination,c=this,d=c.haveValues,e=c.resultSelector,f=c.values,g=f.length;if(!a._hasValue)return void b.complete();if(this.completed++,this.completed===g){if(d===g){var h=e?e.apply(this,f):f;b.next(h)}b.complete()}},b}(i.OuterSubscriber);return c.exports}),a.registerDynamic("44",["43"],!0,function(a,b,c){"use strict";var d=a("43");return b.forkJoin=d.ForkJoinObservable.create,c.exports}),a.registerDynamic("45",["8"],!0,function(a,b,c){"use strict";var d=a("8");return b.fromPromise=d.PromiseObservable.create,c.exports}),a.registerDynamic("46",["47","41","44","45"],!0,function(a,b,c){"use strict";function d(a,b){return e(a,b._root).map(function(a){return b})}function e(a,b){if(0===b.children.length)return g.fromPromise(a.resolveComponent(b.value.component).then(function(a){return b.value._resolvedComponentFactory=a,b.value}));var c=b.children.map(function(b){return e(a,b).toPromise()});return f.forkJoin(c).map(function(c){return a.resolveComponent(b.value.component).then(function(a){return b.value._resolvedComponentFactory=a,b.value})})}a("47"),a("41");var f=a("44"),g=a("45");return b.resolve=d,c.exports}),a.registerDynamic("e",["47","17","18","1e","22","24","25","37","5","a","7","39","38","3a","3b","3e","40","46","13","f","14","11","3f"],!0,function(a,b,c){"use strict";function d(a){return a instanceof i.Observable?a:k.of(a)}function e(a){v.shallowEqual(a.snapshot.queryParams,a.queryParams.value)||a.queryParams.next(a.snapshot.queryParams),a.snapshot.fragment!==a.fragment.value&&a.fragment.next(a.snapshot.fragment)}function f(a){return a?a.children.reduce(function(a,b){return a[b.value.outlet]=b,a},{}):{}}function g(a,b){var c=a._outlets[b.outlet];if(!c){var d=b.component.name;throw b.outlet===t.PRIMARY_OUTLET?new Error("Cannot find primary outlet to load '"+d+"'"):new Error("Cannot find the outlet "+b.outlet+" to load '"+d+"'")}return c}a("47"),a("17"),a("18"),a("1e"),a("22"),a("24"),a("25"),a("37");var h=a("5"),i=a("a"),j=a("7"),k=a("39"),l=a("38"),m=a("3a"),n=a("3b"),o=a("3e"),p=a("40"),q=a("46"),r=a("13"),s=a("f"),t=a("14"),u=a("11"),v=a("3f"),w=function(){function a(a,b){this.id=a,this.url=b}return a.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},a}();b.NavigationStart=w;var x=function(){function a(a,b,c){this.id=a,this.url=b,this.urlAfterRedirects=c}return a.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},a}();b.NavigationEnd=x;var y=function(){function a(a,b){this.id=a,this.url=b}return a.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},a}();b.NavigationCancel=y;var z=function(){function a(a,b,c){this.id=a,this.url=b,this.error=c}return a.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},a}();b.NavigationError=z;var A=function(){function a(a,b,c,d){this.id=a,this.url=b,this.urlAfterRedirects=c,this.state=d}return a.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},a}();b.RoutesRecognized=A;var B=function(){function a(a,b,c,d,e,f,g){this.rootComponentType=a,this.resolver=b,this.urlSerializer=c,this.outletMap=d,this.location=e,this.injector=f,this.navigationId=0,this.resetConfig(g),this.routerEvents=new j.Subject,this.currentUrlTree=u.createEmptyUrlTree(),this.currentRouterState=s.createEmptyState(this.currentUrlTree,this.rootComponentType)}return a.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),this.navigateByUrl(this.location.path())},Object.defineProperty(a.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),a.prototype.resetConfig=function(a){m.validateConfig(a),this.config=a},a.prototype.dispose=function(){this.locationSubscription.unsubscribe()},a.prototype.createUrlTree=function(a,b){var c=void 0===b?{}:b,d=c.relativeTo,e=c.queryParams,f=c.fragment,g=d?d:this.routerState.root;return o.createUrlTree(g,this.currentUrlTree,a,e,f)},a.prototype.navigateByUrl=function(a){if(a instanceof u.UrlTree)return this.scheduleNavigation(a,!1);var b=this.urlSerializer.parse(a);return this.scheduleNavigation(b,!1)},a.prototype.navigate=function(a,b){return void 0===b&&(b={}),this.scheduleNavigation(this.createUrlTree(a,b),!1)},a.prototype.serializeUrl=function(a){return this.urlSerializer.serialize(a)},a.prototype.parseUrl=function(a){return this.urlSerializer.parse(a)},a.prototype.scheduleNavigation=function(a,b){var c=this,d=++this.navigationId;return this.routerEvents.next(new w(d,this.serializeUrl(a))),Promise.resolve().then(function(e){return c.runNavigate(a,b,d)})},a.prototype.setUpLocationChangeListener=function(){var a=this;this.locationSubscription=this.location.subscribe(function(b){return a.scheduleNavigation(a.urlSerializer.parse(b.url),b.pop)})},a.prototype.runNavigate=function(a,b,c){var d=this;return c!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new y(c,this.serializeUrl(a))),Promise.resolve(!1)):new Promise(function(e,f){var g,h;l.applyRedirects(a,d.config).mergeMap(function(a){return g=a,p.recognize(d.rootComponentType,d.config,g,d.serializeUrl(g))}).mergeMap(function(b){return d.routerEvents.next(new A(c,d.serializeUrl(a),d.serializeUrl(g),b)),q.resolve(d.resolver,b)}).map(function(a){return n.createRouterState(a,d.currentRouterState)}).map(function(a){h=a}).mergeMap(function(a){return new E(h.snapshot,d.currentRouterState.snapshot,d.injector).check(d.outletMap)}).forEach(function(e){if(!e||c!==d.navigationId)return d.routerEvents.next(new y(c,d.serializeUrl(a))),Promise.resolve(!1);if(new F(h,d.currentRouterState).activate(d.outletMap),d.currentUrlTree=g,d.currentRouterState=h,!b){var f=d.urlSerializer.serialize(g);d.location.isCurrentPathEqualTo(f)?d.location.replaceState(f):d.location.go(f)}return Promise.resolve(!0)}).then(function(){d.routerEvents.next(new x(c,d.serializeUrl(a),d.serializeUrl(g))),e(!0)},function(b){d.routerEvents.next(new z(c,d.serializeUrl(a),b)),f(b)})})},a}();b.Router=B;var C=function(){function a(a){this.route=a}return a}(),D=function(){function a(a,b){this.component=a,this.route=b}return a}(),E=function(){function a(a,b,c){this.future=a,this.curr=b,this.injector=c,this.checks=[]}return a.prototype.check=function(a){var b=this,c=this.future._root,d=this.curr?this.curr._root:null;return this.traverseChildRoutes(c,d,a),0===this.checks.length?k.of(!0):i.Observable.from(this.checks).map(function(a){if(a instanceof C)return b.runCanActivate(a.route);if(a instanceof D)return b.runCanDeactivate(a.component,a.route);throw new Error("Cannot be reached")}).mergeAll().every(function(a){return a===!0})},a.prototype.traverseChildRoutes=function(a,b,c){var d=this,e=f(b);a.children.forEach(function(a){d.traverseRoutes(a,e[a.value.outlet],c),delete e[a.value.outlet]}),v.forEach(e,function(a,b){return d.deactivateOutletAndItChildren(a,c._outlets[b])})},a.prototype.traverseRoutes=function(a,b,c){var d=a.value,e=b?b.value:null,f=c?c._outlets[a.value.outlet]:null;e&&d._routeConfig===e._routeConfig?(v.shallowEqual(d.params,e.params)||this.checks.push(new D(f.component,e),new C(d)),this.traverseChildRoutes(a,b,f?f.outletMap:null)):(this.deactivateOutletAndItChildren(e,f),this.checks.push(new C(d)),this.traverseChildRoutes(a,null,f?f.outletMap:null))},a.prototype.deactivateOutletAndItChildren=function(a,b){var c=this;b&&b.isActivated&&(v.forEach(b.outletMap._outlets,function(a){a.isActivated&&c.deactivateOutletAndItChildren(a.activatedRoute.snapshot,a)}),this.checks.push(new D(b.component,a)))},a.prototype.runCanActivate=function(a){var b=this,c=a._routeConfig?a._routeConfig.canActivate:null;return c&&0!==c.length?i.Observable.from(c).map(function(c){var e=b.injector.get(c);return d(e.canActivate?e.canActivate(a,b.future):e(a,b.future))}).mergeAll().every(function(a){return a===!0}):k.of(!0)},a.prototype.runCanDeactivate=function(a,b){var c=this,e=b._routeConfig?b._routeConfig.canDeactivate:null;return e&&0!==e.length?i.Observable.from(e).map(function(e){var f=c.injector.get(e);return d(f.canDeactivate?f.canDeactivate(a,b,c.curr):f(a,b,c.curr))}).mergeAll().every(function(a){return a===!0}):k.of(!0)},a}(),F=function(){function a(a,b){this.futureState=a,this.currState=b}return a.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;e(this.futureState),this.activateChildRoutes(b,c,a)},a.prototype.activateChildRoutes=function(a,b,c){var d=this,e=f(b);a.children.forEach(function(a){d.activateRoutes(a,e[a.value.outlet],c),delete e[a.value.outlet]}),v.forEach(e,function(a,b){return d.deactivateOutletAndItChildren(c._outlets[b])})},a.prototype.activateRoutes=function(a,b,c){var d=a.value,e=b?b.value:null,f=g(c,a.value);if(d===e)s.advanceActivatedRoute(d),this.activateChildRoutes(a,b,f.outletMap);else{this.deactivateOutletAndItChildren(f);var h=new r.RouterOutletMap;this.activateNewRoutes(h,d,f),this.activateChildRoutes(a,null,h)}},a.prototype.activateNewRoutes=function(a,b,c){var d=h.ReflectiveInjector.resolve([{provide:s.ActivatedRoute,useValue:b},{provide:r.RouterOutletMap,useValue:a}]);s.advanceActivatedRoute(b),c.activate(b._futureSnapshot._resolvedComponentFactory,b,d,a)},a.prototype.deactivateOutletAndItChildren=function(a){var b=this;a&&a.isActivated&&(v.forEach(a.outletMap._outlets,function(a){return b.deactivateOutletAndItChildren(a)}),a.deactivate())},a}();return c.exports}),a.registerDynamic("13",[],!0,function(a,b,c){"use strict";var d=function(){function a(){this._outlets={}}return a.prototype.registerOutlet=function(a,b){this._outlets[a]=b},a}();return b.RouterOutletMap=d,c.exports}),a.registerDynamic("48",["3","5","e","13","f","49"],!0,function(a,b,c){"use strict";function d(a,b,c,d,e,f,g,h){if(0==a.componentTypes.length)throw new Error("Bootstrap at least one component before injecting Router.");var j=a.componentTypes[0],k=new i.Router(j,b,c,d,e,f,g);return a.registerDisposeListener(function(){return k.dispose()}),h.enableTracing&&k.events.subscribe(function(a){console.group("Router Event: "+a.constructor.name),console.log(a.toString()),console.log(a),console.groupEnd()}),k}function e(a){return setTimeout(function(){var b=a.get(h.ApplicationRef);0==b.componentTypes.length?b.registerBootstrapListener(function(){a.get(i.Router).initialNavigation()}):a.get(i.Router).initialNavigation()},0),function(){return null}}function f(a,c){return[{provide:b.ROUTER_CONFIG,useValue:a},{provide:b.ROUTER_OPTIONS,useValue:c},g.Location,{provide:g.LocationStrategy,useClass:g.PathLocationStrategy},{provide:l.UrlSerializer,useClass:l.DefaultUrlSerializer},{provide:i.Router,useFactory:d,deps:[h.ApplicationRef,h.ComponentResolver,l.UrlSerializer,j.RouterOutletMap,g.Location,h.Injector,b.ROUTER_CONFIG,b.ROUTER_OPTIONS]},j.RouterOutletMap,{provide:k.ActivatedRoute,useFactory:function(a){return a.routerState.root},deps:[i.Router] -},{provide:h.APP_INITIALIZER,multi:!0,useFactory:e,deps:[h.Injector]}]}var g=a("3"),h=a("5"),i=a("e"),j=a("13"),k=a("f"),l=a("49");return b.ROUTER_CONFIG=new h.OpaqueToken("ROUTER_CONFIG"),b.ROUTER_OPTIONS=new h.OpaqueToken("ROUTER_OPTIONS"),b.setupRouter=d,b.setupRouterInitializer=e,b.provideRouter=f,c.exports}),a.registerDynamic("4a",["3","6","48"],!0,function(a,b,c){"use strict";function d(a,b){return void 0===b&&(b={}),[{provide:e.PlatformLocation,useClass:f.BrowserPlatformLocation}].concat(g.provideRouter(a,b))}var e=a("3"),f=a("6"),g=a("48");return b.provideRouter=d,c.exports}),a.registerDynamic("3c",["7","4b","4c"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("7"),f=a("4b"),g=a("4c"),h=function(a){function b(b){a.call(this),this._value=b}return d(b,a),b.prototype.getValue=function(){if(this.hasErrored)f.throwError(this.errorValue);else{if(!this.isUnsubscribed)return this._value;f.throwError(new g.ObjectUnsubscribedError)}},Object.defineProperty(b.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),b.prototype._subscribe=function(b){var c=a.prototype._subscribe.call(this,b);return c&&!c.isUnsubscribed&&b.next(this._value),c},b.prototype._next=function(b){a.prototype._next.call(this,this._value=b)},b.prototype._error=function(b){this.hasErrored=!0,a.prototype._error.call(this,this.errorValue=b)},b}(e.Subject);return b.BehaviorSubject=h,c.exports}),a.registerDynamic("3d",[],!0,function(a,b,c){"use strict";function d(a,b){if(a===b.value)return b;for(var c=0,e=b.children;c1?b[b.length-2]:null},a.prototype.children=function(a){var b=d(a,this._root);return b?b.children.map(function(a){return a.value}):[]},a.prototype.firstChild=function(a){var b=d(a,this._root);return b&&b.children.length>0?b.children[0].value:null},a.prototype.siblings=function(a){var b=e(a,this._root,[]);if(b.length<2)return[];var c=b[b.length-2].children.map(function(a){return a.value});return c.filter(function(b){return b!==a})},a.prototype.pathFromRoot=function(a){return e(a,this._root,[]).map(function(a){return a.value})},a.prototype.contains=function(a){return f(this._root,a._root)},a}();b.Tree=g;var h=function(){function a(a,b){this.value=a,this.children=b}return a.prototype.toString=function(){return"TreeNode("+this.value+")"},a}();return b.TreeNode=h,c.exports}),a.registerDynamic("f",["3c","14","11","3f","3d"],!0,function(a,b,c){"use strict";function d(a,b){var c=e(a,b),d=new i.BehaviorSubject([new k.UrlPathWithParams("",{})]),f=new i.BehaviorSubject({}),g=new i.BehaviorSubject({}),h=new i.BehaviorSubject(""),l=new o(d,f,j.PRIMARY_OUTLET,b,c.root);return l.snapshot=c.root,new n(new m.TreeNode(l,[]),g,h,c)}function e(a,b){var c={},d={},e="",f=new p([],c,j.PRIMARY_OUTLET,b,null,a.root,-1);return new q("",new m.TreeNode(f,[]),d,e)}function f(a){var b=a.children.length>0?" { "+a.children.map(f).join(", ")+" } ":"";return""+a.value+b}function g(a){a.snapshot&&!l.shallowEqual(a.snapshot.params,a._futureSnapshot.params)?(a.snapshot=a._futureSnapshot,a.url.next(a.snapshot.url),a.params.next(a.snapshot.params)):a.snapshot=a._futureSnapshot}var h=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},i=a("3c"),j=a("14"),k=a("11"),l=a("3f"),m=a("3d"),n=function(a){function b(b,c,d,e){a.call(this,b),this.queryParams=c,this.fragment=d,this.snapshot=e}return h(b,a),b.prototype.toString=function(){return this.snapshot.toString()},b}(m.Tree);b.RouterState=n,b.createEmptyState=d;var o=function(){function a(a,b,c,d,e){this.url=a,this.params=b,this.outlet=c,this.component=d,this._futureSnapshot=e}return a.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},a}();b.ActivatedRoute=o;var p=function(){function a(a,b,c,d,e,f,g){this.url=a,this.params=b,this.outlet=c,this.component=d,this._routeConfig=e,this._urlSegment=f,this._lastPathIndex=g}return a.prototype.toString=function(){var a=this.url.map(function(a){return a.toString()}).join("/"),b=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+a+"', path:'"+b+"')"},a}();b.ActivatedRouteSnapshot=p;var q=function(a){function b(b,c,d,e){a.call(this,c),this.url=b,this.queryParams=d,this.fragment=e}return h(b,a),b.prototype.toString=function(){return f(this._root)},b}(m.Tree);return b.RouterStateSnapshot=q,b.advanceActivatedRoute=g,c.exports}),a.registerDynamic("14",[],!0,function(a,b,c){"use strict";return b.PRIMARY_OUTLET="PRIMARY_OUTLET",c.exports}),a.registerDynamic("49",["14","11","3f"],!0,function(a,b,c){"use strict";function d(a){return a.pathsWithParams.map(function(a){return f(a)}).join("/")}function e(a,b){if(a.children[m.PRIMARY_OUTLET]&&b){var c=e(a.children[m.PRIMARY_OUTLET],!1),f=[];return o.forEach(a.children,function(a,b){b!==m.PRIMARY_OUTLET&&f.push(b+":"+e(a,!1))}),f.length>0?c+"("+f.join("//")+")":""+c}if(a.children[m.PRIMARY_OUTLET]&&!b){var g=[e(a.children[m.PRIMARY_OUTLET],!1)];return o.forEach(a.children,function(a,b){b!==m.PRIMARY_OUTLET&&g.push(b+":"+e(a,!1))}),d(a)+"/("+g.join("//")+")"}return d(a)}function f(a){return""+a.path+g(a.parameters)}function g(a){return i(a).map(function(a){return";"+a.first+"="+a.second}).join("")}function h(a){var b=i(a).map(function(a){return a.first+"="+a.second});return b.length>0?"?"+b.join("&"):""}function i(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(new r(c,a[c]));return b}function j(a){s.lastIndex=0;var b=s.exec(a);return b?b[0]:""}function k(a){t.lastIndex=0;var b=s.exec(a);return b?b[0]:""}function l(a){u.lastIndex=0;var b=u.exec(a);return b?b[0]:""}var m=a("14"),n=a("11"),o=a("3f"),p=function(){function a(){}return a}();b.UrlSerializer=p;var q=function(){function a(){}return a.prototype.parse=function(a){var b=new v(a);return new n.UrlTree(b.parseRootSegment(),b.parseQueryParams(),b.parseFragment())},a.prototype.serialize=function(a){var b="/"+e(a.root,!0),c=h(a.queryParams),d=null!==a.fragment?"#"+a.fragment:"";return""+b+c+d},a}();b.DefaultUrlSerializer=q,b.serializePaths=d,b.serializePath=f;var r=function(){function a(a,b){this.first=a,this.second=b}return a}(),s=/^[^\/\(\)\?;=&#]+/,t=/^[^=\?&#]+/,u=/^[^\?&#]+/,v=function(){function a(a){this.remaining=a}return a.prototype.peekStartsWith=function(a){return this.remaining.startsWith(a)},a.prototype.capture=function(a){if(!this.remaining.startsWith(a))throw new Error('Expected "'+a+'".');this.remaining=this.remaining.substring(a.length)},a.prototype.parseRootSegment=function(){return""===this.remaining||"/"===this.remaining?new n.UrlSegment([],{}):new n.UrlSegment([],this.parseSegmentChildren())},a.prototype.parseSegmentChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");for(var a=[this.parsePathWithParams()];this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parsePathWithParams());var b={};this.peekStartsWith("/(")&&(this.capture("/"),b=this.parseParens(!0));var c={};return this.peekStartsWith("(")&&(c=this.parseParens(!1)),c[m.PRIMARY_OUTLET]=new n.UrlSegment(a,b),c},a.prototype.parsePathWithParams=function(){var a=j(this.remaining);this.capture(a);var b={};return this.peekStartsWith(";")&&(b=this.parseMatrixParams()),new n.UrlPathWithParams(a,b)},a.prototype.parseQueryParams=function(){var a={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(a);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(a);return a},a.prototype.parseFragment=function(){return this.peekStartsWith("#")?this.remaining.substring(1):null},a.prototype.parseMatrixParams=function(){for(var a={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(a);return a},a.prototype.parseParam=function(a){var b=j(this.remaining);if(b){this.capture(b);var c="true";if(this.peekStartsWith("=")){this.capture("=");var d=j(this.remaining);d&&(c=d,this.capture(c))}a[b]=c}},a.prototype.parseQueryParam=function(a){var b=k(this.remaining);if(b){this.capture(b);var c="true";if(this.peekStartsWith("=")){this.capture("=");var d=l(this.remaining);d&&(c=d,this.capture(c))}a[b]=c}},a.prototype.parseParens=function(a){var b={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var c=j(this.remaining),d=void 0;c.indexOf(":")>-1?(d=c.substr(0,c.indexOf(":")),this.capture(d),this.capture(":")):a&&(d=m.PRIMARY_OUTLET);var e=this.parseSegmentChildren();b[d]=1===Object.keys(e).length?e[m.PRIMARY_OUTLET]:new n.UrlSegment([],e),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),b},a}();return c.exports}),a.registerDynamic("3f",[],!0,function(a,b,c){"use strict";function d(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e,f=0;f0?a[0]:null}function g(a){return a.length>0?a[a.length-1]:null}function h(a){return a.reduce(function(a,b){return a&&b},!0)}function i(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c}function j(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)}return b.shallowEqual=d,b.flatten=e,b.first=f,b.last=g,b.and=h,b.merge=i,b.forEach=j,c.exports}),a.registerDynamic("11",["14","49","3f"],!0,function(a,b,c){"use strict";function d(){return new p(new q([],{}),{},null)}function e(a,b,c){return c?f(a.root,b.root):g(a.root,b.root)}function f(a,b){if(!j(a.pathsWithParams,b.pathsWithParams))return!1;if(Object.keys(a.children).length!==Object.keys(b.children).length)return!1;for(var c in b.children){if(!a.children[c])return!1;if(!f(a.children[c],b.children[c]))return!1}return!0}function g(a,b){return h(a,b,b.pathsWithParams)}function h(a,b,c){if(a.pathsWithParams.length>c.length){var d=a.pathsWithParams.slice(0,c.length);return j(d,c)?!(Object.keys(b.children).length>0):!1}if(a.pathsWithParams.length===c.length){if(!j(a.pathsWithParams,c))return!1;for(var e in b.children){if(!a.children[e])return!1;if(!g(a.children[e],b.children[e]))return!1}return!0}var d=c.slice(0,a.pathsWithParams.length),f=c.slice(a.pathsWithParams.length);return j(a.pathsWithParams,d)?h(a.children[m.PRIMARY_OUTLET],b,f):!1}function i(a,b){if(a.length!==b.length)return!1;for(var c=0;c=Wf&&_f>=a||a==Sg}function K(a){return a>=Gg&&Og>=a||a>=xg&&zg>=a||a==Eg||a==dg}function L(a){if(0==a.length)return!1;var b=new Ug(a);if(!K(b.peek))return!1;for(b.advance();b.peek!==Vf;){if(!M(b.peek))return!1;b.advance()}return!0}function M(a){return a>=Gg&&Og>=a||a>=xg&&zg>=a||a>=vg&&wg>=a||a==Eg||a==dg}function N(a){return a>=vg&&wg>=a}function O(a){return a==Hg||a==yg}function P(a){return a==mg||a==kg}function Q(a){return a===gg||a===bg||a===Fg}function R(a){switch(a){case Jg:return Xf;case Ig:return Zf;case Kg:return $f;case Lg:return Wf;case Ng:return Yf;default:return a}}function S(a,b,c){void 0===c&&(c=null);var d=[];return b.forEach(function(b){var e=b.visit(a,c);i(e)&&d.push(e)}),d}function T(a){var b=mh[a.toLowerCase()];return i(b)?b:nh}function U(a){if(":"!=a[0])return[null,a];var b=Sd.firstMatch(oh,a);return[b[1],b[2]]}function V(a){return U(a)[0]}function W(a,b){return i(a)?":"+a+":"+b:b}function X(a,b,c){return void 0===c&&(c=!1),new ei(new qh(a,b),c).tokenize()}function Y(a){var b=a===xh?"EOF":Od.fromCharCode(a);return'Unexpected character "'+b+'"'}function Z(a){return'Unknown entity "'+a+'" - use the "&#;" or "&#x;" syntax'}function $(a){return!_(a)||a===xh}function _(a){return a>=yh&&Bh>=a||a===bi}function aa(a){return _(a)||a===Ph||a===Ih||a===Gh||a===Dh||a===Oh}function ba(a){return(Zh>a||a>_h)&&(Vh>a||a>Yh)&&(Jh>a||a>Lh)}function ca(a){return a==Kh||a==xh||!ha(a)}function da(a){return a==Kh||a==xh||!ga(a)}function ea(a,b){return a===Sh&&b!=Sh}function fa(a){return a===Oh||ga(a)}function ga(a){return a>=Zh&&_h>=a||a>=Vh&&Yh>=a}function ha(a){return a>=Zh&&$h>=a||a>=Vh&&Wh>=a||a>=Jh&&Lh>=a}function ia(a,b){return ja(a)==ja(b)}function ja(a){return a>=Zh&&_h>=a?a-Zh+Vh:a}function ka(a){for(var b,c=[],d=0;d0&&a[a.length-1]===b}function na(a){var b=null,c=null,d=null,e=!1,f=null;a.attrs.forEach(function(a){var g=a.name.toLowerCase();g==ri?b=a.value:g==vi?c=a.value:g==ui?d=a.value:a.name==zi?e=!0:a.name==Ai&&a.value.length>0&&(f=a.value)}),b=oa(b);var g=a.name.toLowerCase(),h=ii.OTHER;return U(g)[1]==si?h=ii.NG_CONTENT:g==xi?h=ii.STYLE:g==yi?h=ii.SCRIPT:g==ti&&d==wi&&(h=ii.STYLESHEET),new Bi(h,b,c,e,f)}function oa(a){return j(a)||0===a.length?"*":a}function pa(a){if(j(a)||0===a.length||"/"==a[0])return!1;var b=Sd.firstMatch(Ei,a);return j(b)||"package"==b[1]||"asset"==b[1]}function qa(a,b,c){var d=[],e=Od.replaceAllMapped(c,Di,function(c){var e=i(c[1])?c[1]:c[2];return pa(e)?(d.push(a.resolve(b,e)),""):c[0]});return new Ci(e,d)}function ra(a){return Od.replaceAllMapped(a,Gi,function(a){return"-"+a[1].toLowerCase()})}function sa(a,b){var c=Od.split(a.trim(),/\s*:\s*/g);return c.length>1?c:b}function ta(a){return Od.replaceAll(a,/\W/g,"_")}function ua(a,b,c){return p(a)?b.visitArray(a,c):o(a)?b.visitStringMap(a,c):j(a)||y(a)?b.visitPrimitive(a,c):b.visitOther(a,c)}function va(a,b,c){return void 0===b&&(b=null),void 0===c&&(c="src"),Jd?null==b?"asset:angular2/"+a+"/"+a+".dart":"asset:angular2/lib/"+a+"/src/"+b+".dart":null==b?"asset:@angular/lib/"+a+"/index":"asset:@angular/lib/"+a+"/src/"+b}function wa(){return new Ki(Ii)}function xa(a){var b=za(a);return b&&b[Li.Scheme]||""}function ya(a,b,c,d,e,f,g){var h=[];return i(a)&&h.push(a+":"),i(c)&&(h.push("//"),i(b)&&h.push(b+"@"),h.push(c),i(d)&&h.push(":"+d)),i(e)&&h.push(e),i(f)&&h.push("?"+f),i(g)&&h.push("#"+g),h.join("")}function za(a){return Sd.firstMatch(Mi,a)}function Aa(a){if("/"==a)return"/";for(var b="/"==a[0]?"/":"",c="/"===a[a.length-1]?"/":"",d=a.split("/"),e=[],f=0,g=0;g0?e.pop():f++;break;default:e.push(h)}}if(""==b){for(;f-- >0;)e.unshift("..");0===e.length&&e.push(".")}return b+e.join("/")+c}function Ba(a){var b=a[Li.Path];return b=j(b)?"":Aa(b),a[Li.Path]=b,ya(a[Li.Scheme],a[Li.UserInfo],a[Li.Domain],a[Li.Port],b,a[Li.QueryData],a[Li.Fragment])}function Ca(a,b){var c=za(encodeURI(b)),d=za(a);if(i(c[Li.Scheme]))return Ba(c);c[Li.Scheme]=d[Li.Scheme];for(var e=Li.Scheme;e<=Li.Port;e++)j(c[e])&&(c[e]=d[e]);if("/"==c[Li.Path][0])return Ba(c);var f=d[Li.Path];j(f)&&(f="/");var g=f.lastIndexOf("/");return f=f.substring(0,g+1)+c[Li.Path],c[Li.Path]=f,Ba(c)}function Da(a){return lj[a["class"]](a)}function Ea(a,c){var d=mi.parse(c)[0].getMatchingElementTemplate();return jj.create({type:new gj({runtime:Object,name:a.name+"_Host",moduleUrl:a.moduleUrl,isHost:!0}),template:new ij({template:d,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:b.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},lifecycleHooks:[],isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function Fa(a,b){return j(a)?null:a.map(function(a){return Ha(a,b)})}function Ga(a){return j(a)?null:a.map(Ia)}function Ha(a,b){return p(a)?Fa(a,b):m(a)||j(a)||k(a)||l(a)?a:b(a)}function Ia(a){return p(a)?Ga(a):m(a)||j(a)||k(a)||l(a)?a:a.toJson()}function Ja(a){return i(a)?a:[]}function Ka(a){return new ej({identifier:a})}function La(a,b){var c=b.useExisting,d=b.useValue,e=b.deps;return new bj({token:a.token,useClass:a.useClass,useExisting:c,useFactory:a.useFactory,useValue:d,deps:e,multi:a.multi})}function Ma(a,b){var c=b.eager,d=b.providers;return new ee(a.token,a.multiProvider,a.eager||c,d,a.providerType,a.sourceSpan)}function Na(a,b,c,d){return void 0===d&&(d=null),j(d)&&(d=[]),i(a)&&a.forEach(function(a){if(p(a))Na(a,b,c,d);else{var e;a instanceof bj?e=a:a instanceof gj?e=new bj({token:new ej({identifier:a}),useClass:a}):c.push(new Zj("Unknown provider type "+a,b)),i(e)&&d.push(e)}}),d}function Oa(b,c,d){var e=new fj;b.forEach(function(b){var f=new bj({token:new ej({identifier:b.type}),useClass:b.type});Pa([f],b.isComponent?a.ProviderAstType.Component:a.ProviderAstType.Directive,!0,c,d,e)});var f=b.filter(function(a){return a.isComponent}).concat(b.filter(function(a){return!a.isComponent}));return f.forEach(function(b){Pa(Na(b.providers,c,d),a.ProviderAstType.PublicService,!1,c,d,e),Pa(Na(b.viewProviders,c,d),a.ProviderAstType.PrivateService,!1,c,d,e)}),e}function Pa(a,b,c,d,e,f){a.forEach(function(a){var g=f.get(a.token);i(g)&&g.multiProvider!==a.multi&&e.push(new Zj("Mixing multi and non multi provider is not possible for token "+g.token.name,d)),j(g)?(g=new ee(a.token,a.multi,c,[a],b,d),f.add(a.token,g)):(a.multi||qf.clear(g.providers),g.providers.push(a))})}function Qa(a){var b=new fj;return i(a.viewQueries)&&a.viewQueries.forEach(function(a){return Sa(b,a)}),a.type.diDeps.forEach(function(a){i(a.viewQuery)&&Sa(b,a.viewQuery)}),b}function Ra(a){var b=new fj;return a.forEach(function(a){i(a.queries)&&a.queries.forEach(function(a){return Sa(b,a)}),a.type.diDeps.forEach(function(a){i(a.query)&&Sa(b,a.query)})}),b}function Sa(a,b){b.selectors.forEach(function(c){var d=a.get(c);j(d)&&(d=[],a.add(c,d)),d.push(b)})}function Ta(a){return Od.split(a.trim(),/\s+/g)}function Ua(a,b){var c=new mi,d=U(a)[1];c.setElement(d);for(var e=0;e0;c||b.push(a)}),b}function Wa(a,b,c){var d=new zl(a,b);return c.visitExpression(d,null)}function Xa(a){var b=new Al;return b.visitAllStatements(a,null),b.varNames}function Ya(a,b){return void 0===b&&(b=null),new Pk(a,b)}function Za(a,b){return void 0===b&&(b=null),new Yk(a,null,b)}function $a(a,b,c){return void 0===b&&(b=null),void 0===c&&(c=null),i(a)?new Ek(a,b,c):null}function _a(a,b){return void 0===b&&(b=null),new Xk(a,b)}function ab(a,b){return void 0===b&&(b=null),new fl(a,b)}function bb(a,b){return void 0===b&&(b=null),new gl(a,b)}function cb(a){return new $k(a)}function db(a,b,c){return void 0===c&&(c=null),new bl(a,b,c)}function eb(a){return a.dependencies.forEach(function(a){a.factoryPlaceholder.moduleUrl=gb(a.comp)}),a.statements}function fb(a,b){var c=jb(a)[1];return b.dependencies.forEach(function(a){a.valuePlaceholder.moduleUrl=hb(a.moduleUrl,a.isShimmed,c)}),b.statements}function gb(a){var b=jb(a.type.moduleUrl);return b[0]+".ngfactory"+b[1]}function hb(a,b,c){return b?a+".shim"+c:""+a+c}function ib(a){if(!a.isComponent)throw new tf("Could not compile '"+a.type.name+"' because it is not a component.")}function jb(a){var b=a.lastIndexOf(".");return-1!==b?[a.substring(0,b),a.substring(b)]:[a,""]}function kb(a){return Od.replaceAllMapped(a,Zl,function(a){return""})}function lb(a,b){var c=mb(a),d=0;return Od.replaceAllMapped(c.escapedString,$l,function(a){var e=a[2],f="",g=a[4],h="";i(a[4])&&a[4].startsWith("{"+cm)&&(f=c.blocks[d++],g=a[4].substring(cm.length+1),h="{");var j=b(new dm(e,f));return""+a[1]+j.selector+a[3]+h+j.content+g})}function mb(a){for(var b=Od.split(a,_l),c=[],d=[],e=0,f=[],g=0;g0?f.push(h):(f.length>0&&(d.push(f.join("")),c.push(cm),f=[]),c.push(h)),h==am&&e++}return f.length>0&&(d.push(f.join("")),c.push(cm)),new em(c.join(""),d)}function nb(a){var b="styles";return i(a)&&(b+="_"+a.type.name),b}function ob(a){var b=[],c={},d=[],e=[];a.definitions.forEach(function(a){a instanceof Si?pb(a,b).forEach(function(a){e.push(a),c[a.stateName]=a.styles}):d.push(a)});var f=d.map(function(a){return qb(a,c,b)}),g=new nm(a.name,e,f);return new Em(g,b)}function pb(a,b){var c=[];a.styles.styles.forEach(function(a){n(a)?c.push(a):b.push(new Dm("State based animations cannot contain references to other states"))});var d=new sm(c),e=a.stateNameExpr.split(/\s*,\s*/);return e.map(function(a){return new om(a,d)})}function qb(a,b,c){var d=new zm,e=[],f=a.stateChangeExpr.split(/\s*,\s*/);f.forEach(function(a){rb(a,c).forEach(function(a){e.push(a)})});var g=sb(a.steps),h=ub(g,b,c),i=zb(h,0,d,b,c);0==c.length&&Ab(i,d,c);var j=i instanceof wm?i:new wm([i]);return new qm(e,j)}function rb(a,b){var c=[],d=a.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(!i(d)||d.length<4)return b.push(new Dm("the provided "+a+" is not of a supported format")),c;var e=d[1],f=d[2],g=d[3];c.push(new pm(e,g));var h=e==$e&&g==$e;return"<"!=f[0]||h||c.push(new pm(g,e)),c}function sb(a){return p(a)?new Zi(a):a}function tb(a,b,c){var d=[];return a.styles.forEach(function(a){m(a)?qf.addAll(d,xb(a,b,c)):d.push(a)}),d}function ub(a,b,c){var d=wb(a,b,c);return new Zi(d)}function vb(a,b){if(n(b)&&a.length>0){var c=a.length-1,d=a[c];if(n(d))return void(a[c]=pf.merge(d,b))}a.push(b)}function wb(a,b,c){var d;if(!(a instanceof Yi))return[a];d=a.steps;var e,f=[];return d.forEach(function(a){if(a instanceof Wi)i(e)||(e=[]),tb(a,b,c).forEach(function(a){vb(e,a)});else{if(i(e)&&(f.push(new Wi(0,e)),e=null),a instanceof Xi){var d=a.styles;d instanceof Wi?d.styles=tb(d,b,c):d instanceof Vi&&d.steps.forEach(function(a){a.styles=tb(a,b,c)})}else if(a instanceof Yi){var g=wb(a,b,c);a=a instanceof $i?new $i(g):new Zi(g)}f.push(a)}}),i(e)&&f.push(new Wi(0,e)),f}function xb(a,b,c){var d=[];if(":"!=a[0])c.push(new Dm('Animation states via styles must be prefixed with a ":"'));else{var e=a.substring(1),f=b[e];i(f)?f.styles.forEach(function(a){n(a)&&d.push(a)}):c.push(new Dm('Unable to apply styles due to missing a state: "'+e+'"'))}return d}function yb(a,b,c,d,e){var f=a.steps.length,g=0;a.steps.forEach(function(a){return g+=i(a.offset)?1:0}),g>0&&f>g&&(e.push(new Dm("Not all style() entries contain an offset for the provided keyframe()")),g=f);var h=f-1,j=0==g?1/h:0,k=[],l=0,m=!1,n=0;a.steps.forEach(function(a){var b=a.offset,c={};a.styles.forEach(function(a){pf.forEach(a,function(a,b){"offset"!=b&&(c[b]=a)})}),i(b)?m=m||n>b:b=l==h?Bm:j*l,k.push([b,c]),n=b,l++}),m&&qf.sort(k,function(a,b){return a[0]<=b[0]?-1:1});var o,p=k[0];p[0]!=Am&&qf.insert(k,0,p=[Am,{}]);var q=p[1],h=k.length-1,r=k[h];r[0]!=Bm&&(k.push(r=[Bm,{}]),h++);var s=r[1];for(o=1;h>=o;o++){var t=k[o],u=t[1];pf.forEach(u,function(a,b){i(q[b])||(q[b]=bf)})}for(o=h-1;o>=0;o--){var t=k[o],u=t[1];pf.forEach(u,function(a,b){i(s[b])||(s[b]=a)})}return k.map(function(a){return new tm(a[0],new sm([a[1]]))})}function zb(a,b,c,d,e){var f,g=0,h=b;if(a instanceof Yi){var j,k=0,l=[],m=a instanceof $i;if(a.steps.forEach(function(a){var f=m?h:b;if(a instanceof Wi)return a.styles.forEach(function(a){var b=a;pf.forEach(b,function(a,b){c.insertAtTime(b,f,a)})}),void(j=a.styles);var n=zb(a,f,c,d,e);if(i(j)){if(a instanceof Yi){var o=new sm(j);l.push(new rm(o,[],0,0,""))}else{var p=n;qf.addAll(p.startingStyles.styles,j)}j=null}var q=n.playTime;b+=q,g+=q,k=xm.max(q,k),l.push(n)}),i(j)){var n=new sm(j);l.push(new rm(n,[],0,0,""))}m?(f=new vm(l),g=k,b=h+g):f=new wm(l)}else if(a instanceof Xi){var o,p=Bb(a.timings,e),q=a.styles;if(q instanceof Vi)o=yb(q,b,c,d,e);else{var r=q,s=Bm,t=new sm(r.styles),u=new tm(s,t);o=[u]}f=new rm(new sm([]),o,p.duration,p.delay,p.easing),g=p.duration+p.delay,b+=g,o.forEach(function(a){return a.styles.styles.forEach(function(a){return pf.forEach(a,function(a,d){return c.insertAtTime(d,b,a)})})})}else f=new rm(null,[],0,0,"");return f.playTime=g,f.startTime=h,f}function Ab(a,b,c){if(a instanceof rm&&a.keyframes.length>0){var d=a.keyframes;if(1==d.length){var e=d[0],f=Cb(e,a.startTime,a.playTime,b,c);a.keyframes=[f,e]}}else a instanceof um&&a.steps.forEach(function(a){return Ab(a,b,c)})}function Bb(a,b){var c,d=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/gi,e=0,f=null;if(m(a)){var g=Sd.firstMatch(d,a);if(!i(g))return b.push(new Dm('The provided timing value "'+a+'" is invalid.')),new Fm(0,0,null);var h=Rd.parseFloat(g[1]),k=g[2];"s"==k&&(h*=Cm),c=xm.floor(h);var l=g[3],n=g[4];if(i(l)){var o=Rd.parseFloat(l);i(n)&&"s"==n&&(o*=Cm),e=xm.floor(o)}var p=g[5];j(p)||(f=p)}else c=a;return new Fm(c,e,f)}function Cb(a,b,c,d,e){var f={},g=b+c;return a.styles.styles.forEach(function(a){pf.forEach(a,function(a,c){if("offset"!=c){var h,j,k,l=d.indexOfAtOrBeforeTime(c,b);i(l)?(h=d.getByIndex(c,l),k=h.value,j=d.getByIndex(c,l+1)):k=bf,i(j)&&!j.matches(g,a)&&e.push(new Dm('The animated CSS property "'+c+'" unexpectedly changes between steps "'+h.time+'ms" and "'+g+'ms" at "'+j.time+'ms"')),f[c]=k}})}),new tm(Am,new sm([f]))}function Db(a,b){var c=_a(af);switch(b){case af:return a.equals(c);case $e:return _a(!0);default:return a.equals(_a(b))}}function Eb(a){if(a instanceof rm&&a.duration>0&&2==a.keyframes.length){var b=Fb(a.keyframes[0])[0],c=Fb(a.keyframes[1])[0];return pf.isEmpty(b)&&pf.isEmpty(c)}return!1}function Fb(a){return a.styles.styles}function Gb(a,b){if(j(b))return jl;var c=t(a.runtime,b);return Za(new _i({name:a.name+"."+c,moduleUrl:a.moduleUrl,runtime:b}))}function Hb(a,b,c){if(b===c)return a;for(var d=hl,e=b;e!==c&&i(e.declarationElement.view);)e=e.declarationElement.view,d=d.prop("parent");if(e!==c)throw new tf("Internal error: Could not calculate a property in a parent view: "+a);if(a instanceof dl){var f=a;(c.fields.some(function(a){return a.name==f.name})||c.getters.some(function(a){return a.name==f.name}))&&(d=d.cast(c.classType))}return Wa(hl.name,d,a)}function Ib(a,b){var c=[Kb(a)];return b&&c.push(jl),hl.prop("parentInjector").callMethod("get",c)}function Jb(a,b){return"viewFactory_"+a.type.name+b}function Kb(a){return i(a.value)?_a(a.value):a.identifierIsInstance?Za(a.identifier).instantiate([],$a(a.identifier,[],[ok.Const])):Za(a.identifier)}function Lb(a){for(var b=[],c=ab([]),d=0;d0&&(c=c.callMethod(Ok.ConcatArray,[ab(b)]),b=[]),c=c.callMethod(Ok.ConcatArray,[e])):b.push(e)}return b.length>0&&(c=c.callMethod(Ok.ConcatArray,[ab(b)])),c}function Mb(a,b,c,d){d.fields.push(new ql(c.name,null));var e=b0?_a(a).lowerEquals(bn.requestNodeIndex).and(bn.requestNodeIndex.lowerEquals(_a(a+b))):_a(a).identical(bn.requestNodeIndex),new ul(bn.token.identical(Kb(c.token)).and(e),[new ol(d)])}function Sb(a,b,c,d,e,f){var g,h,i=f.view;if(d?(g=ab(c),h=new Fk(Hk)):(g=c[0],h=c[0].type),j(h)&&(h=Hk),e)i.fields.push(new ql(a,h)),i.createMethod.addStmt(hl.prop(a).set(g).toStmt());else{var k="_"+a;i.fields.push(new ql(k,h));var l=new jn(i);l.resetDebugInfo(f.nodeIndex,f.sourceAst),l.addStmt(new ul(hl.prop(k).isBlank(),[hl.prop(k).set(g).toStmt()])),l.addStmt(new ol(hl.prop(k))),i.getters.push(new sl(a,l.finish(),h))}return hl.prop(a)}function Tb(a){return ua(a,new nn,null)}function Ub(a,b){for(var c=null,d=a.pipeMetas.length-1;d>=0;d--){var e=a.pipeMetas[d];if(e.name==b){c=e;break}}if(j(c))throw new tf("Illegal state: Could not find pipe "+b+" although the parser should have detected this error!");return c}function Vb(a,b){return b>0?qe.EMBEDDED:a.type.isHost?qe.HOST:qe.COMPONENT}function Wb(a,b,c,d){var e=new tn(a,b,d),f=c.visit(e,dn.Expression);return new sn(f,e.needsValueUnwrapper)}function Xb(a,b,c){var d=new tn(a,b,null),e=[];return _b(c.visit(d,dn.Statement),e),e}function Yb(a,b){if(a!==dn.Statement)throw new tf("Expected a statement, but saw "+b)}function Zb(a,b){if(a!==dn.Expression)throw new tf("Expected an expression, but saw "+b)}function $b(a,b){return a===dn.Statement?b.toStmt():b}function _b(a,b){p(a)?a.forEach(function(a){return _b(a,b)}):b.push(a)}function ac(a){return hl.prop("_expr_"+a)}function bc(a){return Ya("currVal_"+a)}function cc(a,b,c,d,e,f,g){var h=Wb(a,e,d,cn.valUnwrapper);if(!j(h.expression)){if(a.fields.push(new ql(c.name,null,[Tk.Private])),a.createMethod.addStmt(hl.prop(c.name).set(Za(Yj.uninitialized)).toStmt()),h.needsValueUnwrapper){var i=cn.valUnwrapper.callMethod("reset",[]).toStmt();g.addStmt(i)}g.addStmt(b.set(h.expression).toDeclStmt(null,[Tk.Final]));var k=Za(Yj.checkBinding).callFn([cn.throwOnChange,c,b]);h.needsValueUnwrapper&&(k=cn.valUnwrapper.prop("hasWrappedValue").or(k)),g.addStmt(new ul(k,f.concat([hl.prop(c.name).set(b).toStmt()])))}}function dc(a,b,c){var d=c.bindings.length;c.bindings.push(new un(b,a));var e=bc(d),f=ac(d);c.detectChangesRenderPropertiesMethod.resetDebugInfo(b.nodeIndex,a),cc(c,e,f,a.value,c.componentContext,[hl.prop("renderer").callMethod("setText",[b.renderNode,e]).toStmt()],c.detectChangesRenderPropertiesMethod)}function ec(c,d,e){var f=e.view,g=e.renderNode;c.forEach(function(c){var h=f.bindings.length;f.bindings.push(new un(e,c)),f.detectChangesRenderPropertiesMethod.resetDebugInfo(e.nodeIndex,c);var j=ac(h),k=bc(h),l=fc(c,j),m=fc(c,k),n=[];switch(c.type){case a.PropertyBindingType.Property:f.genConfig.logBindingUpdate&&n.push(jc(g,c.name,m)),n.push(hl.prop("renderer").callMethod("setElementProperty",[g,_a(c.name),m]).toStmt());break;case a.PropertyBindingType.Attribute:m=m.isBlank().conditional(jl,m.callMethod("toString",[])),n.push(hl.prop("renderer").callMethod("setElementAttribute",[g,_a(c.name),m]).toStmt());break;case a.PropertyBindingType.Class:n.push(hl.prop("renderer").callMethod("setElementClass",[g,_a(c.name),m]).toStmt());break;case a.PropertyBindingType.Style:var o=m.callMethod("toString",[]);i(c.unit)&&(o=o.plus(_a(c.unit))),m=m.isBlank().conditional(jl,o),n.push(hl.prop("renderer").callMethod("setElementStyle",[g,_a(c.name),m]).toStmt());break;case a.PropertyBindingType.Animation:var p=c.name,q=f.componentView.animations.get(p);if(!i(q))throw new b.BaseException("Internal Error: couldn't find an animation entry for "+c.name);var r=_a(af),s=Ya("oldRenderVar");n.push(s.set(l).toDeclStmt()),n.push(new ul(s.equals(Za(Yj.uninitialized)),[s.set(r).toStmt()]));var t=Ya("newRenderVar");n.push(t.set(m).toDeclStmt()),n.push(new ul(t.equals(Za(Yj.uninitialized)),[t.set(r).toStmt()])),n.push(q.fnVariable.callFn([hl,g,s,t]).toStmt()),f.detachMethod.addStmt(q.fnVariable.callFn([hl,g,l,r]).toStmt())}cc(f,k,j,c.value,d,n,f.detectChangesRenderPropertiesMethod)})}function fc(a,b){var c;switch(a.securityContext){case De.NONE:return b;case De.HTML:c="HTML";break;case De.STYLE:c="STYLE";break;case De.SCRIPT:c="SCRIPT";break;case De.URL:c="URL";break;case De.RESOURCE_URL:c="RESOURCE_URL";break;default:throw new Error("internal error, unexpected SecurityContext "+a.securityContext+".")}var d=_m.viewUtils.prop("sanitizer"),e=[Za(Yj.SecurityContext).prop(c),b];return d.callMethod("sanitize",e)}function gc(a,b){ec(a,b.view.componentContext,b)}function hc(a,b,c){ec(a.hostProperties,b,c)}function ic(a,b,c){if(0!==a.inputs.length){var d=c.view,e=d.detectChangesInInputsMethod;e.resetDebugInfo(c.nodeIndex,c.sourceAst);var f=a.directive.lifecycleHooks,g=-1!==f.indexOf(ke.OnChanges),h=a.directive.isComponent&&!he(a.directive.changeDetection);g&&e.addStmt(cn.changes.set(jl).toStmt()),h&&e.addStmt(cn.changed.set(_a(!1)).toStmt()),a.inputs.forEach(function(a){var f=d.bindings.length;d.bindings.push(new un(c,a)),e.resetDebugInfo(c.nodeIndex,a);var i=ac(f),j=bc(f),k=[b.prop(a.directiveName).set(j).toStmt()];g&&(k.push(new ul(cn.changes.identical(jl),[cn.changes.set(bb([],new Gk($a(Yj.SimpleChange)))).toStmt()])),k.push(cn.changes.key(_a(a.directiveName)).set(Za(Yj.SimpleChange).instantiate([i,j])).toStmt())),h&&k.push(cn.changed.set(_a(!0)).toStmt()),d.genConfig.logBindingUpdate&&k.push(jc(c.renderNode,a.directiveName,j)),cc(d,j,i,a.value,d.componentContext,k,e)}),h&&e.addStmt(new ul(cn.changed,[c.appElement.prop("componentView").callMethod("markAsCheckOnce",[]).toStmt()]))}}function jc(a,b,c){return hl.prop("renderer").callMethod("setBindingDebugInfo",[a,_a("ng-reflect-"+ra(b)),c.isBlank().conditional(jl,c.callMethod("toString",[]))]).toStmt()}function kc(a,b,c){var d=[];return a.forEach(function(a){c.view.bindings.push(new un(c,a));var b=vn.getOrCreate(c,a.target,a.name,d);b.addAction(a,null,null)}),qf.forEachWithIndex(b,function(a,b){var e=c.directiveInstances[b];a.hostEvents.forEach(function(b){c.view.bindings.push(new un(c,b));var f=vn.getOrCreate(c,b.target,b.name,d);f.addAction(b,a.directive,e)})}),d.forEach(function(a){return a.finishMethod()}),d}function lc(a,b,c){pf.forEach(a.directive.outputs,function(a,d){c.filter(function(b){return b.eventName==a}).forEach(function(a){a.listenToDirective(b,d)})})}function mc(a){a.forEach(function(a){return a.listenToRenderer()})}function nc(a){return a instanceof nl?a.expr:a instanceof ol?a.value:null}function oc(a){return Od.replaceAll(a,/[^a-zA-Z_]/g,"_")}function pc(a,b,c){var d=c.view,e=d.detectChangesInInputsMethod,f=a.directive.lifecycleHooks;-1!==f.indexOf(ke.OnChanges)&&a.inputs.length>0&&e.addStmt(new ul(cn.changes.notIdentical(jl),[b.callMethod("ngOnChanges",[cn.changes]).toStmt()])),-1!==f.indexOf(ke.OnInit)&&e.addStmt(new ul(wn.and(xn),[b.callMethod("ngOnInit",[]).toStmt()])),-1!==f.indexOf(ke.DoCheck)&&e.addStmt(new ul(xn,[b.callMethod("ngDoCheck",[]).toStmt()]))}function qc(a,b,c){var d=c.view,e=a.lifecycleHooks,f=d.afterContentLifecycleCallbacksMethod;f.resetDebugInfo(c.nodeIndex,c.sourceAst),-1!==e.indexOf(ke.AfterContentInit)&&f.addStmt(new ul(wn,[b.callMethod("ngAfterContentInit",[]).toStmt()])),-1!==e.indexOf(ke.AfterContentChecked)&&f.addStmt(b.callMethod("ngAfterContentChecked",[]).toStmt())}function rc(a,b,c){var d=c.view,e=a.lifecycleHooks,f=d.afterViewLifecycleCallbacksMethod;f.resetDebugInfo(c.nodeIndex,c.sourceAst),-1!==e.indexOf(ke.AfterViewInit)&&f.addStmt(new ul(wn,[b.callMethod("ngAfterViewInit",[]).toStmt()])),-1!==e.indexOf(ke.AfterViewChecked)&&f.addStmt(b.callMethod("ngAfterViewChecked",[]).toStmt())}function sc(a,b,c){var d=c.view.destroyMethod;d.resetDebugInfo(c.nodeIndex,c.sourceAst),-1!==a.lifecycleHooks.indexOf(ke.OnDestroy)&&d.addStmt(b.callMethod("ngOnDestroy",[]).toStmt())}function tc(a,b,c){var d=c.destroyMethod;-1!==a.lifecycleHooks.indexOf(ke.OnDestroy)&&d.addStmt(b.callMethod("ngOnDestroy",[]).toStmt())}function uc(a,b){var c=new yn(a);A(c,b),a.pipes.forEach(function(a){tc(a.meta,a.instance,a.view)})}function vc(a,b,c){var d=new Gn(a,c);return A(d,b,a.declarationElement.isNull()?a.declarationElement:a.declarationElement.parent),d.nestedViewCount}function wc(a,b){a.afterNodes(),Ec(a,b),a.nodes.forEach(function(a){a instanceof ln&&a.hasEmbeddedView&&wc(a.embeddedView,b)})}function xc(a){for(var b=a.view;zc(a.parent,b);)a=a.parent;return a}function yc(a){for(var b=a.view;zc(a,b);)a=a.parent;return a}function zc(a,b){return!a.isNull()&&a.sourceAst.name===Cn&&a.view===b}function Ac(a,b){var c={};return pf.forEach(a,function(a,b){c[b]=a}),b.forEach(function(a){pf.forEach(a.hostAttributes,function(a,b){var d=c[b];c[b]=i(d)?Cc(b,d,a):a})}),Dc(c)}function Bc(a){var b={};return a.forEach(function(a){b[a.name]=a.value}),b}function Cc(a,b,c){return a==An||a==Bn?b+" "+c:c}function Dc(a){var b=[];return pf.forEach(a,function(a,c){b.push([c,a])}),qf.sort(b,function(a,b){return Od.compare(a[0],b[0])}),b}function Ec(a,b){var c=jl;a.genConfig.genDebugInfo&&(c=Ya("nodeDebugInfos_"+a.component.type.name+a.viewIndex),b.push(c.set(ab(a.nodes.map(Fc),new Fk(new Ek(Yj.StaticNodeDebugInfo),[ok.Const]))).toDeclStmt(null,[Tk.Final])));var d=Ya("renderType_"+a.component.type.name);0===a.viewIndex&&b.push(d.set(jl).toDeclStmt($a(Yj.RenderComponentType)));var e=Gc(a,d,c);b.push(e),b.push(Hc(a,e,d))}function Fc(a){var b=a instanceof ln?a:null,c=[],d=jl,e=[];return i(b)&&(c=b.getProviderTokens(),i(b.component)&&(d=Kb(Ka(b.component.type))),pf.forEach(b.referenceTokens,function(a,b){e.push([b,i(a)?Kb(a):jl])})),Za(Yj.StaticNodeDebugInfo).instantiate([ab(c,new Fk(Hk,[ok.Const])),d,bb(e,new Gk(Hk,[ok.Const]))],$a(Yj.StaticNodeDebugInfo,null,[ok.Const]))}function Gc(a,b,c){var d=[new al($m.viewUtils.name,$a(Yj.ViewUtils)),new al($m.parentInjector.name,$a(Yj.Injector)),new al($m.declarationEl.name,$a(Yj.AppElement))],e=[Ya(a.className),b,Wm.fromValue(a.viewType),$m.viewUtils,$m.parentInjector,$m.declarationEl,Zm.fromValue(Mc(a))];a.genConfig.genDebugInfo&&e.push(c);var f=new rl(null,d,[il.callFn(e).toStmt()]),g=[new rl("createInternal",[new al(En.name,Kk)],Ic(a),$a(Yj.AppElement)),new rl("injectorGetInternal",[new al(bn.token.name,Hk),new al(bn.requestNodeIndex.name,Jk),new al(bn.notFoundResult.name,Hk)],Kc(a.injectorGetMethod.finish(),bn.notFoundResult),Hk),new rl("detectChangesInternal",[new al(cn.throwOnChange.name,Ik)],Jc(a)),new rl("dirtyParentQueriesInternal",[],a.dirtyParentQueriesMethod.finish()),new rl("destroyInternal",[],a.destroyMethod.finish()),new rl("detachInternal",[],a.detachMethod.finish())].concat(a.eventHandlerMethods),h=a.genConfig.genDebugInfo?Yj.DebugAppView:Yj.AppView,i=new tl(a.className,Za(h,[Lc(a)]),a.fields,a.getters,f,g.filter(function(a){return a.body.length>0}));return i}function Hc(a,b,c){var d,e=[new al($m.viewUtils.name,$a(Yj.ViewUtils)),new al($m.parentInjector.name,$a(Yj.Injector)),new al($m.declarationEl.name,$a(Yj.AppElement))],f=[];return d=a.component.template.templateUrl==a.component.type.moduleUrl?a.component.type.moduleUrl+" class "+a.component.type.name+" - inline template":a.component.template.templateUrl,0===a.viewIndex&&(f=[new ul(c.identical(jl),[c.set($m.viewUtils.callMethod("createRenderComponentType",[_a(d),_a(a.component.template.ngContentSelectors.length),Xm.fromValue(a.component.template.encapsulation),a.styles])).toStmt()])]),db(e,f.concat([new ol(Ya(b.name).instantiate(b.constructorMethod.params.map(function(a){return Ya(a.name)})))]),$a(Yj.AppView,[Lc(a)])).toDeclStmt(a.viewFactory.name,[Tk.Final])}function Ic(a){var b=jl,c=[];a.viewType===qe.COMPONENT&&(b=_m.renderer.callMethod("createViewRoot",[hl.prop("declarationAppElement").prop("nativeElement")]),c=[Dn.set(b).toDeclStmt($a(a.genConfig.renderTypes.renderNode),[Tk.Final])]);var d;return d=a.viewType===qe.HOST?a.nodes[0].appElement:jl,c.concat(a.createMethod.finish(),[hl.callMethod("init",[Lb(a.rootNodesOrAppElements),ab(a.nodes.map(function(a){return a.renderNode})),ab(a.disposables),ab(a.subscriptions)]).toStmt(),new ol(d)])}function Jc(a){var b=[];if(a.detectChangesInInputsMethod.isEmpty()&&a.updateContentQueriesMethod.isEmpty()&&a.afterContentLifecycleCallbacksMethod.isEmpty()&&a.detectChangesRenderPropertiesMethod.isEmpty()&&a.updateViewQueriesMethod.isEmpty()&&a.afterViewLifecycleCallbacksMethod.isEmpty())return b;qf.addAll(b,a.detectChangesInInputsMethod.finish()),b.push(hl.callMethod("detectContentChildrenChanges",[cn.throwOnChange]).toStmt());var c=a.updateContentQueriesMethod.finish().concat(a.afterContentLifecycleCallbacksMethod.finish());c.length>0&&b.push(new ul(cb(cn.throwOnChange),c)),qf.addAll(b,a.detectChangesRenderPropertiesMethod.finish()),b.push(hl.callMethod("detectViewChildrenChanges",[cn.throwOnChange]).toStmt());var d=a.updateViewQueriesMethod.finish().concat(a.afterViewLifecycleCallbacksMethod.finish());d.length>0&&b.push(new ul(cb(cn.throwOnChange),d));var e=[],f=Xa(b);return sf.has(f,cn.changed.name)&&e.push(cn.changed.set(_a(!0)).toDeclStmt(Ik)),sf.has(f,cn.changes.name)&&e.push(cn.changes.set(jl).toDeclStmt(new Gk($a(Yj.SimpleChange)))),sf.has(f,cn.valUnwrapper.name)&&e.push(cn.valUnwrapper.set(Za(Yj.ValueUnwrapper).instantiate([])).toDeclStmt(null,[Tk.Final])),e.concat(b)}function Kc(a,b){return a.length>0?a.concat([new ol(b)]):a}function Lc(a){return a.viewType===qe.COMPONENT?$a(a.component.type):Hk}function Mc(a){var c;return c=a.viewType===qe.COMPONENT?he(a.component.changeDetection)?b.ChangeDetectionStrategy.CheckAlways:b.ChangeDetectionStrategy.CheckOnce:b.ChangeDetectionStrategy.CheckAlways}function Nc(a,b){if(h()&&!j(b)){if(!p(b))throw new tf("Expected '"+a+"' to be an array of strings.");for(var c=0;c0?d:"package:"+d+Fi}return a.importUri(b)}function Yc(a){return ua(a,new Sn,null)}function Zc(a,b){if(j(a))return null;var c=Od.replaceAllMapped(a,Tn,function(a){return"$"==a[0]?b?"\\$":"$":"\n"==a[0]?"\\n":"\r"==a[0]?"\\r":"\\"+a[0]});return"'"+c+"'"}function $c(a){for(var b="",c=0;a>c;c++)b+=" ";return b}function _c(a,b,c){var d=new $n,e=Xn.createRoot([c]);return d.visitAllStatements(b,e),x(a,c,e.toSource(),d.getArgs())}function ad(a){var b,c=new ao(_n),d=Xn.createRoot([]);return b=p(a)?a:[a],b.forEach(function(a){if(a instanceof kl)a.visitStatement(c,d);else if(a instanceof Nk)a.visitExpression(c,d);else{if(!(a instanceof Bk))throw new tf("Don't know how to print debug info for "+a);a.visitType(c,d)}}),d.toSource()}function bd(a){if(a instanceof nl){var b=a.expr;if(b instanceof Vk){var c=b.fn;if(c instanceof Pk&&c.builtin===Mk.Super)return b}}return null}function cd(a){return i(a)&&a.hasModifier(ok.Const)}function dd(a){var b,c=new eo(bo),d=Xn.createRoot([]);return b=p(a)?a:[a],b.forEach(function(a){if(a instanceof kl)a.visitStatement(c,d);else if(a instanceof Nk)a.visitExpression(c,d);else{if(!(a instanceof Bk))throw new tf("Don't know how to print debug info for "+a);a.visitType(c,d)}}),d.toSource()}function ed(a,b,c){var d=a.concat([new ol(Ya(b))]),e=new go(null,null,null,null,new Map,new Map,new Map,new Map,c),f=new jo,g=f.visitAllStatements(d,e);return i(g)?g.value:null}function fd(a){return Jd?a instanceof fo:i(a)&&i(a.props)&&i(a.getters)&&i(a.methods)}function gd(a,b,c,d,e){for(var f=d.createChildWihtLocalVars(),g=0;g-1;d.push(new Eo(f,null,f.children,i(h)?h.value:null,j))}else f instanceof dh&&d.push(new Eo(null,f,null,null,!1))}return d}function md(a){return a instanceof ih&&i(a.value)&&a.value.startsWith("i18n")}function nd(a){return a instanceof ih&&i(a.value)&&"/i18n"==a.value}function od(a){for(var b=a.attrs,c=0;c1?b[1]:null}function rd(a,b,c){var d=c.name.substring(5),e=b.attrs.find(function(a){return a.name==d});if(e)return sd(a,e,pd(c.value),qd(c.value));throw new Do(b.sourceSpan,"Missing attribute '"+d+"'.")}function sd(a,b,c,d){void 0===c&&(c=null),void 0===d&&(d=null);var e=td(b.value,b.sourceSpan,a);return new zo(e,c,d)}function td(a,b,c){try{var d=c.splitInterpolation(a,b.toString()),e=new Map;if(i(d)){for(var f="",g=0;g'}return f}return a}catch(j){return a}}function ud(a,b){var c=Od.split(a,Co);return c.length>1?c[1]:""+b}function vd(a,b){var c=a.get(b);return i(c)?(a.set(b,c+1),b+"_"+c):(a.set(b,1),b)}function wd(a,b){var c=new Fo(b);return S(c,a).join("")}function xd(a){var b=new Io,c=S(b,a);return new Ho(c,b.expanded,b.errors)}function yd(a,b){var c=a.cases.map(function(c){-1!=Go.indexOf(c.value)||c.value.match(/^=\d+$/)||b.push(new Do(c.valueSourceSpan,'Plural cases should be "=" or one of '+Go.join(", ")));var d=xd(c.expression);b.push.apply(b,d.errors);var e=d.expanded?[]:[new gh("i18n",a.type+"_"+c.value,c.valueSourceSpan)];return new hh("template",[new gh("ngPluralCase",c.value,c.valueSourceSpan)],[new hh("li",e,d.nodes,c.sourceSpan,c.sourceSpan,c.sourceSpan)],c.sourceSpan,c.sourceSpan,c.sourceSpan)}),d=new gh("[ngPlural]",a.switchValue,a.switchValueSourceSpan);return new hh("ul",[d],c,a.sourceSpan,a.sourceSpan,a.sourceSpan)}function zd(a){var b=a.cases.map(function(b){var c=xd(b.expression),d=c.expanded?[]:[new gh("i18n",a.type+"_"+b.value,b.valueSourceSpan)];return new hh("template",[new gh("ngSwitchWhen",b.value,b.valueSourceSpan)],[new hh("li",d,c.nodes,b.sourceSpan,b.sourceSpan,b.sourceSpan)],b.sourceSpan,b.sourceSpan,b.sourceSpan)}),c=new gh("[ngSwitch]",a.switchValue,a.switchValueSourceSpan);return new hh("ul",[c],b,a.sourceSpan,a.sourceSpan,a.sourceSpan)}function Ad(a){var b={};return a.forEach(function(a){pf.contains(b,kd(a))||(b[kd(a)]=a)}),pf.values(b)}function Bd(a){var b=a.map(function(a){return Gd(a)}).join("");return""+b+""}function Cd(a,b){var c=new hi,d=Hd(a.trim()),e=c.parse(d,b);if(e.errors.length>0)return new Uo(null,{},e.errors);if(Dd(e.rootNodes))return new Uo(null,{},[new Vo(null,'Missing element "'+To+'"')]);var f=e.rootNodes[0],g=[],h={};return Ed(f.children,h,g),0==g.length?new Uo(d,h,[]):new Uo(null,{},g)}function Dd(a){return a.length<1||!(a[0]instanceof hh)||a[0].name!=To}function Ed(a,b,c){a.forEach(function(a){if(a instanceof hh){var d=a;if(d.name!=So)return void c.push(new Vo(a.sourceSpan,'Unexpected element "'+d.name+'"'));var e=Fd(d);if(j(e))return void c.push(new Vo(a.sourceSpan,'"'+Ro+'" attribute is missing'));b[e]=d.children}})}function Fd(a){var b=a.attrs.filter(function(a){return a.name==Ro});return b.length>0?b[0].value:null}function Gd(a){var b=i(a.description)?" desc='"+a.description+"'":"";return""+a.content+""}function Hd(a){return Sd.replaceAll(Qo,a,function(a){var b=a[2];return""})}var Id;Id="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var Jd=!1,Kd=Id,Ld=Function,Md=!0;Kd.assert=function(a){};var Nd=Object.getPrototypeOf({}),Od=function(){function a(){}return a.fromCharCode=function(a){return String.fromCharCode(a)},a.charCodeAt=function(a,b){return a.charCodeAt(b)},a.split=function(a,b){return a.split(b)},a.equals=function(a,b){return a===b},a.stripLeft=function(a,b){if(a&&a.length){for(var c=0,d=0;d=0&&a[d]==b;d--)c--;a=a.substring(0,c)}return a},a.replace=function(a,b,c){return a.replace(b,c)},a.replaceAll=function(a,b,c){return a.replace(b,c)},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.replaceAllMapped=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;ba?-1:a>b?1:0},a}(),Pd=function(){function a(a){void 0===a&&(a=[]),this.parts=a}return a.prototype.add=function(a){this.parts.push(a)},a.prototype.toString=function(){return this.parts.join("")},a}(),Qd=function(a){function b(b){a.call(this),this.message=b}return f(b,a),b.prototype.toString=function(){return this.message},b}(Error),Rd=function(){function a(){}return a.toFixed=function(a,b){return a.toFixed(b)},a.equal=function(a,b){return a===b},a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new Qd("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new Qd("Invalid integer literal when parsing "+a+" in base "+b)},a.parseFloat=function(a){return parseFloat(a)},Object.defineProperty(a,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),a.isNaN=function(a){return isNaN(a)},a.isInteger=function(a){return Number.isInteger(a)},a}(),Sd=function(){function a(){}return a.create=function(a,b){return void 0===b&&(b=""),b=b.replace(/g/g,""),new Kd.RegExp(a,b+"g")},a.firstMatch=function(a,b){return a.lastIndex=0,a.exec(b)},a.test=function(a,b){return a.lastIndex=0,a.test(b)},a.matcher=function(a,b){return a.lastIndex=0,{re:a,input:b}},a.replaceAll=function(a,b,c){var d=a.exec(b),e="";a.lastIndex=0;for(var f=0;d;)e+=b.substring(f,d.index),e+=c(d),f=d.index+d[0].length,a.lastIndex=f,d=a.exec(b);return e+=b.substring(f)},a}(),Td=function(){function a(){}return a.next=function(a){return a.re.exec(a.input)},a}(),Ud=function(){function a(){}return a.apply=function(a,b){return a.apply(null,b)},a.bind=function(a,b){return a.bind(b)},a}(),Vd=function(){function a(a,b,c){this.value=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitText(this,b)},a}(),Wd=function(){function a(a,b,c){this.value=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitBoundText(this,b)},a}(),Xd=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitAttr(this,b)},a}(),Yd=function(){function a(a,b,c,d,e,f){this.name=a,this.type=b,this.securityContext=c,this.value=d,this.unit=e,this.sourceSpan=f}return a.prototype.visit=function(a,b){return a.visitElementProperty(this,b)},a}(),Zd=function(){function a(a,b,c,d){this.name=a,this.target=b,this.handler=c,this.sourceSpan=d}return a.prototype.visit=function(a,b){return a.visitEvent(this,b)},Object.defineProperty(a.prototype,"fullName",{get:function(){return i(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),a}(),$d=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitReference(this,b)},a}(),_d=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitVariable(this,b)},a}(),ae=function(){function a(a,b,c,d,e,f,g,h,i,j,k){this.name=a,this.attrs=b,this.inputs=c,this.outputs=d,this.references=e,this.directives=f,this.providers=g,this.hasViewContainer=h,this.children=i,this.ngContentIndex=j,this.sourceSpan=k}return a.prototype.visit=function(a,b){return a.visitElement(this,b)},a}(),be=function(){function a(a,b,c,d,e,f,g,h,i,j){this.attrs=a,this.outputs=b,this.references=c,this.variables=d,this.directives=e,this.providers=f,this.hasViewContainer=g,this.children=h,this.ngContentIndex=i,this.sourceSpan=j}return a.prototype.visit=function(a,b){return a.visitEmbeddedTemplate(this,b)},a}(),ce=function(){function a(a,b,c,d){this.directiveName=a,this.templateName=b,this.value=c,this.sourceSpan=d}return a.prototype.visit=function(a,b){return a.visitDirectiveProperty(this,b)},a}(),de=function(){function a(a,b,c,d,e){this.directive=a,this.inputs=b,this.hostProperties=c,this.hostEvents=d,this.sourceSpan=e}return a.prototype.visit=function(a,b){return a.visitDirective(this,b)},a}(),ee=function(){function a(a,b,c,d,e,f){this.token=a,this.multiProvider=b,this.eager=c,this.providers=d,this.providerType=e,this.sourceSpan=f}return a.prototype.visit=function(a,b){return null},a}();a.ProviderAstType,function(a){a[a.PublicService=0]="PublicService",a[a.PrivateService=1]="PrivateService",a[a.Component=2]="Component",a[a.Directive=3]="Directive",a[a.Builtin=4]="Builtin"}(a.ProviderAstType||(a.ProviderAstType={}));var fe=function(){function a(a,b,c){this.index=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitNgContent(this,b)},a}();a.PropertyBindingType,function(a){a[a.Property=0]="Property",a[a.Attribute=1]="Attribute",a[a.Class=2]="Class",a[a.Style=3]="Style",a[a.Animation=4]="Animation"}(a.PropertyBindingType||(a.PropertyBindingType={}));var ge,he=b.__core_private__.isDefaultChangeDetectionStrategy,ie=b.__core_private__.ChangeDetectorState,je=b.__core_private__.CHANGE_DETECTION_STRATEGY_VALUES,ke=b.__core_private__.LifecycleHooks,le=b.__core_private__.LIFECYCLE_HOOKS_VALUES,me=b.__core_private__.ReflectorReader,ne=b.__core_private__.AppElement,oe=b.__core_private__.AppView,pe=b.__core_private__.DebugAppView,qe=b.__core_private__.ViewType,re=b.__core_private__.MAX_INTERPOLATION_VALUES,se=b.__core_private__.checkBinding,te=b.__core_private__.flattenNestedViewRenderNodes,ue=b.__core_private__.interpolate,ve=b.__core_private__.ViewUtils,we=b.__core_private__.VIEW_ENCAPSULATION_VALUES,xe=b.__core_private__.DebugContext,ye=b.__core_private__.StaticNodeDebugInfo,ze=b.__core_private__.devModeEqual,Ae=b.__core_private__.uninitialized,Be=b.__core_private__.ValueUnwrapper,Ce=b.__core_private__.TemplateRef_,De=b.__core_private__.SecurityContext,Ee=b.__core_private__.createProvider,Fe=b.__core_private__.isProviderLiteral,Ge=b.__core_private__.EMPTY_ARRAY,He=b.__core_private__.EMPTY_MAP,Ie=b.__core_private__.pureProxy1,Je=b.__core_private__.pureProxy2,Ke=b.__core_private__.pureProxy3,Le=b.__core_private__.pureProxy4,Me=b.__core_private__.pureProxy5,Ne=b.__core_private__.pureProxy6,Oe=b.__core_private__.pureProxy7,Pe=b.__core_private__.pureProxy8,Qe=b.__core_private__.pureProxy9,Re=b.__core_private__.pureProxy10,Se=b.__core_private__.castByValue,Te=b.__core_private__.Console,Ue=b.__core_private__.reflector,Ve=b.__core_private__.NoOpAnimationPlayer,We=b.__core_private__.AnimationSequencePlayer,Xe=b.__core_private__.AnimationGroupPlayer,Ye=b.__core_private__.AnimationKeyframe,Ze=b.__core_private__.AnimationStyles,$e=b.__core_private__.ANY_STATE,_e=b.__core_private__.DEFAULT_STATE,af=b.__core_private__.EMPTY_STATE,bf=b.__core_private__.FILL_STYLE_FLAG,cf=b.__core_private__.prepareFinalAnimationStyles,df=b.__core_private__.balanceAnimationKeyframes,ef=b.__core_private__.clearStyles,ff=b.__core_private__.collectAndResolveStyles,gf=b.__core_private__.renderStyles,hf=Kd.Map,jf=Kd.Set,kf=function(){try{if(1===new hf([[1,2]]).size)return function(a){return new hf(a)}}catch(a){}return function(a){for(var b=new hf,c=0;c-1?(a.splice(c,1),!0):!1},a.clear=function(a){a.length=0},a.isEmpty=function(a){return 0==a.length},a.fill=function(a,b,c,d){void 0===c&&(c=0),void 0===d&&(d=null),a.fill(b,c,null===d?a.length:d)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;cd&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return B(a,b),b},a.addAll=function(a,b){for(var c=0;c=this.length?Vf:Od.charCodeAt(this.input,this.index)},a.prototype.scanToken=function(){for(var a=this.input,b=this.length,c=this.peek,d=this.index;_f>=c;){if(++d>=b){c=Vf;break}c=Od.charCodeAt(a,d)}if(this.peek=c,this.index=d,d>=b)return null;if(K(c))return this.scanIdentifier();if(N(c))return this.scanNumber(d);var e=d;switch(c){case ng:return this.advance(),N(this.peek)?this.scanNumber(e):D(e,ng);case hg:case ig:case Pg:case Rg:case Ag:case Cg:case lg:case pg:case qg:return this.scanCharacter(e,c);case gg:case bg:return this.scanString();case cg:case kg:case mg:case jg:case og:case eg:case Dg:return this.scanOperator(e,Od.fromCharCode(c));case ug:return this.scanComplexOperator(e,"?",ng,".");case rg:case tg:return this.scanComplexOperator(e,Od.fromCharCode(c),sg,"=");case ag:case sg:return this.scanComplexOperator(e,Od.fromCharCode(c),sg,"=",sg,"=");case fg:return this.scanComplexOperator(e,"&",fg,"&");case Qg:return this.scanComplexOperator(e,"|",Qg,"|");case Sg:for(;J(this.peek);)this.advance();return this.scanToken()}return this.error("Unexpected character ["+Od.fromCharCode(c)+"]",0),null},a.prototype.scanCharacter=function(a,b){return this.advance(),D(a,b)},a.prototype.scanOperator=function(a,b){return this.advance(),G(a,b)},a.prototype.scanComplexOperator=function(a,b,c,d,e,f){this.advance();var g=b;return this.peek==c&&(this.advance(),g+=d),i(e)&&this.peek==e&&(this.advance(),g+=f),G(a,g)},a.prototype.scanIdentifier=function(){var a=this.index;for(this.advance();M(this.peek);)this.advance();var b=this.input.substring(a,this.index);return sf.has(Vg,b)?F(a,b):E(a,b)},a.prototype.scanNumber=function(a){var b=this.index===a;for(this.advance();;){if(N(this.peek));else if(this.peek==ng)b=!1;else{if(!O(this.peek))break;this.advance(),P(this.peek)&&this.advance(),N(this.peek)||this.error("Invalid exponent",-1),b=!1}this.advance()}var c=this.input.substring(a,this.index),d=b?Rd.parseIntAutoRadix(c):Rd.parseFloat(c);return I(a,d)},a.prototype.scanString=function(){var a=this.index,b=this.peek;this.advance();for(var c,d=this.index,e=this.input;this.peek!=b;)if(this.peek==Bg){null==c&&(c=new Pd),c.add(e.substring(d,this.index)),this.advance();var f;if(this.peek==Mg){var g=e.substring(this.index+1,this.index+5);try{f=Rd.parseInt(g,16)}catch(h){this.error("Invalid unicode escape [\\u"+g+"]",0)}for(var i=0;5>i;i++)this.advance()}else f=R(this.peek),this.advance();c.add(Od.fromCharCode(f)),d=this.index}else this.peek==Vf?this.error("Unterminated quote",0):this.advance();var j=e.substring(d,this.index);this.advance();var k=j;return null!=c&&(c.add(j),k=c.toString()),H(a,k)},a.prototype.error=function(a,b){var c=this.index+b;throw new Tg("Lexer Error: "+a+" at column "+c+" in expression ["+this.input+"]")},a}(),Vg=(sf.createFromList(["+","-","*","/","%","^","=","==","!=","===","!==","<",">","<=",">=","&&","||","&","|","!","?","#","?."]),sf.createFromList(["var","let","null","undefined","true","false","if","else"])),Wg=new xf,Xg=/\{\{([\s\S]*?)\}\}/g,Yg=function(a){function b(b,c,d,e){a.call(this,"Parser Error: "+b+" "+d+" ["+c+"] in "+e)}return f(b,a),b}(tf),Zg=function(){function a(a,b){this.strings=a,this.expressions=b}return a}(),$g=function(){function a(a,b){this.templateBindings=a,this.warnings=b}return a}(),_g=function(){function a(a){this._lexer=a}return a.prototype.parseAction=function(a,b){this._checkNoInterpolation(a,b);var c=this._lexer.tokenize(this._stripComments(a)),d=new bh(a,b,c,!0).parseChain();return new Pf(d,a,b)},a.prototype.parseBinding=function(a,b){var c=this._parseBindingAst(a,b);return new Pf(c,a,b)},a.prototype.parseSimpleBinding=function(a,b){var c=this._parseBindingAst(a,b);if(!ch.check(c))throw new Yg("Host binding expression can only contain field access and constants",a,b);return new Pf(c,a,b)},a.prototype._parseBindingAst=function(a,b){var c=this._parseQuote(a,b);if(i(c))return c;this._checkNoInterpolation(a,b);var d=this._lexer.tokenize(this._stripComments(a));return new bh(a,b,d,!1).parseChain()},a.prototype._parseQuote=function(a,b){if(j(a))return null;var c=a.indexOf(":");if(-1==c)return null;var d=a.substring(0,c).trim();if(!L(d))return null;var e=a.substring(c+1);return new vf(d,e,b)},a.prototype.parseTemplateBindings=function(a,b){var c=this._lexer.tokenize(a);return new bh(a,b,c,!1).parseTemplateBindings()},a.prototype.parseInterpolation=function(a,b){var c=this.splitInterpolation(a,b);if(null==c)return null;for(var d=[],e=0;e0))throw new Yg("Blank expressions are not allowed in interpolated strings",a,"at column "+this._findInterpolationErrorColumn(c,f)+" in",b);e.push(g)}}return new Zg(d,e)},a.prototype.wrapLiteralPrimitive=function(a,b){return new Pf(new Gf(a),a,b)},a.prototype._stripComments=function(a){var b=this._commentStart(a);return i(b)?a.substring(0,b).trim():a},a.prototype._commentStart=function(a){for(var b=null,c=0;c1)throw new Yg("Got interpolation ({{}}) where expression was expected",a,"at column "+this._findInterpolationErrorColumn(c,1)+" in",b)},a.prototype._findInterpolationErrorColumn=function(a,b){for(var c="",d=0;b>d;d++)c+=d%2===0?a[d]:"{{"+a[d]+"}}";return c.length},a}();_g.decorators=[{type:b.Injectable}],_g.ctorParameters=[{type:Sf}];var ah,bh=function(){function a(a,b,c,d){this.input=a,this.location=b,this.tokens=c,this.parseAction=d,this.index=0}return a.prototype.peek=function(a){var b=this.index+a;return b"))a=new Kf(">",a,this.parseAdditive());else if(this.optionalOperator("<="))a=new Kf("<=",a,this.parseAdditive());else{if(!this.optionalOperator(">="))return a;a=new Kf(">=",a,this.parseAdditive())}},a.prototype.parseAdditive=function(){for(var a=this.parseMultiplicative();;)if(this.optionalOperator("+"))a=new Kf("+",a,this.parseMultiplicative());else{if(!this.optionalOperator("-"))return a;a=new Kf("-",a,this.parseMultiplicative())}},a.prototype.parseMultiplicative=function(){for(var a=this.parsePrefix();;)if(this.optionalOperator("*"))a=new Kf("*",a,this.parsePrefix());else if(this.optionalOperator("%"))a=new Kf("%",a,this.parsePrefix());else{if(!this.optionalOperator("/"))return a;a=new Kf("/",a,this.parsePrefix())}},a.prototype.parsePrefix=function(){return this.optionalOperator("+")?this.parsePrefix():this.optionalOperator("-")?new Kf("-",new Gf(0),this.parsePrefix()):this.optionalOperator("!")?new Lf(this.parsePrefix()):this.parseCallChain()},a.prototype.parseCallChain=function(){for(var a=this.parsePrimary();;)if(this.optionalCharacter(ng))a=this.parseAccessMemberOrMethodCall(a,!1);else if(this.optionalOperator("?."))a=this.parseAccessMemberOrMethodCall(a,!0);else if(this.optionalCharacter(Ag)){var b=this.parsePipe();if(this.expectCharacter(Cg),this.optionalOperator("=")){var c=this.parseConditional();a=new Ef(a,b,c)}else a=new Df(a,b)}else{if(!this.optionalCharacter(hg))return a;var d=this.parseCallArguments();this.expectCharacter(ig),a=new Of(a,d)}},a.prototype.parsePrimary=function(){if(this.optionalCharacter(hg)){var a=this.parsePipe();return this.expectCharacter(ig),a}if(this.next.isKeywordNull()||this.next.isKeywordUndefined())return this.advance(),new Gf(null);if(this.next.isKeywordTrue())return this.advance(),new Gf(!0);if(this.next.isKeywordFalse())return this.advance(),new Gf(!1);if(this.optionalCharacter(Ag)){var b=this.parseExpressionList(Cg);return this.expectCharacter(Cg),new Hf(b)}if(this.next.isCharacter(Pg))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(Wg,!1);if(this.next.isNumber()){var c=this.next.toNumber();return this.advance(),new Gf(c)}if(this.next.isString()){var d=this.next.toString();return this.advance(),new Gf(d)}throw this.index>=this.tokens.length?this.error("Unexpected end of expression: "+this.input):this.error("Unexpected token "+this.next),new tf("Fell through all cases in parsePrimary")},a.prototype.parseExpressionList=function(a){var b=[];if(!this.next.isCharacter(a))do b.push(this.parsePipe());while(this.optionalCharacter(lg));return b},a.prototype.parseLiteralMap=function(){var a=[],b=[];if(this.expectCharacter(Pg),!this.optionalCharacter(Rg)){do{var c=this.expectIdentifierOrKeywordOrString();a.push(c),this.expectCharacter(pg),b.push(this.parsePipe())}while(this.optionalCharacter(lg));this.expectCharacter(Rg)}return new If(a,b)},a.prototype.parseAccessMemberOrMethodCall=function(a,b){void 0===b&&(b=!1);var c=this.expectIdentifierOrKeyword();if(this.optionalCharacter(hg)){var d=this.parseCallArguments();return this.expectCharacter(ig),b?new Nf(a,c,d):new Mf(a,c,d)}if(!b){if(this.optionalOperator("=")){this.parseAction||this.error("Bindings cannot contain assignments");var e=this.parseConditional();return new Bf(a,c,e)}return new Af(a,c)}return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),null):new Cf(a,c)},a.prototype.parseCallArguments=function(){if(this.next.isCharacter(ig))return[];var a=[];do a.push(this.parsePipe());while(this.optionalCharacter(lg));return a},a.prototype.expectTemplateBindingKey=function(){var a="",b=!1;do a+=this.expectIdentifierOrKeywordOrString(),b=this.optionalOperator("-"),b&&(a+="-");while(b);return a.toString()},a.prototype.parseTemplateBindings=function(){for(var a=[],b=null,c=[];this.index",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"};!function(a){a[a.RAW_TEXT=0]="RAW_TEXT",a[a.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",a[a.PARSABLE_DATA=2]="PARSABLE_DATA"}(ah||(ah={}));var kh,lh=function(){function a(a){var b=this,c=void 0===a?{}:a,d=c.closedByChildren,e=c.requiredParents,f=c.implicitNamespacePrefix,g=c.contentType,h=c.closedByParent,j=c.isVoid,k=c.ignoreFirstLf;this.closedByChildren={},this.closedByParent=!1,i(d)&&d.length>0&&d.forEach(function(a){return b.closedByChildren[a]=!0}),this.isVoid=v(j),this.closedByParent=v(h)||this.isVoid,i(e)&&e.length>0&&(this.requiredParents={},this.parentToAdd=e[0],e.forEach(function(a){return b.requiredParents[a]=!0})),this.implicitNamespacePrefix=f,this.contentType=i(g)?g:ah.PARSABLE_DATA,this.ignoreFirstLf=v(k)}return a.prototype.requireExtraParent=function(a){if(j(this.requiredParents))return!1;if(j(a))return!0;var b=a.toLowerCase();return 1!=this.requiredParents[b]&&"template"!=b},a.prototype.isClosedByChild=function(a){return this.isVoid||v(this.closedByChildren[a.toLowerCase()])},a}(),mh={base:new lh({isVoid:!0}),meta:new lh({isVoid:!0}),area:new lh({isVoid:!0}),embed:new lh({isVoid:!0}),link:new lh({isVoid:!0}),img:new lh({isVoid:!0}),input:new lh({isVoid:!0}),param:new lh({isVoid:!0}),hr:new lh({isVoid:!0}),br:new lh({isVoid:!0}),source:new lh({isVoid:!0}),track:new lh({isVoid:!0}),wbr:new lh({isVoid:!0}),p:new lh({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new lh({closedByChildren:["tbody","tfoot"]}),tbody:new lh({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new lh({closedByChildren:["tbody"],closedByParent:!0}),tr:new lh({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new lh({closedByChildren:["td","th"],closedByParent:!0}),th:new lh({closedByChildren:["td","th"],closedByParent:!0}),col:new lh({requiredParents:["colgroup"],isVoid:!0}),svg:new lh({implicitNamespacePrefix:"svg"}),math:new lh({implicitNamespacePrefix:"math"}),li:new lh({closedByChildren:["li"],closedByParent:!0}),dt:new lh({closedByChildren:["dt","dd"]}),dd:new lh({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new lh({closedByChildren:["rb","rt","rtc","rp"], -closedByParent:!0}),rt:new lh({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new lh({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new lh({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new lh({closedByChildren:["optgroup"],closedByParent:!0}),option:new lh({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new lh({ignoreFirstLf:!0}),listing:new lh({ignoreFirstLf:!0}),style:new lh({contentType:ah.RAW_TEXT}),script:new lh({contentType:ah.RAW_TEXT}),title:new lh({contentType:ah.ESCAPABLE_RAW_TEXT}),textarea:new lh({contentType:ah.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},nh=new lh,oh=/^:([^:]+):(.+)/g,ph=function(){function a(a,b,c,d){this.file=a,this.offset=b,this.line=c,this.col=d}return a.prototype.toString=function(){return this.file.url+"@"+this.line+":"+this.col},a}(),qh=function(){function a(a,b){this.content=a,this.url=b}return a}(),rh=function(){function a(a,b){this.start=a,this.end=b}return a.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},a}();!function(a){a[a.WARNING=0]="WARNING",a[a.FATAL=1]="FATAL"}(kh||(kh={}));var sh,th=function(){function a(a,b,c){void 0===c&&(c=kh.FATAL),this.span=a,this.msg=b,this.level=c}return a.prototype.toString=function(){var a=this.span.start.file.content,b=this.span.start.offset;b>a.length-1&&(b=a.length-1);for(var c=b,d=0,e=0;100>d&&b>0&&(b--,d++,"\n"!=a[b]||3!=++e););for(d=0,e=0;100>d&&c]"+a.substring(this.span.start.offset,c+1);return this.msg+' ("'+f+'"): '+this.span.start},a}();!function(a){a[a.TAG_OPEN_START=0]="TAG_OPEN_START",a[a.TAG_OPEN_END=1]="TAG_OPEN_END",a[a.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",a[a.TAG_CLOSE=3]="TAG_CLOSE",a[a.TEXT=4]="TEXT",a[a.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",a[a.RAW_TEXT=6]="RAW_TEXT",a[a.COMMENT_START=7]="COMMENT_START",a[a.COMMENT_END=8]="COMMENT_END",a[a.CDATA_START=9]="CDATA_START",a[a.CDATA_END=10]="CDATA_END",a[a.ATTR_NAME=11]="ATTR_NAME",a[a.ATTR_VALUE=12]="ATTR_VALUE",a[a.DOC_TYPE=13]="DOC_TYPE",a[a.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",a[a.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",a[a.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",a[a.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",a[a.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",a[a.EOF=19]="EOF"}(sh||(sh={}));var uh=function(){function a(a,b,c){this.type=a,this.parts=b,this.sourceSpan=c}return a}(),vh=function(a){function b(b,c,d){a.call(this,d,b),this.tokenType=c}return f(b,a),b}(th),wh=function(){function a(a,b){this.tokens=a,this.errors=b}return a}(),xh=0,yh=9,zh=10,Ah=13,Bh=32,Ch=33,Dh=34,Eh=35,Fh=38,Gh=39,Hh=45,Ih=47,Jh=48,Kh=59,Lh=57,Mh=58,Nh=60,Oh=61,Ph=62,Qh=91,Rh=93,Sh=123,Th=125,Uh=44,Vh=65,Wh=70,Xh=88,Yh=90,Zh=97,$h=102,_h=122,ai=120,bi=160,ci=/\r\n?/g,di=function(){function a(a){this.error=a}return a}(),ei=function(){function a(a,b){this.file=a,this.tokenizeExpansionForms=b,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this.tokens=[],this.errors=[],this._input=a.content,this._length=a.content.length,this._advance()}return a.prototype._processCarriageReturns=function(a){return Od.replaceAll(a,ci,"\n")},a.prototype.tokenize=function(){for(;this._peek!==xh;){var a=this._getLocation();try{this._attemptCharCode(Nh)?this._attemptCharCode(Ch)?this._attemptCharCode(Qh)?this._consumeCdata(a):this._attemptCharCode(Hh)?this._consumeComment(a):this._consumeDocType(a):this._attemptCharCode(Ih)?this._consumeTagClose(a):this._consumeTagOpen(a):ea(this._peek,this._nextPeek)&&this.tokenizeExpansionForms?this._consumeExpansionFormStart():fa(this._peek)&&this._isInExpansionForm()&&this.tokenizeExpansionForms?this._consumeExpansionCaseStart():this._peek===Th&&this._isInExpansionCase()&&this.tokenizeExpansionForms?this._consumeExpansionCaseEnd():this._peek===Th&&this._isInExpansionForm()&&this.tokenizeExpansionForms?this._consumeExpansionFormEnd():this._consumeText()}catch(b){if(!(b instanceof di))throw b;this.errors.push(b.error)}}return this._beginToken(sh.EOF),this._endToken([]),new wh(ka(this.tokens),this.errors)},a.prototype._getLocation=function(){return new ph(this.file,this._index,this._line,this._column)},a.prototype._getSpan=function(a,b){return j(a)&&(a=this._getLocation()),j(b)&&(b=this._getLocation()),new rh(a,b)},a.prototype._beginToken=function(a,b){void 0===b&&(b=null),j(b)&&(b=this._getLocation()),this._currentTokenStart=b,this._currentTokenType=a},a.prototype._endToken=function(a,b){void 0===b&&(b=null),j(b)&&(b=this._getLocation());var c=new uh(this._currentTokenType,a,new rh(this._currentTokenStart,b));return this.tokens.push(c),this._currentTokenStart=null,this._currentTokenType=null,c},a.prototype._createError=function(a,b){var c=new vh(a,this._currentTokenType,b);return this._currentTokenStart=null,this._currentTokenType=null,new di(c)},a.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Y(xh),this._getSpan());this._peek===zh?(this._line++,this._column=0):this._peek!==zh&&this._peek!==Ah&&this._column++,this._index++,this._peek=this._index>=this._length?xh:Od.charCodeAt(this._input,this._index),this._nextPeek=this._index+1>=this._length?xh:Od.charCodeAt(this._input,this._index+1)},a.prototype._attemptCharCode=function(a){return this._peek===a?(this._advance(),!0):!1},a.prototype._attemptCharCodeCaseInsensitive=function(a){return ia(this._peek,a)?(this._advance(),!0):!1},a.prototype._requireCharCode=function(a){var b=this._getLocation();if(!this._attemptCharCode(a))throw this._createError(Y(this._peek),this._getSpan(b,b))},a.prototype._attemptStr=function(a){for(var b=this._index,c=this._column,d=this._line,e=0;ed.offset&&f.push(this._input.substring(d.offset,this._index));this._peek!==b;)f.push(this._readChar(a))}return this._endToken([this._processCarriageReturns(f.join(""))],d)},a.prototype._consumeComment=function(a){var b=this;this._beginToken(sh.COMMENT_START,a),this._requireCharCode(Hh),this._endToken([]);var c=this._consumeRawText(!1,Hh,function(){return b._attemptStr("->")});this._beginToken(sh.COMMENT_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeCdata=function(a){var b=this;this._beginToken(sh.CDATA_START,a),this._requireStr("CDATA["),this._endToken([]);var c=this._consumeRawText(!1,Rh,function(){return b._attemptStr("]>")});this._beginToken(sh.CDATA_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeDocType=function(a){this._beginToken(sh.DOC_TYPE,a),this._attemptUntilChar(Ph),this._advance(),this._endToken([this._input.substring(a.offset+2,this._index-1)])},a.prototype._consumePrefixAndName=function(){for(var a=this._index,b=null;this._peek!==Mh&&!ba(this._peek);)this._advance();var c;this._peek===Mh?(this._advance(),b=this._input.substring(a,this._index-1),c=this._index):c=a,this._requireCharCodeUntilFn(aa,this._index===c?1:0);var d=this._input.substring(c,this._index);return[b,d]},a.prototype._consumeTagOpen=function(a){var b,c=this._savePosition();try{if(!ga(this._peek))throw this._createError(Y(this._peek),this._getSpan());var d=this._index;for(this._consumeTagOpenStart(a),b=this._input.substring(d,this._index).toLowerCase(),this._attemptCharCodeUntilFn($);this._peek!==Ih&&this._peek!==Ph;)this._consumeAttributeName(),this._attemptCharCodeUntilFn($),this._attemptCharCode(Oh)&&(this._attemptCharCodeUntilFn($),this._consumeAttributeValue()),this._attemptCharCodeUntilFn($);this._consumeTagOpenEnd()}catch(e){if(e instanceof di)return this._restorePosition(c),this._beginToken(sh.TEXT,a),void this._endToken(["<"]);throw e}var f=T(b).contentType;f===ah.RAW_TEXT?this._consumeRawTextWithTagClose(b,!1):f===ah.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(b,!0)},a.prototype._consumeRawTextWithTagClose=function(a,b){var c=this,d=this._consumeRawText(b,Nh,function(){return c._attemptCharCode(Ih)?(c._attemptCharCodeUntilFn($),c._attemptStrCaseInsensitive(a)?(c._attemptCharCodeUntilFn($),!!c._attemptCharCode(Ph)):!1):!1});this._beginToken(sh.TAG_CLOSE,d.sourceSpan.end),this._endToken([null,a])},a.prototype._consumeTagOpenStart=function(a){this._beginToken(sh.TAG_OPEN_START,a);var b=this._consumePrefixAndName();this._endToken(b)},a.prototype._consumeAttributeName=function(){this._beginToken(sh.ATTR_NAME);var a=this._consumePrefixAndName();this._endToken(a)},a.prototype._consumeAttributeValue=function(){this._beginToken(sh.ATTR_VALUE);var a;if(this._peek===Gh||this._peek===Dh){var b=this._peek;this._advance();for(var c=[];this._peek!==b;)c.push(this._readChar(!0));a=c.join(""),this._advance()}else{var d=this._index;this._requireCharCodeUntilFn(aa,1),a=this._input.substring(d,this._index)}this._endToken([this._processCarriageReturns(a)])},a.prototype._consumeTagOpenEnd=function(){var a=this._attemptCharCode(Ih)?sh.TAG_OPEN_END_VOID:sh.TAG_OPEN_END;this._beginToken(a),this._requireCharCode(Ph),this._endToken([])},a.prototype._consumeTagClose=function(a){this._beginToken(sh.TAG_CLOSE,a),this._attemptCharCodeUntilFn($);var b=this._consumePrefixAndName();this._attemptCharCodeUntilFn($),this._requireCharCode(Ph),this._endToken(b)},a.prototype._consumeExpansionFormStart=function(){this._beginToken(sh.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Sh),this._endToken([]),this._beginToken(sh.RAW_TEXT,this._getLocation());var a=this._readUntil(Uh);this._endToken([a],this._getLocation()),this._requireCharCode(Uh),this._attemptCharCodeUntilFn($),this._beginToken(sh.RAW_TEXT,this._getLocation());var b=this._readUntil(Uh);this._endToken([b],this._getLocation()),this._requireCharCode(Uh),this._attemptCharCodeUntilFn($),this._expansionCaseStack.push(sh.EXPANSION_FORM_START)},a.prototype._consumeExpansionCaseStart=function(){this._beginToken(sh.EXPANSION_CASE_VALUE,this._getLocation());var a=this._readUntil(Sh).trim();this._endToken([a],this._getLocation()),this._attemptCharCodeUntilFn($),this._beginToken(sh.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Sh),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn($),this._expansionCaseStack.push(sh.EXPANSION_CASE_EXP_START)},a.prototype._consumeExpansionCaseEnd=function(){this._beginToken(sh.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(Th),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn($),this._expansionCaseStack.pop()},a.prototype._consumeExpansionFormEnd=function(){this._beginToken(sh.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(Th),this._endToken([]),this._expansionCaseStack.pop()},a.prototype._consumeText=function(){var a=this._getLocation();this._beginToken(sh.TEXT,a);var b=[],c=!1;for(this._peek===Sh&&this._nextPeek===Sh?(b.push(this._readChar(!0)),b.push(this._readChar(!0)),c=!0):b.push(this._readChar(!0));!this._isTextEnd(c);)this._peek===Sh&&this._nextPeek===Sh?(b.push(this._readChar(!0)),b.push(this._readChar(!0)),c=!0):this._peek===Th&&this._nextPeek===Th&&c?(b.push(this._readChar(!0)),b.push(this._readChar(!0)),c=!1):b.push(this._readChar(!0));this._endToken([this._processCarriageReturns(b.join(""))])},a.prototype._isTextEnd=function(a){if(this._peek===Nh||this._peek===xh)return!0;if(this.tokenizeExpansionForms){if(ea(this._peek,this._nextPeek))return!0;if(this._peek===Th&&!a&&(this._isInExpansionCase()||this._isInExpansionForm()))return!0}return!1},a.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},a.prototype._readUntil=function(a){var b=this._index;return this._attemptUntilChar(a),this._input.substring(b,this._index)},a.prototype._restorePosition=function(a){this._peek=a[0],this._index=a[1],this._column=a[2],this._line=a[3];var b=a[4];b0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===sh.EXPANSION_CASE_EXP_START},a.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===sh.EXPANSION_FORM_START},a}(),fi=function(a){function b(b,c,d){a.call(this,c,d),this.elementName=b}return f(b,a),b.create=function(a,c,d){return new b(a,c,d)},b}(th),gi=function(){function a(a,b){this.rootNodes=a,this.errors=b}return a}(),hi=function(){function a(){}return a.prototype.parse=function(a,b,c){void 0===c&&(c=!1);var d=X(a,b,c),e=new ji(d.tokens).build();return new gi(e.rootNodes,d.errors.concat(e.errors))},a}();hi.decorators=[{type:b.Injectable}];var ii,ji=function(){function a(a){this.tokens=a,this.index=-1,this.rootNodes=[],this.errors=[],this.elementStack=[],this._advance()}return a.prototype.build=function(){for(;this.peek.type!==sh.EOF;)this.peek.type===sh.TAG_OPEN_START?this._consumeStartTag(this._advance()):this.peek.type===sh.TAG_CLOSE?this._consumeEndTag(this._advance()):this.peek.type===sh.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this.peek.type===sh.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this.peek.type===sh.TEXT||this.peek.type===sh.RAW_TEXT||this.peek.type===sh.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this.peek.type===sh.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new gi(this.rootNodes,this.errors)},a.prototype._advance=function(){var a=this.peek;return this.index0)return this.errors=this.errors.concat(f.errors),null;var g=new rh(b.sourceSpan.start,e.sourceSpan.end),h=new rh(c.sourceSpan.start,e.sourceSpan.end);return new fh(b.parts[0],f.rootNodes,g,b.sourceSpan,h)},a.prototype._collectExpansionExpTokens=function(a){for(var b=[],c=[sh.EXPANSION_CASE_EXP_START];;){if(this.peek.type!==sh.EXPANSION_FORM_START&&this.peek.type!==sh.EXPANSION_CASE_EXP_START||c.push(this.peek.type),this.peek.type===sh.EXPANSION_CASE_EXP_END){if(!ma(c,sh.EXPANSION_CASE_EXP_START))return this.errors.push(fi.create(null,a.sourceSpan,"Invalid expansion form. Missing '}'.")),null;if(c.pop(),0==c.length)return b}if(this.peek.type===sh.EXPANSION_FORM_END){if(!ma(c,sh.EXPANSION_FORM_START))return this.errors.push(fi.create(null,a.sourceSpan,"Invalid expansion form. Missing '}'.")),null;c.pop()}if(this.peek.type===sh.EOF)return this.errors.push(fi.create(null,a.sourceSpan,"Invalid expansion form. Missing '}'.")),null;b.push(this._advance())}},a.prototype._consumeText=function(a){var b=a.parts[0];if(b.length>0&&"\n"==b[0]){var c=this._getParentElement();i(c)&&0==c.children.length&&T(c.name).ignoreFirstLf&&(b=b.substring(1))}b.length>0&&this._addToParent(new dh(b,a.sourceSpan))},a.prototype._closeVoidElement=function(){if(this.elementStack.length>0){var a=qf.last(this.elementStack);T(a.name).isVoid&&this.elementStack.pop()}},a.prototype._consumeStartTag=function(a){for(var b=a.parts[0],c=a.parts[1],d=[];this.peek.type===sh.ATTR_NAME;)d.push(this._consumeAttr(this._advance()));var e=la(b,c,this._getParentElement()),f=!1;this.peek.type===sh.TAG_OPEN_END_VOID?(this._advance(),f=!0,null!=V(e)||T(e).isVoid||this.errors.push(fi.create(e,a.sourceSpan,'Only void and foreign elements can be self closed "'+a.parts[1]+'"'))):this.peek.type===sh.TAG_OPEN_END&&(this._advance(),f=!1);var g=this.peek.sourceSpan.start,h=new rh(a.sourceSpan.start,g),i=new hh(e,d,[],h,h,null);this._pushElement(i),f&&(this._popElement(e),i.endSourceSpan=h)},a.prototype._pushElement=function(a){if(this.elementStack.length>0){var b=qf.last(this.elementStack);T(b.name).isClosedByChild(a.name)&&this.elementStack.pop()}var c=T(a.name),b=this._getParentElement();if(c.requireExtraParent(i(b)?b.name:null)){var d=new hh(c.parentToAdd,[],[a],a.sourceSpan,a.startSourceSpan,a.endSourceSpan);this._addToParent(d),this.elementStack.push(d),this.elementStack.push(a)}else this._addToParent(a),this.elementStack.push(a)},a.prototype._consumeEndTag=function(a){var b=la(a.parts[0],a.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=a.sourceSpan),T(b).isVoid?this.errors.push(fi.create(b,a.sourceSpan,'Void elements do not have end tags "'+a.parts[1]+'"')):this._popElement(b)||this.errors.push(fi.create(b,a.sourceSpan,'Unexpected closing tag "'+a.parts[1]+'"'))},a.prototype._popElement=function(a){for(var b=this.elementStack.length-1;b>=0;b--){var c=this.elementStack[b];if(c.name==a)return qf.splice(this.elementStack,b,this.elementStack.length-b),!0;if(!T(c.name).closedByParent)return!1}return!1},a.prototype._consumeAttr=function(a){var b=W(a.parts[0],a.parts[1]),c=a.sourceSpan.end,d="";if(this.peek.type===sh.ATTR_VALUE){var e=this._advance();d=e.parts[0],c=e.sourceSpan.end}return new gh(b,d,new rh(a.sourceSpan.start,c))},a.prototype._getParentElement=function(){return this.elementStack.length>0?qf.last(this.elementStack):null},a.prototype._addToParent=function(a){var b=this._getParentElement();i(b)?b.children.push(a):this.rootNodes.push(a)},a}(),ki="",li=Sd.create("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)"),mi=function(){function a(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return a.parse=function(b){for(var c,d=[],e=function(a,b){b.notSelectors.length>0&&j(b.element)&&qf.isEmpty(b.classNames)&&qf.isEmpty(b.attrs)&&(b.element="*"),a.push(b)},f=new a,g=Sd.matcher(li,b),h=f,k=!1;i(c=Td.next(g));){if(i(c[1])){if(k)throw new tf("Nesting :not is not allowed in a selector");k=!0,h=new a,f.notSelectors.push(h)}if(i(c[2])&&h.setElement(c[2]),i(c[3])&&h.addClassName(c[3]),i(c[4])&&h.addAttribute(c[4],c[5]),i(c[6])&&(k=!1,h=f),i(c[7])){if(k)throw new tf("Multiple selectors in :not are not supported");e(d,f),f=h=new a}}return e(d,f),d},a.prototype.isElementSelector=function(){return i(this.element)&&qf.isEmpty(this.classNames)&&qf.isEmpty(this.attrs)&&0===this.notSelectors.length},a.prototype.setElement=function(a){void 0===a&&(a=null),this.element=a},a.prototype.getMatchingElementTemplate=function(){for(var a=i(this.element)?this.element:"div",b=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",c="",d=0;d"},a.prototype.addAttribute=function(a,b){void 0===b&&(b=ki),this.attrs.push(a),b=i(b)?b.toLowerCase():ki,this.attrs.push(b)},a.prototype.addClassName=function(a){this.classNames.push(a.toLowerCase())},a.prototype.toString=function(){var a="";if(i(this.element)&&(a+=this.element),i(this.classNames))for(var b=0;b0&&(a+="="+d),a+="]"}return this.notSelectors.forEach(function(b){return a+=":not("+b+")"}),a},a}(),ni=function(){function a(){this._elementMap=new hf,this._elementPartialMap=new hf,this._classMap=new hf,this._classPartialMap=new hf,this._attrValueMap=new hf,this._attrValuePartialMap=new hf,this._listContexts=[]}return a.createNotMatcher=function(b){var c=new a;return c.addSelectables(b,null),c},a.prototype.addSelectables=function(a,b){var c=null;a.length>1&&(c=new oi(a),this._listContexts.push(c));for(var d=0;d0&&(j(this.listContext)||!this.listContext.alreadyMatched)){var d=ni.createNotMatcher(this.notSelectors);c=!d.match(a,null)}return c&&i(b)&&(j(this.listContext)||!this.listContext.alreadyMatched)&&(i(this.listContext)&&(this.listContext.alreadyMatched=!0),b(this.selector,this.cbContext)),c},a}(),qi=function(){function a(){}return a}(),ri="select",si="ng-content",ti="link",ui="rel",vi="href",wi="stylesheet",xi="style",yi="script",zi="ngNonBindable",Ai="ngProjectAs";!function(a){a[a.NG_CONTENT=0]="NG_CONTENT",a[a.STYLE=1]="STYLE",a[a.STYLESHEET=2]="STYLESHEET",a[a.SCRIPT=3]="SCRIPT",a[a.OTHER=4]="OTHER"}(ii||(ii={}));var Bi=function(){function a(a,b,c,d,e){this.type=a,this.selectAttr=b,this.hrefAttr=c,this.nonBindable=d,this.projectAs=e}return a}(),Ci=function(){function a(a,b){this.style=a,this.styleUrls=b}return a}(),Di=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Ei=/^([a-zA-Z\-\+\.]+):/g,Fi=Jd?".dart":"",Gi=/([A-Z])/g,Hi=function(){function a(){}return a.prototype.visitArray=function(a,b){var c=this;return a.map(function(a){return ua(a,c,b)})},a.prototype.visitStringMap=function(a,b){var c=this,d={};return pf.forEach(a,function(a,e){d[e]=ua(a,c,b)}),d},a.prototype.visitPrimitive=function(a,b){return a},a.prototype.visitOther=function(a,b){return a},a}(),Ii="asset:",Ji={provide:b.PACKAGE_ROOT_URL,useValue:"/"},Ki=function(){function a(a){void 0===a&&(a=null),this._packagePrefix=a}return a.prototype.resolve=function(a,b){var c=b;i(a)&&a.length>0&&(c=Ca(a,c));var d=za(c),e=this._packagePrefix;if(i(e)&&i(d)&&"package"==d[Li.Scheme]){var f=d[Li.Path];if(this._packagePrefix!==Ii)return e=Od.stripRight(e,"/"),f=Od.stripLeft(f,"/"),e+"/"+f;var g=f.split(/\//);c="asset:"+g[0]+"/lib/"+g.slice(1).join("/")}return c},a}();Ki.decorators=[{type:b.Injectable}],Ki.ctorParameters=[{type:void 0,decorators:[{type:b.Inject,args:[b.PACKAGE_ROOT_URL]}]}];var Li,Mi=Sd.create("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");!function(a){a[a.Scheme=1]="Scheme",a[a.UserInfo=2]="UserInfo",a[a.Domain=3]="Domain",a[a.Port=4]="Port",a[a.Path=5]="Path",a[a.QueryData=6]="QueryData",a[a.Fragment=7]="Fragment"}(Li||(Li={}));var Ni=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))$/g,Oi=function(){function a(){}return Object.defineProperty(a.prototype,"identifier",{get:function(){return C()},enumerable:!0,configurable:!0}),a}(),Pi=function(a){function b(){a.apply(this,arguments)}return f(b,a),Object.defineProperty(b.prototype,"type",{get:function(){return C()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"identifier",{get:function(){return C()},enumerable:!0,configurable:!0}),b}(Oi),Qi=function(){function a(a,b){void 0===a&&(a=null),void 0===b&&(b=null),this.name=a,this.definitions=b}return a.fromJson=function(b){var c=b.value,d=Fa(c.definitions,Da);return new a(c.name,d)},a.prototype.toJson=function(){return{"class":"AnimationEntryMetadata",value:{name:this.name,definitions:Ga(this.definitions)}}},a}(),Ri=function(){function a(){}return a}(),Si=function(a){function b(b,c){a.call(this),this.stateNameExpr=b,this.styles=c}return f(b,a),b.fromJson=function(a){var c=a.value,d=Ha(c.styles,Da);return new b(c.stateNameExpr,d)},b.prototype.toJson=function(){return{"class":"AnimationStateDeclarationMetadata",value:{stateNameExpr:this.stateNameExpr,styles:this.styles.toJson()}}},b}(Ri),Ti=function(a){function b(b,c){a.call(this),this.stateChangeExpr=b,this.steps=c}return f(b,a),b.fromJson=function(a){var c=a.value,d=Ha(c.steps,Da);return new b(c.stateChangeExpr,d)},b.prototype.toJson=function(){return{"class":"AnimationStateTransitionMetadata",value:{stateChangeExpr:this.stateChangeExpr,steps:this.steps.toJson()}}},b}(Ri),Ui=function(){function a(){}return a}(),Vi=function(a){function b(b){void 0===b&&(b=[]),a.call(this),this.steps=b}return f(b,a),b.fromJson=function(a){var c=Fa(a.value,Da);return new b(c)},b.prototype.toJson=function(){return{"class":"AnimationKeyframesSequenceMetadata",value:Ga(this.steps)}},b}(Ui),Wi=function(a){function b(b,c){void 0===c&&(c=null),a.call(this),this.offset=b,this.styles=c}return f(b,a),b.fromJson=function(a){var c=a.value,d=c.offset,e=i(d)?Rd.parseFloat(d):null,f=c.styles;return new b(e,f)},b.prototype.toJson=function(){return{"class":"AnimationStyleMetadata",value:{offset:this.offset,styles:this.styles}}},b}(Ui),Xi=function(a){function b(b,c){void 0===b&&(b=0),void 0===c&&(c=null),a.call(this),this.timings=b,this.styles=c}return f(b,a),b.fromJson=function(a){var c=a.value,d=c.timings,e=Ha(c.styles,Da);return new b(d,e)},b.prototype.toJson=function(){return{"class":"AnimationAnimateMetadata",value:{timings:this.timings,styles:Ia(this.styles)}}},b}(Ui),Yi=function(a){function b(b){void 0===b&&(b=null),a.call(this),this.steps=b}return f(b,a),b}(Ui),Zi=function(a){function b(b){void 0===b&&(b=null),a.call(this,b)}return f(b,a),b.fromJson=function(a){var c=Fa(a.value,Da);return new b(c)},b.prototype.toJson=function(){return{"class":"AnimationSequenceMetadata",value:Ga(this.steps)}},b}(Yi),$i=function(a){function b(b){void 0===b&&(b=null),a.call(this,b)}return f(b,a),b.fromJson=function(a){var c=Fa(a.value,Da);return new b(c)},b.prototype.toJson=function(){return{"class":"AnimationGroupMetadata",value:Ga(this.steps)}},b}(Yi),_i=function(){function a(a){var b=void 0===a?{}:a,c=b.runtime,d=b.name,e=b.moduleUrl,f=b.prefix,g=b.value;this.runtime=c,this.name=d,this.prefix=f,this.moduleUrl=e,this.value=g}return a.fromJson=function(b){var c=p(b.value)?Fa(b.value,Da):Ha(b.value,Da);return new a({name:b.name,prefix:b.prefix,moduleUrl:b.moduleUrl,value:c})},a.prototype.toJson=function(){var a=p(this.value)?Ga(this.value):Ia(this.value);return{"class":"Identifier",name:this.name,moduleUrl:this.moduleUrl,prefix:this.prefix,value:a}},Object.defineProperty(a.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),a}(),aj=function(){function a(a){var b=void 0===a?{}:a,c=b.isAttribute,d=b.isSelf,e=b.isHost,f=b.isSkipSelf,g=b.isOptional,h=b.isValue,i=b.query,j=b.viewQuery,k=b.token,l=b.value;this.isAttribute=v(c),this.isSelf=v(d),this.isHost=v(e),this.isSkipSelf=v(f),this.isOptional=v(g),this.isValue=v(h),this.query=i,this.viewQuery=j,this.token=k,this.value=l}return a.fromJson=function(b){return new a({token:Ha(b.token,ej.fromJson),query:Ha(b.query,hj.fromJson),viewQuery:Ha(b.viewQuery,hj.fromJson),value:b.value,isAttribute:b.isAttribute,isSelf:b.isSelf,isHost:b.isHost,isSkipSelf:b.isSkipSelf,isOptional:b.isOptional,isValue:b.isValue})},a.prototype.toJson=function(){return{token:Ia(this.token),query:Ia(this.query),viewQuery:Ia(this.viewQuery),value:this.value,isAttribute:this.isAttribute,isSelf:this.isSelf,isHost:this.isHost,isSkipSelf:this.isSkipSelf,isOptional:this.isOptional,isValue:this.isValue}},a}(),bj=function(){function a(a){var b=a.token,c=a.useClass,d=a.useValue,e=a.useExisting,f=a.useFactory,g=a.deps,h=a.multi;this.token=b,this.useClass=c,this.useValue=d,this.useExisting=e,this.useFactory=f,this.deps=u(g),this.multi=v(h)}return a.fromJson=function(b){return new a({token:Ha(b.token,ej.fromJson),useClass:Ha(b.useClass,gj.fromJson),useExisting:Ha(b.useExisting,ej.fromJson), -useValue:Ha(b.useValue,_i.fromJson),useFactory:Ha(b.useFactory,cj.fromJson),multi:b.multi,deps:Fa(b.deps,aj.fromJson)})},a.prototype.toJson=function(){return{"class":"Provider",token:Ia(this.token),useClass:Ia(this.useClass),useExisting:Ia(this.useExisting),useValue:Ia(this.useValue),useFactory:Ia(this.useFactory),multi:this.multi,deps:Ga(this.deps)}},a}(),cj=function(){function a(a){var b=a.runtime,c=a.name,d=a.moduleUrl,e=a.prefix,f=a.diDeps,g=a.value;this.runtime=b,this.name=c,this.prefix=e,this.moduleUrl=d,this.diDeps=Ja(f),this.value=g}return Object.defineProperty(a.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),a.fromJson=function(b){return new a({name:b.name,prefix:b.prefix,moduleUrl:b.moduleUrl,value:b.value,diDeps:Fa(b.diDeps,aj.fromJson)})},a.prototype.toJson=function(){return{"class":"Factory",name:this.name,prefix:this.prefix,moduleUrl:this.moduleUrl,value:this.value,diDeps:Ga(this.diDeps)}},a}(),dj=new Object,ej=function(){function a(a){var b=a.value,c=a.identifier,d=a.identifierIsInstance;this._assetCacheKey=dj,this.value=b,this.identifier=c,this.identifierIsInstance=v(d)}return a.fromJson=function(b){return new a({value:b.value,identifier:Ha(b.identifier,_i.fromJson),identifierIsInstance:b.identifierIsInstance})},a.prototype.toJson=function(){return{value:this.value,identifier:Ia(this.identifier),identifierIsInstance:this.identifierIsInstance}},Object.defineProperty(a.prototype,"runtimeCacheKey",{get:function(){return i(this.identifier)?this.identifier.runtime:this.value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"assetCacheKey",{get:function(){if(this._assetCacheKey===dj)if(i(this.identifier))if(i(this.identifier.moduleUrl)&&i(xa(this.identifier.moduleUrl))){var a=Ue.importUri({filePath:this.identifier.moduleUrl,name:this.identifier.name});this._assetCacheKey=this.identifier.name+"|"+a+"|"+this.identifierIsInstance}else this._assetCacheKey=null;else this._assetCacheKey=this.value;return this._assetCacheKey},enumerable:!0,configurable:!0}),a.prototype.equalsTo=function(a){var b=this.runtimeCacheKey,c=this.assetCacheKey;return i(b)&&b==a.runtimeCacheKey||i(c)&&c==a.assetCacheKey},Object.defineProperty(a.prototype,"name",{get:function(){return i(this.value)?ta(this.value):this.identifier.name},enumerable:!0,configurable:!0}),a}(),fj=function(){function a(){this._valueMap=new Map,this._values=[]}return a.prototype.add=function(a,b){var c=this.get(a);if(i(c))throw new tf("Can only add to a TokenMap! Token: "+a.name);this._values.push(b);var d=a.runtimeCacheKey;i(d)&&this._valueMap.set(d,b);var e=a.assetCacheKey;i(e)&&this._valueMap.set(e,b)},a.prototype.get=function(a){var b,c=a.runtimeCacheKey,d=a.assetCacheKey;return i(c)&&(b=this._valueMap.get(c)),j(b)&&i(d)&&(b=this._valueMap.get(d)),b},a.prototype.values=function(){return this._values},Object.defineProperty(a.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),a}(),gj=function(){function a(a){var b=void 0===a?{}:a,c=b.runtime,d=b.name,e=b.moduleUrl,f=b.prefix,g=b.isHost,h=b.value,i=b.diDeps;this.runtime=c,this.name=d,this.moduleUrl=e,this.prefix=f,this.isHost=v(g),this.value=h,this.diDeps=Ja(i)}return a.fromJson=function(b){return new a({name:b.name,moduleUrl:b.moduleUrl,prefix:b.prefix,isHost:b.isHost,value:b.value,diDeps:Fa(b.diDeps,aj.fromJson)})},Object.defineProperty(a.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"type",{get:function(){return this},enumerable:!0,configurable:!0}),a.prototype.toJson=function(){return{"class":"Type",name:this.name,moduleUrl:this.moduleUrl,prefix:this.prefix,isHost:this.isHost,value:this.value,diDeps:Ga(this.diDeps)}},a}(),hj=function(){function a(a){var b=void 0===a?{}:a,c=b.selectors,d=b.descendants,e=b.first,f=b.propertyName,g=b.read;this.selectors=c,this.descendants=v(d),this.first=v(e),this.propertyName=f,this.read=g}return a.fromJson=function(b){return new a({selectors:Fa(b.selectors,ej.fromJson),descendants:b.descendants,first:b.first,propertyName:b.propertyName,read:Ha(b.read,ej.fromJson)})},a.prototype.toJson=function(){return{selectors:Ga(this.selectors),descendants:this.descendants,first:this.first,propertyName:this.propertyName,read:Ia(this.read)}},a}(),ij=function(){function a(a){var b=void 0===a?{}:a,c=b.encapsulation,d=b.template,e=b.templateUrl,f=b.styles,g=b.styleUrls,h=b.animations,j=b.ngContentSelectors;this.encapsulation=c,this.template=d,this.templateUrl=e,this.styles=i(f)?f:[],this.styleUrls=i(g)?g:[],this.animations=i(h)?qf.flatten(h):[],this.ngContentSelectors=i(j)?j:[]}return a.fromJson=function(b){var c=Fa(b.animations,Da);return new a({encapsulation:i(b.encapsulation)?we[b.encapsulation]:b.encapsulation,template:b.template,templateUrl:b.templateUrl,styles:b.styles,styleUrls:b.styleUrls,animations:c,ngContentSelectors:b.ngContentSelectors})},a.prototype.toJson=function(){return{encapsulation:i(this.encapsulation)?s(this.encapsulation):this.encapsulation,template:this.template,templateUrl:this.templateUrl,styles:this.styles,styleUrls:this.styleUrls,animations:Ia(this.animations),ngContentSelectors:this.ngContentSelectors}},a}(),jj=function(){function a(a){var b=void 0===a?{}:a,c=b.type,d=b.isComponent,e=b.selector,f=b.exportAs,g=b.changeDetection,h=b.inputs,i=b.outputs,j=b.hostListeners,k=b.hostProperties,l=b.hostAttributes,m=b.lifecycleHooks,n=b.providers,o=b.viewProviders,p=b.queries,q=b.viewQueries,r=b.template;this.type=c,this.isComponent=d,this.selector=e,this.exportAs=f,this.changeDetection=g,this.inputs=h,this.outputs=i,this.hostListeners=j,this.hostProperties=k,this.hostAttributes=l,this.lifecycleHooks=Ja(m),this.providers=Ja(n),this.viewProviders=Ja(o),this.queries=Ja(p),this.viewQueries=Ja(q),this.template=r}return a.create=function(b){var c=void 0===b?{}:b,d=c.type,e=c.isComponent,f=c.selector,g=c.exportAs,h=c.changeDetection,k=c.inputs,l=c.outputs,m=c.host,n=c.lifecycleHooks,o=c.providers,p=c.viewProviders,q=c.queries,r=c.viewQueries,s=c.template,t={},u={},w={};i(m)&&pf.forEach(m,function(a,b){var c=Sd.firstMatch(Ni,b);j(c)?w[b]=a:i(c[1])?u[c[1]]=a:i(c[2])&&(t[c[2]]=a)});var x={};i(k)&&k.forEach(function(a){var b=sa(a,[a,a]);x[b[0]]=b[1]});var y={};return i(l)&&l.forEach(function(a){var b=sa(a,[a,a]);y[b[0]]=b[1]}),new a({type:d,isComponent:v(e),selector:f,exportAs:g,changeDetection:h,inputs:x,outputs:y,hostListeners:t,hostProperties:u,hostAttributes:w,lifecycleHooks:i(n)?n:[],providers:o,viewProviders:p,queries:q,viewQueries:r,template:s})},Object.defineProperty(a.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),a.fromJson=function(b){return new a({isComponent:b.isComponent,selector:b.selector,exportAs:b.exportAs,type:i(b.type)?gj.fromJson(b.type):b.type,changeDetection:i(b.changeDetection)?je[b.changeDetection]:b.changeDetection,inputs:b.inputs,outputs:b.outputs,hostListeners:b.hostListeners,hostProperties:b.hostProperties,hostAttributes:b.hostAttributes,lifecycleHooks:b.lifecycleHooks.map(function(a){return le[a]}),template:i(b.template)?ij.fromJson(b.template):b.template,providers:Fa(b.providers,Da),viewProviders:Fa(b.viewProviders,Da),queries:Fa(b.queries,hj.fromJson),viewQueries:Fa(b.viewQueries,hj.fromJson)})},a.prototype.toJson=function(){return{"class":"Directive",isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,type:i(this.type)?this.type.toJson():this.type,changeDetection:i(this.changeDetection)?s(this.changeDetection):this.changeDetection,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,lifecycleHooks:this.lifecycleHooks.map(function(a){return s(a)}),template:i(this.template)?this.template.toJson():this.template,providers:Ga(this.providers),viewProviders:Ga(this.viewProviders),queries:Ga(this.queries),viewQueries:Ga(this.viewQueries)}},a}(),kj=function(){function a(a){var b=void 0===a?{}:a,c=b.type,d=b.name,e=b.pure,f=b.lifecycleHooks;this.type=c,this.name=d,this.pure=v(e),this.lifecycleHooks=Ja(f)}return Object.defineProperty(a.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),a.fromJson=function(b){return new a({type:i(b.type)?gj.fromJson(b.type):b.type,name:b.name,pure:b.pure})},a.prototype.toJson=function(){return{"class":"Pipe",type:i(this.type)?this.type.toJson():null,name:this.name,pure:this.pure}},a}(),lj={Directive:jj.fromJson,Pipe:kj.fromJson,Type:gj.fromJson,Provider:bj.fromJson,Identifier:_i.fromJson,Factory:cj.fromJson,AnimationEntryMetadata:Qi.fromJson,AnimationStateDeclarationMetadata:Si.fromJson,AnimationStateTransitionMetadata:Ti.fromJson,AnimationSequenceMetadata:Zi.fromJson,AnimationGroupMetadata:$i.fromJson,AnimationAnimateMetadata:Xi.fromJson,AnimationStyleMetadata:Wi.fromJson,AnimationKeyframesSequenceMetadata:Vi.fromJson},mj=va("core","linker/view"),nj=va("core","linker/view_utils"),oj=va("core","change_detection/change_detection"),pj=ve,qj=oe,rj=pe,sj=xe,tj=ne,uj=b.ElementRef,vj=b.ViewContainerRef,wj=b.ChangeDetectorRef,xj=b.RenderComponentType,yj=b.QueryList,zj=b.TemplateRef,Aj=Ce,Bj=Be,Cj=b.Injector,Dj=b.ViewEncapsulation,Ej=qe,Fj=b.ChangeDetectionStrategy,Gj=ye,Hj=b.Renderer,Ij=b.SimpleChange,Jj=Ae,Kj=ie,Lj=te,Mj=ze,Nj=ue,Oj=se,Pj=Se,Qj=Ge,Rj=He,Sj=Xe,Tj=We,Uj=Ye,Vj=Ze,Wj=Ve,Xj=va("core","animation/animation_style_util"),Yj=function(){function a(){}return a}();Yj.ViewUtils=new _i({name:"ViewUtils",moduleUrl:va("core","linker/view_utils"),runtime:pj}),Yj.AppView=new _i({name:"AppView",moduleUrl:mj,runtime:qj}),Yj.DebugAppView=new _i({name:"DebugAppView",moduleUrl:mj,runtime:rj}),Yj.AppElement=new _i({name:"AppElement",moduleUrl:va("core","linker/element"),runtime:tj}),Yj.ElementRef=new _i({name:"ElementRef",moduleUrl:va("core","linker/element_ref"),runtime:uj}),Yj.ViewContainerRef=new _i({name:"ViewContainerRef",moduleUrl:va("core","linker/view_container_ref"),runtime:vj}),Yj.ChangeDetectorRef=new _i({name:"ChangeDetectorRef",moduleUrl:va("core","change_detection/change_detector_ref"),runtime:wj}),Yj.RenderComponentType=new _i({name:"RenderComponentType",moduleUrl:va("core","render/api"),runtime:xj}),Yj.QueryList=new _i({name:"QueryList",moduleUrl:va("core","linker/query_list"),runtime:yj}),Yj.TemplateRef=new _i({name:"TemplateRef",moduleUrl:va("core","linker/template_ref"),runtime:zj}),Yj.TemplateRef_=new _i({name:"TemplateRef_",moduleUrl:va("core","linker/template_ref"),runtime:Aj}),Yj.ValueUnwrapper=new _i({name:"ValueUnwrapper",moduleUrl:oj,runtime:Bj}),Yj.Injector=new _i({name:"Injector",moduleUrl:va("core","di/injector"),runtime:Cj}),Yj.ViewEncapsulation=new _i({name:"ViewEncapsulation",moduleUrl:va("core","metadata/view"),runtime:Dj}),Yj.ViewType=new _i({name:"ViewType",moduleUrl:va("core","linker/view_type"),runtime:Ej}),Yj.ChangeDetectionStrategy=new _i({name:"ChangeDetectionStrategy",moduleUrl:oj,runtime:Fj}),Yj.StaticNodeDebugInfo=new _i({name:"StaticNodeDebugInfo",moduleUrl:va("core","linker/debug_context"),runtime:Gj}),Yj.DebugContext=new _i({name:"DebugContext",moduleUrl:va("core","linker/debug_context"),runtime:sj}),Yj.Renderer=new _i({name:"Renderer",moduleUrl:va("core","render/api"),runtime:Hj}),Yj.SimpleChange=new _i({name:"SimpleChange",moduleUrl:oj,runtime:Ij}),Yj.uninitialized=new _i({name:"uninitialized",moduleUrl:oj,runtime:Jj}),Yj.ChangeDetectorState=new _i({name:"ChangeDetectorState",moduleUrl:oj,runtime:Kj}),Yj.checkBinding=new _i({name:"checkBinding",moduleUrl:nj,runtime:Oj}),Yj.flattenNestedViewRenderNodes=new _i({name:"flattenNestedViewRenderNodes",moduleUrl:nj,runtime:Lj}),Yj.devModeEqual=new _i({name:"devModeEqual",moduleUrl:oj,runtime:Mj}),Yj.interpolate=new _i({name:"interpolate",moduleUrl:nj,runtime:Nj}),Yj.castByValue=new _i({name:"castByValue",moduleUrl:nj,runtime:Pj}),Yj.EMPTY_ARRAY=new _i({name:"EMPTY_ARRAY",moduleUrl:nj,runtime:Qj}),Yj.EMPTY_MAP=new _i({name:"EMPTY_MAP",moduleUrl:nj,runtime:Rj}),Yj.pureProxies=[null,new _i({name:"pureProxy1",moduleUrl:nj,runtime:Ie}),new _i({name:"pureProxy2",moduleUrl:nj,runtime:Je}),new _i({name:"pureProxy3",moduleUrl:nj,runtime:Ke}),new _i({name:"pureProxy4",moduleUrl:nj,runtime:Le}),new _i({name:"pureProxy5",moduleUrl:nj,runtime:Me}),new _i({name:"pureProxy6",moduleUrl:nj,runtime:Ne}),new _i({name:"pureProxy7",moduleUrl:nj,runtime:Oe}),new _i({name:"pureProxy8",moduleUrl:nj,runtime:Pe}),new _i({name:"pureProxy9",moduleUrl:nj,runtime:Qe}),new _i({name:"pureProxy10",moduleUrl:nj,runtime:Re})],Yj.SecurityContext=new _i({name:"SecurityContext",moduleUrl:va("core","security"),runtime:De}),Yj.AnimationKeyframe=new _i({name:"AnimationKeyframe",moduleUrl:va("core","animation/animation_keyframe"),runtime:Uj}),Yj.AnimationStyles=new _i({name:"AnimationStyles",moduleUrl:va("core","animation/animation_styles"),runtime:Vj}),Yj.NoOpAnimationPlayer=new _i({name:"NoOpAnimationPlayer",moduleUrl:va("core","animation/animation_player"),runtime:Wj}),Yj.AnimationGroupPlayer=new _i({name:"AnimationGroupPlayer",moduleUrl:va("core","animation/animation_group_player"),runtime:Sj}),Yj.AnimationSequencePlayer=new _i({name:"AnimationSequencePlayer",moduleUrl:va("core","animation/animation_sequence_player"),runtime:Tj}),Yj.prepareFinalAnimationStyles=new _i({name:"prepareFinalAnimationStyles",moduleUrl:Xj,runtime:cf}),Yj.balanceAnimationKeyframes=new _i({name:"balanceAnimationKeyframes",moduleUrl:Xj,runtime:df}),Yj.clearStyles=new _i({name:"clearStyles",moduleUrl:Xj,runtime:ef}),Yj.renderStyles=new _i({name:"renderStyles",moduleUrl:Xj,runtime:gf}),Yj.collectAndResolveStyles=new _i({name:"collectAndResolveStyles",moduleUrl:Xj,runtime:ff});var Zj=function(a){function b(b,c){a.call(this,c,b)}return f(b,a),b}(th),$j=function(){function a(a,b){var c=this;this.component=a,this.sourceSpan=b,this.errors=[],this.viewQueries=Qa(a),this.viewProviders=new fj,Na(a.viewProviders,b,this.errors).forEach(function(a){j(c.viewProviders.get(a.token))&&c.viewProviders.add(a.token,!0)})}return a}(),_j=function(){function b(a,b,c,d,e,f,g){var h=this;this._viewContext=a,this._parent=b,this._isViewRoot=c,this._directiveAsts=d,this._sourceSpan=g,this._transformedProviders=new fj,this._seenProviders=new fj,this._hasViewContainer=!1,this._attrs={},e.forEach(function(a){return h._attrs[a.name]=a.value});var j=d.map(function(a){return a.directive});this._allProviders=Oa(j,g,a.errors),this._contentQueries=Ra(j);var k=new fj;this._allProviders.values().forEach(function(a){h._addQueryReadsTo(a.token,k)}),f.forEach(function(a){h._addQueryReadsTo(new ej({value:a.name}),k)}),i(k.get(Ka(Yj.ViewContainerRef)))&&(this._hasViewContainer=!0),this._allProviders.values().forEach(function(a){var b=a.eager||i(k.get(a.token));b&&h._getOrCreateLocalProvider(a.providerType,a.token,!0)})}return b.prototype.afterElement=function(){var a=this;this._allProviders.values().forEach(function(b){a._getOrCreateLocalProvider(b.providerType,b.token,!1)})},Object.defineProperty(b.prototype,"transformProviders",{get:function(){return this._transformedProviders.values()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"transformedDirectiveAsts",{get:function(){var a=this._transformedProviders.values().map(function(a){return a.token.identifier}),b=qf.clone(this._directiveAsts);return qf.sort(b,function(b,c){return a.indexOf(b.directive.type)-a.indexOf(c.directive.type)}),b},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),b.prototype._addQueryReadsTo=function(a,b){this._getQueriesFor(a).forEach(function(c){var d=i(c.read)?c.read:a;j(b.get(d))&&b.add(d,!0)})},b.prototype._getQueriesFor=function(a){for(var b,c=[],d=this,e=0;null!==d;)b=d._contentQueries.get(a),i(b)&&qf.addAll(c,b.filter(function(a){return a.descendants||1>=e})),d._directiveAsts.length>0&&e++,d=d._parent;return b=this._viewContext.viewQueries.get(a),i(b)&&qf.addAll(c,b),c},b.prototype._getOrCreateLocalProvider=function(b,c,d){var e=this,f=this._allProviders.get(c);if(j(f)||(b===a.ProviderAstType.Directive||b===a.ProviderAstType.PublicService)&&f.providerType===a.ProviderAstType.PrivateService||(b===a.ProviderAstType.PrivateService||b===a.ProviderAstType.PublicService)&&f.providerType===a.ProviderAstType.Builtin)return null;var g=this._transformedProviders.get(c);if(i(g))return g;if(i(this._seenProviders.get(c)))return this._viewContext.errors.push(new Zj("Cannot instantiate cyclic dependency! "+c.name,this._sourceSpan)),null;this._seenProviders.add(c,!0);var h=f.providers.map(function(a){var b,c=a.useValue,g=a.useExisting;if(i(a.useExisting)){var h=e._getDependency(f.providerType,new aj({token:a.useExisting}),d);i(h.token)?g=h.token:(g=null,c=h.value)}else if(i(a.useFactory)){var j=i(a.deps)?a.deps:a.useFactory.diDeps;b=j.map(function(a){return e._getDependency(f.providerType,a,d)})}else if(i(a.useClass)){var j=i(a.deps)?a.deps:a.useClass.diDeps;b=j.map(function(a){return e._getDependency(f.providerType,a,d)})}return La(a,{useExisting:g,useValue:c,deps:b})});return g=Ma(f,{eager:d,providers:h}),this._transformedProviders.add(c,g),g},b.prototype._getLocalDependency=function(b,c,d){if(void 0===d&&(d=null),c.isAttribute){var e=this._attrs[c.token.value];return new aj({isValue:!0,value:u(e)})}if(i(c.query)||i(c.viewQuery))return c;if(i(c.token)){if(b===a.ProviderAstType.Directive||b===a.ProviderAstType.Component){if(c.token.equalsTo(Ka(Yj.Renderer))||c.token.equalsTo(Ka(Yj.ElementRef))||c.token.equalsTo(Ka(Yj.ChangeDetectorRef))||c.token.equalsTo(Ka(Yj.TemplateRef)))return c;c.token.equalsTo(Ka(Yj.ViewContainerRef))&&(this._hasViewContainer=!0)}if(c.token.equalsTo(Ka(Yj.Injector)))return c;if(i(this._getOrCreateLocalProvider(b,c.token,d)))return c}return null},b.prototype._getDependency=function(b,c,d){void 0===d&&(d=null);var e=this,f=d,g=null;if(c.isSkipSelf||(g=this._getLocalDependency(b,c,d)),c.isSelf)j(g)&&c.isOptional&&(g=new aj({isValue:!0,value:null}));else{for(;j(g)&&i(e._parent);){var h=e;e=e._parent,h._isViewRoot&&(f=!1),g=e._getLocalDependency(a.ProviderAstType.PublicService,c,f)}j(g)&&(g=!c.isHost||this._viewContext.component.type.isHost||Ka(this._viewContext.component.type).equalsTo(c.token)||i(this._viewContext.viewProviders.get(c.token))?c:c.isOptional?g=new aj({isValue:!0,value:null}):null)}return j(g)&&this._viewContext.errors.push(new Zj("No provider for "+c.token.name,this._sourceSpan)),g},b}(),ak=/^(?:(?:(?:(bind-)|(var-)|(let-)|(ref-|#)|(on-)|(bindon-)|(animate-|@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,bk="template",ck="template",dk="*",ek="class",fk=".",gk="attr",hk="class",ik="style",jk=mi.parse("*")[0],kk=new b.OpaqueToken("TemplateTransforms"),lk=function(a){function b(b,c,d){a.call(this,c,b,d)}return f(b,a),b}(th),mk=function(){function a(a,b){this.templateAst=a,this.errors=b}return a}(),nk=function(){function a(a,b,c,d,e){this._exprParser=a,this._schemaRegistry=b,this._htmlParser=c,this._console=d,this.transforms=e}return a.prototype.parse=function(a,b,c,d,e){var f=this.tryParse(a,b,c,d,e),g=f.errors.filter(function(a){return a.level===kh.WARNING}),h=f.errors.filter(function(a){return a.level===kh.FATAL});if(g.length>0&&this._console.warn("Template parse warnings:\n"+g.join("\n")),h.length>0){var i=h.join("\n");throw new tf("Template parse errors:\n"+i)}return f.templateAst},a.prototype.tryParse=function(a,b,c,d,e){var f,g=this._htmlParser.parse(b,e),h=g.errors;if(g.rootNodes.length>0){var j=Va(c),k=Va(d),l=new $j(a,g.rootNodes[0].sourceSpan),m=new pk(l,j,k,this._exprParser,this._schemaRegistry);f=S(m,g.rootNodes,uk),h=h.concat(m.errors).concat(l.errors)}else f=[];return this._assertNoReferenceDuplicationOnTemplate(f,h),h.length>0?new mk(f,h):(i(this.transforms)&&this.transforms.forEach(function(a){f=A(a,f)}),new mk(f,h))},a.prototype._assertNoReferenceDuplicationOnTemplate=function(a,b){var c=[];a.filter(function(a){return!!a.references}).forEach(function(a){return a.references.forEach(function(a){var d=a.name;if(c.indexOf(d)<0)c.push(d);else{var e=new lk('Reference "#'+d+'" is defined several times',a.sourceSpan,kh.FATAL);b.push(e)}})})},a}();nk.decorators=[{type:b.Injectable}],nk.ctorParameters=[{type:_g},{type:qi},{type:hi},{type:Te},{type:Array,decorators:[{type:b.Optional},{type:b.Inject,args:[kk]}]}];var ok,pk=function(){function b(a,b,c,d,e){var f=this;this.providerViewContext=a,this._exprParser=d,this._schemaRegistry=e,this.errors=[],this.directivesIndex=new Map,this.ngContentCount=0,this.selectorMatcher=new ni,qf.forEachWithIndex(b,function(a,b){var c=mi.parse(a.selector);f.selectorMatcher.addSelectables(c,a),f.directivesIndex.set(a,b)}),this.pipesByName=new Map,c.forEach(function(a){return f.pipesByName.set(a.name,a)})}return b.prototype._reportError=function(a,b,c){void 0===c&&(c=kh.FATAL),this.errors.push(new lk(a,b,c))},b.prototype._parseInterpolation=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseInterpolation(a,c);if(this._checkPipes(d,b),i(d)&&d.ast.expressions.length>re)throw new tf("Only support at most "+re+" interpolation values!");return d}catch(e){return this._reportError(""+e,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},b.prototype._parseAction=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseAction(a,c);return this._checkPipes(d,b),d}catch(e){return this._reportError(""+e,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},b.prototype._parseBinding=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseBinding(a,c);return this._checkPipes(d,b),d}catch(e){return this._reportError(""+e,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},b.prototype._parseTemplateBindings=function(a,b){var c=this,d=b.start.toString();try{var e=this._exprParser.parseTemplateBindings(a,d);return e.templateBindings.forEach(function(a){i(a.expression)&&c._checkPipes(a.expression,b)}),e.warnings.forEach(function(a){c._reportError(a,b,kh.WARNING)}),e.templateBindings}catch(f){return this._reportError(""+f,b),[]}},b.prototype._checkPipes=function(a,b){var c=this;if(i(a)){var d=new wk;a.visit(d),d.pipes.forEach(function(a){c.pipesByName.has(a)||c._reportError("The pipe '"+a+"' could not be found",b)})}},b.prototype.visitExpansion=function(a,b){return null},b.prototype.visitExpansionCase=function(a,b){return null},b.prototype.visitText=function(a,b){var c=b.findNgContentIndex(jk),d=this._parseInterpolation(a.value,a.sourceSpan);return i(d)?new Wd(d,c,a.sourceSpan):new Vd(a.value,c,a.sourceSpan)},b.prototype.visitAttr=function(a,b){return new Xd(a.name,a.value,a.sourceSpan)},b.prototype.visitComment=function(a,b){return null},b.prototype.visitElement=function(a,b){var c=this,d=a.name,e=na(a);if(e.type===ii.SCRIPT||e.type===ii.STYLE)return null;if(e.type===ii.STYLESHEET&&pa(e.hrefAttr))return null;var f=[],g=[],h=[],j=[],k=[],l=[],m=[],n=[],o=[],p=!1,q=[],r=U(d.toLowerCase())[1],s=r==bk;a.attrs.forEach(function(a){var b=c._parseAttr(s,a,f,g,k,l,h,j),d=c._parseInlineTemplateBinding(a,n,m,o);b||d||(q.push(c.visitAttr(a,null)),f.push([a.name,a.value])),d&&(p=!0)});var t=Ua(d,f),u=this._parseDirectives(this.selectorMatcher,t),v=[],w=this._createDirectiveAsts(s,a.name,u,g,h,a.sourceSpan,v),x=this._createElementPropertyAsts(a.name,g,w).concat(k),y=b.isTemplateElement||p,z=new _j(this.providerViewContext,b.providerContext,y,w,q,v,a.sourceSpan),A=S(e.nonBindable?vk:this,a.children,tk.create(s,w,s?b.providerContext:z));z.afterElement();var B,C=i(e.projectAs)?mi.parse(e.projectAs)[0]:t,D=b.findNgContentIndex(C);if(e.type===ii.NG_CONTENT)i(a.children)&&a.children.length>0&&this._reportError(" element cannot have content. must be immediately followed by ",a.sourceSpan),B=new fe(this.ngContentCount++,p?null:D,a.sourceSpan);else if(s)this._assertAllEventsPublishedByDirectives(w,l),this._assertNoComponentsNorElementBindingsOnTemplate(w,x,a.sourceSpan),B=new be(q,l,v,j,z.transformedDirectiveAsts,z.transformProviders,z.transformedHasViewContainer,A,p?null:D,a.sourceSpan);else{this._assertOnlyOneComponent(w,a.sourceSpan);var E=p?null:b.findNgContentIndex(C);B=new ae(d,q,x,l,v,z.transformedDirectiveAsts,z.transformProviders,z.transformedHasViewContainer,A,p?null:E,a.sourceSpan)}if(p){var F=Ua(bk,n),G=this._parseDirectives(this.selectorMatcher,F),H=this._createDirectiveAsts(!0,a.name,G,m,[],a.sourceSpan,[]),I=this._createElementPropertyAsts(a.name,m,H);this._assertNoComponentsNorElementBindingsOnTemplate(H,I,a.sourceSpan);var J=new _j(this.providerViewContext,b.providerContext,b.isTemplateElement,H,[],[],a.sourceSpan);J.afterElement(),B=new be([],[],[],o,J.transformedDirectiveAsts,J.transformProviders,J.transformedHasViewContainer,[B],D,a.sourceSpan)}return B},b.prototype._parseInlineTemplateBinding=function(a,b,c,d){var e=null;if(a.name==ck)e=a.value;else if(a.name.startsWith(dk)){var f=a.name.substring(dk.length);e=0==a.value.length?f:f+" "+a.value}if(i(e)){for(var g=this._parseTemplateBindings(e,a.sourceSpan),h=0;h elements is deprecated. Use "let-" instead!',b.sourceSpan,kh.WARNING),this._parseVariable(n,k,b.sourceSpan,h)):(this._reportError('"var-" on non