diff --git a/.gitignore b/.gitignore index a2d37fb..27fad14 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1 @@ -node_modules -typings -app/**/*.js -app/**/*.js.map -npm-debug.log* -.DS_store -.idea \ No newline at end of file +/catalogue/catalogue/temp/node/node_modules diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..2c3bfa7 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..73d8899 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + typescript + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - -
  • - - -
    - Name has invalid characters -
    -
  • -
  • - - -
  • -
  • - - -
    - Must be between - {{form.controls.year.errors?.year.min}} - and - {{form.controls.year.errors?.year.max}} -
    -
  • - - +
    +

    Add Media to Watch

    +
    +
    +
      +
    • + + +
    • +
    • + + +
      + Name has invalid characters +
      +
    • +
    • + + +
    • +
    • + + +
      + Must be between + {{form.controls.year.errors?.year.min}} + and + {{form.controls.year.errors?.year.max}} +
      +
    • +
    • + + +
      Invalid input, Movie Id should be alphanumeric with between 10-12 word
      +
    • +
    • + + +
      Date cannot be future date
      +
    • +
    • + + +
      Please give the movie a rating since you're already watch it
      +
    • +
    +
    \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-form.component.js b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-form.component.js new file mode 100644 index 0000000..39dd149 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-form.component.js @@ -0,0 +1,114 @@ +System.register(['@angular/core', '@angular/forms', './media-item.service', './providers'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + var core_1, forms_1, media_item_service_1, providers_1; + var MediaItemFormComponent; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }, + function (forms_1_1) { + forms_1 = forms_1_1; + }, + function (media_item_service_1_1) { + media_item_service_1 = media_item_service_1_1; + }, + function (providers_1_1) { + providers_1 = providers_1_1; + }], + execute: function() { + MediaItemFormComponent = (function () { + function MediaItemFormComponent(formBuilder, mediaItemService, lookupLists) { + this.formBuilder = formBuilder; + this.mediaItemService = mediaItemService; + this.lookupLists = lookupLists; + } + MediaItemFormComponent.prototype.ngOnInit = function () { + this.form = this.formBuilder.group({ + medium: this.formBuilder.control('Movies'), + name: this.formBuilder.control('', forms_1.Validators.compose([ + forms_1.Validators.required, + forms_1.Validators.pattern('[\\w\\-\\s\\/]+') + ])), + category: this.formBuilder.control(''), + year: this.formBuilder.control('', this.yearValidator), + movieID: this.formBuilder.control('', forms_1.Validators.compose([ + forms_1.Validators.minLength(10), + forms_1.Validators.maxLength(12), + forms_1.Validators.pattern('[\\w\\-\\s\\/]+') + ])), + watchedOn: this.formBuilder.control('', this.watchedOnValidator), + rating: this.formBuilder.control('') + }, { validator: this.requiredIfFirstFieldFilled('watchedOn', 'rating') }); + }; + MediaItemFormComponent.prototype.yearValidator = function (control) { + if (control.value.trim().length === 0) { + return null; + } + var year = parseInt(control.value); + var minYear = 1800; + var maxYear = 2500; + if (year >= minYear && year <= maxYear) { + return null; + } + else { + return { + 'year': { + min: minYear, + max: maxYear + } + }; + } + }; + MediaItemFormComponent.prototype.watchedOnValidator = function (control) { + if (new Date(control.value) > new Date()) { + return { 'watchedOn': true }; + } + else { + return null; + } + }; + MediaItemFormComponent.prototype.requiredIfFirstFieldFilled = function (watchedOnKey, ratingKey) { + return function (group) { + var watchedOn = group.controls[watchedOnKey]; + var rating = group.controls[ratingKey]; + if (watchedOn.value !== "" && rating.value === "") { + return { + 'watchedOnRequired': true + }; + } + }; + }; + MediaItemFormComponent.prototype.onSubmit = function (mediaItem) { + this.mediaItemService.add(mediaItem) + .subscribe(); + }; + MediaItemFormComponent = __decorate([ + core_1.Component({ + selector: 'mw-media-item-form', + templateUrl: 'app/media-item-form.component.html', + styleUrls: ['app/media-item-form.component.css'] + }), + __param(2, core_1.Inject(providers_1.lookupListToken)), + __metadata('design:paramtypes', [forms_1.FormBuilder, media_item_service_1.MediaItemService, Object]) + ], MediaItemFormComponent); + return MediaItemFormComponent; + }()); + exports_1("MediaItemFormComponent", MediaItemFormComponent); + } + } +}); +//# sourceMappingURL=media-item-form.component.js.map \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-form.component.js.map b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-form.component.js.map new file mode 100644 index 0000000..6f03d0b --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-form.component.js.map @@ -0,0 +1 @@ +{"version":3,"file":"media-item-form.component.js","sourceRoot":"","sources":["media-item-form.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAWA;gBAGE,gCACU,WAAwB,EACxB,gBAAkC,EACV,WAAW;oBAFnC,gBAAW,GAAX,WAAW,CAAa;oBACxB,qBAAgB,GAAhB,gBAAgB,CAAkB;oBACV,gBAAW,GAAX,WAAW,CAAA;gBAAG,CAAC;gBAEjD,yCAAQ,GAAR;oBACE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;wBACjC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC;wBAC1C,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,kBAAU,CAAC,OAAO,CAAC;4BACpD,kBAAU,CAAC,QAAQ;4BACnB,kBAAU,CAAC,OAAO,CAAC,iBAAiB,CAAC;yBACtC,CAAC,CAAC;wBACH,QAAQ,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;wBACtC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,CAAC,aAAa,CAAC;wBACtD,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,kBAAU,CAAC,OAAO,CAAC;4BACvD,kBAAU,CAAC,SAAS,CAAC,EAAE,CAAC;4BACxB,kBAAU,CAAC,SAAS,CAAC,EAAE,CAAC;4BACxB,kBAAU,CAAC,OAAO,CAAC,iBAAiB,CAAC;yBACtC,CAAC,CAAC;wBACH,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,CAAC,kBAAkB,CAAC;wBAChE,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;qBACrC,EAAE,EAAC,SAAS,EAAE,IAAI,CAAC,0BAA0B,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAC,CAAC,CAAC;gBAC1E,CAAC;gBAED,8CAAa,GAAb,UAAc,OAAO;oBACnB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;wBACtC,MAAM,CAAC,IAAI,CAAC;oBACd,CAAC;oBACD,IAAI,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;oBACnC,IAAI,OAAO,GAAG,IAAI,CAAC;oBACnB,IAAI,OAAO,GAAG,IAAI,CAAC;oBACnB,EAAE,CAAC,CAAC,IAAI,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,CAAC,CAAC,CAAC;wBACvC,MAAM,CAAC,IAAI,CAAC;oBACd,CAAC;oBAAC,IAAI,CAAC,CAAC;wBACN,MAAM,CAAC;4BACL,MAAM,EAAE;gCACN,GAAG,EAAE,OAAO;gCACZ,GAAG,EAAE,OAAO;6BACb;yBACF,CAAC;oBACJ,CAAC;gBACH,CAAC;gBAED,mDAAkB,GAAlB,UAAmB,OAAO;oBACxB,EAAE,CAAA,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC,CAAA,CAAC;wBACvC,MAAM,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;oBAC/B,CAAC;oBAAA,IAAI,CAAA,CAAC;wBACJ,MAAM,CAAC,IAAI,CAAC;oBACd,CAAC;gBACH,CAAC;gBAED,2DAA0B,GAA1B,UAA2B,YAAoB,EAAE,SAAiB;oBAChE,MAAM,CAAC,UAAC,KAAgB;wBACtB,IAAI,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;wBAC7C,IAAI,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;wBACvC,EAAE,CAAC,CAAC,SAAS,CAAC,KAAK,KAAK,EAAE,IAAI,MAAM,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC;4BAClD,MAAM,CAAC;gCACL,mBAAmB,EAAE,IAAI;6BAC1B,CAAC;wBACJ,CAAC;oBACH,CAAC,CAAA;gBACH,CAAC;gBAED,yCAAQ,GAAR,UAAS,SAAS;oBAChB,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAAS,CAAC;yBACjC,SAAS,EAAE,CAAC;gBACjB,CAAC;gBA1EH;oBAAC,gBAAS,CAAC;wBACT,QAAQ,EAAE,oBAAoB;wBAC9B,WAAW,EAAE,oCAAoC;wBACjD,SAAS,EAAE,CAAC,mCAAmC,CAAC;qBACjD,CAAC;+BAOG,aAAM,CAAC,2BAAe,CAAC;;0CAP1B;gBAuEF,6BAAC;YAAD,CAAC,AAtED,IAsEC;YAtED,2DAsEC,CAAA"} \ No newline at end of file diff --git a/app/media-item-form.component.ts b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-form.component.ts old mode 100755 new mode 100644 similarity index 50% rename from app/media-item-form.component.ts rename to catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-form.component.ts index 8df7f9e..1ffd898 --- a/app/media-item-form.component.ts +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-form.component.ts @@ -1,59 +1,82 @@ -import { Component, Inject } from '@angular/core'; -import { Validators, FormBuilder } from '@angular/forms'; -import { Router } from '@angular/router'; - -import { MediaItemService } from './media-item.service'; -import { lookupListToken } from './providers'; - -@Component({ - selector: 'mw-media-item-form', - templateUrl: 'app/media-item-form.component.html', - styleUrls: ['app/media-item-form.component.css'] -}) -export class MediaItemFormComponent { - form; - - constructor( - private formBuilder: FormBuilder, - private mediaItemService: MediaItemService, - @Inject(lookupListToken) public lookupLists, - private router: Router) {} - - ngOnInit() { - this.form = this.formBuilder.group({ - medium: this.formBuilder.control('Movies'), - name: this.formBuilder.control('', Validators.compose([ - Validators.required, - Validators.pattern('[\\w\\-\\s\\/]+') - ])), - category: this.formBuilder.control(''), - year: this.formBuilder.control('', this.yearValidator), - }); - } - - yearValidator(control) { - if (control.value.trim().length === 0) { - return null; - } - let year = parseInt(control.value); - let minYear = 1800; - let maxYear = 2500; - if (year >= minYear && year <= maxYear) { - return null; - } else { - return { - 'year': { - min: minYear, - max: maxYear - } - }; - } - } - - onSubmit(mediaItem) { - this.mediaItemService.add(mediaItem) - .subscribe(() => { - this.router.navigate(['/', mediaItem.medium]); - }); - } -} +import { Component, Inject } from '@angular/core'; +import { FormGroup, Validators, FormBuilder } from '@angular/forms'; + +import { MediaItemService } from './media-item.service'; +import { lookupListToken } from './providers'; + +@Component({ + selector: 'mw-media-item-form', + templateUrl: './media-item-form.component.html', + styleUrls: ['./media-item-form.component.css'] +}) +export class MediaItemFormComponent { + form; + + constructor( + private formBuilder: FormBuilder, + private mediaItemService: MediaItemService, + @Inject(lookupListToken) public lookupLists) {} + + ngOnInit() { + this.form = this.formBuilder.group({ + medium: this.formBuilder.control('Movies'), + name: this.formBuilder.control('', Validators.compose([ + Validators.required, + Validators.pattern('[\\w\\-\\s\\/]+') + ])), + category: this.formBuilder.control(''), + year: this.formBuilder.control('', this.yearValidator), + movieID: this.formBuilder.control('', Validators.compose([ + Validators.minLength(10), + Validators.maxLength(12), + Validators.pattern('[\\w\\-\\s\\/]+') + ])), + watchedOn: this.formBuilder.control('', this.watchedOnValidator), + rating: this.formBuilder.control('') + }, {validator: this.requiredIfFirstFieldFilled('watchedOn', 'rating')}); + } + + yearValidator(control) { + if (control.value.trim().length === 0) { + return null; + } + let year = parseInt(control.value); + let minYear = 1800; + let maxYear = 2500; + if (year >= minYear && year <= maxYear) { + return null; + } else { + return { + 'year': { + min: minYear, + max: maxYear + } + }; + } + } + + watchedOnValidator(control) { + if(new Date(control.value) > new Date()){ + return { 'watchedOn': true }; + }else{ + return null; + } + } + + requiredIfFirstFieldFilled(watchedOnKey: string, ratingKey: string) { + return (group: FormGroup): {[key: string]: any} => { + let watchedOn = group.controls[watchedOnKey]; + let rating = group.controls[ratingKey]; + if (watchedOn.value !== "" && rating.value === "") { + return { + 'watchedOnRequired': true + }; + } + } + } + + onSubmit(mediaItem) { + this.mediaItemService.add(mediaItem) + .subscribe(); + } +} diff --git a/app/media-item-list.component.css b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.css old mode 100755 new mode 100644 similarity index 93% rename from app/media-item-list.component.css rename to catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.css index fa81f78..4b9a679 --- a/app/media-item-list.component.css +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.css @@ -1,38 +1,38 @@ -:host { - display: block; - flex-direction: column; - padding: 0 10px; - margin-bottom: 20px; -} -header { - color: #c6c5c3; -} -header.medium-movies { - color: #53ace4; -} -header.medium-series { - color: #45bf94; -} -header > h2 { - font-size: 1.4em; -} -header > h2.error { - color: #d93a3e; -} -section { - flex: 1; - display: flex; - flex-flow: row wrap; - align-content: flex-start; -} -section > media-item { - margin: 10px; -} -footer { - text-align: right; -} -footer .icon { - width: 64px; - height: 64px; - margin: 15px; +:host { + display: block; + flex-direction: column; + padding: 0 10px; + margin-bottom: 20px; +} +header { + color: #c6c5c3; +} +header.medium-movies { + color: #53ace4; +} +header.medium-series { + color: #45bf94; +} +header > h2 { + font-size: 1.4em; +} +header > h2.error { + color: #d93a3e; +} +section { + flex: 1; + display: flex; + flex-flow: row wrap; + align-content: flex-start; +} +section > media-item { + margin: 10px; +} +footer { + text-align: right; +} +footer .icon { + width: 64px; + height: 64px; + margin: 15px; } \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.html b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.html new file mode 100644 index 0000000..7ce73b1 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.html @@ -0,0 +1,21 @@ +
    +

    {{medium}}

    +
    {{ mediaItems | categoryList }}
    +
    +
    + +
    +
    + +
    + \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.js b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.js new file mode 100644 index 0000000..991df4e --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.js @@ -0,0 +1,85 @@ +System.register(['@angular/core', '@angular/router', './media-item.service'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; + var core_1, router_1, media_item_service_1; + var MediaItemListComponent; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }, + function (router_1_1) { + router_1 = router_1_1; + }, + function (media_item_service_1_1) { + media_item_service_1 = media_item_service_1_1; + }], + execute: function() { + MediaItemListComponent = (function () { + function MediaItemListComponent(mediaItemService, activatedRoute) { + this.mediaItemService = mediaItemService; + this.activatedRoute = activatedRoute; + this.medium = ''; + this.mediaItems = []; + this.preview = new core_1.EventEmitter(); + } + MediaItemListComponent.prototype.ngOnInit = function () { + var _this = this; + this.paramsSubscription = this.activatedRoute.params + .subscribe(function (params) { + var medium = params['medium']; + if (medium.toLowerCase() === 'all') { + medium = ''; + } + _this.getMediaItems(medium); + }); + }; + MediaItemListComponent.prototype.ngOnDestroy = function () { + this.paramsSubscription.unsubscribe(); + }; + MediaItemListComponent.prototype.onMediaItemDelete = function (mediaItem) { + var _this = this; + this.mediaItemService.delete(mediaItem) + .subscribe(function () { + _this.getMediaItems(_this.medium); + }); + }; + MediaItemListComponent.prototype.getMediaItems = function (medium, filter) { + var _this = this; + this.medium = medium; + this.mediaItemService.get(medium, filter) + .subscribe(function (mediaItems) { + _this.mediaItems = mediaItems; + }); + }; + MediaItemListComponent.prototype.onMediaItemFilter = function (filter) { + this.getMediaItems(this.medium, filter); + }; + __decorate([ + core_1.Output(), + __metadata('design:type', Object) + ], MediaItemListComponent.prototype, "preview", void 0); + MediaItemListComponent = __decorate([ + core_1.Component({ + selector: 'mw-media-item-list', + templateUrl: 'app/media-item-list.component.html', + styleUrls: ['app/media-item-list.component.css'] + }), + __metadata('design:paramtypes', [media_item_service_1.MediaItemService, router_1.ActivatedRoute]) + ], MediaItemListComponent); + return MediaItemListComponent; + }()); + exports_1("MediaItemListComponent", MediaItemListComponent); + } + } +}); +//# sourceMappingURL=media-item-list.component.js.map \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.js.map b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.js.map new file mode 100644 index 0000000..5cec689 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.js.map @@ -0,0 +1 @@ +{"version":3,"file":"media-item-list.component.js","sourceRoot":"","sources":["media-item-list.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;YAUA;gBAME,gCACU,gBAAkC,EAClC,cAA8B;oBAD9B,qBAAgB,GAAhB,gBAAgB,CAAkB;oBAClC,mBAAc,GAAd,cAAc,CAAgB;oBAPxC,WAAM,GAAG,EAAE,CAAC;oBACZ,eAAU,GAAG,EAAE,CAAC;oBAEN,YAAO,GAAG,IAAI,mBAAY,EAAE,CAAC;gBAII,CAAC;gBAE5C,yCAAQ,GAAR;oBAAA,iBASC;oBARC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM;yBACjD,SAAS,CAAC,UAAA,MAAM;wBACf,IAAI,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;wBAC9B,EAAE,CAAA,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC;4BAClC,MAAM,GAAG,EAAE,CAAC;wBACd,CAAC;wBACD,KAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;oBAC7B,CAAC,CAAC,CAAC;gBACP,CAAC;gBAED,4CAAW,GAAX;oBACE,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;gBACxC,CAAC;gBAED,kDAAiB,GAAjB,UAAkB,SAAS;oBAA3B,iBAKC;oBAJC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC;yBACpC,SAAS,CAAC;wBACT,KAAI,CAAC,aAAa,CAAC,KAAI,CAAC,MAAM,CAAC,CAAC;oBAClC,CAAC,CAAC,CAAC;gBACP,CAAC;gBAED,8CAAa,GAAb,UAAc,MAAM,EAAE,MAAO;oBAA7B,iBAMC;oBALC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;oBACrB,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;yBACtC,SAAS,CAAC,UAAA,UAAU;wBACnB,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;oBAC/B,CAAC,CAAC,CAAC;gBACP,CAAC;gBAED,kDAAiB,GAAjB,UAAkB,MAAM;oBACtB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;gBAC1C,CAAC;gBAtCD;oBAAC,aAAM,EAAE;;uEAAA;gBATX;oBAAC,gBAAS,CAAC;wBACT,QAAQ,EAAE,oBAAoB;wBAC9B,WAAW,EAAE,oCAAoC;wBACjD,SAAS,EAAE,CAAC,mCAAmC,CAAC;qBACjD,CAAC;;0CAAA;gBA6CF,6BAAC;YAAD,CAAC,AA5CD,IA4CC;YA5CD,2DA4CC,CAAA"} \ No newline at end of file diff --git a/app/media-item-list.component.ts b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.ts old mode 100755 new mode 100644 similarity index 63% rename from app/media-item-list.component.ts rename to catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.ts index 8d00e67..6888ceb --- a/app/media-item-list.component.ts +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-list.component.ts @@ -1,49 +1,55 @@ -import { Component } from '@angular/core'; -import { ActivatedRoute } from '@angular/router'; - -import { MediaItemService } from './media-item.service'; - -@Component({ - selector: 'mw-media-item-list', - templateUrl: 'app/media-item-list.component.html', - styleUrls: ['app/media-item-list.component.css'] -}) -export class MediaItemListComponent { - medium = ''; - mediaItems = []; - paramsSubscription; - - constructor( - private mediaItemService: MediaItemService, - private activatedRoute: ActivatedRoute) {} - - ngOnInit() { - this.paramsSubscription = this.activatedRoute.params - .subscribe(params => { - let medium = params['medium']; - if(medium.toLowerCase() === 'all') { - medium = ''; - } - this.getMediaItems(medium); - }); - } - - ngOnDestroy() { - this.paramsSubscription.unsubscribe(); - } - - onMediaItemDelete(mediaItem) { - this.mediaItemService.delete(mediaItem) - .subscribe(() => { - this.getMediaItems(this.medium); - }); - } - - getMediaItems(medium) { - this.medium = medium; - this.mediaItemService.get(medium) - .subscribe(mediaItems => { - this.mediaItems = mediaItems; - }); - } -} +import { Component, Output, EventEmitter } from '@angular/core'; +import { ActivatedRoute } from '@angular/router'; +import { MediaItemComponent } from './media-item.component'; +import { MediaItemService } from './media-item.service'; + +@Component({ + selector: 'mw-media-item-list', + templateUrl: './media-item-list.component.html', + styleUrls: ['./media-item-list.component.css'] +}) +export class MediaItemListComponent { + medium = ''; + mediaItems = []; + paramsSubscription; + @Output() preview = new EventEmitter(); + + constructor( + private mediaItemService: MediaItemService, + private activatedRoute: ActivatedRoute) {} + + ngOnInit() { + this.paramsSubscription = this.activatedRoute.params + .subscribe(params => { + let medium : string = params['medium']; + if(medium === 'all') { + medium = ''; + } + this.getMediaItems(medium); + }); + } + + ngOnDestroy() { + this.paramsSubscription.unsubscribe(); + } + + onMediaItemDelete(mediaItem) { + this.mediaItemService.delete(mediaItem) + .subscribe(() => { + this.getMediaItems(this.medium); + }); + } + + getMediaItems(medium, filter?) { + this.medium = medium; + this.mediaItemService.get(medium, filter) + .subscribe(mediaItems => { + this.mediaItems = mediaItems; + }); + } + + onMediaItemFilter(filter){ + this.getMediaItems(this.medium, filter); + } + +} diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.css b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.css new file mode 100644 index 0000000..44e8374 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.css @@ -0,0 +1,113 @@ +body { + font-family: Arial, sans-serif; + background: url(http://www.shukatsu-note.com/wp-content/uploads/2014/12/computer-564136_1280.jpg) no-repeat; + background-size: cover; + height: 100vh; +} + +h1 { + text-align: center; + font-family: Tahoma, Arial, sans-serif; + color: #06D85F; + margin: 80px 0; +} + +.box { + width: 40%; + margin: 0 auto; + background: rgba(255,255,255,0.2); + padding: 35px; + border: 2px solid #fff; + border-radius: 20px/50px; + background-clip: padding-box; + text-align: center; +} + +.button { + font-size: 1em; + padding: 10px; + color: #fff; + border: 2px solid #06D85F; + border-radius: 20px/50px; + text-decoration: none; + cursor: pointer; + transition: all 0.3s ease-out; +} +.button:hover { + background: #06D85F; +} + +.overlay { + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + background: rgba(0, 0, 0, 0.7); + transition: opacity 500ms; + visibility: visible; + opacity: 1; +} + +.popup { + margin: 70px auto; + padding: 20px; + background: #fff; + border-radius: 5px; + width: 30%; + position: relative; + top: 30%; + transition: all 5s ease-in-out; +} + +.popup h2 { + margin-top: 0; + font-size: 18px; + font-weight: bold; + color: #333; + font-family: Tahoma, Arial, sans-serif; +} +.popup .close { + position: absolute; + top: 15px; + right: 20px; + transition: all 200ms; + font-size: 30px; + font-weight: bold; + text-decoration: none; + color: #333; + cursor: pointer; +} +.popup .close:hover { + color: #06D85F; +} +.popup .content { + overflow: auto; + margin-top: 20px; + overflow: visible; +} + +@media screen and (max-width: 700px){ + .box{ + width: 70%; + } + .popup{ + width: 70%; + } +} + +.container{ + margin-top:20px; +} + +.movie-description{ + margin-top:10px; + text-align: center; +} + +.stars, .stars span { + display: block; + background: url("../assets/media/stars.png") 0 -16px repeat-x; + width: 80px; + height: 16px; +} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.html b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.html new file mode 100644 index 0000000..97751aa --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.html @@ -0,0 +1,25 @@ +
    + +
    \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.js b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.js new file mode 100644 index 0000000..2cdd31d --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.js @@ -0,0 +1,52 @@ +System.register(['@angular/core', './media-item.service'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; + var core_1, media_item_service_1; + var MediaItemPopupComponent; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }, + function (media_item_service_1_1) { + media_item_service_1 = media_item_service_1_1; + }], + execute: function() { + MediaItemPopupComponent = (function () { + function MediaItemPopupComponent(mediaItemService) { + this.mediaItemService = mediaItemService; + this.mediaItem = null; + } + MediaItemPopupComponent.prototype.onClose = function () { + this.mediaItemService.setPreview(null); + }; + MediaItemPopupComponent.prototype.isClosed = function () { + return this.mediaItemService.getPreview() ? false : true; + }; + MediaItemPopupComponent.prototype.getPosterList = function () { + return this.mediaItemService.getPreview() && this.mediaItemService.getPreview().posters ? this.mediaItemService.getPreview().posters : []; + }; + MediaItemPopupComponent = __decorate([ + core_1.Component({ + selector: 'mw-media-item-popup', + templateUrl: 'app/media-item-popup.component.html', + styleUrls: ['app/media-item-popup.component.css'] + }), + __metadata('design:paramtypes', [media_item_service_1.MediaItemService]) + ], MediaItemPopupComponent); + return MediaItemPopupComponent; + }()); + exports_1("MediaItemPopupComponent", MediaItemPopupComponent); + } + } +}); +//# sourceMappingURL=media-item-popup.component.js.map \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.js.map b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.js.map new file mode 100644 index 0000000..7826310 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.js.map @@ -0,0 +1 @@ +{"version":3,"file":"media-item-popup.component.js","sourceRoot":"","sources":["media-item-popup.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAQA;gBAEE,iCAAoB,gBAAkC;oBAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;oBADtD,cAAS,GAAG,IAAI,CAAC;gBACwC,CAAC;gBAE1D,yCAAO,GAAP;oBACE,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACzC,CAAC;gBAED,0CAAQ,GAAR;oBACE,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,GAAG,KAAK,GAAG,IAAI,CAAC;gBAC3D,CAAC;gBAED,+CAAa,GAAb;oBACE,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,OAAO,GAAG,EAAE,CAAC;gBAC5I,CAAC;gBAnBH;oBAAC,gBAAS,CAAC;wBACT,QAAQ,EAAE,qBAAqB;wBAC/B,WAAW,EAAG,qCAAqC;wBACnD,SAAS,EAAE,CAAC,oCAAoC,CAAC;qBAClD,CAAC;;2CAAA;gBAgBF,8BAAC;YAAD,CAAC,AAfD,IAeC;YAfD,6DAeC,CAAA"} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.ts b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.ts new file mode 100644 index 0000000..f8e07f5 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-popup.component.ts @@ -0,0 +1,24 @@ +import { Component, Input, Output, EventEmitter } from '@angular/core'; +import { MediaItemService } from './media-item.service'; + +@Component({ + selector: 'mw-media-item-popup', + templateUrl : './media-item-popup.component.html', + styleUrls: ['./media-item-popup.component.css'] +}) +export class MediaItemPopupComponent{ + mediaItem = null; + constructor(private mediaItemService: MediaItemService) {} + + onClose() { + this.mediaItemService.setPreview(null); + } + + isClosed() { + return this.mediaItemService.getPreview() ? false : true; + } + + getPosterList() { + return this.mediaItemService.getPreview() && this.mediaItemService.getPreview().posters ? this.mediaItemService.getPreview().posters : []; + } +} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-toolbar.component.html b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-toolbar.component.html new file mode 100644 index 0000000..dc4ceec --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-toolbar.component.html @@ -0,0 +1,10 @@ +
    +
    + + + +
    +
    \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-toolbar.component.js b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-toolbar.component.js new file mode 100644 index 0000000..ef7ef56 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-toolbar.component.js @@ -0,0 +1,86 @@ +System.register(["@angular/core", "@angular/forms", "./providers", "lodash"], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + var core_1, forms_1, providers_1, _; + var MediaItemToolbarComponent; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }, + function (forms_1_1) { + forms_1 = forms_1_1; + }, + function (providers_1_1) { + providers_1 = providers_1_1; + }, + function (_1) { + _ = _1; + }], + execute: function() { + MediaItemToolbarComponent = (function () { + function MediaItemToolbarComponent(formBuilder, lookupLists) { + this.formBuilder = formBuilder; + this.lookupLists = lookupLists; + this.filter = new core_1.EventEmitter(); + } + MediaItemToolbarComponent.prototype.ngOnInit = function () { + this.form = this.formBuilder.group({ + value: this.formBuilder.control(""), + propertyName: this.formBuilder.control("name"), + operator: this.formBuilder.control("equals"), + }); + this.propertyName = "name"; + }; + MediaItemToolbarComponent.prototype.onChangeProperty = function (value) { + this.propertyName = value; + }; + MediaItemToolbarComponent.prototype.getPropertyType = function () { + var propertyName = this.propertyName ? this.propertyName : "name"; + var lookup = _.find(this.lookupLists.mediaItemProperties, function (obj) { + return obj.lookupText === propertyName; + }); + return lookup.type; + }; + MediaItemToolbarComponent.prototype.filterMediaItem = function (formInput) { + var type = this.getPropertyType(); + //handle number type + if (type === "number") { + formInput.value = parseInt(formInput.value, 10); + } + //insert type + formInput.type = type; + this.filter.emit(formInput); + }; + __decorate([ + core_1.Output(), + __metadata('design:type', Object) + ], MediaItemToolbarComponent.prototype, "filter", void 0); + MediaItemToolbarComponent = __decorate([ + core_1.Component({ + selector: "mw-toolbar", + templateUrl: "app/media-item-toolbar.component.html", + styleUrls: ["app/media-item-form.component.css"] + }), + __param(1, core_1.Inject(providers_1.lookupListToken)), + __metadata('design:paramtypes', [forms_1.FormBuilder, Object]) + ], MediaItemToolbarComponent); + return MediaItemToolbarComponent; + }()); + exports_1("MediaItemToolbarComponent", MediaItemToolbarComponent); + } + } +}); +//# sourceMappingURL=media-item-toolbar.component.js.map \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-toolbar.component.js.map b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-toolbar.component.js.map new file mode 100644 index 0000000..61ecf4e --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-toolbar.component.js.map @@ -0,0 +1 @@ +{"version":3,"file":"media-item-toolbar.component.js","sourceRoot":"","sources":["media-item-toolbar.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAUA;gBACI,mCAAoB,WAAwB,EAAkC,WAAW;oBAArE,gBAAW,GAAX,WAAW,CAAa;oBAAkC,gBAAW,GAAX,WAAW,CAAA;oBAG/E,WAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;gBAHsD,CAAC;gBAK7F,4CAAQ,GAAR;oBACI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;wBAC/B,KAAK,EAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;wBACpC,YAAY,EAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC;wBAC/C,QAAQ,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC;qBAC/C,CAAC,CAAC;oBACH,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;gBAC/B,CAAC;gBAED,oDAAgB,GAAhB,UAAiB,KAAK;oBAClB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAA;gBAC7B,CAAC;gBAED,mDAAe,GAAf;oBACI,IAAI,YAAY,GAAG,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;oBAClE,IAAI,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAG,UAAS,GAAO;wBACvE,MAAM,CAAC,GAAG,CAAC,UAAU,KAAK,YAAY,CAAC;oBAC3C,CAAC,CAAC,CAAC;oBAEH,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;gBACvB,CAAC;gBAED,mDAAe,GAAf,UAAgB,SAAS;oBACrB,IAAI,IAAI,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;oBAElC,oBAAoB;oBACpB,EAAE,CAAA,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA,CAAC;wBAClB,SAAS,CAAC,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;oBACpD,CAAC;oBAED,aAAa;oBACb,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC;oBAEtB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBAChC,CAAC;gBApCD;oBAAC,aAAM,EAAE;;yEAAA;gBATb;oBAAC,gBAAS,CAAC;wBACT,QAAQ,EAAE,YAAY;wBACtB,WAAW,EAAG,uCAAuC;wBACrD,SAAS,EAAE,CAAC,mCAAmC,CAAC;qBACjD,CAAC;+BAEiD,aAAM,CAAC,2BAAe,CAAC;;6CAFxE;gBA0CF,gCAAC;YAAD,CAAC,AAzCD,IAyCC;YAzCD,iEAyCC,CAAA"} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-toolbar.component.ts b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-toolbar.component.ts new file mode 100644 index 0000000..6f51d5a --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item-toolbar.component.ts @@ -0,0 +1,41 @@ +import { Component, Inject, Output, EventEmitter } from "@angular/core"; +import { FormBuilder } from "@angular/forms"; +import { lookupListToken } from "./providers"; +import * as _ from "lodash"; + +@Component({ + selector: "mw-toolbar", + templateUrl : "./media-item-toolbar.component.html", + styleUrls: ["./media-item-form.component.css"] +}) +export class MediaItemToolbarComponent{ + constructor(private formBuilder: FormBuilder, @Inject(lookupListToken) public lookupLists) {} + form; + category; + @Output() filter = new EventEmitter(); + + ngOnInit() { + this.form = this.formBuilder.group({ + movieName : this.formBuilder.control(""), + category : this.formBuilder.control("name") + }); + this.category = "name"; + } + + onChangeProperty(value) { + this.category = value + } + + getPropertyType() { + let category = this.category ? this.category : "name"; + let lookup = _.find(this.lookupLists.mediaItemProperties , function(obj:any){ + return obj.lookupText === category; + }); + + return lookup.type; + } + + filterMediaItem(formInput) { + this.filter.emit(formInput); + } +} \ No newline at end of file diff --git a/app/media-item.component.css b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.css old mode 100755 new mode 100644 similarity index 83% rename from app/media-item.component.css rename to catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.css index 789b72b..5c95400 --- a/app/media-item.component.css +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.css @@ -1,64 +1,75 @@ -:host { - display: flex; - flex-direction: column; - width: 140px; - height: 200px; - border: 2px solid; - background-color: #29394b; - padding: 10px; - color: #bdc2c5; -} -h2 { - font-size: 1.6em; - flex: 1; -} -:host.medium-movies { - border-color: #53ace4; -} -:host.medium-movies > h2 { - color: #53ace4; -} -:host.medium-series { - border-color: #45bf94; -} -:host.medium-series > h2 { - color: #45bf94; -} -.tools { - margin-top: 8px; - display: flex; - flex-wrap: nowrap; - justify-content: space-between; -} -.favorite { - width: 24px; - height: 24px; - fill: #bdc2c5; -} -.favorite.is-favorite { - fill: #37ad79; -} -.favorite.is-favorite-hovering { - fill: #45bf94; -} -.favorite.is-favorite.is-favorite-hovering { - fill: #ec4342; -} -.delete { - display: block; - background-color: #ec4342; - padding: 4px; - font-size: .8em; - border-radius: 4px; - color: #ffffff; - cursor: pointer; -} -.details { - display: block; - background-color: #37ad79; - padding: 4px; - font-size: .8em; - border-radius: 4px; - color: #ffffff; - text-decoration: none; +:host { + display: flex; + flex-direction: column; + width: 200px; + height: 200px; + border: 2px solid; + background-color: #29394b; + padding: 10px; + color: #bdc2c5; +} +h2 { + font-size: 1.6em; + flex: 1; +} +:host.medium-movies { + border-color: #53ace4; +} +:host.medium-movies > h2 { + color: #53ace4; +} +:host.medium-series { + border-color: #45bf94; +} +:host.medium-series > h2 { + color: #45bf94; +} +.tools { + margin-top: 8px; + display: flex; + flex-wrap: nowrap; + justify-content: space-between; +} +.favorite { + width: 24px; + height: 24px; + fill: #bdc2c5; +} +.favorite.is-favorite { + fill: #37ad79; +} +.favorite.is-favorite-hovering { + fill: #45bf94; +} +.favorite.is-favorite.is-favorite-hovering { + fill: #ec4342; +} +.delete { + display: block; + background-color: #ec4342; + padding: 4px; + font-size: .8em; + border-radius: 4px; + color: #ffffff; + cursor: pointer; +} +.details { + display: block; + background-color: #37ad79; + padding: 4px; + font-size: .8em; + border-radius: 4px; + color: #ffffff; + text-decoration: none; +} +.preview { + display: block; + background-color: darkorange; + padding: 4px; + font-size: .8em; + border-radius: 4px; + color: #ffffff; + text-decoration: none; + cursor: pointer; + } \ No newline at end of file diff --git a/app/media-item.component.html b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.html old mode 100755 new mode 100644 similarity index 88% rename from app/media-item.component.html rename to catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.html index 7defcf2..82974af --- a/app/media-item.component.html +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.html @@ -1,20 +1,23 @@ -

    {{ mediaItem.name }}

    - -
    {{ mediaItem.category }}
    -
    {{ mediaItem.year }}
    -
    - - - - - remove - - - watch - +

    {{ mediaItem.name }}

    + +
    {{ mediaItem.category }}
    +
    {{ mediaItem.year }}
    + \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.js b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.js new file mode 100644 index 0000000..38b72f1 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.js @@ -0,0 +1,62 @@ +System.register(['@angular/core', './media-item.service'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; + var core_1, media_item_service_1; + var MediaItemComponent; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }, + function (media_item_service_1_1) { + media_item_service_1 = media_item_service_1_1; + }], + execute: function() { + MediaItemComponent = (function () { + function MediaItemComponent(mediaItemservice) { + this.mediaItemservice = mediaItemservice; + this.delete = new core_1.EventEmitter(); + this.preview = new core_1.EventEmitter(); + } + MediaItemComponent.prototype.onDelete = function () { + this.delete.emit(this.mediaItem); + }; + MediaItemComponent.prototype.onPreview = function () { + this.mediaItemservice.setPreview(this.mediaItem); + }; + __decorate([ + core_1.Input(), + __metadata('design:type', Object) + ], MediaItemComponent.prototype, "mediaItem", void 0); + __decorate([ + core_1.Output(), + __metadata('design:type', Object) + ], MediaItemComponent.prototype, "delete", void 0); + __decorate([ + core_1.Output(), + __metadata('design:type', Object) + ], MediaItemComponent.prototype, "preview", void 0); + MediaItemComponent = __decorate([ + core_1.Component({ + selector: 'mw-media-item', + templateUrl: 'app/media-item.component.html', + styleUrls: ['app/media-item.component.css'] + }), + __metadata('design:paramtypes', [media_item_service_1.MediaItemService]) + ], MediaItemComponent); + return MediaItemComponent; + }()); + exports_1("MediaItemComponent", MediaItemComponent); + } + } +}); +//# sourceMappingURL=media-item.component.js.map \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.js.map b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.js.map new file mode 100644 index 0000000..e0233b4 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.js.map @@ -0,0 +1 @@ +{"version":3,"file":"media-item.component.js","sourceRoot":"","sources":["media-item.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAQA;gBAKE,4BAAoB,gBAAkC;oBAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;oBAH5C,WAAM,GAAG,IAAI,mBAAY,EAAE,CAAC;oBAC5B,YAAO,GAAG,IAAI,mBAAY,EAAE,CAAC;gBAEkB,CAAC;gBAE1D,qCAAQ,GAAR;oBACE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACnC,CAAC;gBAED,sCAAS,GAAT;oBACE,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACnD,CAAC;gBAZD;oBAAC,YAAK,EAAE;;qEAAA;gBACR;oBAAC,aAAM,EAAE;;kEAAA;gBACT;oBAAC,aAAM,EAAE;;mEAAA;gBARX;oBAAC,gBAAS,CAAC;wBACT,QAAQ,EAAE,eAAe;wBACzB,WAAW,EAAE,+BAA+B;wBAC5C,SAAS,EAAE,CAAC,8BAA8B,CAAC;qBAC5C,CAAC;;sCAAA;gBAeF,yBAAC;YAAD,CAAC,AAdD,IAcC;YAdD,mDAcC,CAAA"} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.spec.ts b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.spec.ts new file mode 100644 index 0000000..714fc23 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.spec.ts @@ -0,0 +1,51 @@ +import { async, TestBed, ComponentFixture, inject } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; +import { + RouterTestingModule +} from '@angular/router/testing'; +import { Router, RouterOutlet } from "@angular/router"; +import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; +import {HttpClientModule} from '@angular/common/http'; +import {HttpModule} from '@angular/http'; + +import { routing } from './app.routing'; +import { MediaItemComponent } from './media-item.component'; +import { MediaItemService } from './media-item.service'; +import { FavoriteDirective } from './favorite.directive'; + + +class MockRouter { public navigate() {}; } + +describe('MediaItemComponent', ()=> { + let component: MediaItemComponent; + let fixture: ComponentFixture; + let element: HTMLElement; + + beforeEach(() => { + TestBed.configureTestingModule({ + declarations: [ MediaItemComponent, FavoriteDirective], + providers: [ + MediaItemService, + {provide: Router, useClass: MockRouter }, + RouterOutlet + ], + imports: [ RouterTestingModule, + HttpClientModule, HttpModule ] + }) + + fixture = TestBed.createComponent(MediaItemComponent); + element = fixture.nativeElement; + + }) + + it('should have 3 anchor link, with 1 having css class delete, details, preview', async(() => { + expect(element.querySelectorAll('.preview').length).toEqual(1); + expect(element.querySelectorAll('.details').length).toEqual(1); + expect(element.querySelectorAll('.delete').length).toEqual(1); + })); + + it('should have 1 svg', async(() => { + expect(element.querySelectorAll('svg').length).toEqual(1); + })); + +}) diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.ts b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.ts new file mode 100644 index 0000000..04d8956 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.component.ts @@ -0,0 +1,23 @@ +import { Component, Input, Output, EventEmitter } from '@angular/core'; +import { MediaItemService } from './media-item.service'; + +@Component({ + selector: 'mw-media-item', + templateUrl: './media-item.component.html', + styleUrls: ['./media-item.component.css'] +}) +export class MediaItemComponent { + @Input() mediaItem; + @Output() delete = new EventEmitter(); + @Output() preview = new EventEmitter(); + + constructor(private mediaItemservice: MediaItemService) {} + + onDelete() { + this.delete.emit(this.mediaItem); + } + + onPreview() { + this.mediaItemservice.setPreview(this.mediaItem); + } +} diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.service.js b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.service.js new file mode 100644 index 0000000..6c07e1d --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.service.js @@ -0,0 +1,79 @@ +System.register(['@angular/core', '@angular/http', 'rxjs/add/operator/map'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; + var core_1, http_1; + var Filter, MediaItemService; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }, + function (http_1_1) { + http_1 = http_1_1; + }, + function (_1) {}], + execute: function() { + Filter = (function () { + function Filter() { + } + return Filter; + }()); + exports_1("Filter", Filter); + MediaItemService = (function () { + function MediaItemService(http) { + this.http = http; + this.previewedMediaItem = null; + } + MediaItemService.prototype.isValid = function (filter) { + if (filter.type === "string") { + filter.value = filter.value.trim(); + } + return filter.operator !== "" && filter.value && filter.value !== "" && filter.propertyName !== ""; + }; + MediaItemService.prototype.get = function (medium, filter) { + var searchParams = new http_1.URLSearchParams(); + searchParams.append('medium', medium); + if (filter && this.isValid(filter)) { + searchParams.append('filter', JSON.stringify(filter)); + } + return this.http.get('mediaitems', { search: searchParams }) + .map(function (response) { + return response.json(); + }); + }; + MediaItemService.prototype.add = function (mediaItem) { + var _this = this; + return this.http.post('mediaitems', mediaItem) + .map(function (response) { _this.get(""); }); + }; + MediaItemService.prototype.delete = function (mediaItem) { + return this.http.delete("mediaitems/" + mediaItem.id) + .map(function (response) { }); + }; + MediaItemService.prototype.setPreview = function (mediaItem) { + this.previewedMediaItem = mediaItem; + return this.previewedMediaItem; + }; + MediaItemService.prototype.getPreview = function () { + return this.previewedMediaItem; + }; + MediaItemService = __decorate([ + core_1.Injectable(), + __metadata('design:paramtypes', [http_1.Http]) + ], MediaItemService); + return MediaItemService; + }()); + exports_1("MediaItemService", MediaItemService); + } + } +}); +//# sourceMappingURL=media-item.service.js.map \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.service.js.map b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.service.js.map new file mode 100644 index 0000000..bc36177 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.service.js.map @@ -0,0 +1 @@ +{"version":3,"file":"media-item.service.js","sourceRoot":"","sources":["media-item.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;YAIA;gBAAA;gBAKA,CAAC;gBAAD,aAAC;YAAD,CAAC,AALD,IAKC;YALD,2BAKC,CAAA;YAGD;gBAEE,0BAAoB,IAAU;oBAAV,SAAI,GAAJ,IAAI,CAAM;oBAD9B,uBAAkB,GAAG,IAAI,CAAC;gBACO,CAAC;gBAElC,kCAAO,GAAP,UAAQ,MAAM;oBACZ,EAAE,CAAA,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA,CAAC;wBAC3B,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;oBACrC,CAAC;oBACD,MAAM,CAAC,MAAM,CAAC,QAAQ,KAAK,EAAE,IAAI,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,KAAK,EAAE,IAAI,MAAM,CAAC,YAAY,KAAK,EAAE,CAAC;gBACrG,CAAC;gBAED,8BAAG,GAAH,UAAI,MAAM,EAAE,MAAe;oBACzB,IAAI,YAAY,GAAG,IAAI,sBAAe,EAAE,CAAC;oBACzC,YAAY,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;oBACtC,EAAE,CAAA,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA,CAAC;wBACjC,YAAY,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;oBACxD,CAAC;oBACD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;yBACzD,GAAG,CAAC,UAAA,QAAQ;wBACX,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;oBACzB,CAAC,CAAC,CAAC;gBACP,CAAC;gBAED,8BAAG,GAAH,UAAI,SAAS;oBAAb,iBAGC;oBAFC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC;yBAC3C,GAAG,CAAC,UAAA,QAAQ,IAAM,KAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;gBACvC,CAAC;gBAED,iCAAM,GAAN,UAAO,SAAS;oBACd,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAc,SAAS,CAAC,EAAI,CAAC;yBAClD,GAAG,CAAC,UAAA,QAAQ,IAAK,CAAC,CAAC,CAAC;gBACzB,CAAC;gBAED,qCAAU,GAAV,UAAW,SAAS;oBAClB,IAAI,CAAC,kBAAkB,GAAG,SAAS,CAAC;oBACpC,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC;gBACjC,CAAC;gBAED,qCAAU,GAAV;oBACE,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC;gBACjC,CAAC;gBAzCH;oBAAC,iBAAU,EAAE;;oCAAA;gBA2Cb,uBAAC;YAAD,CAAC,AA1CD,IA0CC;YA1CD,+CA0CC,CAAA"} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.service.ts b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.service.ts new file mode 100644 index 0000000..5a61c52 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/media-item.service.ts @@ -0,0 +1,57 @@ +import { Injectable } from '@angular/core'; +import { Http, URLSearchParams, Response, Headers } from '@angular/http'; +import { map } from 'rxjs/operators'; +import { Observable } from 'rxjs'; + +export class Filter{ + movieName : string; + category: any; +} + +@Injectable() +export class MediaItemService{ + previewedMediaItem = null; + constructor(private http: Http) {} + + isValid(filter) { + if(filter.type === "string"){ + filter.category = filter.category.trim(); + } + return filter.operator !== "" && filter.category && filter.category !== "" && filter.propertyName !== ""; + } + + get(medium, filter?: Filter) : Observable { + let searchParams = new URLSearchParams(); + searchParams.append('medium', medium); + if(filter && this.isValid(filter)){ + searchParams.append('filter', JSON.stringify(filter)); + } + let headers = new Headers(); + headers.append('Content-type', 'application/json'); + headers.append('Accept', 'application/json'); + return this.http.get('mediaitems', { search: searchParams }) + .pipe(map(response => { + return response.json(); + })); + } + + add(mediaItem) { + return this.http.post('mediaitems', mediaItem) + .pipe(map(response => { this.get("") })); + } + + delete(mediaItem) { + return this.http.delete(`mediaitems/${mediaItem.id}`) + .pipe(map(response => {})); + } + + setPreview(mediaItem){ + this.previewedMediaItem = mediaItem; + return this.previewedMediaItem; + } + + getPreview(){ + return this.previewedMediaItem; + } + +} diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.css b/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.css new file mode 100644 index 0000000..09efc94 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.css @@ -0,0 +1,55 @@ +.current-poster:before { + width: 0; + height: 0; + border-top: 10px solid transparent; + border-bottom: 10px solid transparent; + border-right:10px solid black; +} + +.current-poster:after { + width: 0; + height: 0; + border-top: 60px solid transparent; + border-bottom: 60px solid transparent; + border-left: 60px solid black; +} + +.movie-poster{ + display:block; + margin:auto; + width:50%; + transform: scale(0.5); +} + +.full-size.full-size-hovering{ + transform: scale(1); +} + +.arrow-container{ + position: relative; + width: 40px; +} + +.arrow{ + position: absolute; + top: 50%; + height: 40px; + margin-top: -20px; + cursor: pointer; + width: 40px; +} + +.arrow-next{ + background-image: url("../assets/media/arrow-next.jpg"); + background-size: cover; + background-repeat: no-repeat; + background-position: center center; +} + +.arrow-prev{ + transform: rotate(180deg); + background-image: url("../assets/media/arrow-next.jpg"); + background-size: cover; + background-repeat: no-repeat; + background-position: center center; +} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.html b/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.html new file mode 100644 index 0000000..92394c6 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.html @@ -0,0 +1,15 @@ +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    + +
    +
    \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.js b/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.js new file mode 100644 index 0000000..aaa2aa0 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.js @@ -0,0 +1,73 @@ +System.register(['@angular/core', "lodash"], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; + var core_1, _; + var PosterSwitcherComponent; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }, + function (_1) { + _ = _1; + }], + execute: function() { + PosterSwitcherComponent = (function () { + function PosterSwitcherComponent() { + this.next = new core_1.EventEmitter(); + this.prev = new core_1.EventEmitter(); + } + PosterSwitcherComponent.prototype.onPrev = function () { + var currentItem = _.find(this.posters, function (obj) { + return obj && obj.selected === true; + }); + var currentIndex = this.posters.indexOf(currentItem); + var prev = currentIndex - 1 < 0 ? this.posters.length - 1 : currentIndex - 1; + this.posters[currentIndex].selected = false; + this.posters[prev].selected = true; + }; + PosterSwitcherComponent.prototype.onNext = function () { + var currentItem = _.find(this.posters, function (obj) { + return obj.selected === true; + }); + var currentIndex = this.posters.indexOf(currentItem); + var next = currentIndex + 1 >= this.posters.length ? 0 : currentIndex + 1; + this.posters[currentIndex].selected = false; + this.posters[next].selected = true; + }; + __decorate([ + core_1.Input(), + __metadata('design:type', Object) + ], PosterSwitcherComponent.prototype, "posters", void 0); + __decorate([ + core_1.Output(), + __metadata('design:type', Object) + ], PosterSwitcherComponent.prototype, "next", void 0); + __decorate([ + core_1.Output(), + __metadata('design:type', Object) + ], PosterSwitcherComponent.prototype, "prev", void 0); + PosterSwitcherComponent = __decorate([ + core_1.Component({ + selector: 'mw-poster-switcher', + templateUrl: 'app/poster-switcher.component.html', + styleUrls: ['app/poster-switcher.component.css'] + }), + __metadata('design:paramtypes', []) + ], PosterSwitcherComponent); + return PosterSwitcherComponent; + }()); + exports_1("PosterSwitcherComponent", PosterSwitcherComponent); + } + } +}); +//# sourceMappingURL=poster-switcher.component.js.map \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.js.map b/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.js.map new file mode 100644 index 0000000..3dd9cde --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.js.map @@ -0,0 +1 @@ +{"version":3,"file":"poster-switcher.component.js","sourceRoot":"","sources":["poster-switcher.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;YAQA;gBAAA;oBAEY,SAAI,GAAG,IAAI,mBAAY,EAAE,CAAC;oBAC1B,SAAI,GAAG,IAAI,mBAAY,EAAE,CAAC;gBAwBtC,CAAC;gBAtBC,wCAAM,GAAN;oBACE,IAAI,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,UAAS,GAAQ;wBACpD,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,QAAQ,KAAK,IAAI,CAAC;oBACxC,CAAC,CAAC,CAAC;oBACH,IAAI,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;oBACrD,IAAI,IAAI,GAAG,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,YAAY,GAAG,CAAC,CAAC;oBAE7E,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,QAAQ,GAAG,KAAK,CAAC;oBAC5C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACrC,CAAC;gBAED,wCAAM,GAAN;oBACE,IAAI,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,UAAS,GAAQ;wBACpD,MAAM,CAAC,GAAG,CAAC,QAAQ,KAAK,IAAI,CAAC;oBACjC,CAAC,CAAC,CAAC;oBACH,IAAI,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;oBACrD,IAAI,IAAI,GAAG,YAAY,GAAG,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,YAAY,GAAG,CAAC,CAAC;oBAE1E,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,QAAQ,GAAG,KAAK,CAAC;oBAC5C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACrC,CAAC;gBAxBD;oBAAC,YAAK,EAAE;;wEAAA;gBACR;oBAAC,aAAM,EAAE;;qEAAA;gBACT;oBAAC,aAAM,EAAE;;qEAAA;gBARX;oBAAC,gBAAS,CAAC;wBACT,QAAQ,EAAE,oBAAoB;wBAC9B,WAAW,EAAE,oCAAoC;wBACjD,SAAS,EAAE,CAAC,mCAAmC,CAAC;qBACjD,CAAC;;2CAAA;gBA4BF,8BAAC;YAAD,CAAC,AA3BD,IA2BC;YA3BD,6DA2BC,CAAA"} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.ts b/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.ts new file mode 100644 index 0000000..dd736a6 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/poster-switcher.component.ts @@ -0,0 +1,36 @@ +import{ Component, Input, Output, EventEmitter } from '@angular/core'; +import * as _ from "lodash"; + +@Component({ + selector: 'mw-poster-switcher', + templateUrl: './poster-switcher.component.html', + styleUrls: ['./poster-switcher.component.css'] +}) +export class PosterSwitcherComponent{ + @Input() posters; + @Output() next = new EventEmitter(); + @Output() prev = new EventEmitter(); + + onPrev() { + var currentItem = _.find(this.posters, function(obj: any){ + return obj && obj.selected === true; + }); + var currentIndex = this.posters.indexOf(currentItem); + var prev = currentIndex - 1 < 0 ? this.posters.length - 1 : currentIndex - 1; + + this.posters[currentIndex].selected = false; + this.posters[prev].selected = true; + } + + onNext() { + var currentItem = _.find(this.posters, function(obj: any){ + return obj.selected === true; + }); + var currentIndex = this.posters.indexOf(currentItem); + var next = currentIndex + 1 >= this.posters.length ? 0 : currentIndex + 1; + + this.posters[currentIndex].selected = false; + this.posters[next].selected = true; + } + +} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/providers.js b/catalogue/catalogue/src/main/resources/angular-app/src/app/providers.js new file mode 100644 index 0000000..54f2594 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/providers.js @@ -0,0 +1,21 @@ +System.register(['@angular/core'], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var core_1; + var lookupListToken, lookupLists; + return { + setters:[ + function (core_1_1) { + core_1 = core_1_1; + }], + execute: function() { + exports_1("lookupListToken", lookupListToken = new core_1.OpaqueToken('lookupListToken')); + exports_1("lookupLists", lookupLists = { + mediums: ['Movies', 'Series'], + mediaItemProperties: [{ lookupText: 'name', type: 'string' }, { lookupText: 'category', type: 'string' }, { lookupText: 'year', type: 'number' }], + operators: [{ lookupText: 'startswith', type: 'string' }, { lookupText: 'equals', type: 'any' }, { lookupText: 'contains', type: 'string' }, { lookupText: 'lessThan', type: 'number' }, { lookupText: 'greaterThan', type: 'number' }] + }); + } + } +}); +//# sourceMappingURL=providers.js.map \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/providers.js.map b/catalogue/catalogue/src/main/resources/angular-app/src/app/providers.js.map new file mode 100644 index 0000000..016021b --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/providers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"providers.js","sourceRoot":"","sources":["providers.ts"],"names":[],"mappings":";;;;QAEa,eAAe,EAEf,WAAW;;;;;;;YAFX,6BAAA,eAAe,GAAG,IAAI,kBAAW,CAAC,iBAAiB,CAAC,CAAA,CAAC;YAErD,yBAAA,WAAW,GAAG;gBACzB,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;gBAC7B,mBAAmB,EAAE,CAAC,EAAC,UAAU,EAAC,MAAM,EAAE,IAAI,EAAC,QAAQ,EAAC,EAAE,EAAC,UAAU,EAAC,UAAU,EAAE,IAAI,EAAC,QAAQ,EAAC,EAAE,EAAC,UAAU,EAAC,MAAM,EAAE,IAAI,EAAC,QAAQ,EAAC,CAAC;gBACrI,SAAS,EAAE,CAAC,EAAC,UAAU,EAAC,YAAY,EAAE,IAAI,EAAC,QAAQ,EAAC,EAAE,EAAC,UAAU,EAAC,QAAQ,EAAE,IAAI,EAAC,KAAK,EAAC,EAAE,EAAC,UAAU,EAAC,UAAU,EAAE,IAAI,EAAC,QAAQ,EAAC,EAAE,EAAC,UAAU,EAAC,UAAU,EAAE,IAAI,EAAC,QAAQ,EAAC,EAAE,EAAC,UAAU,EAAC,aAAa,EAAE,IAAI,EAAC,QAAQ,EAAC,CAAC;aACpN,CAAA,CAAC"} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/app/providers.ts b/catalogue/catalogue/src/main/resources/angular-app/src/app/providers.ts new file mode 100644 index 0000000..c4bfae7 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/app/providers.ts @@ -0,0 +1,9 @@ +import { InjectionToken } from '@angular/core'; + +export const lookupListToken = new InjectionToken('lookupListToken'); + +export const lookupLists = { + mediums: ['Movies', 'Series'], + mediaItemProperties: [{lookupText:'All', type:'string'}, {lookupText:'Comedy', type:'string'}, {lookupText:'Science Fiction', type:'string'}, {lookupText:'Action', type:'string'}, {lookupText:'Drama', type:'string'}], + operators: [{lookupText:'startswith', type:'string'}, {lookupText:'equals', type:'any'}, {lookupText:'contains', type:'string'}, {lookupText:'lessThan', type:'number'}, {lookupText:'greaterThan', type:'number'}] +}; diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/assets/.gitkeep b/catalogue/catalogue/src/main/resources/angular-app/src/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/media/01.png b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/01.png old mode 100755 new mode 100644 similarity index 100% rename from media/01.png rename to catalogue/catalogue/src/main/resources/angular-app/src/assets/media/01.png diff --git a/media/02.png b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/02.png old mode 100755 new mode 100644 similarity index 100% rename from media/02.png rename to catalogue/catalogue/src/main/resources/angular-app/src/assets/media/02.png diff --git a/media/03.png b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/03.png old mode 100755 new mode 100644 similarity index 100% rename from media/03.png rename to catalogue/catalogue/src/main/resources/angular-app/src/assets/media/03.png diff --git a/media/04.png b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/04.png old mode 100755 new mode 100644 similarity index 100% rename from media/04.png rename to catalogue/catalogue/src/main/resources/angular-app/src/assets/media/04.png diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/arrow-next.jpg b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/arrow-next.jpg new file mode 100644 index 0000000..deba1ee Binary files /dev/null and b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/arrow-next.jpg differ diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/comingsoon.png b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/comingsoon.png new file mode 100644 index 0000000..c2a21b4 Binary files /dev/null and b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/comingsoon.png differ diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/firebug1.png b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/firebug1.png new file mode 100644 index 0000000..eab5b50 Binary files /dev/null and b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/firebug1.png differ diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/firebug2.png b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/firebug2.png new file mode 100644 index 0000000..3b8c427 Binary files /dev/null and b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/firebug2.png differ diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/smalltall1.png b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/smalltall1.png new file mode 100644 index 0000000..8ea790f Binary files /dev/null and b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/smalltall1.png differ diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/smalltall2.png b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/smalltall2.png new file mode 100644 index 0000000..5b53e4a Binary files /dev/null and b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/smalltall2.png differ diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/stars.png b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/stars.png new file mode 100644 index 0000000..b55a9b3 Binary files /dev/null and b/catalogue/catalogue/src/main/resources/angular-app/src/assets/media/stars.png differ diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/browserslist b/catalogue/catalogue/src/main/resources/angular-app/src/browserslist new file mode 100644 index 0000000..8e09ab4 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/browserslist @@ -0,0 +1,9 @@ +# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers +# For additional information regarding the format and rule options, please see: +# https://github.com/browserslist/browserslist#queries +# For IE 9-11 support, please uncomment the last line of the file and adjust as needed +> 0.5% +last 2 versions +Firefox ESR +not dead +# IE 9-11 \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/coverage/PhantomJS 2.1.1 (Windows 8.0.0)/index.html b/catalogue/catalogue/src/main/resources/angular-app/src/coverage/PhantomJS 2.1.1 (Windows 8.0.0)/index.html new file mode 100644 index 0000000..fca417c --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/coverage/PhantomJS 2.1.1 (Windows 8.0.0)/index.html @@ -0,0 +1,320 @@ + + + + Code coverage report for All files + + + + + + + +
    +

    Code coverage report for All files

    +

    + + Statements: 100% (0 / 0)      + + + Branches: 100% (0 / 0)      + + + Functions: 100% (0 / 0)      + + + Lines: 100% (0 / 0)      + +

    +
    +
    +
    +
    + + + + + + + + + + + + + + + + +
    FileStatementsBranchesFunctionsLines
    +
    +
    + + + + + + + + diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/coverage/PhantomJS 2.1.1 (Windows 8.0.0)/prettify.css b/catalogue/catalogue/src/main/resources/angular-app/src/coverage/PhantomJS 2.1.1 (Windows 8.0.0)/prettify.css new file mode 100644 index 0000000..b317a7c --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/coverage/PhantomJS 2.1.1 (Windows 8.0.0)/prettify.css @@ -0,0 +1 @@ +.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/coverage/PhantomJS 2.1.1 (Windows 8.0.0)/prettify.js b/catalogue/catalogue/src/main/resources/angular-app/src/coverage/PhantomJS 2.1.1 (Windows 8.0.0)/prettify.js new file mode 100644 index 0000000..ef51e03 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/coverage/PhantomJS 2.1.1 (Windows 8.0.0)/prettify.js @@ -0,0 +1 @@ +window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/coverage/coverage-PhantomJS 2.1.1 (Windows 8.0.0)-20190131_104609.json b/catalogue/catalogue/src/main/resources/angular-app/src/coverage/coverage-PhantomJS 2.1.1 (Windows 8.0.0)-20190131_104609.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/coverage/coverage-PhantomJS 2.1.1 (Windows 8.0.0)-20190131_104609.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/coverage/coverage-PhantomJS 2.1.1 (Windows 8.0.0)-20190131_112159.json b/catalogue/catalogue/src/main/resources/angular-app/src/coverage/coverage-PhantomJS 2.1.1 (Windows 8.0.0)-20190131_112159.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/coverage/coverage-PhantomJS 2.1.1 (Windows 8.0.0)-20190131_112159.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/coverage/coverage-PhantomJS 2.1.1 (Windows 8.0.0)-20190131_155239.json b/catalogue/catalogue/src/main/resources/angular-app/src/coverage/coverage-PhantomJS 2.1.1 (Windows 8.0.0)-20190131_155239.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/coverage/coverage-PhantomJS 2.1.1 (Windows 8.0.0)-20190131_155239.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/environments/environment.prod.ts b/catalogue/catalogue/src/main/resources/angular-app/src/environments/environment.prod.ts new file mode 100644 index 0000000..3612073 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/environments/environment.ts b/catalogue/catalogue/src/main/resources/angular-app/src/environments/environment.ts new file mode 100644 index 0000000..012182e --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/environments/environment.ts @@ -0,0 +1,15 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`. +// The list of file replacements can be found in `angular.json`. + +export const environment = { + production: false +}; + +/* + * In development mode, to ignore zone related error stack frames such as + * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can + * import the following file, but please comment it out in production mode + * because it will have performance impact when throw error + */ +// import 'zone.js/dist/zone-error'; // Included with Angular CLI. diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/favicon.ico b/catalogue/catalogue/src/main/resources/angular-app/src/favicon.ico new file mode 100644 index 0000000..8081c7c Binary files /dev/null and b/catalogue/catalogue/src/main/resources/angular-app/src/favicon.ico differ diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/index.html b/catalogue/catalogue/src/main/resources/angular-app/src/index.html new file mode 100644 index 0000000..7e98d45 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/index.html @@ -0,0 +1,19 @@ + + + + + Angular6Training + + + + + + + + Loading... + + diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/karma.conf.ci.js b/catalogue/catalogue/src/main/resources/angular-app/src/karma.conf.ci.js new file mode 100644 index 0000000..77f8548 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/karma.conf.ci.js @@ -0,0 +1,12 @@ +var baseConfig = require('./karma.conf.js'); + +module.exports = function(config) { + baseConfig(config); + + config.set({ + browsers : [ 'PhantomJS' ], + reporters : [ 'junit' ], + singleRun : true, + autoWatch : false + }) +} \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/karma.conf.js b/catalogue/catalogue/src/main/resources/angular-app/src/karma.conf.js new file mode 100644 index 0000000..09526b4 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/karma.conf.js @@ -0,0 +1,34 @@ +// Karma configuration file, see link for more information +// https://karma-runner.github.io/1.0/config/configuration-file.html + +module.exports = function (config) { + config.set({ + basePath: '', + frameworks: ['jasmine', '@angular-devkit/build-angular'], + plugins: [ + require('karma-jasmine'), + require('karma-phantomjs-launcher'), + require('karma-junit-reporter'), + require('karma-coverage'), + require('karma-jasmine-html-reporter'), + require('karma-coverage-istanbul-reporter'), + require('@angular-devkit/build-angular/plugins/karma') + ], + client: { + clearContext: false // leave Jasmine Spec Runner output visible in browser + }, + mime: { + 'text/x-typescript': ['ts', 'tsx'] + }, + junitReporter: { + outputDir: '../../../../target/surefire-reports' + }, + reporters: ['junit', 'coverage', 'progress'], + port: 9876, + colors: true, + logLevel: config.LOG_INFO, + autoWatch: false, + browsers: [ 'PhantomJS' ], + singleRun: true + }); +}; diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/main.ts b/catalogue/catalogue/src/main/resources/angular-app/src/main.ts new file mode 100644 index 0000000..91ec6da --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/main.ts @@ -0,0 +1,12 @@ +import { enableProdMode } from '@angular/core'; +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; + +import { AppModule } from './app/app.module'; +import { environment } from './environments/environment'; + +if (environment.production) { + enableProdMode(); +} + +platformBrowserDynamic().bootstrapModule(AppModule) + .catch(err => console.log(err)); diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/polyfills.ts b/catalogue/catalogue/src/main/resources/angular-app/src/polyfills.ts new file mode 100644 index 0000000..b7b7e28 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/polyfills.ts @@ -0,0 +1,83 @@ +/** + * This file includes polyfills needed by Angular and is loaded before the app. + * You can add your own extra polyfills to this file. + * + * This file is divided into 2 sections: + * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. + * 2. Application imports. Files imported after ZoneJS that should be loaded before your main + * file. + * + * The current setup is for so-called "evergreen" browsers; the last versions of browsers that + * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), + * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. + * + * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html + */ + +/*************************************************************************************************** + * BROWSER POLYFILLS + */ + +/** IE9, IE10 and IE11 requires all of the following polyfills. **/ +import 'core-js/es6/symbol'; +import 'core-js/es6/object'; +import 'core-js/es6/function'; +import 'core-js/es6/parse-int'; +import 'core-js/es6/parse-float'; +import 'core-js/es6/number'; +import 'core-js/es6/math'; +import 'core-js/es6/string'; +import 'core-js/es6/date'; +import 'core-js/es6/array'; +import 'core-js/es6/regexp'; +import 'core-js/es6/map'; +import 'core-js/es6/weak-map'; +import 'core-js/es6/set'; + +/** IE10 and IE11 requires the following for NgClass support on SVG elements */ +// import 'classlist.js'; // Run `npm install --save classlist.js`. + +/** IE10 and IE11 requires the following for the Reflect API. */ +// import 'core-js/es6/reflect'; + +import 'intl'; +import 'intl/locale-data/jsonp/en'; + + +/** Evergreen browsers require these. **/ +// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. +import 'core-js/es7/reflect'; + + +/** + * Web Animations `@angular/platform-browser/animations` + * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. + * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). + **/ +// import 'web-animations-js'; // Run `npm install --save web-animations-js`. + +/** + * By default, zone.js will patch all possible macroTask and DomEvents + * user can disable parts of macroTask/DomEvents patch by setting following flags + */ + + // (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame + // (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick + // (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames + + /* + * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js + * with the following flag, it will bypass `zone.js` patch for IE/Edge + */ +// (window as any).__Zone_enable_cross_context_check = true; + +/*************************************************************************************************** + * Zone JS is required by default for Angular itself. + */ +import 'zone.js/dist/zone'; // Included with Angular CLI. + + + +/*************************************************************************************************** + * APPLICATION IMPORTS + */ diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/styles.css b/catalogue/catalogue/src/main/resources/angular-app/src/styles.css new file mode 100644 index 0000000..90d4ee0 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/styles.css @@ -0,0 +1 @@ +/* You can add global styles to this file, and also import other style files */ diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/test.ts b/catalogue/catalogue/src/main/resources/angular-app/src/test.ts new file mode 100644 index 0000000..1631789 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/test.ts @@ -0,0 +1,20 @@ +// This file is required by karma.conf.js and loads recursively all the .spec and framework files + +import 'zone.js/dist/zone-testing'; +import { getTestBed } from '@angular/core/testing'; +import { + BrowserDynamicTestingModule, + platformBrowserDynamicTesting +} from '@angular/platform-browser-dynamic/testing'; + +declare const require: any; + +// First, initialize the Angular testing environment. +getTestBed().initTestEnvironment( + BrowserDynamicTestingModule, + platformBrowserDynamicTesting() +); +// Then we find all the tests. +const context = require.context('./', true, /\.spec\.ts$/); +// And load the modules. +context.keys().map(context); diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/tsconfig.app.json b/catalogue/catalogue/src/main/resources/angular-app/src/tsconfig.app.json new file mode 100644 index 0000000..722c370 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/tsconfig.app.json @@ -0,0 +1,12 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "../out-tsc/app", + "module": "es2015", + "types": [] + }, + "exclude": [ + "src/test.ts", + "**/*.spec.ts" + ] +} diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/tsconfig.spec.json b/catalogue/catalogue/src/main/resources/angular-app/src/tsconfig.spec.json new file mode 100644 index 0000000..8f7cede --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/tsconfig.spec.json @@ -0,0 +1,19 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "../out-tsc/spec", + "module": "commonjs", + "types": [ + "jasmine", + "node" + ] + }, + "files": [ + "test.ts", + "polyfills.ts" + ], + "include": [ + "**/*.spec.ts", + "**/*.d.ts" + ] +} diff --git a/catalogue/catalogue/src/main/resources/angular-app/src/tslint.json b/catalogue/catalogue/src/main/resources/angular-app/src/tslint.json new file mode 100644 index 0000000..52e2c1a --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/src/tslint.json @@ -0,0 +1,17 @@ +{ + "extends": "../tslint.json", + "rules": { + "directive-selector": [ + true, + "attribute", + "app", + "camelCase" + ], + "component-selector": [ + true, + "element", + "app", + "kebab-case" + ] + } +} diff --git a/catalogue/catalogue/src/main/resources/angular-app/tsconfig.json b/catalogue/catalogue/src/main/resources/angular-app/tsconfig.json new file mode 100644 index 0000000..ef44e28 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compileOnSave": false, + "compilerOptions": { + "baseUrl": "./", + "outDir": "./dist/out-tsc", + "sourceMap": true, + "declaration": false, + "moduleResolution": "node", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "target": "es5", + "typeRoots": [ + "node_modules/@types" + ], + "lib": [ + "es2017", + "dom" + ] + } +} diff --git a/catalogue/catalogue/src/main/resources/angular-app/tslint.json b/catalogue/catalogue/src/main/resources/angular-app/tslint.json new file mode 100644 index 0000000..3ea984c --- /dev/null +++ b/catalogue/catalogue/src/main/resources/angular-app/tslint.json @@ -0,0 +1,130 @@ +{ + "rulesDirectory": [ + "node_modules/codelyzer" + ], + "rules": { + "arrow-return-shorthand": true, + "callable-types": true, + "class-name": true, + "comment-format": [ + true, + "check-space" + ], + "curly": true, + "deprecation": { + "severity": "warn" + }, + "eofline": true, + "forin": true, + "import-blacklist": [ + true, + "rxjs/Rx" + ], + "import-spacing": true, + "indent": [ + true, + "spaces" + ], + "interface-over-type-literal": true, + "label-position": true, + "max-line-length": [ + true, + 140 + ], + "member-access": false, + "member-ordering": [ + true, + { + "order": [ + "static-field", + "instance-field", + "static-method", + "instance-method" + ] + } + ], + "no-arg": true, + "no-bitwise": true, + "no-console": [ + true, + "debug", + "info", + "time", + "timeEnd", + "trace" + ], + "no-construct": true, + "no-debugger": true, + "no-duplicate-super": true, + "no-empty": false, + "no-empty-interface": true, + "no-eval": true, + "no-inferrable-types": [ + true, + "ignore-params" + ], + "no-misused-new": true, + "no-non-null-assertion": true, + "no-shadowed-variable": true, + "no-string-literal": false, + "no-string-throw": true, + "no-switch-case-fall-through": true, + "no-trailing-whitespace": true, + "no-unnecessary-initializer": true, + "no-unused-expression": true, + "no-use-before-declare": true, + "no-var-keyword": true, + "object-literal-sort-keys": false, + "one-line": [ + true, + "check-open-brace", + "check-catch", + "check-else", + "check-whitespace" + ], + "prefer-const": true, + "quotemark": [ + true, + "single" + ], + "radix": true, + "semicolon": [ + true, + "always" + ], + "triple-equals": [ + true, + "allow-null-check" + ], + "typedef-whitespace": [ + true, + { + "call-signature": "nospace", + "index-signature": "nospace", + "parameter": "nospace", + "property-declaration": "nospace", + "variable-declaration": "nospace" + } + ], + "unified-signatures": true, + "variable-name": false, + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-separator", + "check-type" + ], + "no-output-on-prefix": true, + "use-input-property-decorator": true, + "use-output-property-decorator": true, + "use-host-property-decorator": true, + "no-input-rename": true, + "no-output-rename": true, + "use-life-cycle-interface": true, + "use-pipe-transform-interface": true, + "component-class-suffix": true, + "directive-class-suffix": true + } +} diff --git a/catalogue/catalogue/src/main/resources/application.properties b/catalogue/catalogue/src/main/resources/application.properties new file mode 100644 index 0000000..977eb3c --- /dev/null +++ b/catalogue/catalogue/src/main/resources/application.properties @@ -0,0 +1 @@ +server.port = 5005 \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/npm-debug.log b/catalogue/catalogue/src/main/resources/npm-debug.log new file mode 100644 index 0000000..7726ae2 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/npm-debug.log @@ -0,0 +1,22 @@ +0 info it worked if it ends with ok +1 verbose cli [ 'E:\\Project\\angular2-essential-training\\catalogue\\catalogue\\temp\\node\\node.exe', +1 verbose cli 'E:\\Project\\angular2-essential-training\\catalogue\\catalogue\\temp\\node\\node_modules\\npm\\bin\\npm-cli.js', +1 verbose cli 'run', +1 verbose cli 'prod' ] +2 info using npm@3.9.5 +3 info using node@v8.9.0 +4 verbose stack Error: ENOENT: no such file or directory, open 'E:\Project\angular2-essential-training\catalogue\catalogue\src\main\resources\package.json' +5 verbose cwd E:\Project\angular2-essential-training\catalogue\catalogue\src\main\resources +6 error Windows_NT 10.0.16299 +7 error argv "E:\\Project\\angular2-essential-training\\catalogue\\catalogue\\temp\\node\\node.exe" "E:\\Project\\angular2-essential-training\\catalogue\\catalogue\\temp\\node\\node_modules\\npm\\bin\\npm-cli.js" "run" "prod" +8 error node v8.9.0 +9 error npm v3.9.5 +10 error path E:\Project\angular2-essential-training\catalogue\catalogue\src\main\resources\package.json +11 error code ENOENT +12 error errno -4058 +13 error syscall open +14 error enoent ENOENT: no such file or directory, open 'E:\Project\angular2-essential-training\catalogue\catalogue\src\main\resources\package.json' +15 error enoent ENOENT: no such file or directory, open 'E:\Project\angular2-essential-training\catalogue\catalogue\src\main\resources\package.json' +15 error enoent This is most likely not a problem with npm itself +15 error enoent and is related to npm not being able to find a file. +16 verbose exit [ -4058, true ] diff --git a/catalogue/catalogue/src/main/resources/public/3rdpartylicenses.txt b/catalogue/catalogue/src/main/resources/public/3rdpartylicenses.txt new file mode 100644 index 0000000..f4fe978 --- /dev/null +++ b/catalogue/catalogue/src/main/resources/public/3rdpartylicenses.txt @@ -0,0 +1,186 @@ +core-js@2.5.7 +MIT +Copyright (c) 2014-2018 Denis Pushkarev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +intl@1.2.5 +MIT +The MIT License (MIT) + +Copyright (c) 2013 Andy Earnshaw + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +------------------------------------------------------------------------------ +Contents of the `locale-data` directory are a modified form of the Unicode CLDR +data found at http://www.unicode.org/cldr/data/. It comes with the following +license. + +COPYRIGHT AND PERMISSION NOTICE + +Copyright (c) 1991-2013 Unicode, Inc. All rights reserved. Distributed under +the Terms of Use in http://www.unicode.org/copyright.html. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +the Unicode data files and any associated documentation (the "Data Files") or +Unicode software and any associated documentation (the "Software") to deal in +the Data Files or Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, and/or sell copies +of the Data Files or Software, and to permit persons to whom the Data Files or +Software are furnished to do so, provided that (a) the above copyright +notice(s) and this permission notice appear with all copies of the Data Files +or Software, (b) both the above copyright notice(s) and this permission notice +appear in associated documentation, and (c) there is clear notice in each +modified Data File or in the Software as well as in the documentation +associated with the Data File(s) or Software that the data or software has been +modified. + +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD +PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN +THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL +DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING +OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR +SOFTWARE. + +Except as contained in this notice, the name of a copyright holder shall not be +used in advertising or otherwise to promote the sale, use or other dealings in +these Data Files or Software without prior written authorization of the +copyright holder. + +Unicode and the Unicode logo are trademarks of Unicode, Inc. in the United +States and other countries. All third party trademarks referenced herein are +the property of their respective owners. + +zone.js@0.8.26 +MIT +The MIT License + +Copyright (c) 2016-2018 Google, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +lodash@4.17.10 +MIT +Copyright JS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + +webpack@4.8.3 +MIT +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/catalogue/catalogue/src/main/resources/public/assets/media/01.png b/catalogue/catalogue/src/main/resources/public/assets/media/01.png new file mode 100644 index 0000000..ae2671b Binary files /dev/null and b/catalogue/catalogue/src/main/resources/public/assets/media/01.png differ diff --git a/catalogue/catalogue/src/main/resources/public/assets/media/02.png b/catalogue/catalogue/src/main/resources/public/assets/media/02.png new file mode 100644 index 0000000..7ab30ba Binary files /dev/null and b/catalogue/catalogue/src/main/resources/public/assets/media/02.png differ diff --git a/catalogue/catalogue/src/main/resources/public/assets/media/03.png b/catalogue/catalogue/src/main/resources/public/assets/media/03.png new file mode 100644 index 0000000..2c9af84 Binary files /dev/null and b/catalogue/catalogue/src/main/resources/public/assets/media/03.png differ diff --git a/catalogue/catalogue/src/main/resources/public/assets/media/04.png b/catalogue/catalogue/src/main/resources/public/assets/media/04.png new file mode 100644 index 0000000..7b44937 Binary files /dev/null and b/catalogue/catalogue/src/main/resources/public/assets/media/04.png differ diff --git a/catalogue/catalogue/src/main/resources/public/assets/media/arrow-next.jpg b/catalogue/catalogue/src/main/resources/public/assets/media/arrow-next.jpg new file mode 100644 index 0000000..deba1ee Binary files /dev/null and b/catalogue/catalogue/src/main/resources/public/assets/media/arrow-next.jpg differ diff --git a/catalogue/catalogue/src/main/resources/public/assets/media/comingsoon.png b/catalogue/catalogue/src/main/resources/public/assets/media/comingsoon.png new file mode 100644 index 0000000..c2a21b4 Binary files /dev/null and b/catalogue/catalogue/src/main/resources/public/assets/media/comingsoon.png differ diff --git a/catalogue/catalogue/src/main/resources/public/assets/media/firebug1.png b/catalogue/catalogue/src/main/resources/public/assets/media/firebug1.png new file mode 100644 index 0000000..eab5b50 Binary files /dev/null and b/catalogue/catalogue/src/main/resources/public/assets/media/firebug1.png differ diff --git a/catalogue/catalogue/src/main/resources/public/assets/media/firebug2.png b/catalogue/catalogue/src/main/resources/public/assets/media/firebug2.png new file mode 100644 index 0000000..3b8c427 Binary files /dev/null and b/catalogue/catalogue/src/main/resources/public/assets/media/firebug2.png differ diff --git a/catalogue/catalogue/src/main/resources/public/assets/media/smalltall1.png b/catalogue/catalogue/src/main/resources/public/assets/media/smalltall1.png new file mode 100644 index 0000000..8ea790f Binary files /dev/null and b/catalogue/catalogue/src/main/resources/public/assets/media/smalltall1.png differ diff --git a/catalogue/catalogue/src/main/resources/public/assets/media/smalltall2.png b/catalogue/catalogue/src/main/resources/public/assets/media/smalltall2.png new file mode 100644 index 0000000..5b53e4a Binary files /dev/null and b/catalogue/catalogue/src/main/resources/public/assets/media/smalltall2.png differ diff --git a/catalogue/catalogue/src/main/resources/public/assets/media/stars.png b/catalogue/catalogue/src/main/resources/public/assets/media/stars.png new file mode 100644 index 0000000..b55a9b3 Binary files /dev/null and b/catalogue/catalogue/src/main/resources/public/assets/media/stars.png differ diff --git a/catalogue/catalogue/src/main/resources/public/favicon.ico b/catalogue/catalogue/src/main/resources/public/favicon.ico new file mode 100644 index 0000000..8081c7c Binary files /dev/null and b/catalogue/catalogue/src/main/resources/public/favicon.ico differ diff --git a/catalogue/catalogue/src/main/resources/public/index.html b/catalogue/catalogue/src/main/resources/public/index.html new file mode 100644 index 0000000..829079e --- /dev/null +++ b/catalogue/catalogue/src/main/resources/public/index.html @@ -0,0 +1,19 @@ + + + + + Angular6Training + + + + + + + + Loading... + + diff --git a/catalogue/catalogue/src/main/resources/public/main.84233e72babe31726f49.js b/catalogue/catalogue/src/main/resources/public/main.84233e72babe31726f49.js new file mode 100644 index 0000000..5b5f58a --- /dev/null +++ b/catalogue/catalogue/src/main/resources/public/main.84233e72babe31726f49.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{4:function(t,e,n){t.exports=n("zUnb")},LvDl:function(t,e,n){(function(t){var r;(function(){var o,i=200,u="Expected a function",a="__lodash_placeholder__",l=1,s=2,c=4,f=1,p=2,h=1,d=2,v=4,g=8,y=16,m=32,_=64,b=128,w=256,C=512,x=800,E=16,S=1/0,O=9007199254740991,T=1.7976931348623157e308,A=NaN,k=4294967295,P=k-1,I=k>>>1,M=[["ary",b],["bind",h],["bindKey",d],["curry",g],["curryRight",y],["flip",C],["partial",m],["partialRight",_],["rearg",w]],R="[object Arguments]",D="[object Array]",N="[object AsyncFunction]",V="[object Boolean]",j="[object Date]",L="[object DOMException]",F="[object Error]",U="[object Function]",H="[object GeneratorFunction]",z="[object Map]",B="[object Number]",q="[object Null]",G="[object Object]",W="[object Proxy]",Z="[object RegExp]",Q="[object Set]",$="[object String]",K="[object Symbol]",Y="[object Undefined]",J="[object WeakMap]",X="[object ArrayBuffer]",tt="[object DataView]",et="[object Float32Array]",nt="[object Float64Array]",rt="[object Int8Array]",ot="[object Int16Array]",it="[object Int32Array]",ut="[object Uint8Array]",at="[object Uint8ClampedArray]",lt="[object Uint16Array]",st="[object Uint32Array]",ct=/\b__p \+= '';/g,ft=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ht=/&(?:amp|lt|gt|quot|#39);/g,dt=/[&<>"']/g,vt=RegExp(ht.source),gt=RegExp(dt.source),yt=/<%-([\s\S]+?)%>/g,mt=/<%([\s\S]+?)%>/g,_t=/<%=([\s\S]+?)%>/g,bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wt=/^\w*$/,Ct=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xt=/[\\^$.*+?()[\]{}|]/g,Et=RegExp(xt.source),St=/^\s+|\s+$/g,Ot=/^\s+/,Tt=/\s+$/,At=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Pt=/,? & /,It=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mt=/\\(\\)?/g,Rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dt=/\w*$/,Nt=/^[-+]0x[0-9a-f]+$/i,Vt=/^0b[01]+$/i,jt=/^\[object .+?Constructor\]$/,Lt=/^0o[0-7]+$/i,Ft=/^(?:0|[1-9]\d*)$/,Ut=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ht=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,Bt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",qt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Gt="["+qt+"]",Wt="["+Bt+"]",Zt="\\d+",Qt="[a-z\\xdf-\\xf6\\xf8-\\xff]",$t="[^\\ud800-\\udfff"+qt+Zt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Kt="\\ud83c[\\udffb-\\udfff]",Yt="[^\\ud800-\\udfff]",Jt="(?:\\ud83c[\\udde6-\\uddff]){2}",Xt="[\\ud800-\\udbff][\\udc00-\\udfff]",te="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ee="(?:"+Qt+"|"+$t+")",ne="(?:"+te+"|"+$t+")",re="(?:"+Wt+"|"+Kt+")?",oe="[\\ufe0e\\ufe0f]?"+re+"(?:\\u200d(?:"+[Yt,Jt,Xt].join("|")+")[\\ufe0e\\ufe0f]?"+re+")*",ie="(?:"+["[\\u2700-\\u27bf]",Jt,Xt].join("|")+")"+oe,ue="(?:"+[Yt+Wt+"?",Wt,Jt,Xt,"[\\ud800-\\udfff]"].join("|")+")",ae=RegExp("['\u2019]","g"),le=RegExp(Wt,"g"),se=RegExp(Kt+"(?="+Kt+")|"+ue+oe,"g"),ce=RegExp([te+"?"+Qt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[Gt,te,"$"].join("|")+")",ne+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[Gt,te+ee,"$"].join("|")+")",te+"?"+ee+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",te+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zt,ie].join("|"),"g"),fe=RegExp("[\\u200d\\ud800-\\udfff"+Bt+"\\ufe0e\\ufe0f]"),pe=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,he=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],de=-1,ve={};ve[et]=ve[nt]=ve[rt]=ve[ot]=ve[it]=ve[ut]=ve[at]=ve[lt]=ve[st]=!0,ve[R]=ve[D]=ve[X]=ve[V]=ve[tt]=ve[j]=ve[F]=ve[U]=ve[z]=ve[B]=ve[G]=ve[Z]=ve[Q]=ve[$]=ve[J]=!1;var ge={};ge[R]=ge[D]=ge[X]=ge[tt]=ge[V]=ge[j]=ge[et]=ge[nt]=ge[rt]=ge[ot]=ge[it]=ge[z]=ge[B]=ge[G]=ge[Z]=ge[Q]=ge[$]=ge[K]=ge[ut]=ge[at]=ge[lt]=ge[st]=!0,ge[F]=ge[U]=ge[J]=!1;var ye={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},me=parseFloat,_e=parseInt,be="object"==typeof global&&global&&global.Object===Object&&global,we="object"==typeof self&&self&&self.Object===Object&&self,Ce=be||we||Function("return this")(),xe="object"==typeof e&&e&&!e.nodeType&&e,Ee=xe&&"object"==typeof t&&t&&!t.nodeType&&t,Se=Ee&&Ee.exports===xe,Oe=Se&&be.process,Te=function(){try{return Ee&&Ee.require&&Ee.require("util").types||Oe&&Oe.binding&&Oe.binding("util")}catch(t){}}(),Ae=Te&&Te.isArrayBuffer,ke=Te&&Te.isDate,Pe=Te&&Te.isMap,Ie=Te&&Te.isRegExp,Me=Te&&Te.isSet,Re=Te&&Te.isTypedArray;function De(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ne(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o-1}function Ue(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function sn(t,e){for(var n=t.length;n--&&$e(e,t[n],0)>-1;);return n}var cn=tn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),fn=tn({"&":"&","<":"<",">":">",'"':""","'":"'"});function pn(t){return"\\"+ye[t]}function hn(t){return fe.test(t)}function dn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function vn(t,e){return function(n){return t(e(n))}}function gn(t,e){for(var n=-1,r=t.length,o=0,i=[];++n",""":'"',"'":"'"}),xn=function t(e){var n,r=(e=null==e?Ce:xn.defaults(Ce.Object(),e,xn.pick(Ce,he))).Array,Bt=e.Date,qt=e.Error,Gt=e.Function,Wt=e.Math,Zt=e.Object,Qt=e.RegExp,$t=e.String,Kt=e.TypeError,Yt=r.prototype,Jt=Zt.prototype,Xt=e["__core-js_shared__"],te=Gt.prototype.toString,ee=Jt.hasOwnProperty,ne=0,re=(n=/[^.]+$/.exec(Xt&&Xt.keys&&Xt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",oe=Jt.toString,ie=te.call(Zt),ue=Ce._,se=Qt("^"+te.call(ee).replace(xt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fe=Se?e.Buffer:o,ye=e.Symbol,be=e.Uint8Array,we=fe?fe.allocUnsafe:o,xe=vn(Zt.getPrototypeOf,Zt),Ee=Zt.create,Oe=Jt.propertyIsEnumerable,Te=Yt.splice,We=ye?ye.isConcatSpreadable:o,tn=ye?ye.iterator:o,En=ye?ye.toStringTag:o,Sn=function(){try{var t=Ei(Zt,"defineProperty");return t({},"",{}),t}catch(t){}}(),On=e.clearTimeout!==Ce.clearTimeout&&e.clearTimeout,Tn=Bt&&Bt.now!==Ce.Date.now&&Bt.now,An=e.setTimeout!==Ce.setTimeout&&e.setTimeout,kn=Wt.ceil,Pn=Wt.floor,In=Zt.getOwnPropertySymbols,Mn=fe?fe.isBuffer:o,Rn=e.isFinite,Dn=Yt.join,Nn=vn(Zt.keys,Zt),Vn=Wt.max,jn=Wt.min,Ln=Bt.now,Fn=e.parseInt,Un=Wt.random,Hn=Yt.reverse,zn=Ei(e,"DataView"),Bn=Ei(e,"Map"),qn=Ei(e,"Promise"),Gn=Ei(e,"Set"),Wn=Ei(e,"WeakMap"),Zn=Ei(Zt,"create"),Qn=Wn&&new Wn,$n={},Kn=$i(zn),Yn=$i(Bn),Jn=$i(qn),Xn=$i(Gn),tr=$i(Wn),er=ye?ye.prototype:o,nr=er?er.valueOf:o,rr=er?er.toString:o;function or(t){if(pa(t)&&!ea(t)&&!(t instanceof lr)){if(t instanceof ar)return t;if(ee.call(t,"__wrapped__"))return Ki(t)}return new ar(t)}var ir=function(){function t(){}return function(e){if(!fa(e))return{};if(Ee)return Ee(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function ur(){}function ar(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function lr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function sr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Er(t,e,n,r,i,u){var a,f=e&l,p=e&s,h=e&c;if(n&&(a=i?n(t,r,i,u):n(t)),a!==o)return a;if(!fa(t))return t;var d=ea(t);if(d){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ee.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!f)return zo(t,a)}else{var v=Ti(t),g=v==U||v==H;if(ia(t))return Vo(t,f);if(v==G||v==R||g&&!i){if(a=p||g?{}:ki(t),!f)return p?function(t,e){return Bo(t,Oi(t),e)}(t,function(e,n){return e&&Bo(t,Ba(t),e)}(a)):function(t,e){return Bo(t,Si(t),e)}(t,br(a,t))}else{if(!ge[v])return i?t:{};a=function(t,e,n){var r,o,i=t.constructor;switch(e){case X:return jo(t);case V:case j:return new i(+t);case tt:return function(t,e){var n=e?jo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case et:case nt:case rt:case ot:case it:case ut:case at:case lt:case st:return Lo(t,n);case z:return new i;case B:case $:return new i(t);case Z:return(o=new(r=t).constructor(r.source,Dt.exec(r))).lastIndex=r.lastIndex,o;case Q:return new i;case K:return nr?Zt(nr.call(t)):{}}}(t,v,f)}}u||(u=new hr);var y=u.get(t);if(y)return y;if(u.set(t,a),ya(t))return t.forEach(function(r){a.add(Er(r,e,n,r,t,u))}),a;if(ha(t))return t.forEach(function(r,o){a.set(o,Er(r,e,n,o,t,u))}),a;var m=d?o:(h?p?yi:gi:p?Ba:za)(t);return Ve(m||t,function(r,o){m&&(r=t[o=r]),yr(a,o,Er(r,e,n,o,t,u))}),a}function Sr(t,e,n){var r=n.length;if(null==t)return!r;for(t=Zt(t);r--;){var i=n[r],u=t[i];if(u===o&&!(i in t)||!(0,e[i])(u))return!1}return!0}function Or(t,e,n){if("function"!=typeof t)throw new Kt(u);return zi(function(){t.apply(o,n)},e)}function Tr(t,e,n,r){var o=-1,u=Fe,a=!0,l=t.length,s=[],c=e.length;if(!l)return s;n&&(e=He(e,on(n))),r?(u=Ue,a=!1):e.length>=i&&(u=an,a=!1,e=new pr(e));t:for(;++o-1},cr.prototype.set=function(t,e){var n=this.__data__,r=mr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},fr.prototype.clear=function(){this.size=0,this.__data__={hash:new sr,map:new(Bn||cr),string:new sr}},fr.prototype.delete=function(t){var e=Ci(this,t).delete(t);return this.size-=e?1:0,e},fr.prototype.get=function(t){return Ci(this,t).get(t)},fr.prototype.has=function(t){return Ci(this,t).has(t)},fr.prototype.set=function(t,e){var n=Ci(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},pr.prototype.add=pr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},pr.prototype.has=function(t){return this.__data__.has(t)},hr.prototype.clear=function(){this.__data__=new cr,this.size=0},hr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},hr.prototype.get=function(t){return this.__data__.get(t)},hr.prototype.has=function(t){return this.__data__.has(t)},hr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof cr){var r=n.__data__;if(!Bn||r.length0&&n(a)?e>1?Rr(a,e-1,n,r,o):ze(o,a):r||(o[o.length]=a)}return o}var Dr=Zo(),Nr=Zo(!0);function Vr(t,e){return t&&Dr(t,e,za)}function jr(t,e){return t&&Nr(t,e,za)}function Lr(t,e){return Le(e,function(e){return la(t[e])})}function Fr(t,e){for(var n=0,r=(e=Mo(e,t)).length;null!=t&&ne}function Br(t,e){return null!=t&&ee.call(t,e)}function qr(t,e){return null!=t&&e in Zt(t)}function Gr(t,e,n){for(var i=n?Ue:Fe,u=t[0].length,a=t.length,l=a,s=r(a),c=1/0,f=[];l--;){var p=t[l];l&&e&&(p=He(p,on(e))),c=jn(p.length,c),s[l]=!n&&(e||u>=120&&p.length>=120)?new pr(l&&p):o}p=t[0];var h=-1,d=s[0];t:for(;++h=a?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)});r--;)t[r]=t[r].value;return t}(to(t,function(t,n,o){return{criteria:He(e,function(e){return e(t)}),index:++r,value:t}}))}function uo(t,e,n){for(var r=-1,o=e.length,i={};++r-1;)a!==t&&Te.call(a,l,1),Te.call(t,l,1);return t}function lo(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Ii(o)?Te.call(t,o,1):Eo(t,o)}}return t}function so(t,e){return t+Pn(Un()*(e-t+1))}function co(t,e){var n="";if(!t||e<1||e>O)return n;do{e%2&&(n+=t),(e=Pn(e/2))&&(t+=t)}while(e);return n}function fo(t,e){return Bi(Fi(t,e,dl),t+"")}function po(t,e,n,r){if(!fa(t))return t;for(var i=-1,u=(e=Mo(e,t)).length,a=u-1,l=t;null!=l&&++ii?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var u=r(i);++o>>1,u=t[i];null!==u&&!_a(u)&&(n?u<=e:u=i){var c=e?null:li(t);if(c)return mn(c);a=!1,o=an,s=new pr}else s=e?[]:l;t:for(;++r=r?t:go(t,e,n)}var No=On||function(t){return Ce.clearTimeout(t)};function Vo(t,e){if(e)return t.slice();var n=t.length,r=we?we(n):new t.constructor(n);return t.copy(r),r}function jo(t){var e=new t.constructor(t.byteLength);return new be(e).set(new be(t)),e}function Lo(t,e){var n=e?jo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Fo(t,e){if(t!==e){var n=t!==o,r=null===t,i=t==t,u=_a(t),a=e!==o,l=null===e,s=e==e,c=_a(e);if(!l&&!c&&!u&&t>e||u&&a&&s&&!l&&!c||r&&a&&s||!n&&s||!i)return 1;if(!r&&!u&&!c&&t1?n[i-1]:o,a=i>2?n[2]:o;for(u=t.length>3&&"function"==typeof u?(i--,u):o,a&&Mi(n[0],n[1],a)&&(u=i<3?o:u,i=1),e=Zt(e);++r-1?i[u?e[a]:a]:o}}function Jo(t){return vi(function(e){var n=e.length,r=n,i=ar.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new Kt(u);if(i&&!l&&"wrapper"==_i(a))var l=new ar([],!0)}for(r=l?r:n;++r1&&g.reverse(),p&&cl))return!1;var c=u.get(t);if(c&&u.get(e))return c==e;var h=-1,d=!0,v=n&p?new pr:o;for(u.set(t,e),u.set(e,t);++h-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(At,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ve(M,function(n){var r="_."+n[0];e&n[1]&&!Fe(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(kt);return e?e[1].split(Pt):[]}(r),n)))}function Gi(t){var e=0,n=0;return function(){var r=Ln(),i=E-(r-n);if(n=r,i>0){if(++e>=x)return arguments[0]}else e=0;return t.apply(o,arguments)}}function Wi(t,e){var n=-1,r=t.length,i=r-1;for(e=e===o?r:e;++n1?t[e-1]:o;return gu(t,n="function"==typeof n?(t.pop(),n):o)});function xu(t){var e=or(t);return e.__chain__=!0,e}function Eu(t,e){return e(t)}var Su=vi(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Cr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof lr&&Ii(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Eu,args:[i],thisArg:o}),new ar(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(o),t})):this.thru(i)}),Ou=qo(function(t,e,n){ee.call(t,n)?++t[n]:wr(t,n,1)}),Tu=Yo(tu),Au=Yo(eu);function ku(t,e){return(ea(t)?Ve:Ar)(t,wi(e,3))}function Pu(t,e){return(ea(t)?function(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}:kr)(t,wi(e,3))}var Iu=qo(function(t,e,n){ee.call(t,n)?t[n].push(e):wr(t,n,[e])}),Mu=fo(function(t,e,n){var o=-1,i="function"==typeof e,u=ra(t)?r(t.length):[];return Ar(t,function(t){u[++o]=i?De(e,t,n):Wr(t,e,n)}),u}),Ru=qo(function(t,e,n){wr(t,n,e)});function Du(t,e){return(ea(t)?He:to)(t,wi(e,3))}var Nu=qo(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),Vu=fo(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Mi(t,e[0],e[1])?e=[]:n>2&&Mi(e[0],e[1],e[2])&&(e=[e[0]]),io(t,Rr(e,1),[])}),ju=Tn||function(){return Ce.Date.now()};function Lu(t,e,n){return e=n?o:e,ci(t,b,o,o,o,o,e=t&&null==e?t.length:e)}function Fu(t,e){var n;if("function"!=typeof e)throw new Kt(u);return t=Sa(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var Uu=fo(function(t,e,n){var r=h;if(n.length){var o=gn(n,bi(Uu));r|=m}return ci(t,r,e,n,o)}),Hu=fo(function(t,e,n){var r=h|d;if(n.length){var o=gn(n,bi(Hu));r|=m}return ci(e,r,t,n,o)});function zu(t,e,n){var r,i,a,l,s,c,f=0,p=!1,h=!1,d=!0;if("function"!=typeof t)throw new Kt(u);function v(e){var n=r,u=i;return r=i=o,f=e,l=t.apply(u,n)}function g(t){var n=t-c;return c===o||n>=e||n<0||h&&t-f>=a}function y(){var t=ju();if(g(t))return m(t);s=zi(y,function(t){var n=e-(t-c);return h?jn(n,a-(t-f)):n}(t))}function m(t){return s=o,d&&r?v(t):(r=i=o,l)}function _(){var t=ju(),n=g(t);if(r=arguments,i=this,c=t,n){if(s===o)return function(t){return f=t,s=zi(y,e),p?v(t):l}(c);if(h)return s=zi(y,e),v(c)}return s===o&&(s=zi(y,e)),l}return e=Ta(e)||0,fa(n)&&(p=!!n.leading,a=(h="maxWait"in n)?Vn(Ta(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d),_.cancel=function(){s!==o&&No(s),f=0,r=c=i=s=o},_.flush=function(){return s===o?l:m(ju())},_}var Bu=fo(function(t,e){return Or(t,1,e)}),qu=fo(function(t,e,n){return Or(t,Ta(e)||0,n)});function Gu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Kt(u);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(Gu.Cache||fr),n}function Wu(t){if("function"!=typeof t)throw new Kt(u);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Gu.Cache=fr;var Zu=Ro(function(t,e){var n=(e=1==e.length&&ea(e[0])?He(e[0],on(wi())):He(Rr(e,1),on(wi()))).length;return fo(function(r){for(var o=-1,i=jn(r.length,n);++o=e}),ta=Zr(function(){return arguments}())?Zr:function(t){return pa(t)&&ee.call(t,"callee")&&!Oe.call(t,"callee")},ea=r.isArray,na=Ae?on(Ae):function(t){return pa(t)&&Hr(t)==X};function ra(t){return null!=t&&ca(t.length)&&!la(t)}function oa(t){return pa(t)&&ra(t)}var ia=Mn||Tl,ua=ke?on(ke):function(t){return pa(t)&&Hr(t)==j};function aa(t){if(!pa(t))return!1;var e=Hr(t);return e==F||e==L||"string"==typeof t.message&&"string"==typeof t.name&&!va(t)}function la(t){if(!fa(t))return!1;var e=Hr(t);return e==U||e==H||e==N||e==W}function sa(t){return"number"==typeof t&&t==Sa(t)}function ca(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=O}function fa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function pa(t){return null!=t&&"object"==typeof t}var ha=Pe?on(Pe):function(t){return pa(t)&&Ti(t)==z};function da(t){return"number"==typeof t||pa(t)&&Hr(t)==B}function va(t){if(!pa(t)||Hr(t)!=G)return!1;var e=xe(t);if(null===e)return!0;var n=ee.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&te.call(n)==ie}var ga=Ie?on(Ie):function(t){return pa(t)&&Hr(t)==Z},ya=Me?on(Me):function(t){return pa(t)&&Ti(t)==Q};function ma(t){return"string"==typeof t||!ea(t)&&pa(t)&&Hr(t)==$}function _a(t){return"symbol"==typeof t||pa(t)&&Hr(t)==K}var ba=Re?on(Re):function(t){return pa(t)&&ca(t.length)&&!!ve[Hr(t)]},wa=ii(Xr),Ca=ii(function(t,e){return t<=e});function xa(t){if(!t)return[];if(ra(t))return ma(t)?wn(t):zo(t);if(tn&&t[tn])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[tn]());var e=Ti(t);return(e==z?dn:e==Q?mn:Ya)(t)}function Ea(t){return t?(t=Ta(t))===S||t===-S?(t<0?-1:1)*T:t==t?t:0:0===t?t:0}function Sa(t){var e=Ea(t),n=e%1;return e==e?n?e-n:e:0}function Oa(t){return t?xr(Sa(t),0,k):0}function Ta(t){if("number"==typeof t)return t;if(_a(t))return A;if(fa(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=fa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(St,"");var n=Vt.test(t);return n||Lt.test(t)?_e(t.slice(2),n?2:8):Nt.test(t)?A:+t}function Aa(t){return Bo(t,Ba(t))}function ka(t){return null==t?"":Co(t)}var Pa=Go(function(t,e){if(Vi(e)||ra(e))Bo(e,za(e),t);else for(var n in e)ee.call(e,n)&&yr(t,n,e[n])}),Ia=Go(function(t,e){Bo(e,Ba(e),t)}),Ma=Go(function(t,e,n,r){Bo(e,Ba(e),t,r)}),Ra=Go(function(t,e,n,r){Bo(e,za(e),t,r)}),Da=vi(Cr),Na=fo(function(t,e){t=Zt(t);var n=-1,r=e.length,i=r>2?e[2]:o;for(i&&Mi(e[0],e[1],i)&&(r=1);++n1),e}),Bo(t,yi(t),n),r&&(n=Er(n,l|s|c,hi));for(var o=e.length;o--;)Eo(n,e[o]);return n}),Za=vi(function(t,e){return null==t?{}:function(t,e){return uo(t,e,function(e,n){return La(t,n)})}(t,e)});function Qa(t,e){if(null==t)return{};var n=He(yi(t),function(t){return[t]});return e=wi(e),uo(t,n,function(t,n){return e(t,n[0])})}var $a=si(za),Ka=si(Ba);function Ya(t){return null==t?[]:un(t,za(t))}var Ja=$o(function(t,e,n){return e=e.toLowerCase(),t+(n?Xa(e):e)});function Xa(t){return al(ka(t).toLowerCase())}function tl(t){return(t=ka(t))&&t.replace(Ut,cn).replace(le,"")}var el=$o(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),nl=$o(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),rl=Qo("toLowerCase"),ol=$o(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),il=$o(function(t,e,n){return t+(n?" ":"")+al(e)}),ul=$o(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),al=Qo("toUpperCase");function ll(t,e,n){return t=ka(t),(e=n?o:e)===o?function(t){return pe.test(t)}(t)?function(t){return t.match(ce)||[]}(t):function(t){return t.match(It)||[]}(t):t.match(e)||[]}var sl=fo(function(t,e){try{return De(t,o,e)}catch(t){return aa(t)?t:new qt(t)}}),cl=vi(function(t,e){return Ve(e,function(e){e=Qi(e),wr(t,e,Uu(t[e],t))}),t});function fl(t){return function(){return t}}var pl=Jo(),hl=Jo(!0);function dl(t){return t}function vl(t){return Yr("function"==typeof t?t:Er(t,l))}var gl=fo(function(t,e){return function(n){return Wr(n,t,e)}}),yl=fo(function(t,e){return function(n){return Wr(t,n,e)}});function ml(t,e,n){var r=za(e),o=Lr(e,r);null!=n||fa(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=Lr(e,za(e)));var i=!(fa(n)&&"chain"in n&&!n.chain),u=la(t);return Ve(o,function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=zo(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,ze([this.value()],arguments))})}),t}function _l(){}var bl=ni(He),wl=ni(je),Cl=ni(Ge);function xl(t){return Ri(t)?Xe(Qi(t)):function(t){return function(e){return Fr(e,t)}}(t)}var El=oi(),Sl=oi(!0);function Ol(){return[]}function Tl(){return!1}var Al,kl=ei(function(t,e){return t+e},0),Pl=ai("ceil"),Il=ei(function(t,e){return t/e},1),Ml=ai("floor"),Rl=ei(function(t,e){return t*e},1),Dl=ai("round"),Nl=ei(function(t,e){return t-e},0);return or.after=function(t,e){if("function"!=typeof e)throw new Kt(u);return t=Sa(t),function(){if(--t<1)return e.apply(this,arguments)}},or.ary=Lu,or.assign=Pa,or.assignIn=Ia,or.assignInWith=Ma,or.assignWith=Ra,or.at=Da,or.before=Fu,or.bind=Uu,or.bindAll=cl,or.bindKey=Hu,or.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return ea(t)?t:[t]},or.chain=xu,or.chunk=function(t,e,n){e=(n?Mi(t,e,n):e===o)?1:Vn(Sa(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var u=0,a=0,l=r(kn(i/e));ui?0:i+n),(r=r===o||r>i?i:Sa(r))<0&&(r+=i),r=n>r?0:Oa(r);n>>0)?(t=ka(t))&&("string"==typeof e||null!=e&&!ga(e))&&!(e=Co(e))&&hn(t)?Do(wn(t),0,n):t.split(e,n):[]},or.spread=function(t,e){if("function"!=typeof t)throw new Kt(u);return e=null==e?0:Vn(Sa(e),0),fo(function(n){var r=n[e],o=Do(n,0,e);return r&&ze(o,r),De(t,this,o)})},or.tail=function(t){var e=null==t?0:t.length;return e?go(t,1,e):[]},or.take=function(t,e,n){return t&&t.length?go(t,0,(e=n||e===o?1:Sa(e))<0?0:e):[]},or.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?go(t,(e=r-(e=n||e===o?1:Sa(e)))<0?0:e,r):[]},or.takeRightWhile=function(t,e){return t&&t.length?Oo(t,wi(e,3),!1,!0):[]},or.takeWhile=function(t,e){return t&&t.length?Oo(t,wi(e,3)):[]},or.tap=function(t,e){return e(t),t},or.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new Kt(u);return fa(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),zu(t,e,{leading:r,maxWait:e,trailing:o})},or.thru=Eu,or.toArray=xa,or.toPairs=$a,or.toPairsIn=Ka,or.toPath=function(t){return ea(t)?He(t,Qi):_a(t)?[t]:zo(Zi(ka(t)))},or.toPlainObject=Aa,or.transform=function(t,e,n){var r=ea(t),o=r||ia(t)||ba(t);if(e=wi(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:fa(t)&&la(i)?ir(xe(t)):{}}return(o?Ve:Vr)(t,function(t,r,o){return e(n,t,r,o)}),n},or.unary=function(t){return Lu(t,1)},or.union=pu,or.unionBy=hu,or.unionWith=du,or.uniq=function(t){return t&&t.length?xo(t):[]},or.uniqBy=function(t,e){return t&&t.length?xo(t,wi(e,2)):[]},or.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?xo(t,o,e):[]},or.unset=function(t,e){return null==t||Eo(t,e)},or.unzip=vu,or.unzipWith=gu,or.update=function(t,e,n){return null==t?t:So(t,e,Io(n))},or.updateWith=function(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:So(t,e,Io(n),r)},or.values=Ya,or.valuesIn=function(t){return null==t?[]:un(t,Ba(t))},or.without=yu,or.words=ll,or.wrap=function(t,e){return Qu(Io(e),t)},or.xor=mu,or.xorBy=_u,or.xorWith=bu,or.zip=wu,or.zipObject=function(t,e){return ko(t||[],e||[],yr)},or.zipObjectDeep=function(t,e){return ko(t||[],e||[],po)},or.zipWith=Cu,or.entries=$a,or.entriesIn=Ka,or.extend=Ia,or.extendWith=Ma,ml(or,or),or.add=kl,or.attempt=sl,or.camelCase=Ja,or.capitalize=Xa,or.ceil=Pl,or.clamp=function(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=(n=Ta(n))==n?n:0),e!==o&&(e=(e=Ta(e))==e?e:0),xr(Ta(t),e,n)},or.clone=function(t){return Er(t,c)},or.cloneDeep=function(t){return Er(t,l|c)},or.cloneDeepWith=function(t,e){return Er(t,l|c,e="function"==typeof e?e:o)},or.cloneWith=function(t,e){return Er(t,c,e="function"==typeof e?e:o)},or.conformsTo=function(t,e){return null==e||Sr(t,e,za(e))},or.deburr=tl,or.defaultTo=function(t,e){return null==t||t!=t?e:t},or.divide=Il,or.endsWith=function(t,e,n){t=ka(t),e=Co(e);var r=t.length,i=n=n===o?r:xr(Sa(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},or.eq=Yu,or.escape=function(t){return(t=ka(t))&>.test(t)?t.replace(dt,fn):t},or.escapeRegExp=function(t){return(t=ka(t))&&Et.test(t)?t.replace(xt,"\\$&"):t},or.every=function(t,e,n){var r=ea(t)?je:Pr;return n&&Mi(t,e,n)&&(e=o),r(t,wi(e,3))},or.find=Tu,or.findIndex=tu,or.findKey=function(t,e){return Ze(t,wi(e,3),Vr)},or.findLast=Au,or.findLastIndex=eu,or.findLastKey=function(t,e){return Ze(t,wi(e,3),jr)},or.floor=Ml,or.forEach=ku,or.forEachRight=Pu,or.forIn=function(t,e){return null==t?t:Dr(t,wi(e,3),Ba)},or.forInRight=function(t,e){return null==t?t:Nr(t,wi(e,3),Ba)},or.forOwn=function(t,e){return t&&Vr(t,wi(e,3))},or.forOwnRight=function(t,e){return t&&jr(t,wi(e,3))},or.get=ja,or.gt=Ju,or.gte=Xu,or.has=function(t,e){return null!=t&&Ai(t,e,Br)},or.hasIn=La,or.head=ru,or.identity=dl,or.includes=function(t,e,n,r){t=ra(t)?t:Ya(t),n=n&&!r?Sa(n):0;var o=t.length;return n<0&&(n=Vn(o+n,0)),ma(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&$e(t,e,n)>-1},or.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Sa(n);return o<0&&(o=Vn(r+o,0)),$e(t,e,o)},or.inRange=function(t,e,n){return e=Ea(e),n===o?(n=e,e=0):n=Ea(n),function(t,e,n){return t>=jn(e,n)&&t=-O&&t<=O},or.isSet=ya,or.isString=ma,or.isSymbol=_a,or.isTypedArray=ba,or.isUndefined=function(t){return t===o},or.isWeakMap=function(t){return pa(t)&&Ti(t)==J},or.isWeakSet=function(t){return pa(t)&&"[object WeakSet]"==Hr(t)},or.join=function(t,e){return null==t?"":Dn.call(t,e)},or.kebabCase=el,or.last=au,or.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=Sa(n))<0?Vn(r+i,0):jn(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):Qe(t,Ye,i,!0)},or.lowerCase=nl,or.lowerFirst=rl,or.lt=wa,or.lte=Ca,or.max=function(t){return t&&t.length?Ir(t,dl,zr):o},or.maxBy=function(t,e){return t&&t.length?Ir(t,wi(e,2),zr):o},or.mean=function(t){return Je(t,dl)},or.meanBy=function(t,e){return Je(t,wi(e,2))},or.min=function(t){return t&&t.length?Ir(t,dl,Xr):o},or.minBy=function(t,e){return t&&t.length?Ir(t,wi(e,2),Xr):o},or.stubArray=Ol,or.stubFalse=Tl,or.stubObject=function(){return{}},or.stubString=function(){return""},or.stubTrue=function(){return!0},or.multiply=Rl,or.nth=function(t,e){return t&&t.length?oo(t,Sa(e)):o},or.noConflict=function(){return Ce._===this&&(Ce._=ue),this},or.noop=_l,or.now=ju,or.pad=function(t,e,n){t=ka(t);var r=(e=Sa(e))?bn(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return ri(Pn(o),n)+t+ri(kn(o),n)},or.padEnd=function(t,e,n){t=ka(t);var r=(e=Sa(e))?bn(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Un();return jn(t+i*(e-t+me("1e-"+((i+"").length-1))),e)}return so(t,e)},or.reduce=function(t,e,n){var r=ea(t)?Be:en,o=arguments.length<3;return r(t,wi(e,4),n,o,Ar)},or.reduceRight=function(t,e,n){var r=ea(t)?qe:en,o=arguments.length<3;return r(t,wi(e,4),n,o,kr)},or.repeat=function(t,e,n){return e=(n?Mi(t,e,n):e===o)?1:Sa(e),co(ka(t),e)},or.replace=function(){var t=arguments,e=ka(t[0]);return t.length<3?e:e.replace(t[1],t[2])},or.result=function(t,e,n){var r=-1,i=(e=Mo(e,t)).length;for(i||(i=1,t=o);++rO)return[];var n=k,r=jn(t,k);e=wi(e),t-=k;for(var o=rn(r,e);++n=u)return t;var l=n-bn(r);if(l<1)return r;var s=a?Do(a,0,l).join(""):t.slice(0,l);if(i===o)return s+r;if(a&&(l+=s.length-l),ga(i)){if(t.slice(l).search(i)){var c,f=s;for(i.global||(i=Qt(i.source,ka(Dt.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var p=c.index;s=s.slice(0,p===o?l:p)}}else if(t.indexOf(Co(i),l)!=l){var h=s.lastIndexOf(i);h>-1&&(s=s.slice(0,h))}return s+r},or.unescape=function(t){return(t=ka(t))&&vt.test(t)?t.replace(ht,Cn):t},or.uniqueId=function(t){var e=++ne;return ka(t)+e},or.upperCase=ul,or.upperFirst=al,or.each=ku,or.eachRight=Pu,or.first=ru,ml(or,(Al={},Vr(or,function(t,e){ee.call(or.prototype,e)||(Al[e]=t)}),Al),{chain:!1}),or.VERSION="4.17.10",Ve(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){or[t].placeholder=or}),Ve(["drop","take"],function(t,e){lr.prototype[t]=function(n){n=n===o?1:Vn(Sa(n),0);var r=this.__filtered__&&!e?new lr(this):this.clone();return r.__filtered__?r.__takeCount__=jn(n,r.__takeCount__):r.__views__.push({size:jn(n,k),type:t+(r.__dir__<0?"Right":"")}),r},lr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Ve(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;lr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:wi(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Ve(["head","last"],function(t,e){var n="take"+(e?"Right":"");lr.prototype[t]=function(){return this[n](1).value()[0]}}),Ve(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");lr.prototype[t]=function(){return this.__filtered__?new lr(this):this[n](1)}}),lr.prototype.compact=function(){return this.filter(dl)},lr.prototype.find=function(t){return this.filter(t).head()},lr.prototype.findLast=function(t){return this.reverse().find(t)},lr.prototype.invokeMap=fo(function(t,e){return"function"==typeof t?new lr(this):this.map(function(n){return Wr(n,t,e)})}),lr.prototype.reject=function(t){return this.filter(Wu(wi(t)))},lr.prototype.slice=function(t,e){t=Sa(t);var n=this;return n.__filtered__&&(t>0||e<0)?new lr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(n=(e=Sa(e))<0?n.dropRight(-e):n.take(e-t)),n)},lr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},lr.prototype.toArray=function(){return this.take(k)},Vr(lr.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=or[r?"take"+("last"==e?"Right":""):e],u=r||/^find/.test(e);i&&(or.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,l=e instanceof lr,s=a[0],c=l||ea(e),f=function(t){var e=i.apply(or,ze([t],a));return r&&p?e[0]:e};c&&n&&"function"==typeof s&&1!=s.length&&(l=c=!1);var p=this.__chain__,h=u&&!p,d=l&&!this.__actions__.length;if(!u&&c){e=d?e:new lr(this);var v=t.apply(e,a);return v.__actions__.push({func:Eu,args:[f],thisArg:o}),new ar(v,p)}return h&&d?t.apply(this,a):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})}),Ve(["pop","push","shift","sort","splice","unshift"],function(t){var e=Yt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);or.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(ea(o)?o:[],t)}return this[n](function(n){return e.apply(ea(n)?n:[],t)})}}),Vr(lr.prototype,function(t,e){var n=or[e];if(n){var r=n.name+"";($n[r]||($n[r]=[])).push({name:e,func:n})}}),$n[Xo(o,d).name]=[{name:"wrapper",func:o}],lr.prototype.clone=function(){var t=new lr(this.__wrapped__);return t.__actions__=zo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=zo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=zo(this.__views__),t},lr.prototype.reverse=function(){if(this.__filtered__){var t=new lr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},lr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=ea(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},or.prototype.plant=function(t){for(var e,n=this;n instanceof ur;){var r=Ki(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},or.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof lr){var e=t;return this.__actions__.length&&(e=new lr(this)),(e=e.reverse()).__actions__.push({func:Eu,args:[fu],thisArg:o}),new ar(e,this.__chain__)}return this.thru(fu)},or.prototype.toJSON=or.prototype.valueOf=or.prototype.value=function(){return To(this.__wrapped__,this.__actions__)},or.prototype.first=or.prototype.head,tn&&(or.prototype[tn]=function(){return this}),or}();Ce._=xn,(r=(function(){return xn}).call(e,n,e,t))===o||(t.exports=r)}).call(this)}).call(this,n("YuTi")(t))},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error('Cannot find module "'+t+'".');throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},zUnb:function(t,e,n){"use strict";n.r(e);var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}function l(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(B);function J(t){return t}function X(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),$(J,t)}var tt=function(t){function e(){var n=t.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,e.prototype),n}return o(e,t),e}(Error),et=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return o(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(w),nt=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o(e,t),e}(E),rt=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype[x]=function(){return new nt(this)},e.prototype.lift=function(t){var e=new ot(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new tt;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(E),lt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new w).add(this.source.subscribe(new ct(this.getSubject(),this))),t.closed?(this._connection=null,t=w.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return it()(this)},e}(P).prototype,st={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:lt._subscribe},_isComplete:{value:lt._isComplete,writable:!0},getSubject:{value:lt.getSubject},connect:{value:lt.connect},refCount:{value:lt.refCount}},ct=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(nt);function ft(){return new rt}function pt(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var ht=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?pt({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),dt="__parameters__";function vt(t,e,n){var r=function(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var u=e[i];o.push(i+":"+("string"==typeof u?JSON.stringify(u):Ot(u)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Gt,"\n ")}function Kt(t,e){return new Error($t(t,e))}var Yt=void 0;function Jt(t){var e=Yt;return Yt=t,e}String;var Xt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t}({}),te=new function(t){this.full="6.0.3",this.major="6.0.3".split(".")[0],this.minor="6.0.3".split(".")[1],this.patch="6.0.3".split(".").slice(2).join(".")}("6.0.3"),ee="ngDebugContext",ne="ngOriginalError",re="ngErrorLogger";function oe(t){return t[ee]}function ie(t){return t[ne]}function ue(t){for(var e=[],n=1;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Qe=function(){function t(){this._applications=new Map,$e.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),$e.findTestabilityInTree(this,t,e)},t.ctorParameters=function(){return[]},t}(),$e=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Ke=!0,Ye=!1,Je=new ht("AllowMultipleToken");function Xe(){return Ye=!0,Ke}var tn=function(t,e){this.name=t,this.token=e};function en(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new ht(r);return function(e){void 0===e&&(e=[]);var i=nn();if(!i||i.injector.get(Je,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var u=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(Ge&&!Ge.destroyed&&!Ge.injector.get(Je,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ge=t.get(rn);var e=t.get(ge,null);e&&e.forEach(function(t){return t()})}(jt.create({providers:u,name:r}))}return function(t){var e=nn();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function nn(){return Ge&&!Ge.destroyed?Ge:null}var rn=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new We:("zone.js"===n?void 0:n)||new Fe({enableLongStackTrace:Xe()}),i=[{provide:Fe,useValue:o}];return o.run(function(){var e=jt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),u=n.injector.get(ae,null);if(!u)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return an(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){u.handleError(t)}})}),function(t,e,o){try{var i=((u=n.injector.get(pe)).runInitializers(),u.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return se(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var u}(u,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(Ce),o=on({},e);return r.createCompiler([o]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,o)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(un);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Ot(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function on(t,e){return Array.isArray(e)?e.reduce(on,t):i({},t,e)}var un=function(){function t(t,e,n,r,o,i){var u=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Xe(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var a=new P(function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){t.next(u._stable),t.complete()})}),l=new P(function(t){var e;u._zone.runOutsideAngular(function(){e=u._zone.onStable.subscribe(function(){Fe.assertNotInAngularZone(),Et(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){Fe.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof P?t[0]:X(n)(Z(t,r))}(a,l.pipe(function(t){return it()((e=ft,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,st);return r.source=t,r.subjectFactory=n,r})(t));var e}))}return t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof xe?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof Ie?null:this._injector.get(Me),i=n.create(jt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var u=i.injector.get(Ze,null);return u&&i.injector.get(Qe).registerApplication(i.location.nativeElement,u),this._loadComponent(i),Xe()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,je(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;an(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(me,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),an(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Ve("ApplicationRef#tick()"),t}();function an(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var ln=function(){},sn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),cn=function(){},fn=function(t){this.nativeElement=t},pn=function(){},hn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Le,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[xt()]=function(){return this._results[xt()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),dn=function(){},vn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},gn=function(){function t(t,e){this._compiler=t,this._config=e||vn}return t.prototype.load=function(t){return this._compiler instanceof we?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=a(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return yn(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=a(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return yn(t,r,o)})},t}();function yn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var mn=function(){},_n=function(){},bn=function(){},wn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Cn?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Cn=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,l([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof Cn&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof Cn&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Cn&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(wn),xn=new Map;function En(t){return xn.get(t)||null}function Sn(t){xn.set(t.nativeNode,t)}function On(t,e){var n=kn(t),r=kn(e);return n&&r?function(t,e,n){for(var r=t[xt()](),o=e[xt()]();;){var i=r.next(),u=o.next();if(i.done&&u.done)return!0;if(i.done||u.done)return!1;if(!n(i.value,u.value))return!1}}(t,e,On):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||St(t,e)}var Tn=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),An=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function kn(t){return!!Pn(t)&&(Array.isArray(t)||!(t instanceof Map)&&xt()in t)}function Pn(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var In=function(){function t(){}return t.prototype.supports=function(t){return kn(t)},t.prototype.create=function(t){return new Rn(t)},t}(),Mn=function(t,e){return e},Rn=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Mn}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

    ',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();sr.hasOwnProperty(e)&&!ir.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(gr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),dr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vr=/([^\#-~ |!])/g;function gr(t){return t.replace(/&/g,"&").replace(dr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(vr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function yr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var mr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),_r=/^url\(([^)]+)\)$/,br=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),wr=function(){};function Cr(t,e,n){var r=t.state,o=1792&r;return o===e?(t.state=-1793&r|n,t.initIndex=-1,!0):o===n}function xr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Er(t,e){return t.nodes[e]}function Sr(t,e){return t.nodes[e]}function Or(t,e){return t.nodes[e]}function Tr(t,e){return t.nodes[e]}function Ar(t,e){return t.nodes[e]}var kr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Pr(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return Ir(n,e),n}(o,t)}function Ir(t,e){t[ee]=e,t[re]=e.logError.bind(e)}function Mr(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Rr=function(){},Dr=new Map;function Nr(t){var e=Dr.get(t);return e||(e=Ot(t)+"_"+Dr.size,Dr.set(t,e)),e}function Vr(t,e,n,r){if(Tn.isWrapped(r)){r=Tn.unwrap(r);var o=t.def.nodes[e].bindingIndex+n,i=Tn.unwrap(t.oldValues[o]);t.oldValues[o]=new Tn(i)}return r}var jr="$$undefined",Lr="$$empty";function Fr(t){return{id:jr,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var Ur=0;function Hr(t,e,n,r){return!(!(2&t.state)&&St(t.oldValues[e.bindingIndex+n],r))}function zr(t,e,n,r){return!!Hr(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Br(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!On(o,r)){var i=e.bindings[n].name;throw Pr(kr.createDebugContext(t,e.nodeIndex),i+": "+o,i+": "+r,0!=(1&t.state))}}function qr(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Gr(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Wr(t,e,n,r){try{return qr(33554432&t.def.nodes[e].flags?Sr(t,e).componentView:t),kr.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Zr(t){return t.parent?Sr(t.parent,t.parentNodeDef.nodeIndex):null}function Qr(t){return t.parent?t.parentNodeDef.parent:null}function $r(t,e){switch(201347067&e.flags){case 1:return Sr(t,e.nodeIndex).renderElement;case 2:return Er(t,e.nodeIndex).renderText}}function Kr(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Yr(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Jr(t){var e={},n=0,r={};return t&&t.forEach(function(t){var o=a(t,2),i=o[0],u=o[1];"number"==typeof i?(e[i]=u,n|=function(t){return 1<-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var s=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:s,token:e.token},t._providers[s]=bo,t._providers[s]=Oo(t,t._def.providersByKey[e.tokenKey])}return t._parent.get(e.token,n)}finally{Jt(i)}}function Oo(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(So(t,n[0]));case 2:return new e(So(t,n[0]),So(t,n[1]));case 3:return new e(So(t,n[0]),So(t,n[1]),So(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Io(n,e),kr.dirtyParentQueries(r),ko(r),r}function Ao(t,e,n){var r=e?$r(e,e.def.lastRenderRootNode):t.renderElement;ro(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function ko(t){ro(t,3,null,null,void 0)}function Po(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Io(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Mo=new Object;function Ro(t,e,n,r,o,i){return new Do(t,e,n,r,o,i)}var Do=function(t){function e(e,n,r,o,i,u){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=u,a.viewDefFactory=r,a}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=no(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,u=kr.createRootView(t,e||[],n,o,r,Mo),a=Or(u,i).instance;return n&&u.renderer.setAttribute(Sr(u,0).renderElement,"ng-version",te.full),new No(u,new Fo(u),a)},e}(xe),No=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new fn(Sr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Bo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(function(){});function Vo(t,e,n){return new jo(t,e,n)}var jo=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new fn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Bo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=Qr(t),t=t.parent;return t?new Bo(t,e):new Bo(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=To(this._data,t);kr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Fo(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Ie||(o=i.get(Me));var u=t.create(i,r,void 0,o);return this.insert(u.hostView,e),u},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,u=t;return o=u._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Po(i,r,o),function(t,e){var n=Zr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),kr.dirtyParentQueries(o),Ao(n,r>0?i[r-1]:null,o),u.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,u,a=this._embeddedViews.indexOf(t._view);return o=e,u=(i=(n=this._data).viewContainer._embeddedViews)[r=a],Io(i,r),null==o&&(o=i.length),Po(i,o,u),kr.dirtyParentQueries(u),ko(u),Ao(n,o>0?i[o-1]:null,u),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=To(this._data,t);e&&kr.destroyView(e)},t.prototype.detach=function(t){var e=To(this._data,t);return e?new Fo(e):null},t}();function Lo(t){return new Fo(t)}var Fo=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return ro(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){qr(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{kr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){kr.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),kr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,ko(this._view),kr.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Uo(t,e){return new Ho(t,e)}var Ho=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new Fo(kr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new fn(Sr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(mn);function zo(t,e){return new Bo(t,e)}var Bo=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=jt.THROW_IF_NOT_FOUND),kr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Nr(t)},e)},t}();function qo(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Sr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Er(t,n.nodeIndex).renderText;if(20240&n.flags)return Or(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Go(t){return new Wo(t.renderer)}var Wo=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=a(so(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return pi(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(di(t,e,n,o[0]));case 2:return r(di(t,e,n,o[0]),di(t,e,n,o[1]));case 3:return r(di(t,e,n,o[0]),di(t,e,n,o[1]),di(t,e,n,o[2]));default:for(var u=Array(i),a=0;a0)s=v,Mi(v)||(c=v);else for(;s&&d===s.nodeIndex+s.childCount;){var m=s.parent;m&&(m.childFlags|=s.childFlags,m.childMatchedQueries|=s.childMatchedQueries),c=(s=m)&&Mi(s)?s.renderParent:s}}return{factory:null,nodeFlags:u,rootNodeFlags:a,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||Rr,updateRenderer:r||Rr,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:h}}function Mi(t){return 0!=(1&t.flags)&&null===t.element.name}function Ri(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Di(t,e,n,r){var o=ji(t.root,t.renderer,t,e,n);return Li(o,t.component,r),Fi(o),o}function Ni(t,e,n){var r=ji(t,t.renderer,null,null,e);return Li(r,n,n),Fi(r),r}function Vi(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,ji(t.root,o,t,e.element.componentProvider,n)}function ji(t,e,n,r,o){var i=new Array(o.nodes.length),u=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:u,initIndex:-1}}function Li(t,e,n){t.component=e,t.context=n}function Fi(t){var e;Kr(t)&&(e=Sr(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&_o(t,e,0,n)&&(h=!0),p>1&&_o(t,e,1,r)&&(h=!0),p>2&&_o(t,e,2,o)&&(h=!0),p>3&&_o(t,e,3,i)&&(h=!0),p>4&&_o(t,e,4,u)&&(h=!0),p>5&&_o(t,e,5,a)&&(h=!0),p>6&&_o(t,e,6,l)&&(h=!0),p>7&&_o(t,e,7,s)&&(h=!0),p>8&&_o(t,e,8,c)&&(h=!0),p>9&&_o(t,e,9,f)&&(h=!0),h}(t,e,n,r,o,i,u,a,l,s,c,f);case 2:return function(t,e,n,r,o,i,u,a,l,s,c,f){var p=!1,h=e.bindings,d=h.length;if(d>0&&zr(t,e,0,n)&&(p=!0),d>1&&zr(t,e,1,r)&&(p=!0),d>2&&zr(t,e,2,o)&&(p=!0),d>3&&zr(t,e,3,i)&&(p=!0),d>4&&zr(t,e,4,u)&&(p=!0),d>5&&zr(t,e,5,a)&&(p=!0),d>6&&zr(t,e,6,l)&&(p=!0),d>7&&zr(t,e,7,s)&&(p=!0),d>8&&zr(t,e,8,c)&&(p=!0),d>9&&zr(t,e,9,f)&&(p=!0),p){var v=e.text.prefix;d>0&&(v+=Pi(n,h[0])),d>1&&(v+=Pi(r,h[1])),d>2&&(v+=Pi(o,h[2])),d>3&&(v+=Pi(i,h[3])),d>4&&(v+=Pi(u,h[4])),d>5&&(v+=Pi(a,h[5])),d>6&&(v+=Pi(l,h[6])),d>7&&(v+=Pi(s,h[7])),d>8&&(v+=Pi(c,h[8])),d>9&&(v+=Pi(f,h[9]));var g=Er(t,e.nodeIndex).renderText;t.renderer.setValue(g,v)}return p}(t,e,n,r,o,i,u,a,l,s,c,f);case 16384:return function(t,e,n,r,o,i,u,a,l,s,c,f){var p=Or(t,e.nodeIndex),h=p.instance,d=!1,v=void 0,g=e.bindings.length;return g>0&&Hr(t,e,0,n)&&(d=!0,v=gi(t,p,e,0,n,v)),g>1&&Hr(t,e,1,r)&&(d=!0,v=gi(t,p,e,1,r,v)),g>2&&Hr(t,e,2,o)&&(d=!0,v=gi(t,p,e,2,o,v)),g>3&&Hr(t,e,3,i)&&(d=!0,v=gi(t,p,e,3,i,v)),g>4&&Hr(t,e,4,u)&&(d=!0,v=gi(t,p,e,4,u,v)),g>5&&Hr(t,e,5,a)&&(d=!0,v=gi(t,p,e,5,a,v)),g>6&&Hr(t,e,6,l)&&(d=!0,v=gi(t,p,e,6,l,v)),g>7&&Hr(t,e,7,s)&&(d=!0,v=gi(t,p,e,7,s,v)),g>8&&Hr(t,e,8,c)&&(d=!0,v=gi(t,p,e,8,c,v)),g>9&&Hr(t,e,9,f)&&(d=!0,v=gi(t,p,e,9,f,v)),v&&h.ngOnChanges(v),65536&e.flags&&xr(t,256,e.nodeIndex)&&h.ngOnInit(),262144&e.flags&&h.ngDoCheck(),d}(t,e,n,r,o,i,u,a,l,s,c,f);case 32:case 64:case 128:return function(t,e,n,r,o,i,u,a,l,s,c,f){var p=e.bindings,h=!1,d=p.length;if(d>0&&zr(t,e,0,n)&&(h=!0),d>1&&zr(t,e,1,r)&&(h=!0),d>2&&zr(t,e,2,o)&&(h=!0),d>3&&zr(t,e,3,i)&&(h=!0),d>4&&zr(t,e,4,u)&&(h=!0),d>5&&zr(t,e,5,a)&&(h=!0),d>6&&zr(t,e,6,l)&&(h=!0),d>7&&zr(t,e,7,s)&&(h=!0),d>8&&zr(t,e,8,c)&&(h=!0),d>9&&zr(t,e,9,f)&&(h=!0),h){var v=Tr(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(p.length),d>0&&(g[0]=n),d>1&&(g[1]=r),d>2&&(g[2]=o),d>3&&(g[3]=i),d>4&&(g[4]=u),d>5&&(g[5]=a),d>6&&(g[6]=l),d>7&&(g[7]=s),d>8&&(g[8]=c),d>9&&(g[9]=f);break;case 64:g={},d>0&&(g[p[0].name]=n),d>1&&(g[p[1].name]=r),d>2&&(g[p[2].name]=o),d>3&&(g[p[3].name]=i),d>4&&(g[p[4].name]=u),d>5&&(g[p[5].name]=a),d>6&&(g[p[6].name]=l),d>7&&(g[p[7].name]=s),d>8&&(g[p[8].name]=c),d>9&&(g[p[9].name]=f);break;case 128:var y=n;switch(d){case 1:g=y.transform(n);break;case 2:g=y.transform(r);break;case 3:g=y.transform(r,o);break;case 4:g=y.transform(r,o,i);break;case 5:g=y.transform(r,o,i,u);break;case 6:g=y.transform(r,o,i,u,a);break;case 7:g=y.transform(r,o,i,u,a,l);break;case 8:g=y.transform(r,o,i,u,a,l,s);break;case 9:g=y.transform(r,o,i,u,a,l,s,c);break;case 10:g=y.transform(r,o,i,u,a,l,s,c,f)}}v.value=g}return h}(t,e,n,r,o,i,u,a,l,s,c,f);default:throw"unreachable"}}(t,e,r,o,i,u,a,s,c,f,p,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&Br(t,e,0,n),p>1&&Br(t,e,1,r),p>2&&Br(t,e,2,o),p>3&&Br(t,e,3,i),p>4&&Br(t,e,4,u),p>5&&Br(t,e,5,a),p>6&&Br(t,e,6,l),p>7&&Br(t,e,7,s),p>8&&Br(t,e,8,c),p>9&&Br(t,e,9,f)}(t,e,r,o,i,u,a,l,s,c,f,p):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);au.forEach(function(e,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:Xr(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[Nr(r)]=o}})}}(t=t.factory(function(){return Rr})),t):t}(r))}var uu=new Map,au=new Map,lu=new Map;function su(t){uu.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&au.set(t.token,t)}function cu(t,e){var n=no(no(e.viewDefFactory).nodes[0].element.componentView);lu.set(t,n)}function fu(){uu.clear(),au.clear(),lu.clear()}function pu(t){if(0===uu.size)return t;var e=function(t){for(var e=[],n=null,r=0;r=Qu.length?Qu[a]=null:d.tNode=Qu[a],Zu?($u=null,Wu.view!==ra&&2!==Wu.type||(ngDevMode&&Uu(Wu.child,"previousOrParentNode's child should not have been set."),Wu.child=d)):Wu&&(ngDevMode&&Uu(Wu.next,"previousOrParentNode's next property should not have been set "+a+"."),Wu.next=d,Wu.dynamicLContainerNode&&(Wu.dynamicLContainerNode.next=d))),Wu=d,Zu=!0,t=d,y=1),u=ia(t.data,t),e(y,n),aa(),fa()}finally{ua(u),Zu=v,Wu=g}return t}function fa(){for(var t=ra.child;null!==t;t=t.next)if(0!==t.dynamicViewCount&&t.views)for(var e=t,n=0;n"}(r))),ngDevMode&&Hu(o.data,"Component's host node should have an LView attached.");var i,u=o.data;8==(8&u.flags)&&6&u.flags&&(ngDevMode&&va(t,Ju),da(u,o,ra.tView.directives[t],(i=Ju[t],Array.isArray(i)?i[0]:i)))}function ha(t){var e=ga(t);ngDevMode&&Hu(e.data,"Component host node should be attached to an LView"),da(e.data,e,e.view.tView.directives[e.tNode.flags>>13],t)}function da(t,e,n,r){var o=ia(t,e),i=n.template;try{i(1&t.flags?3:2,r),aa(),fa()}finally{ua(o)}}function va(t,e){null==e&&(e=Yu),t>=(e?e.length:0)&&zu("index expected to be a valid data index")}function ga(t){ngDevMode&&Hu(t,"expecting component got null");var e=t[ta];return ngDevMode&&Hu(t,"object is not a component"),e}o(function(t,e,n){var r=Xu.call(this,t.data,n)||this;return r._lViewNode=t,r},Xu=function(){function t(t,e){this._view=t,this.context=e}return t.prototype._setComponentContext=function(t,e){this._view=t,this.context=e},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t.prototype.markForCheck=function(){!function(t){for(var e=t;null!=e.parent;)e.flags|=4,e=e.parent;var n,r;e.flags|=4,ngDevMode&&Hu(e.context,"rootContext"),(n=e.context).clean==ea&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){var t,e;e=ga((t=function(t){ngDevMode&&Hu(t,"component");for(var e=ga(t).view;e.parent;)e=e.parent;return e}(n.component)).context.component),ngDevMode&&Hu(e.data,"Component host node should be attached to an LView"),function(n,r,o,i){var u=ia(t,e);try{Gu.begin&&Gu.begin(),sa(),la(na),pa(0,0)}finally{Gu.end&&Gu.end(),ua(u)}}(),r(null),n.clean=ea}))}(this._view)},t.prototype.detach=function(){this._view.flags&=-9},t.prototype.reattach=function(){this._view.flags|=8},t.prototype.detectChanges=function(){ha(this.context)},t.prototype.checkNoChanges=function(){!function(t){oa=!0;try{ha(t)}finally{oa=!1}}(this.context)},t}());var ya=new ht("lookupListToken"),ma={mediums:["Movies","Series"],mediaItemProperties:[{lookupText:"All",type:"string"},{lookupText:"Comedy",type:"string"},{lookupText:"Science Fiction",type:"string"},{lookupText:"Action",type:"string"},{lookupText:"Drama",type:"string"}],operators:[{lookupText:"startswith",type:"string"},{lookupText:"equals",type:"any"},{lookupText:"contains",type:"string"},{lookupText:"lessThan",type:"number"},{lookupText:"greaterThan",type:"number"}]},_a=function(){},ba=function(){},wa=["[_nghost-%COMP%]{display:block;padding:10px}ul[_ngcontent-%COMP%]{list-style-type:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:10px 0}header[_ngcontent-%COMP%], label[_ngcontent-%COMP%]{color:#53ace4}input[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{background-color:#29394b;color:#c6c5c3;border-radius:3px;border:#53ace4;box-shadow:0 1px 2px rgba(0,0,0,.2) inset,0 -1px 0 rgba(0,0,0,.05) inset;padding:6px}.ng-invalid[_ngcontent-%COMP%]:not(form):not(.ng-pristine):not(.required-invalid){border:1px solid #d93a3e}input[required].ng-invalid[_ngcontent-%COMP%]{border-right:5px solid #d93a3e}input[required].ng-invalid[_ngcontent-%COMP%]:not(.required-invalid), input[required][_ngcontent-%COMP%]:not(.required-invalid){border-right:5px solid #37ad79}.error[_ngcontent-%COMP%]{color:#d93a3e}#year[_ngcontent-%COMP%]{width:50px}button[type=submit][_ngcontent-%COMP%]{background-color:#45bf94;border:0;padding:10px;font-size:1em;border-radius:4px;color:#fff;cursor:pointer}button[type=submit][_ngcontent-%COMP%]:disabled{background-color:#333;color:#666;cursor:default}"],Ca=new P(function(t){return t.complete()});function xa(t){return t?function(t){return new P(function(e){return t.schedule(function(){return e.complete()})})}(t):Ca}var Ea=function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var o=n.length;r.values=new Array(o);for(var i=0;i0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=ka.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+ka.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+ka.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Ta),Ma=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return ka.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+ka.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+ka.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+ka.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Ta),Ra=void 0,Da=["en",[["a","p"],["AM","PM"],Ra],[["AM","PM"],Ra,Ra],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ra,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ra,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ra,"{1} 'at' {0}",Ra],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Na={},Va=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),ja=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),La=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),Fa=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),Ua=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function Ha(t,e){return Wa(Qa(t)[10],e)}function za(t,e){return Wa(Qa(t)[11],e)}function Ba(t,e){return Wa(Qa(t)[12],e)}function qa(t,e){var n=Qa(t),r=n[13][e];if(void 0===r){if(e===Ua.CurrencyDecimal)return n[13][Ua.Decimal];if(e===Ua.CurrencyGroup)return n[13][Ua.Group]}return r}function Ga(t){if(!t[19])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function Wa(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Za(t){var e=a(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function Qa(t){var e=t.toLowerCase().replace(/_/g,"-"),n=Na[e];if(n)return n;var r=e.split("-")[0];if(n=Na[r])return n;if("en"===r)return Da;throw new Error('Missing locale data for the locale "'+t+'".')}var $a=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ka={},Ya=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Ja=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Xa=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.Milliseconds=6]="Milliseconds",t[t.Day=7]="Day",t}({}),tl=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function el(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function nl(t,e,n,r,o){void 0===n&&(n="-");var i="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,i=n));for(var u=String(t);u.length0||a>-n)&&(a+=n),t===Xa.Hours&&0===a&&-12===n&&(a=12),nl(a,e,qa(u,Ua.MinusSign),r,o)}}function ol(t,e,n,r){return void 0===n&&(n=ja.Format),void 0===r&&(r=!1),function(o,i){return function(t,e,n,r,o,i){switch(n){case tl.Months:return function(t,e,n){var r=Qa(t);return Wa(Wa([r[5],r[6]],e),n)}(e,o,r)[t.getMonth()];case tl.Days:return function(t,e,n){var r=Qa(t);return Wa(Wa([r[3],r[4]],e),n)}(e,o,r)[t.getDay()];case tl.DayPeriods:var u=t.getHours(),a=t.getMinutes();if(i){var l,s=function(t){var e=Qa(t);return Ga(e),(e[19][2]||[]).map(function(t){return"string"==typeof t?Za(t):[Za(t[0]),Za(t[1])]})}(e),c=function(t,e,n){var r=Qa(t);return Ga(r),Wa(Wa([r[19][0],r[19][1]],e)||[],n)||[]}(e,o,r);if(s.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=t[1],o=r.hours;u>=n.hours&&a>=n.minutes&&(u0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Ja.Short:return(o>=0?"+":"")+nl(u,2,i)+nl(Math.abs(o%60),2,i);case Ja.ShortGMT:return"GMT"+(o>=0?"+":"")+nl(u,1,i);case Ja.Long:return"GMT"+(o>=0?"+":"")+nl(u,2,i)+":"+nl(Math.abs(o%60),2,i);case Ja.Extended:return 0===r?"Z":(o>=0?"+":"")+nl(u,2,i)+":"+nl(Math.abs(o%60),2,i);default:throw new Error('Unknown zone width "'+t+'"')}}}var ul=0,al=4;function ll(t,e){return void 0===e&&(e=!1),function(n,r){var o,i,u,a;if(e){var l=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+l)/7)}else{var c=(u=n.getFullYear(),a=new Date(u,ul,1).getDay(),new Date(u,0,1+(a<=al?al:al+7)-a)),f=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(al-i.getDay()))).getTime()-c.getTime();o=1+Math.round(f/6048e5)}return nl(o,t,qa(r,Ua.MinusSign))}}var sl={};function cl(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function fl(t){return t instanceof Date&&!isNaN(t.valueOf())}var pl=new ht("UseV4Plurals"),hl=function(){},dl=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return Qa(t)[18]}(e||this.locale)(t)){case Va.Zero:return"zero";case Va.One:return"one";case Va.Two:return"two";case Va.Few:return"few";case Va.Many:return"many";default:return"other"}},e}(hl),vl=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(kn(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Ot(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),gl=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),yl=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Xe()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((n=e).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new gl(null,e.ngForOf,-1,-1),o),u=new ml(t,i);n.push(u)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),u=new ml(t,i),n.push(u))});for(var r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;u||(u=t[i]=[]);var l=ds(e)?Zone.root:Zone.current;if(0===u.length)u.push({zone:l,handler:o});else{for(var s=!1,c=0;c-1},e}(Zl),ws=["alt","control","meta","shift"],Cs={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},xs=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var o=e.parseEventName(n),i=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Ol().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(ws.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var u={};return u.domEventName=r,u.fullKey=i,u},e.getEventFullKey=function(t){var e="",n=Ol().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ws.forEach(function(r){r!=n&&(0,Cs[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Zl),Es=function(){},Ss=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case br.NONE:return e;case br.HTML:return e instanceof Ts?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{or=or||new Jn(t);var r=e?String(e):"";n=or.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=or.getInertBodyElement(r)}while(r!==i);var u=new hr,a=u.sanitizeChildren(yr(n)||n);return Xe()&&u.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}finally{if(n)for(var l=yr(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}(this._doc,String(e)));case br.STYLE:return e instanceof As?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(_r);return e&&er(e[1])===e[1]||t.match(mr)&&function(t){for(var e=!0,n=!0,r=0;rt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return js(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return js(t.value)?null:Fs.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(js(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(js(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(Hs);return 0==e.length?null:function(t){return Bs(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(Hs);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),tc=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Js),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}(),ec=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),nc='\n

    \n \n
    \n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',rc='\n
    \n
    \n \n
    \n
    \n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',oc=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+nc)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+rc+'\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n \n
    \n
    \n \n
    \n
    ')},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+nc)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+rc)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
    \n
    \n
    \n \n
    \n
    \n
    \n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}();function ic(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var uc=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=St}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=ic(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){try{for(var e=u(Array.from(this._optionMap.keys())),n=e.next();!n.done;n=e.next()){var r=n.value;if(this._compareWith(this._optionMap.get(r),t))return r}}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=e.return)&&i.call(e)}finally{if(o)throw o.error}}return null;var o,i},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),ac=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(ic(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();function lc(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var sc=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=St}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function yc(t){return null!=t?Us.compose(t.map(Qs)):null}function mc(t){return null!=t?Us.composeAsync(t.map($s)):null}var _c=[Gs,ec,Ks,uc,sc,tc],bc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return fc(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return yc(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return mc(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(Vs),wc=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),Cc=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e}(wc),xc=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e}(wc);function Ec(t){var e=Oc(t)?t.validators:t;return Array.isArray(e)?yc(e):e||null}function Sc(t,e){var n=Oc(e)?e.asyncValidators:t;return Array.isArray(n)?mc(n):n||null}function Oc(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Tc=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=Ec(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=Sc(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(i({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(i({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=zs(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof kc?t.controls[e]||null:t instanceof Pc&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new Le,this.statusChanges=new Le},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){Oc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),Ac=function(t){function e(e,n,r){void 0===e&&(e=null);var o=t.call(this,Ec(n),Sc(r,n))||this;return o._onChange=[],o._applyFormState(e),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return o(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(Tc),kc=function(t){function e(e,n,r){var o=t.call(this,Ec(n),Sc(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof Ac?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,o){n=n||e.contains(o)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){try{for(var t=u(Object.keys(this.controls)),e=t.next();!e.done;e=t.next())if(this.controls[e.value].enabled)return!1}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(n)throw n.error}}return Object.keys(this.controls).length>0||this.disabled;var n,r},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Tc),Pc=function(t){function e(e,n,r){var o=t.call(this,Ec(n),Sc(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Ac?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){try{for(var t=u(this.controls),e=t.next();!e.done;e=t.next())if(e.value.enabled)return!1}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(n)throw n.error}}return this.controls.length>0||this.disabled;var n,r},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Tc),Ic=new ht("NgModelWithFormControlWarning"),Mc=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Le,r}return o(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return pc(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e,n;(n=(e=this.directives).indexOf(t))>-1&&e.splice(n,1)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);dc(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);dc(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,e=this.directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return vc(e)}),e.valueAccessor.registerOnTouched(function(){return vc(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&pc(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=yc(this._validators);this.form.validator=Us.compose([this.form.validator,t]);var e=mc(this._asyncValidators);this.form.asyncValidator=Us.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||oc.missingFormException()},e}(Vs),Rc=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return o(e,t),e.prototype._checkParentType=function(){Nc(this._parent)&&oc.groupParentException()},e}(bc),Dc=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return o(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return fc(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return yc(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return mc(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){Nc(this._parent)&&oc.arrayParentException()},e}(Vs);function Nc(t){return!(t instanceof Rc||t instanceof Mc||t instanceof Dc)}var Vc=function(t){function e(e,n,r,o,i){var u=t.call(this)||this;return u._ngModelWarningConfig=i,u._added=!1,u.update=new Le,u._ngModelWarningSent=!1,u._parent=e,u._rawValidators=n||[],u._rawAsyncValidators=r||[],u.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||gc(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===Zs?n=e:(i=e,_c.some(function(t){return i.constructor===t})?(r&&gc(t,"More than one built-in value accessor matches form control with"),r=e):(o&&gc(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(gc(t,"No valid value accessor for form control with"),null)}(u,o),u}return o(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){oc.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){var n,r,o,i;this._added||this._setUpControl(),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!St(e,n.currentValue)}(t,this.viewModel)&&(n="formControlName",r=e,o=this,i=this._ngModelWarningConfig,Xe()&&"never"!==i&&((null!==i&&"once"!==i||r._ngModelWarningSentOnce)&&("always"!==i||o._ngModelWarningSent)||(oc.ngModelWarning(n),r._ngModelWarningSentOnce=!0,o._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return fc(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return yc(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return mc(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof Rc)&&this._parent instanceof bc?oc.ngModelGroupException():this._parent instanceof Rc||this._parent instanceof Mc||this._parent instanceof Dc||oc.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e._ngModelWarningSentOnce=!1,e}(Js),jc=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=Us.maxLength(parseInt(this.maxlength,10))},t}(),Lc=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t);return new kc(n,null!=e?e.validator:null,null!=e?e.asyncValidator:null)},t.prototype.control=function(t,e,n){return new Ac(t,e,n)},t.prototype.array=function(t,e,n){var r=this,o=t.map(function(t){return r._createControl(t)});return new Pc(o,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){return t instanceof Ac||t instanceof kc||t instanceof Pc?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t}(),Fc=function(){},Uc=function(){},Hc=function(){function t(){}return t.withConfig=function(e){return{ngModule:t,providers:[{provide:Ic,useValue:e.warnOnNgModelWithFormControl}]}},t}(),zc=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),Bc=function(t){return t[t.Get=0]="Get",t[t.Post=1]="Post",t[t.Put=2]="Put",t[t.Delete=3]="Delete",t[t.Options=4]="Options",t[t.Head=5]="Head",t[t.Patch=6]="Patch",t}({}),qc=function(t){return t[t.Basic=0]="Basic",t[t.Cors=1]="Cors",t[t.Default=2]="Default",t[t.Error=3]="Error",t[t.Opaque=4]="Opaque",t}({}),Gc=function(t){return t[t.NONE=0]="NONE",t[t.JSON=1]="JSON",t[t.FORM=2]="FORM",t[t.FORM_DATA=3]="FORM_DATA",t[t.TEXT=4]="TEXT",t[t.BLOB=5]="BLOB",t[t.ARRAY_BUFFER=6]="ARRAY_BUFFER",t}({}),Wc=function(t){return t[t.Text=0]="Text",t[t.Json=1]="Json",t[t.ArrayBuffer=2]="ArrayBuffer",t[t.Blob=3]="Blob",t}({}),Zc=function(){function t(e){var n=this;this._headers=new Map,this._normalizedNames=new Map,e&&(e instanceof t?e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),r.forEach(function(e){return n.append(t,e)})}))}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),o=t.slice(e+1).trim();n.set(r,o)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(t){return o.push.apply(o,l(t.split(",")))}),e[t._normalizedNames.get(r)]=o}),e},t.prototype.getAll=function(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),Qc=function(){function t(t){void 0===t&&(t={});var e=t.body,n=t.status,r=t.headers,o=t.statusText,i=t.type,u=t.url;this.body=null!=e?e:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=o?o:null,this.type=null!=i?i:null,this.url=null!=u?u:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),$c=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:qc.Default,headers:new Zc})||this}return o(e,t),e}(Qc),Kc=function(){};function Yc(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return Bc.Get;case"POST":return Bc.Post;case"PUT":return Bc.Put;case"DELETE":return Bc.Delete;case"OPTIONS":return Bc.Options;case"HEAD":return Bc.Head;case"PATCH":return Bc.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}var Jc=function(t){return t>=200&&t<300},Xc=function(){function t(){}return t.prototype.encodeKey=function(t){return tf(t)},t.prototype.encodeValue=function(t){return tf(t)},t}();function tf(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var ef=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new Xc),this.rawParams=t,this.queryEncoder=e,this.paramsMap=function(t){void 0===t&&(t="");var e=new Map;return t.length>0&&t.split("&").forEach(function(t){var n=t.indexOf("="),r=a(-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],2),o=r[0],i=r[1],u=e.get(o)||[];u.push(i),e.set(o,u)}),e}(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],o=0;o=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return o(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(nf),of=/^\)\]\}',?\n/,uf=function(){function t(t,e,n){var r=this;this.request=t,this.response=new P(function(o){var i=e.build();i.open(Bc[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(i.withCredentials=t.withCredentials);var u=function(){var e=1223===i.status?204:i.status,r=null;204!==e&&"string"==typeof(r=void 0===i.response?i.responseText:i.response)&&(r=r.replace(of,"")),0===e&&(e=r?200:0);var u,a=Zc.fromResponseHeaderString(i.getAllResponseHeaders()),l=("responseURL"in(u=i)?u.responseURL:/^X-Request-URL:/m.test(u.getAllResponseHeaders())?u.getResponseHeader("X-Request-URL"):null)||t.url,s=new Qc({body:r,status:e,headers:a,statusText:i.statusText||"OK",url:l});null!=n&&(s=n.merge(s));var c=new rf(s);if(c.ok=Jc(e),c.ok)return o.next(c),void o.complete();o.error(c)},a=function(t){var e=new Qc({body:t,type:qc.Error,status:i.status,statusText:i.statusText});null!=n&&(e=n.merge(e)),o.error(new rf(e))};if(r.setDetectedContentType(t,i),null==t.headers&&(t.headers=new Zc),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return i.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=i.responseType)switch(t.responseType){case Wc.ArrayBuffer:i.responseType="arraybuffer";break;case Wc.Json:i.responseType="json";break;case Wc.Text:i.responseType="text";break;case Wc.Blob:i.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return i.addEventListener("load",u),i.addEventListener("error",a),i.send(r.request.getBody()),function(){i.removeEventListener("load",u),i.removeEventListener("error",a),i.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case Gc.NONE:break;case Gc.JSON:e.setRequestHeader("content-type","application/json");break;case Gc.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case Gc.TEXT:e.setRequestHeader("content-type","text/plain");break;case Gc.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),af=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=Ol().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),lf=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new uf(t,this._browserXHR,this._baseResponseOptions)},t}(),sf=function(){function t(t){void 0===t&&(t={});var e=t.method,n=t.headers,r=t.body,o=t.url,i=t.search,u=t.params,a=t.withCredentials,l=t.responseType;this.method=null!=e?Yc(e):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=o?o:null,this.params=this._mergeSearchParams(u||i),this.withCredentials=null!=a?a:null,this.responseType=null!=l?l:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new Zc(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof ef?t.clone():"string"==typeof t?new ef(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new ef;return Object.keys(t).forEach(function(r){var o=t[r];Array.isArray(o)?o.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,o,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),cf=function(t){function e(){return t.call(this,{method:Bc.Get,headers:new Zc})||this}return o(e,t),e}(sf),ff=function(t){function e(e){var n=t.call(this)||this,r=e.url;n.url=e.url;var o,i=e.params||e.search;if(i&&(o="object"!=typeof i||i instanceof ef?i.toString():function(t){var e=new ef;return Object.keys(t).forEach(function(n){var r=t[n];r&&Array.isArray(r)?r.forEach(function(t){return e.append(n,t.toString())}):e.append(n,r.toString())}),e}(i).toString()).length>0){var u="?";-1!=n.url.indexOf("?")&&(u="&"==n.url[n.url.length-1]?"":"&"),n.url=r+u+o}return n._body=e.body,n.method=Yc(e.method),n.headers=new Zc(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return o(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return Gc.JSON;case"application/x-www-form-urlencoded":return Gc.FORM;case"multipart/form-data":return Gc.FORM_DATA;case"text/plain":case"text/html":return Gc.TEXT;case"application/octet-stream":return this._body instanceof gf?Gc.ARRAY_BUFFER:Gc.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?Gc.NONE:this._body instanceof ef?Gc.FORM:this._body instanceof df?Gc.FORM_DATA:this._body instanceof vf?Gc.BLOB:this._body instanceof gf?Gc.ARRAY_BUFFER:this._body&&"object"==typeof this._body?Gc.JSON:Gc.TEXT},e.prototype.getBody=function(){switch(this.contentType){case Gc.JSON:case Gc.FORM:return this.text();case Gc.FORM_DATA:return this._body;case Gc.TEXT:return this.text();case Gc.BLOB:return this.blob();case Gc.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(nf),pf=function(){},hf="object"==typeof window?window:pf,df=hf.FormData||pf,vf=hf.Blob||pf,gf=hf.ArrayBuffer||pf;function yf(t,e){return t.createConnection(e).response}function mf(t,e,n,r){return t.merge(new sf(e?{method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:n,url:r}))}var _f=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=yf(this._backend,new ff(mf(this._defaultOptions,e,Bc.Get,t)));else{if(!(t instanceof ff))throw new Error("First argument must be a url string or Request instance.");n=yf(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new ff(mf(this._defaultOptions,e,Bc.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new ff(mf(this._defaultOptions.merge(new sf({body:e})),n,Bc.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new ff(mf(this._defaultOptions.merge(new sf({body:e})),n,Bc.Put,t)))},t.prototype.delete=function(t,e){return this.request(new ff(mf(this._defaultOptions,e,Bc.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new ff(mf(this._defaultOptions.merge(new sf({body:e})),n,Bc.Patch,t)))},t.prototype.head=function(t,e){return this.request(new ff(mf(this._defaultOptions,e,Bc.Head,t)))},t.prototype.options=function(t,e){return this.request(new ff(mf(this._defaultOptions,e,Bc.Options,t)))},t}();function bf(){return new af}function wf(t,e){return new _f(t,e)}var Cf=function(){},xf=function(){function t(t){this.http=t,this.previewedMediaItem=null}return t.prototype.isValid=function(t){return"string"===t.type&&(t.category=t.category.trim()),""!==t.operator&&t.category&&""!==t.category&&""!==t.propertyName},t.prototype.get=function(t,e){var n=new ef;n.append("medium",t),e&&this.isValid(e)&&n.append("filter",JSON.stringify(e));var r=new Zc;return r.append("Content-type","application/json"),r.append("Accept","application/json"),this.http.get("mediaitems",{search:n}).pipe(q(function(t){return t.json()}))},t.prototype.add=function(t){var e=this;return this.http.post("mediaitems",t).pipe(q(function(t){e.get("")}))},t.prototype.delete=function(t){return this.http.delete("mediaitems/"+t.id).pipe(q(function(t){}))},t.prototype.setPreview=function(t){return this.previewedMediaItem=t,this.previewedMediaItem},t.prototype.getPreview=function(){return this.previewedMediaItem},t}(),Ef=function(){function t(t,e,n){this.formBuilder=t,this.mediaItemService=e,this.lookupLists=n}return t.prototype.ngOnInit=function(){this.form=this.formBuilder.group({medium:this.formBuilder.control("Movies"),name:this.formBuilder.control("",Us.compose([Us.required,Us.pattern("[\\w\\-\\s\\/]+")])),category:this.formBuilder.control(""),year:this.formBuilder.control("",this.yearValidator),movieID:this.formBuilder.control("",Us.compose([Us.minLength(10),Us.maxLength(12),Us.pattern("[\\w\\-\\s\\/]+")])),watchedOn:this.formBuilder.control("",this.watchedOnValidator),rating:this.formBuilder.control("")},{validator:this.requiredIfFirstFieldFilled("watchedOn","rating")})},t.prototype.yearValidator=function(t){if(0===t.value.trim().length)return null;var e=parseInt(t.value);return e>=1800&&e<=2500?null:{year:{min:1800,max:2500}}},t.prototype.watchedOnValidator=function(t){return new Date(t.value)>new Date?{watchedOn:!0}:null},t.prototype.requiredIfFirstFieldFilled=function(t,e){return function(n){if(""!==n.controls[t].value&&""===n.controls[e].value)return{watchedOnRequired:!0}}},t.prototype.onSubmit=function(t){this.mediaItemService.add(t).subscribe()},t}(),Sf=Fr({encapsulation:0,styles:[wa],data:{}});function Of(t){return Ii(0,[(t()(),vo(0,0,null,null,3,"option",[],null,null,null,null,null)),ri(1,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(2,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(3,null,["",""]))],function(t,e){t(e,1,0,fo(1,"",e.context.$implicit,"")),t(e,2,0,fo(1,"",e.context.$implicit,""))},function(t,e){t(e,3,0,e.context.$implicit)})}function Tf(t){return Ii(0,[(t()(),vo(0,0,null,null,1,"div",[["class","error"]],null,null,null,null,null)),(t()(),Ai(-1,null,[" Name has invalid characters "]))],null,null)}function Af(t){return Ii(0,[(t()(),vo(0,0,null,null,1,"div",[["class","error"]],null,null,null,null,null)),(t()(),Ai(1,null,[" Must be between "," and "," "]))],null,function(t,e){var n=e.component;t(e,1,0,null==n.form.controls.year.errors?null:n.form.controls.year.errors.year.min,null==n.form.controls.year.errors?null:n.form.controls.year.errors.year.max)})}function kf(t){return Ii(0,[(t()(),vo(0,0,null,null,1,"div",[["class","error"]],null,null,null,null,null)),(t()(),Ai(-1,null,["Invalid input, Movie Id should be alphanumeric with between 10-12 word"]))],null,null)}function Pf(t){return Ii(0,[(t()(),vo(0,0,null,null,1,"div",[["class","error"]],null,null,null,null,null)),(t()(),Ai(-1,null,["Date cannot be future date"]))],null,null)}function If(t){return Ii(0,[(t()(),vo(0,0,null,null,1,"div",[["class","error"]],null,null,null,null,null)),(t()(),Ai(-1,null,["Please give the movie a rating since you're already watch it"]))],null,null)}function Mf(t){return Ii(0,[(t()(),vo(0,0,null,null,2,"header",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Ai(-1,null,["Add Media to Watch"])),(t()(),vo(3,0,null,null,131,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(t,e,n){var r=!0,o=t.component;return"submit"===e&&(r=!1!==qo(t,5).onSubmit(n)&&r),"reset"===e&&(r=!1!==qo(t,5).onReset()&&r),"ngSubmit"===e&&(r=!1!==o.onSubmit(o.form.value)&&r),r},null,null)),ri(4,16384,null,0,Fc,[],null,null),ri(5,540672,null,0,Mc,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),ii(2048,null,Vs,null,[Mc]),ri(7,16384,null,0,xc,[[4,Vs]],null,null),(t()(),vo(8,0,null,null,124,"ul",[],null,null,null,null,null)),(t()(),vo(9,0,null,null,10,"li",[],null,null,null,null,null)),(t()(),vo(10,0,null,null,1,"label",[["for","medium"]],null,null,null,null,null)),(t()(),Ai(-1,null,["Medium"])),(t()(),vo(12,0,null,null,7,"select",[["formControlName","medium"],["id","medium"],["name","medium"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"change"],[null,"blur"]],function(t,e,n){var r=!0;return"change"===e&&(r=!1!==qo(t,13).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==qo(t,13).onTouched()&&r),r},null,null)),ri(13,16384,null,0,uc,[cn,fn],null,null),ii(1024,null,qs,function(t){return[t]},[uc]),ri(15,671744,null,0,Vc,[[3,Vs],[8,null],[8,null],[6,qs],[2,Ic]],{name:[0,"name"]},null),ii(2048,null,Js,null,[Vc]),ri(17,16384,null,0,Cc,[[4,Js]],null,null),(t()(),ho(16777216,null,null,1,null,Of)),ri(19,802816,null,0,yl,[_n,mn,Hn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(20,0,null,null,10,"li",[],null,null,null,null,null)),(t()(),vo(21,0,null,null,1,"label",[["for","name"]],null,null,null,null,null)),(t()(),Ai(-1,null,["Name"])),(t()(),vo(23,0,null,null,5,"input",[["formControlName","name"],["id","name"],["name","name"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0;return"input"===e&&(r=!1!==qo(t,24)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==qo(t,24).onTouched()&&r),"compositionstart"===e&&(r=!1!==qo(t,24)._compositionStart()&&r),"compositionend"===e&&(r=!1!==qo(t,24)._compositionEnd(n.target.value)&&r),r},null,null)),ri(24,16384,null,0,Zs,[cn,fn,[2,Ws]],null,null),ii(1024,null,qs,function(t){return[t]},[Zs]),ri(26,671744,null,0,Vc,[[3,Vs],[8,null],[8,null],[6,qs],[2,Ic]],{name:[0,"name"]},null),ii(2048,null,Js,null,[Vc]),ri(28,16384,null,0,Cc,[[4,Js]],null,null),(t()(),ho(16777216,null,null,1,null,Tf)),ri(30,16384,null,0,_l,[_n,mn],{ngIf:[0,"ngIf"]},null),(t()(),vo(31,0,null,null,32,"li",[],null,null,null,null,null)),(t()(),vo(32,0,null,null,1,"label",[["for","category"]],null,null,null,null,null)),(t()(),Ai(-1,null,["Category"])),(t()(),vo(34,0,null,null,29,"select",[["formControlName","category"],["id","category"],["name","category"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"change"],[null,"blur"]],function(t,e,n){var r=!0;return"change"===e&&(r=!1!==qo(t,35).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==qo(t,35).onTouched()&&r),r},null,null)),ri(35,16384,null,0,uc,[cn,fn],null,null),ii(1024,null,qs,function(t){return[t]},[uc]),ri(37,671744,null,0,Vc,[[3,Vs],[8,null],[8,null],[6,qs],[2,Ic]],{name:[0,"name"]},null),ii(2048,null,Js,null,[Vc]),ri(39,16384,null,0,Cc,[[4,Js]],null,null),(t()(),vo(40,0,null,null,3,"option",[["value","Action"]],null,null,null,null,null)),ri(41,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(42,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(-1,null,["Action"])),(t()(),vo(44,0,null,null,3,"option",[["value","Science Fiction"]],null,null,null,null,null)),ri(45,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(46,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(-1,null,["Science Fiction"])),(t()(),vo(48,0,null,null,3,"option",[["value","Comedy"]],null,null,null,null,null)),ri(49,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(50,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(-1,null,["Comedy"])),(t()(),vo(52,0,null,null,3,"option",[["value","Drama"]],null,null,null,null,null)),ri(53,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(54,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(-1,null,["Drama"])),(t()(),vo(56,0,null,null,3,"option",[["value","Horror"]],null,null,null,null,null)),ri(57,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(58,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(-1,null,["Horror"])),(t()(),vo(60,0,null,null,3,"option",[["value","Romance"]],null,null,null,null,null)),ri(61,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(62,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(-1,null,["Romance"])),(t()(),vo(64,0,null,null,12,"li",[],null,null,null,null,null)),(t()(),vo(65,0,null,null,1,"label",[["for","year"]],null,null,null,null,null)),(t()(),Ai(-1,null,["Year"])),(t()(),vo(67,0,null,null,7,"input",[["formControlName","year"],["id","year"],["maxlength","4"],["name","year"],["type","text"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0;return"input"===e&&(r=!1!==qo(t,68)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==qo(t,68).onTouched()&&r),"compositionstart"===e&&(r=!1!==qo(t,68)._compositionStart()&&r),"compositionend"===e&&(r=!1!==qo(t,68)._compositionEnd(n.target.value)&&r),r},null,null)),ri(68,16384,null,0,Zs,[cn,fn,[2,Ws]],null,null),ri(69,540672,null,0,jc,[],{maxlength:[0,"maxlength"]},null),ii(1024,null,Ls,function(t){return[t]},[jc]),ii(1024,null,qs,function(t){return[t]},[Zs]),ri(72,671744,null,0,Vc,[[3,Vs],[6,Ls],[8,null],[6,qs],[2,Ic]],{name:[0,"name"]},null),ii(2048,null,Js,null,[Vc]),ri(74,16384,null,0,Cc,[[4,Js]],null,null),(t()(),ho(16777216,null,null,1,null,Af)),ri(76,16384,null,0,_l,[_n,mn],{ngIf:[0,"ngIf"]},null),(t()(),vo(77,0,null,null,10,"li",[],null,null,null,null,null)),(t()(),vo(78,0,null,null,1,"label",[["for","movieID"]],null,null,null,null,null)),(t()(),Ai(-1,null,["Movie ID"])),(t()(),vo(80,0,null,null,5,"input",[["formControlName","movieID"],["id","year"],["name","movieID"],["style","width:300px;"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0;return"input"===e&&(r=!1!==qo(t,81)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==qo(t,81).onTouched()&&r),"compositionstart"===e&&(r=!1!==qo(t,81)._compositionStart()&&r),"compositionend"===e&&(r=!1!==qo(t,81)._compositionEnd(n.target.value)&&r),r},null,null)),ri(81,16384,null,0,Zs,[cn,fn,[2,Ws]],null,null),ii(1024,null,qs,function(t){return[t]},[Zs]),ri(83,671744,null,0,Vc,[[3,Vs],[8,null],[8,null],[6,qs],[2,Ic]],{name:[0,"name"]},null),ii(2048,null,Js,null,[Vc]),ri(85,16384,null,0,Cc,[[4,Js]],null,null),(t()(),ho(16777216,null,null,1,null,kf)),ri(87,16384,null,0,_l,[_n,mn],{ngIf:[0,"ngIf"]},null),(t()(),vo(88,0,null,null,10,"li",[],null,null,null,null,null)),(t()(),vo(89,0,null,null,1,"label",[["for","watchedOn"]],null,null,null,null,null)),(t()(),Ai(-1,null,["watched On"])),(t()(),vo(91,0,null,null,5,"input",[["formControlName","watchedOn"],["id","watchedOn"],["name","watchedOn"],["type","date"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0;return"input"===e&&(r=!1!==qo(t,92)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==qo(t,92).onTouched()&&r),"compositionstart"===e&&(r=!1!==qo(t,92)._compositionStart()&&r),"compositionend"===e&&(r=!1!==qo(t,92)._compositionEnd(n.target.value)&&r),r},null,null)),ri(92,16384,null,0,Zs,[cn,fn,[2,Ws]],null,null),ii(1024,null,qs,function(t){return[t]},[Zs]),ri(94,671744,null,0,Vc,[[3,Vs],[8,null],[8,null],[6,qs],[2,Ic]],{name:[0,"name"]},null),ii(2048,null,Js,null,[Vc]),ri(96,16384,null,0,Cc,[[4,Js]],null,null),(t()(),ho(16777216,null,null,1,null,Pf)),ri(98,16384,null,0,_l,[_n,mn],{ngIf:[0,"ngIf"]},null),(t()(),vo(99,0,null,null,33,"li",[],null,null,null,null,null)),(t()(),vo(100,0,null,null,1,"label",[["for","rating"]],null,null,null,null,null)),(t()(),Ai(-1,null,["rating"])),(t()(),vo(102,0,null,null,28,"select",[["formControlName","rating"],["id","rating"],["name","rating"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"change"],[null,"blur"]],function(t,e,n){var r=!0;return"change"===e&&(r=!1!==qo(t,103).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==qo(t,103).onTouched()&&r),r},null,null)),ri(103,16384,null,0,uc,[cn,fn],null,null),ii(1024,null,qs,function(t){return[t]},[uc]),ri(105,671744,null,0,Vc,[[3,Vs],[8,null],[8,null],[6,qs],[2,Ic]],{name:[0,"name"]},null),ii(2048,null,Js,null,[Vc]),ri(107,16384,null,0,Cc,[[4,Js]],null,null),(t()(),vo(108,0,null,null,2,"option",[["value",""]],null,null,null,null,null)),ri(109,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(110,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),vo(111,0,null,null,3,"option",[["value","1"]],null,null,null,null,null)),ri(112,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(113,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(-1,null,["1"])),(t()(),vo(115,0,null,null,3,"option",[["value","2"]],null,null,null,null,null)),ri(116,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(117,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(-1,null,["2"])),(t()(),vo(119,0,null,null,3,"option",[["value","3"]],null,null,null,null,null)),ri(120,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(121,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(-1,null,["3"])),(t()(),vo(123,0,null,null,3,"option",[["value","4"]],null,null,null,null,null)),ri(124,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(125,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(-1,null,["4"])),(t()(),vo(127,0,null,null,3,"option",[["value","5"]],null,null,null,null,null)),ri(128,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(129,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(-1,null,["5"])),(t()(),ho(16777216,null,null,1,null,If)),ri(132,16384,null,0,_l,[_n,mn],{ngIf:[0,"ngIf"]},null),(t()(),vo(133,0,null,null,1,"button",[["type","submit"]],[[8,"disabled",0]],null,null,null,null)),(t()(),Ai(-1,null,["Save"]))],function(t,e){var n=e.component;t(e,5,0,n.form),t(e,15,0,"medium"),t(e,19,0,n.lookupLists.mediums),t(e,26,0,"name"),t(e,30,0,null==n.form.controls.name.errors?null:n.form.controls.name.errors.pattern),t(e,37,0,"category"),t(e,41,0,"Action"),t(e,42,0,"Action"),t(e,45,0,"Science Fiction"),t(e,46,0,"Science Fiction"),t(e,49,0,"Comedy"),t(e,50,0,"Comedy"),t(e,53,0,"Drama"),t(e,54,0,"Drama"),t(e,57,0,"Horror"),t(e,58,0,"Horror"),t(e,61,0,"Romance"),t(e,62,0,"Romance"),t(e,69,0,"4"),t(e,72,0,"year"),t(e,76,0,null==n.form.controls.year.errors?null:n.form.controls.year.errors.year),t(e,83,0,"movieID"),t(e,87,0,(null==n.form.controls.movieID.errors?null:n.form.controls.movieID.errors.pattern)||(null==n.form.controls.movieID.errors?null:n.form.controls.movieID.errors.minlength)||(null==n.form.controls.movieID.errors?null:n.form.controls.movieID.errors.maxlength)),t(e,94,0,"watchedOn"),t(e,98,0,null==n.form.controls.watchedOn.errors?null:n.form.controls.watchedOn.errors.watchedOnFutureDate),t(e,105,0,"rating"),t(e,109,0,""),t(e,110,0,""),t(e,112,0,"1"),t(e,113,0,"1"),t(e,116,0,"2"),t(e,117,0,"2"),t(e,120,0,"3"),t(e,121,0,"3"),t(e,124,0,"4"),t(e,125,0,"4"),t(e,128,0,"5"),t(e,129,0,"5"),t(e,132,0,n.form.hasError("watchedOnRequired"))},function(t,e){var n=e.component;t(e,3,0,qo(e,7).ngClassUntouched,qo(e,7).ngClassTouched,qo(e,7).ngClassPristine,qo(e,7).ngClassDirty,qo(e,7).ngClassValid,qo(e,7).ngClassInvalid,qo(e,7).ngClassPending),t(e,12,0,qo(e,17).ngClassUntouched,qo(e,17).ngClassTouched,qo(e,17).ngClassPristine,qo(e,17).ngClassDirty,qo(e,17).ngClassValid,qo(e,17).ngClassInvalid,qo(e,17).ngClassPending),t(e,23,0,qo(e,28).ngClassUntouched,qo(e,28).ngClassTouched,qo(e,28).ngClassPristine,qo(e,28).ngClassDirty,qo(e,28).ngClassValid,qo(e,28).ngClassInvalid,qo(e,28).ngClassPending),t(e,34,0,qo(e,39).ngClassUntouched,qo(e,39).ngClassTouched,qo(e,39).ngClassPristine,qo(e,39).ngClassDirty,qo(e,39).ngClassValid,qo(e,39).ngClassInvalid,qo(e,39).ngClassPending),t(e,67,0,qo(e,69).maxlength?qo(e,69).maxlength:null,qo(e,74).ngClassUntouched,qo(e,74).ngClassTouched,qo(e,74).ngClassPristine,qo(e,74).ngClassDirty,qo(e,74).ngClassValid,qo(e,74).ngClassInvalid,qo(e,74).ngClassPending),t(e,80,0,qo(e,85).ngClassUntouched,qo(e,85).ngClassTouched,qo(e,85).ngClassPristine,qo(e,85).ngClassDirty,qo(e,85).ngClassValid,qo(e,85).ngClassInvalid,qo(e,85).ngClassPending),t(e,91,0,qo(e,96).ngClassUntouched,qo(e,96).ngClassTouched,qo(e,96).ngClassPristine,qo(e,96).ngClassDirty,qo(e,96).ngClassValid,qo(e,96).ngClassInvalid,qo(e,96).ngClassPending),t(e,102,0,qo(e,107).ngClassUntouched,qo(e,107).ngClassTouched,qo(e,107).ngClassPristine,qo(e,107).ngClassDirty,qo(e,107).ngClassValid,qo(e,107).ngClassInvalid,qo(e,107).ngClassPending),t(e,133,0,!n.form.valid)})}var Rf=Ro("mw-media-item-form",Ef,function(t){return Ii(0,[(t()(),vo(0,0,null,null,1,"mw-media-item-form",[],null,null,null,Mf,Sf)),ri(1,114688,null,0,Ef,[Lc,xf,ya],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Df=function(){function t(){this.isFavorite=!0,this.hovering=!1}return t.prototype.onMouseEnter=function(){this.hovering=!0},t.prototype.onMouseLeave=function(){this.hovering=!1},Object.defineProperty(t.prototype,"mwFavorite",{set:function(t){this.isFavorite=t},enumerable:!0,configurable:!0}),t}(),Nf=function(){function t(t){this.mediaItemservice=t,this.delete=new Le,this.preview=new Le}return t.prototype.onDelete=function(){this.delete.emit(this.mediaItem)},t.prototype.onPreview=function(){this.mediaItemservice.setPreview(this.mediaItem)},t}(),Vf=Fr({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;flex-direction:column;width:200px;height:200px;border:2px solid;background-color:#29394b;padding:10px;color:#bdc2c5}h2[_ngcontent-%COMP%]{font-size:1.6em;flex:1}.medium-movies[_nghost-%COMP%]{border-color:#53ace4}.medium-movies[_nghost-%COMP%] > h2[_ngcontent-%COMP%]{color:#53ace4}.medium-series[_nghost-%COMP%]{border-color:#45bf94}.medium-series[_nghost-%COMP%] > h2[_ngcontent-%COMP%]{color:#45bf94}.tools[_ngcontent-%COMP%]{margin-top:8px;display:flex;flex-wrap:nowrap;justify-content:space-between}.favorite[_ngcontent-%COMP%]{width:24px;height:24px;fill:#bdc2c5}.favorite.is-favorite[_ngcontent-%COMP%]{fill:#37ad79}.favorite.is-favorite-hovering[_ngcontent-%COMP%]{fill:#45bf94}.favorite.is-favorite.is-favorite-hovering[_ngcontent-%COMP%]{fill:#ec4342}.delete[_ngcontent-%COMP%]{display:block;background-color:#ec4342;padding:4px;font-size:.8em;border-radius:4px;color:#fff;cursor:pointer}.details[_ngcontent-%COMP%]{display:block;background-color:#37ad79;padding:4px;font-size:.8em;border-radius:4px;color:#fff;text-decoration:none}.preview[_ngcontent-%COMP%]{display:block;background-color:#ff8c00;padding:4px;font-size:.8em;border-radius:4px;color:#fff;text-decoration:none;cursor:pointer}"]],data:{}});function jf(t){return Ii(0,[(t()(),vo(0,0,null,null,5,"template",[],null,null,null,null,null)),(t()(),Ai(-1,null,["\n "])),(t()(),vo(2,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),Ai(3,null,["Watched on ",""])),Si(4,2),(t()(),Ai(-1,null,["\n"]))],null,function(t,e){var n=e.component;t(e,3,0,Vr(e,3,0,t(e,4,0,qo(e.parent,0),n.mediaItem.watchedOn,"shortDate")))})}function Lf(t){return Ii(0,[oi(0,Cl,[Zn]),(t()(),vo(1,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Ai(2,null,["",""])),(t()(),ho(16777216,null,null,1,null,jf)),ri(4,16384,null,0,_l,[_n,mn],{ngIf:[0,"ngIf"]},null),(t()(),vo(5,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),Ai(6,null,["",""])),(t()(),vo(7,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),Ai(8,null,["",""])),(t()(),vo(9,0,null,null,9,"div",[["class","tools"]],null,null,null,null,null)),(t()(),vo(10,0,null,null,2,":svg:svg",[["class","favorite"],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"]],[[2,"is-favorite",null],[2,"is-favorite-hovering",null]],[[null,"mouseenter"],[null,"mouseleave"]],function(t,e,n){var r=!0;return"mouseenter"===e&&(r=!1!==qo(t,11).onMouseEnter()&&r),"mouseleave"===e&&(r=!1!==qo(t,11).onMouseLeave()&&r),r},null,null)),ri(11,16384,null,0,Df,[],{mwFavorite:[0,"mwFavorite"]},null),(t()(),vo(12,0,null,null,0,":svg:path",[["d","M12 9.229c.234-1.12 1.547-6.229 5.382-6.229 2.22 0 4.618 1.551 4.618 5.003 0 3.907-3.627 8.47-10 12.629-6.373-4.159-10-8.722-10-12.629 0-3.484 2.369-5.005 4.577-5.005 3.923 0 5.145 5.126 5.423 6.231zm-12-1.226c0 4.068 3.06 9.481 12 14.997 8.94-5.516 12-10.929 12-14.997 0-7.962-9.648-9.028-12-3.737-2.338-5.262-12-4.27-12 3.737z"]],null,null,null,null,null)),(t()(),vo(13,0,null,null,1,"a",[["class","delete"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.onDelete()&&r),r},null,null)),(t()(),Ai(-1,null,[" remove "])),(t()(),vo(15,0,null,null,1,"a",[["class","details"]],null,null,null,null,null)),(t()(),Ai(-1,null,[" watch "])),(t()(),vo(17,0,null,null,1,"a",[["class","preview"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.onPreview()&&r),r},null,null)),(t()(),Ai(-1,null,[" preview "]))],function(t,e){var n=e.component;t(e,4,0,n.mediaItem.watchedOn),t(e,11,0,n.mediaItem.isFavorite)},function(t,e){var n=e.component;t(e,2,0,n.mediaItem.name),t(e,6,0,n.mediaItem.category),t(e,8,0,n.mediaItem.year),t(e,10,0,qo(e,11).isFavorite,qo(e,11).hovering)})}var Ff=function(){function t(){}return t.prototype.transform=function(t){var e=[];return t.forEach(function(t){e.indexOf(t.category)<=-1&&e.push(t.category)}),e.join(", ")},t}(),Uf=n("LvDl"),Hf=function(){function t(t,e){this.formBuilder=t,this.lookupLists=e,this.filter=new Le}return t.prototype.ngOnInit=function(){this.form=this.formBuilder.group({movieName:this.formBuilder.control(""),category:this.formBuilder.control("name")}),this.category="name"},t.prototype.onChangeProperty=function(t){this.category=t},t.prototype.getPropertyType=function(){var t=this.category?this.category:"name";return Uf.find(this.lookupLists.mediaItemProperties,function(e){return e.lookupText===t}).type},t.prototype.filterMediaItem=function(t){this.filter.emit(t)},t}(),zf=Fr({encapsulation:0,styles:[wa],data:{}});function Bf(t){return Ii(0,[(t()(),vo(0,0,null,null,3,"option",[],null,null,null,null,null)),ri(1,147456,null,0,ac,[fn,cn,[2,uc]],{value:[0,"value"]},null),ri(2,147456,null,0,cc,[fn,cn,[8,null]],{value:[0,"value"]},null),(t()(),Ai(3,null,["",""]))],function(t,e){t(e,1,0,fo(1,"",e.context.$implicit.lookupText,"")),t(e,2,0,fo(1,"",e.context.$implicit.lookupText,""))},function(t,e){t(e,3,0,e.context.$implicit.lookupText)})}function qf(t){return Ii(0,[(t()(),vo(0,0,null,null,21,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,20,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(t,e,n){var r=!0,o=t.component;return"submit"===e&&(r=!1!==qo(t,3).onSubmit(n)&&r),"reset"===e&&(r=!1!==qo(t,3).onReset()&&r),"ngSubmit"===e&&(r=!1!==o.filterMediaItem(o.form.value)&&r),r},null,null)),ri(2,16384,null,0,Fc,[],null,null),ri(3,540672,null,0,Mc,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),ii(2048,null,Vs,null,[Mc]),ri(5,16384,null,0,xc,[[4,Vs]],null,null),(t()(),vo(6,0,null,null,5,"input",[["formControlName","movieName"],["id","value"],["name","value"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0;return"input"===e&&(r=!1!==qo(t,7)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==qo(t,7).onTouched()&&r),"compositionstart"===e&&(r=!1!==qo(t,7)._compositionStart()&&r),"compositionend"===e&&(r=!1!==qo(t,7)._compositionEnd(n.target.value)&&r),r},null,null)),ri(7,16384,null,0,Zs,[cn,fn,[2,Ws]],null,null),ii(1024,null,qs,function(t){return[t]},[Zs]),ri(9,671744,null,0,Vc,[[3,Vs],[8,null],[8,null],[6,qs],[2,Ic]],{name:[0,"name"]},null),ii(2048,null,Js,null,[Vc]),ri(11,16384,null,0,Cc,[[4,Js]],null,null),(t()(),vo(12,0,null,null,7,"select",[["formControlName","category"],["id","propertyName"],["name","propertyName"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"change"],[null,"blur"]],function(t,e,n){var r=!0,o=t.component;return"change"===e&&(r=!1!==qo(t,13).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==qo(t,13).onTouched()&&r),"change"===e&&(r=!1!==o.onChangeProperty(n.target.value)&&r),r},null,null)),ri(13,16384,null,0,uc,[cn,fn],null,null),ii(1024,null,qs,function(t){return[t]},[uc]),ri(15,671744,null,0,Vc,[[3,Vs],[8,null],[8,null],[6,qs],[2,Ic]],{name:[0,"name"]},null),ii(2048,null,Js,null,[Vc]),ri(17,16384,null,0,Cc,[[4,Js]],null,null),(t()(),ho(16777216,null,null,1,null,Bf)),ri(19,802816,null,0,yl,[_n,mn,Hn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(20,0,null,null,1,"button",[["type","submit"]],[[8,"disabled",0]],null,null,null,null)),(t()(),Ai(-1,null,["Filter"]))],function(t,e){var n=e.component;t(e,3,0,n.form),t(e,9,0,"movieName"),t(e,15,0,"category"),t(e,19,0,n.lookupLists.mediaItemProperties)},function(t,e){var n=e.component;t(e,1,0,qo(e,5).ngClassUntouched,qo(e,5).ngClassTouched,qo(e,5).ngClassPristine,qo(e,5).ngClassDirty,qo(e,5).ngClassValid,qo(e,5).ngClassInvalid,qo(e,5).ngClassPending),t(e,6,0,qo(e,11).ngClassUntouched,qo(e,11).ngClassTouched,qo(e,11).ngClassPristine,qo(e,11).ngClassDirty,qo(e,11).ngClassValid,qo(e,11).ngClassInvalid,qo(e,11).ngClassPending),t(e,12,0,qo(e,17).ngClassUntouched,qo(e,17).ngClassTouched,qo(e,17).ngClassPristine,qo(e,17).ngClassDirty,qo(e,17).ngClassValid,qo(e,17).ngClassInvalid,qo(e,17).ngClassPending),t(e,20,0,!n.form.valid)})}var Gf=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new tt;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(rt);function Wf(){for(var t=[],e=0;e0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?$f(function(e,n){return t(e,n,r)}):J,Xf(1),n?up(e):op(function(){return new Zf}))}}function cp(t){return function(e){var n=new fp(t),r=e.lift(n);return n.caught=r}}var fp=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new pp(t,this.selector,this.caught))},t}(),pp=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(z(this,n))}},e}(B);function hp(t,e){return function(n){return n.lift(new dp(t,e,n))}}var dp=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new vp(t,this.predicate,this.thisArg,this.source))},t}(),vp=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(E),gp=function(){function t(t){if(this.total=t,this.total<0)throw new Jf}return t.prototype.call=function(t,e){return e.subscribe(new yp(t,this.total))},t}(),yp=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(E);function mp(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?$f(function(e,n){return t(e,n,r)}):J,function(t){return t.lift(new gp(1))},n?up(e):op(function(){return new Zf}))}}function _p(){return X(1)}function bp(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new wp(t,e,n))}}var wp=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Cp(t,this.accumulator,this.seed,this.hasSeed))},t}(),Cp=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(E),xp=function(t,e){this.id=t,this.url=e},Ep=function(t){function e(e,n,r,o){void 0===r&&(r="imperative"),void 0===o&&(o=null);var i=t.call(this,e,n)||this;return i.navigationTrigger=r,i.restoredState=o,i}return o(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(xp),Sp=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o}return o(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(xp),Op=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.reason=r,o}return o(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(xp),Tp=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.error=r,o}return o(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(xp),Ap=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return o(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(xp),kp=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return o(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(xp),Pp=function(t){function e(e,n,r,o,i){var u=t.call(this,e,n)||this;return u.urlAfterRedirects=r,u.state=o,u.shouldActivate=i,u}return o(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(xp),Ip=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return o(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(xp),Mp=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return o(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(xp),Rp=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),Dp=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),Np=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Vp=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),jp=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Lp=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Fp="primary",Up=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function Hp(t){return new Up(t)}function zp(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Yp(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Jp(t){return t.pipe(X(),hp(function(t){return!0===t}))}function Xp(t){return ce(t)?t:se(t)?Q(Promise.resolve(t)):Wf(t)}function th(t,e,n){return n?function(t,e){return Qp(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!oh(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!oh(u=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!oh(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var u=o.slice(0,n.segments.length),a=o.slice(n.segments.length);return!!oh(n.segments,u)&&!!n.children[Fp]&&e(n.children[Fp],r,a)}(e,n,n.segments)}(t.root,e.root)}var eh=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Hp(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return lh.serialize(this)},t}(),nh=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Yp(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return sh(this)},t}(),rh=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Hp(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return vh(this)},t}();function oh(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function ih(t,e){var n=[];return Yp(t.children,function(t,r){r===Fp&&(n=n.concat(e(t,r)))}),Yp(t.children,function(t,r){r!==Fp&&(n=n.concat(e(t,r)))}),n}var uh=function(){},ah=function(){function t(){}return t.prototype.parse=function(t){var e=new bh(t);return new eh(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return sh(e);if(n){var r=e.children[Fp]?t(e.children[Fp],!1):"",o=[];return Yp(e.children,function(e,n){n!==Fp&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=ih(e,function(n,r){return r===Fp?[t(e.children[Fp],!1)]:[r+":"+t(n,!1)]});return sh(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return fh(t)+"="+fh(e)}).join("&"):fh(t)+"="+fh(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),lh=new ah;function sh(t){return t.segments.map(function(t){return vh(t)}).join("/")}function ch(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fh(t){return ch(t).replace(/%3B/gi,";")}function ph(t){return ch(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hh(t){return decodeURIComponent(t)}function dh(t){return hh(t.replace(/\+/g,"%20"))}function vh(t){return""+ph(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+ph(t)+"="+ph(e[t])}).join(""));var e}var gh=/^[^\/()?;=#]+/;function yh(t){var e=t.match(gh);return e?e[0]:""}var mh=/^[^=?&#]+/,_h=/^[^?&#]+/,bh=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new nh([],{}):new nh([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Fp]=new nh(t,e)),n},t.prototype.parseSegment=function(){var t=yh(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new rh(hh(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=yh(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=yh(this.remaining);r&&this.capture(n=r)}t[hh(e)]=hh(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(mh))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(_h);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=dh(n),u=dh(r);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(t[i]=a=[a]),a.push(u)}else t[i]=u}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=yh(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Fp);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[Fp]:new nh([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),wh=function(t){this.segmentGroup=t||null},Ch=function(t){this.urlTree=t};function xh(t){return new P(function(e){return e.error(new wh(t))})}function Eh(t){return new P(function(e){return e.error(new Ch(t))})}function Sh(t){return new P(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var Oh=function(){function t(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Me)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Fp).pipe(q(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(cp(function(e){if(e instanceof Ch)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof wh)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Fp).pipe(q(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(cp(function(t){if(t instanceof wh)throw e.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,o=t.segments.length>0?new nh([],((r={})[Fp]=t,r)):t;return new eh(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(q(function(t){return new nh([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Wf({});var i=[],u=[],a={};return Yp(n,function(n,o){var l,s,c=(l=o,s=n,r.expandSegmentGroup(t,e,s,l)).pipe(q(function(t){return a[o]=t}));o===Fp?i.push(c):u.push(c)}),Wf.apply(null,i.concat(u)).pipe(_p(),sp(),q(function(){return a}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var u=this;return Wf.apply(void 0,l(n)).pipe(q(function(a){return u.expandSegmentAgainstRoute(t,e,n,a,r,o,i).pipe(cp(function(t){if(t instanceof wh)return Wf(null);throw t}))}),_p(),mp(function(t){return!!t}),cp(function(t,n){if(t instanceof Zf||"EmptyError"===t.name){if(u.noLeftoversInUrl(e,r,o))return Wf(new nh([],{}));throw new wh(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,u){return Ph(r)!==i?xh(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):u&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):xh(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Eh(i):this.lineralizeSegments(n,i).pipe($(function(n){var i=new nh(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var u=this,a=Th(e,r,o),l=a.consumedSegments,s=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return xh(e);var f=this.applyRedirectCommands(l,r.redirectTo,c);return r.redirectTo.startsWith("/")?Eh(f):this.lineralizeSegments(r,f).pipe($(function(r){return u.expandSegment(t,e,n,r.concat(o.slice(s)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(q(function(t){return n._loadedConfig=t,new nh(r,{})})):Wf(new nh(r,{}));var a=Th(e,n,r),l=a.consumedSegments,s=a.lastChild;if(!a.matched)return xh(e);var c=r.slice(s);return this.getChildConfig(t,n).pipe($(function(t){var n=t.module,r=t.routes,a=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return kh(t,e,n)&&Ph(n)!==Fp})}(t,n)?{segmentGroup:Ah(new nh(e,function(t,e){var n,r,o={};o[Fp]=e;try{for(var i=u(t),a=i.next();!a.done;a=i.next()){var l=a.value;""===l.path&&Ph(l)!==Fp&&(o[Ph(l)]=new nh([],{}))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new nh(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return kh(t,e,n)})}(t,n)?{segmentGroup:Ah(new nh(t.segments,function(t,e,n,r){var o,a,l={};try{for(var s=u(n),c=s.next();!c.done;c=s.next()){var f=c.value;kh(t,e,f)&&!r[Ph(f)]&&(l[Ph(f)]=new nh([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}return i({},r,l)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,l,c,r),s=a.segmentGroup,f=a.slicedSegments;return 0===f.length&&s.hasChildren()?o.expandChildren(n,r,s).pipe(q(function(t){return new nh(l,t)})):0===r.length&&0===f.length?Wf(new nh(l,{})):o.expandSegment(n,s,r,f,Fp,!0).pipe(q(function(t){return new nh(l.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Wf(new Bp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Wf(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?Jp(Q(n).pipe(q(function(n){var r=t.get(n);return Xp(r.canLoad?r.canLoad(e):r(e))}))):Wf(!0)}(t.injector,e).pipe($(function(r){return r?n.configLoader.load(t.injector,e).pipe(q(function(t){return e._loadedConfig=t,t})):function(t){return new P(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):Wf(new Bp([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Wf(n);if(r.numberOfChildren>1||!r.children[Fp])return Sh(t.redirectTo);r=r.children[Fp]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new eh(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Yp(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),u={};return Yp(e.children,function(e,i){u[i]=o.createSegmentGroup(t,e,n,r)}),new nh(i,u)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=u(e),a=i.next();!a.done;a=i.next()){var l=a.value;if(l.path===t.path)return e.splice(o),l;o++}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function Th(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||zp)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ah(t){if(1===t.numberOfChildren&&t.children[Fp]){var e=t.children[Fp];return new nh(t.segments.concat(e.segments),e.children)}return t}function kh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ph(t){return t.outlet||Fp}var Ih=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=Mh(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Mh(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Rh(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return Rh(t,this._root).map(function(t){return t.value})},t}();function Mh(t,e){if(t===e.value)return e;try{for(var n=u(e.children),r=n.next();!r.done;r=n.next()){var o=Mh(t,r.value);if(o)return o}}catch(t){i={error:t}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(i)throw i.error}}return null;var i,a}function Rh(t,e){if(t===e.value)return[e];try{for(var n=u(e.children),r=n.next();!r.done;r=n.next()){var o=Rh(t,r.value);if(o.length)return o.unshift(e),o}}catch(t){i={error:t}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(i)throw i.error}}return[];var i,a}var Dh=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Nh(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Vh=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,zh(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Ih);function jh(t,e){var n=function(t,e){var n=new Uh([],{},{},"",{},Fp,e,null,t.root,-1,{});return new Hh("",new Dh(n,[]))}(t,e),r=new Gf([new rh("",{})]),o=new Gf({}),i=new Gf({}),u=new Gf({}),a=new Gf(""),l=new Lh(r,o,u,a,i,Fp,e,n.root);return l.snapshot=n.root,new Vh(new Dh(l,[]),n)}var Lh=function(){function t(t,e,n,r,o,i,u,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=u,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(q(function(t){return Hp(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(q(function(t){return Hp(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Fh(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],u=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(u.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Uh=function(){function t(t,e,n,r,o,i,u,a,l,s,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=u,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=s,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Hp(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Hp(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Hh=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,zh(r,n),r}return o(e,t),e.prototype.toString=function(){return Bh(this._root)},e}(Ih);function zh(t,e){e.value._routerState=t,e.children.forEach(function(e){return zh(t,e)})}function Bh(t){var e=t.children.length>0?" { "+t.children.map(Bh).join(", ")+" } ":"";return""+t.value+e}function qh(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Qp(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Qp(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Wh(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Kp(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),$h=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function Kh(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Fp]:""+t}function Yh(t,e,n){if(t||(t=new nh([],{})),0===t.segments.length&&t.hasChildren())return Jh(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var u=t.segments[o],a=Kh(n[r]),l=r0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!nd(a,l,u))return i;r+=2}else{if(!nd(a,{},u))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?function(n){return A(bp(t,e),Xf(1),up(e))(n)}:function(e){return A(bp(function(e,n,r){return t(e,n,r+1)}),Xf(1))(e)}}(function(t,e){return t})):Wf(null)},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var o=this,i=Nh(e);t.children.forEach(function(t){o.setupRouteGuards(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),Yp(i,function(t,e){return o.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var o=t.value,i=e?e.value:null,u=n?n.getContext(t.value.outlet):null;if(i&&o.routeConfig===i.routeConfig){var a=this.shouldRunGuardsAndResolvers(i,o,o.routeConfig.runGuardsAndResolvers);a?this.canActivateChecks.push(new rd(r)):(o.data=i.data,o._resolvedData=i._resolvedData),this.setupChildRouteGuards(t,e,o.component?u?u.children:null:n,r),a&&this.canDeactivateChecks.push(new od(u.outlet.component,i))}else i&&this.deactivateRouteAndItsChildren(e,u),this.canActivateChecks.push(new rd(r)),this.setupChildRouteGuards(t,null,o.component?u?u.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Gh(t,e)||!Qp(t.queryParams,e.queryParams);case"paramsChange":default:return!Gh(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=Nh(t),o=t.value;Yp(r,function(t,r){n.deactivateRouteAndItsChildren(t,o.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new od(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this;return Q(this.canDeactivateChecks).pipe($(function(e){return t.runCanDeactivate(e.component,e.route)}),hp(function(t){return!0===t}))},t.prototype.runCanActivateChecks=function(){var t=this;return Q(this.canActivateChecks).pipe(Qf(function(e){return Jp(Q([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))}),hp(function(t){return!0===t}))},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new jp(t)),Wf(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Np(t)),Wf(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Jp(Q(n).pipe(q(function(n){var r=e.getToken(n,t);return Xp(r.canActivate?r.canActivate(t,e.future):r(t,e.future)).pipe(mp())}))):Wf(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1];return Jp(Q(t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t})).pipe(q(function(t){return Jp(Q(t.guards).pipe(q(function(r){var o=e.getToken(r,t.node);return Xp(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)).pipe(mp())})))})))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Q(r).pipe($(function(r){var o=n.getToken(r,e);return Xp(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)).pipe(mp())})).pipe(hp(function(t){return!0===t})):Wf(!0)},t.prototype.runResolve=function(t,e){return this.resolveNode(t._resolve,t).pipe(q(function(n){return t._resolvedData=n,t.data=i({},t.data,Fh(t,e).resolve),null}))},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Wf({});if(1===r.length){var o=r[0];return this.getResolver(t[o],e).pipe(q(function(t){return(e={})[o]=t,e;var e}))}var i={};return Q(r).pipe($(function(r){return n.getResolver(t[r],e).pipe(q(function(t){return i[r]=t,t}))})).pipe(sp(),q(function(){return i}))},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return Xp(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),ud=function(){},ad=function(){function t(t,e,n,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o}return t.prototype.recognize=function(){try{var t=cd(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Fp),n=new Uh([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},Fp,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Dh(n,e),o=new Hh(this.url,r);return this.inheritParamsAndData(o._root),Wf(o)}catch(t){return new P(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Fh(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=ih(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===Fp?-1:e.value.outlet===Fp?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){try{for(var o=u(t),i=o.next();!i.done;i=o.next()){var a=i.value;try{return this.processSegmentAgainstRoute(a,e,n,r)}catch(t){if(!(t instanceof ud))throw t}}}catch(t){l={error:t}}finally{try{i&&!i.done&&(s=o.return)&&s.call(o)}finally{if(l)throw l.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new ud;var l,s},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new ud;if((t.outlet||Fp)!==r)throw new ud;var o,u=[],a=[];if("**"===t.path){var l=n.length>0?Kp(n).parameters:{};o=new Uh(n,l,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,hd(t),r,t.component,t,ld(e),sd(e)+n.length,dd(t))}else{var s=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new ud;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||zp)(n,t,e);if(!r)throw new ud;var o={};Yp(r.posParams,function(t,e){o[e]=t.path});var u=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:u}}(e,t,n);u=s.consumedSegments,a=n.slice(s.lastChild),o=new Uh(u,s.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,hd(t),r,t.component,t,ld(e),sd(e)+u.length,dd(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=cd(e,u,a,c),p=f.segmentGroup,h=f.slicedSegments;if(0===h.length&&p.hasChildren()){var d=this.processChildren(c,p);return[new Dh(o,d)]}if(0===c.length&&0===h.length)return[new Dh(o,[])];var v=this.processSegment(c,p,h,Fp);return[new Dh(o,v)]},t}();function ld(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function sd(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function cd(t,e,n,r){if(n.length>0&&function(t,e,n){return r.some(function(n){return fd(t,e,n)&&pd(n)!==Fp})}(t,n)){var o=new nh(e,function(t,e,n,r){var o,i,a={};a[Fp]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var l=u(n),s=l.next();!s.done;s=l.next()){var c=s.value;if(""===c.path&&pd(c)!==Fp){var f=new nh([],{});f._sourceSegment=t,f._segmentIndexShift=e.length,a[pd(c)]=f}}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return a}(t,e,r,new nh(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return fd(t,e,n)})}(t,n)){var a=new nh(t.segments,function(t,e,n,r){var o,a,l={};try{for(var s=u(n),c=s.next();!c.done;c=s.next()){var f=c.value;if(fd(t,e,f)&&!r[pd(f)]){var p=new nh([],{});p._sourceSegment=t,p._segmentIndexShift=t.segments.length,l[pd(f)]=p}}}catch(t){o={error:t}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}return i({},r,l)}(t,n,r,t.children));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var l=new nh(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function fd(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function pd(t){return t.outlet||Fp}function hd(t){return t.data||{}}function dd(t){return t.resolve||{}}var vd=function(){},gd=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),yd=new ht("ROUTES"),md=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(q(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Bp($p(o.injector.get(yd)).map(Zp),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Q(this.loader.load(t)):Xp(t()).pipe($(function(t){return t instanceof Re?Wf(t):Q(e.compiler.compileModuleAsync(t))}))},t}(),_d=function(){},bd=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function wd(t){throw t}function Cd(t){return Wf(null)}var xd=function(){function t(t,e,n,r,o,i,u,a){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.navigations=new Gf(null),this.navigationId=0,this.events=new rt,this.errorHandler=wd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Cd,afterPreactivation:Cd},this.urlHandlingStrategy=new bd,this.routeReuseStrategy=new gd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=o.get(Me),this.resetConfig(a),this.currentUrlTree=new eh(new nh([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new md(i,u,function(t){return l.triggerEvent(new Rp(t))},function(t){return l.triggerEvent(new Dp(t))}),this.routerState=jh(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,o,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){qp(t),this.config=t.map(Zp),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,o=e.fragment,u=e.preserveQueryParams,a=e.queryParamsHandling,s=e.preserveFragment;Xe()&&u&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,f=s?this.currentUrlTree.fragment:o,p=null;if(a)switch(a){case"merge":p=i({},this.currentUrlTree.queryParams,r);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}else p=u?this.currentUrlTree.queryParams:r||null;return null!==p&&(p=this.removeEmptyProps(p)),function(t,e,n,r,o){if(0===n.length)return Zh(e.root,e.root,e,r,o);var i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Qh(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return Yp(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),l(t,[{outlets:i}])}if(r.segmentPath)return l(t,[r.segmentPath])}return"string"!=typeof r?l(t,[r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):l(t,[r])},[]);return new Qh(n,e,r)}(n);if(i.toRoot())return Zh(e.root,new nh([],{}),e,r,o);var u=function(t,n,r){if(t.isAbsolute)return new $h(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new $h(r.snapshot._urlSegment,!0,0);var o=Wh(t.commands[0])?0:1;return function(e,n,i){for(var u=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+o,l=t.numberOfDoubleDots;l>a;){if(l-=a,!(u=u.parent))throw new Error("Invalid number of '../'");a=u.segments.length}return new $h(u,!1,a-l)}()}(i,0,t),a=u.processChildren?Jh(u.segmentGroup,u.index,i.commands):Yh(u.segmentGroup,u.index,i.commands);return Zh(u.segmentGroup,a,e,r,o)}(c,this.currentUrlTree,t,p,f)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof eh?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e h2[_ngcontent-%COMP%]{font-size:1.4em}header[_ngcontent-%COMP%] > h2.error[_ngcontent-%COMP%]{color:#d93a3e}section[_ngcontent-%COMP%]{flex:1;display:flex;flex-flow:row wrap;align-content:flex-start}section[_ngcontent-%COMP%] > media-item[_ngcontent-%COMP%]{margin:10px}footer[_ngcontent-%COMP%]{text-align:right}footer[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:64px;height:64px;margin:15px}"]],data:{}});function Jd(t){return Ii(0,[(t()(),vo(0,0,null,null,3,"mw-media-item",[],null,[[null,"delete"],[null,"preview"]],function(t,e,n){var r=!0,o=t.component;return"delete"===e&&(r=!1!==o.onMediaItemDelete(n)&&r),"preview"===e&&(r=!1!==o.onMediaItemPreview(n)&&r),r},Lf,Vf)),ri(1,278528,null,0,vl,[Hn,zn,fn,cn],{ngClass:[0,"ngClass"]},null),Oi(2,{"medium-movies":0,"medium-series":1}),ri(3,49152,null,0,Nf,[xf],{mediaItem:[0,"mediaItem"]},{delete:"delete",preview:"preview"})],function(t,e){t(e,1,0,t(e,2,0,"Movies"===e.context.$implicit.medium,"Series"===e.context.$implicit.medium)),t(e,3,0,e.context.$implicit)},null)}function Xd(t){return Ii(0,[oi(0,Ff,[]),(t()(),vo(1,0,null,null,7,"header",[],null,null,null,null,null)),ri(2,278528,null,0,vl,[Hn,zn,fn,cn],{ngClass:[0,"ngClass"]},null),Oi(3,{"medium-movies":0,"medium-series":1}),(t()(),vo(4,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Ai(5,null,["",""])),(t()(),vo(6,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),Ai(7,null,["",""])),Si(8,1),(t()(),vo(9,0,null,null,10,"div",[],null,null,null,null,null)),(t()(),vo(10,0,null,null,1,"mw-toolbar",[],null,[[null,"filter"]],function(t,e,n){var r=!0;return"filter"===e&&(r=!1!==t.component.onMediaItemFilter(n)&&r),r},qf,zf)),ri(11,114688,null,0,Hf,[Lc,ya],null,{filter:"filter"}),(t()(),vo(12,0,null,null,7,"div",[],null,null,null,null,null)),(t()(),vo(13,0,null,null,2,"section",[],null,null,null,null,null)),(t()(),ho(16777216,null,null,1,null,Jd)),ri(15,802816,null,0,yl,[_n,mn,Hn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(16,0,null,null,3,"footer",[],null,null,null,null,null)),(t()(),vo(17,0,null,null,2,"a",[["routerLink","/add"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==qo(t,18).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),ri(18,671744,null,0,Od,[xd,Lh,Ta],{routerLink:[0,"routerLink"]},null),(t()(),vo(19,0,null,null,0,"img",[["class","icon"],["src","../assets/media/01.png"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,2,0,t(e,3,0,"Movies"===n.medium,"Series"===n.medium)),t(e,11,0),t(e,15,0,n.mediaItems),t(e,18,0,"/add")},function(t,e){var n=e.component;t(e,5,0,n.medium),t(e,7,0,Vr(e,7,0,t(e,8,0,qo(e,0),n.mediaItems))),t(e,17,0,qo(e,18).target,qo(e,18).href)})}var tv=Ro("mw-media-item-list",Kd,function(t){return Ii(0,[(t()(),vo(0,0,null,null,1,"mw-media-item-list",[],null,null,null,Xd,Yd)),ri(1,245760,null,0,Kd,[xf,Lh],null,null)],function(t,e){t(e,1,0)},null)},{},{preview:"preview"},[]),ev=Fr({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;font-family:Arial,Helvetica,sans-serif;min-height:100%}nav[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:68px;background-color:#53ace4}nav[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:48px;height:48px;margin:10px}section[_ngcontent-%COMP%]{width:100%;background-color:#32435b}section[_ngcontent-%COMP%] > header[_ngcontent-%COMP%]{color:#fff;padding:10px}section[_ngcontent-%COMP%] > header[_ngcontent-%COMP%] > h1[_ngcontent-%COMP%]{font-size:2em}section[_ngcontent-%COMP%] > header[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-style:italic}"]],data:{}});function nv(t){return Ii(0,[(t()(),vo(0,0,null,null,9,"nav",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[["routerLink","/"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==qo(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),ri(2,671744,null,0,Od,[xd,Lh,Ta],{routerLink:[0,"routerLink"]},null),(t()(),vo(3,0,null,null,0,"img",[["class","icon"],["src","../assets/media/04.png"]],null,null,null,null,null)),(t()(),vo(4,0,null,null,2,"a",[["routerLink","/Movies"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==qo(t,5).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),ri(5,671744,null,0,Od,[xd,Lh,Ta],{routerLink:[0,"routerLink"]},null),(t()(),vo(6,0,null,null,0,"img",[["class","icon"],["src","../assets/media/03.png"]],null,null,null,null,null)),(t()(),vo(7,0,null,null,2,"a",[["routerLink","/Series"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==qo(t,8).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),ri(8,671744,null,0,Od,[xd,Lh,Ta],{routerLink:[0,"routerLink"]},null),(t()(),vo(9,0,null,null,0,"img",[["class","icon"],["src","../assets/media/02.png"]],null,null,null,null,null)),(t()(),vo(10,0,null,null,7,"section",[],null,null,null,null,null)),(t()(),vo(11,0,null,null,4,"header",[],null,null,null,null,null)),(t()(),vo(12,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),Ai(-1,null,["Media Watch List"])),(t()(),vo(14,0,null,null,1,"p",[["class","description"]],null,null,null,null,null)),(t()(),Ai(-1,null,["Keeping track of the media I want to watch."])),(t()(),vo(16,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ri(17,212992,null,0,Pd,[kd,_n,ke,[8,null],bn],null,null)],function(t,e){t(e,2,0,"/"),t(e,5,0,"/Movies"),t(e,8,0,"/Series"),t(e,17,0)},function(t,e){t(e,1,0,qo(e,2).target,qo(e,2).href),t(e,4,0,qo(e,5).target,qo(e,5).href),t(e,7,0,qo(e,8).target,qo(e,8).href)})}var rv=Ro("mw-app",ba,function(t){return Ii(0,[(t()(),vo(0,0,null,null,1,"mw-app",[],null,null,null,nv,ev)),ri(1,49152,null,0,ba,[],null,null)],null,null)},{},{},[]),ov=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.createConnection=function(e){return e.url="http://localhost:5005/"+e.url,t.prototype.createConnection.call(this,e)},e}(lf),iv=function(){function t(){}return t.prototype.filter=function(t,e,n,r){return Uf.filter(t,function(t){return"contains"===n?t[e].includes(r):"equals"===n?t[e]===r:"startswith"===n?t[e].startsWith(r):"lessThan"===n?t[e]r:void 0})},t}(),uv=function(t,e,n){return new Lu(_a,[ba],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o",this._properties=t&&t.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==_.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return x.zone},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return j},enumerable:!0,configurable:!0}),t.__load_patch=function(o,a){if(_.hasOwnProperty(o))throw Error("Already loaded patch: "+o);if(!e["__Zone_disable_"+o]){var i="Zone:"+o;n(i),_[o]=a(e,t,F),r(i,i)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){void 0===t&&(t=void 0),void 0===n&&(n=null),void 0===r&&(r=null),x={parent:x,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{x=x.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),x={parent:x,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{x=x.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||v).name+"; Execution: "+this.name+")");if(e.state!==y||e.type!==E){var r=e.state!=k;r&&e._transitionTo(k,b),e.runCount++;var o=j;j=e,x={parent:x,zone:this};try{e.type==T&&e.data&&!e.data.isPeriodic&&(e.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{e.state!==y&&e.state!==S&&(e.type==E||e.data&&e.data.isPeriodic?r&&e._transitionTo(b,k):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(y,k,y))),x=x.parent,j=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(m,y);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(S,m,y),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==m&&e._transitionTo(b,m),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new s(M,e,t,n,r,null))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new s(T,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new s(E,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||v).name+"; Execution: "+this.name+")");e._transitionTo(w,b,k);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(S,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(y,w),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),s=function(){function t(n,r,o,a,i,u){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=a,this.scheduleFn=i,this.cancelFn=u,this.callback=o;var s=this;this.invoke=n===E&&a&&a.useG?t.invokeTask:function(){return t.invokeTask.call(e,s,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),K++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==K&&d(),K--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(y,m)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==y&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),c=P("setTimeout"),l=P("Promise"),f=P("then"),h=[],p=!1;function g(t){0===K&&0===h.length&&(o||e[l]&&(o=e[l].resolve(0)),o?o[f](d):e[c](d,0)),t&&h.push(t)}function d(){if(!p){for(p=!0;h.length;){var e=h;h=[];for(var t=0;t=0;n--)"function"==typeof e[n]&&(e[n]=h(e[n],t+"_"+n));return e}function w(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var S="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,M=!("nw"in y)&&void 0!==y.process&&"[object process]"==={}.toString.call(y.process),T=!M&&!S&&!(!d||!v.HTMLElement),E=void 0!==y.process&&"[object process]"==={}.toString.call(y.process)&&!S&&!(!d||!v.HTMLElement),_={},F=function(e){if(e=e||y.event){var t=_[e.type];t||(t=_[e.type]=g("ON_PROPERTY"+e.type));var n=(this||e.target||y)[t],r=n&&n.apply(this,arguments);return void 0==r||r||e.preventDefault(),r}};function x(n,r,o){var a=e(n,r);if(!a&&o&&e(o,r)&&(a={enumerable:!0,configurable:!0}),a&&a.configurable){delete a.writable,delete a.value;var i=a.get,u=a.set,s=r.substr(2),c=_[s];c||(c=_[s]=g("ON_PROPERTY"+s)),a.set=function(e){var t=this;t||n!==y||(t=y),t&&(t[c]&&t.removeEventListener(s,F),u&&u.apply(t,b),"function"==typeof e?(t[c]=e,t.addEventListener(s,F,!1)):t[c]=null)},a.get=function(){var e=this;if(e||n!==y||(e=y),!e)return null;var t=e[c];if(t)return t;if(i){var o=i&&i.call(this);if(o)return a.set.call(this,o),"function"==typeof e[m]&&e.removeAttribute(r),o}return null},t(n,r,a)}}function j(e,t,n){if(t)for(var r=0;r1?new u(t,n):new u(t),f=e(l,"onmessage");return f&&!1===f.configurable?(s=r(l),c=l,[a,i,"send","close"].forEach(function(e){s[e]=function(){var t=o.call(arguments);if(e===a||e===i){var n=t.length>0?t[0]:void 0;if(n){var r=Zone.__symbol__("ON_PROPERTY"+n);l[r]=s[r]}}return l[e].apply(l,t)}})):s=l,j(s,["close","error","message","open"],c),s};var s=n.WebSocket;for(var c in u)s[c]=u[c]}(0,s)}}var fe=g("unbound");Zone.__load_patch("util",function(e,t,n){n.patchOnProperties=j,n.patchMethod=P,n.bindArguments=k}),Zone.__load_patch("timers",function(e){J(e,"set","clear","Timeout"),J(e,"set","clear","Interval"),J(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){J(e,"request","cancel","AnimationFrame"),J(e,"mozRequest","mozCancel","AnimationFrame"),J(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r=0&&"function"==typeof n[r.cbIdx]?p(r.name,n[r.cbIdx],r,a,null):e.apply(t,n)}})}()}),Zone.__load_patch("XHR",function(e,t){!function(t){var c=XMLHttpRequest.prototype,l=c[u],f=c[s];if(!l){var h=e.XMLHttpRequestEventTarget;if(h){var g=h.prototype;l=g[u],f=g[s]}}var d="readystatechange",v="scheduled";function y(e){XMLHttpRequest[a]=!1;var t=e.data,r=t.target,i=r[o];l||(l=r[u],f=r[s]),i&&f.call(r,d,i);var c=r[o]=function(){r.readyState===r.DONE&&!t.aborted&&XMLHttpRequest[a]&&e.state===v&&e.invoke()};return l.call(r,d,c),r[n]||(r[n]=e),w.apply(r,t.args),XMLHttpRequest[a]=!0,e}function m(){}function b(e){var t=e.data;return t.aborted=!0,S.apply(t.target,t.args)}var k=P(c,"open",function(){return function(e,t){return e[r]=0==t[2],e[i]=t[1],k.apply(e,t)}}),w=P(c,"send",function(){return function(e,t){return e[r]?w.apply(e,t):p("XMLHttpRequest.send",m,{target:e,url:e[i],isPeriodic:!1,delay:null,args:t,aborted:!1},y,b)}}),S=P(c,"abort",function(){return function(e){var t=e[n];if(t&&"string"==typeof t.type){if(null==t.cancelFn||t.data&&t.data.aborted)return;t.zone.cancelTask(t)}}})}();var n=g("xhrTask"),r=g("xhrSync"),o=g("xhrListener"),a=g("xhrScheduled"),i=g("xhrURL")}),Zone.__load_patch("geolocation",function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var a=n[o],i=t[a];if(i){if(!w(e(t,a)))return"continue";t[a]=function(e){var t=function(){return e.apply(this,k(arguments,r+"."+a))};return D(t,e),t}(i)}},a=0;ac;)s.call(e,i=u[c++])&&t.push(i);return t}},"1TsA":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},"1sa7":function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},2:function(e,t){},"25dN":function(e,t,n){var r=n("XKFU");r(r.S,"Object",{is:n("g6HL")})},"2OiF":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"2Spj":function(e,t,n){var r=n("XKFU");r(r.P,"Function",{bind:n("8MEG")})},"2atp":function(e,t,n){var r=n("XKFU"),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},3:function(e,t,n){e.exports=n("hN/g")},"3Lyj":function(e,t,n){var r=n("KroJ");e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},"45Tv":function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),a=n("OP3Y"),i=r.has,u=r.get,s=r.key,c=function(e,t,n){if(i(e,t,n))return u(e,t,n);var r=a(t);return null!==r?c(e,r,n):void 0};r.exp({getMetadata:function(e,t){return c(e,o(t),arguments.length<3?void 0:s(arguments[2]))}})},"49D4":function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),a=r.key,i=r.set;r.exp({defineMetadata:function(e,t,n,r){i(e,t,o(n),a(r))}})},"4A4+":function(e,t,n){n("2Spj"),n("f3/d"),n("IXt9"),e.exports=n("g3g5").Function},"4LiD":function(e,t,n){"use strict";var r=n("dyZX"),o=n("XKFU"),a=n("KroJ"),i=n("3Lyj"),u=n("Z6vF"),s=n("SlkY"),c=n("9gX7"),l=n("0/R4"),f=n("eeVq"),h=n("XMVh"),p=n("fyDq"),g=n("Xbzi");e.exports=function(e,t,n,d,v,y){var m=r[e],b=m,k=v?"set":"add",w=b&&b.prototype,S={},M=function(e){var t=w[e];a(w,e,"delete"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(y||w.forEach&&!f(function(){(new b).entries().next()}))){var T=new b,E=T[k](y?{}:-0,1)!=T,_=f(function(){T.has(1)}),F=h(function(e){new b(e)}),x=!y&&f(function(){for(var e=new b,t=5;t--;)e[k](t,t);return!e.has(-0)});F||((b=t(function(t,n){c(t,b,e);var r=g(new m,t,b);return void 0!=n&&s(n,v,r[k],r),r})).prototype=w,w.constructor=b),(_||x)&&(M("delete"),M("has"),v&&M("get")),(x||E)&&M(k),y&&w.clear&&delete w.clear}else b=d.getConstructor(t,e,v,k),i(b.prototype,n),u.NEED=!0;return p(b,e),S[e]=b,o(o.G+o.W+o.F*(b!=m),S),y||d.setStrong(b,e,v),b}},"4R4u":function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"5Pf0":function(e,t,n){var r=n("S/j/"),o=n("OP3Y");n("Xtr8")("getPrototypeOf",function(){return function(e){return o(r(e))}})},"6AQ9":function(e,t,n){"use strict";var r=n("XKFU"),o=n("8a7r");r(r.S+r.F*n("eeVq")(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},"6FMO":function(e,t,n){var r=n("0/R4"),o=n("EWmC"),a=n("K0xU")("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},"7Dlh":function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),a=r.has,i=r.key;r.exp({hasOwnMetadata:function(e,t){return a(e,o(t),arguments.length<3?void 0:i(arguments[2]))}})},"7h0T":function(e,t,n){var r=n("XKFU");r(r.S,"Number",{isNaN:function(e){return e!=e}})},"8+KV":function(e,t,n){"use strict";var r=n("XKFU"),o=n("CkkT")(0),a=n("LyE8")([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(e){return o(this,e,arguments[1])}})},"84bF":function(e,t,n){"use strict";n("OGtf")("small",function(e){return function(){return e(this,"small","","")}})},"8MEG":function(e,t,n){"use strict";var r=n("2OiF"),o=n("0/R4"),a=n("MfQN"),i=[].slice,u={};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?function(e,t,n){if(!(t in u)){for(var r=[],o=0;o0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},"9P93":function(e,t,n){var r=n("XKFU"),o=Math.imul;r(r.S+r.F*n("eeVq")(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(e,t){var n=+e,r=+t,o=65535&n,a=65535&r;return 0|o*a+((65535&n>>>16)*a+o*(65535&r>>>16)<<16>>>0)}})},"9VmF":function(e,t,n){"use strict";var r=n("XKFU"),o=n("ne8i"),a=n("0sh+"),i="".startsWith;r(r.P+r.F*n("UUeW")("startsWith"),"String",{startsWith:function(e){var t=a(this,e,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return i?i.call(t,r,n):t.slice(n,n+r.length)===r}})},"9gX7":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},A2zW:function(e,t,n){"use strict";var r=n("XKFU"),o=n("RYi7"),a=n("vvmO"),i=n("l0Rn"),u=1..toFixed,s=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f=function(e,t){for(var n=-1,r=t;++n<6;)c[n]=(r+=e*c[n])%1e7,r=s(r/1e7)},h=function(e){for(var t=6,n=0;--t>=0;)c[t]=s((n+=c[t])/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+i.call("0",7-n.length)+n}return t},g=function(e,t,n){return 0===t?n:t%2==1?g(e,t-1,n*e):g(e*e,t/2,n)};r(r.P+r.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("eeVq")(function(){u.call({})})),"Number",{toFixed:function(e){var t,n,r,u,s=a(this,l),c=o(e),d="",v="0";if(c<0||c>20)throw RangeError(l);if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return String(s);if(s<0&&(d="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*g(2,69,1))-69)<0?s*g(2,-t,1):s/g(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=c;r>=7;)f(1e7,0),r-=7;for(f(g(10,r,1),0),r=t-1;r>=23;)h(1<<23),r-=23;h(1<0?d+((u=v.length)<=c?"0."+i.call("0",c-u)+v:v.slice(0,u-c)+"."+v.slice(u-c)):d+v}})},Afnz:function(e,t,n){"use strict";var r=n("LQAc"),o=n("XKFU"),a=n("KroJ"),i=n("Mukb"),u=n("hPIQ"),s=n("QaDb"),c=n("fyDq"),l=n("OP3Y"),f=n("K0xU")("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,g,d,v,y){s(n,t,g);var m,b,k,w=function(e){if(!h&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",M="values"==d,T=!1,E=e.prototype,_=E[f]||E["@@iterator"]||d&&E[d],F=_||w(d),x=d?M?w("entries"):F:void 0,j="Array"==t&&E.entries||_;if(j&&(k=l(j.call(new e)))!==Object.prototype&&k.next&&(c(k,S,!0),r||"function"==typeof k[f]||i(k,f,p)),M&&_&&"values"!==_.name&&(T=!0,F=function(){return _.call(this)}),r&&!y||!h&&!T&&E[f]||i(E,f,F),u[t]=F,u[S]=p,d)if(m={values:M?F:w("values"),keys:v?F:w("keys"),entries:x},y)for(b in m)b in E||a(E,b,m[b]);else o(o.P+o.F*(h||T),t,m);return m}},AphP:function(e,t,n){"use strict";var r=n("XKFU"),o=n("S/j/"),a=n("apmT");r(r.P+r.F*n("eeVq")(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=o(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},AvRE:function(e,t,n){var r=n("RYi7"),o=n("vhPU");e.exports=function(e){return function(t,n){var a,i,u=String(o(t)),s=r(n),c=u.length;return s<0||s>=c?e?"":void 0:(a=u.charCodeAt(s))<55296||a>56319||s+1===c||(i=u.charCodeAt(s+1))<56320||i>57343?e?u.charAt(s):a:e?u.slice(s,s+2):i-56320+(a-55296<<10)+65536}}},BC7C:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{fround:n("kcoS")})},"BJ/l":function(e,t,n){var r=n("XKFU");r(r.S,"Math",{log1p:n("1sa7")})},BP8U:function(e,t,n){var r=n("XKFU"),o=n("PKUr");r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},BqfV:function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),a=r.get,i=r.key;r.exp({getOwnMetadata:function(e,t){return a(e,o(t),arguments.length<3?void 0:i(arguments[2]))}})},Btvt:function(e,t,n){"use strict";var r=n("I8a+"),o={};o[n("K0xU")("toStringTag")]="z",o+""!="[object z]"&&n("KroJ")(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},"C/va":function(e,t,n){"use strict";var r=n("y3w9");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},CkkT:function(e,t,n){var r=n("m0Pp"),o=n("Ymqv"),a=n("S/j/"),i=n("ne8i"),u=n("zRwo");e.exports=function(e,t){var n=1==e,s=2==e,c=3==e,l=4==e,f=6==e,h=5==e||f,p=t||u;return function(t,u,g){for(var d,v,y=a(t),m=o(y),b=r(u,g,3),k=i(m.length),w=0,S=n?p(t,k):s?p(t,0):void 0;k>w;w++)if((h||w in m)&&(v=b(d=m[w],w,y),e))if(n)S[w]=v;else if(v)switch(e){case 3:return!0;case 5:return d;case 6:return w;case 2:S.push(d)}else if(l)return!1;return f?-1:c||l?l:S}}},CuTL:function(e,t,n){n("fyVe"),n("U2t9"),n("2atp"),n("+auO"),n("MtdB"),n("Jcmo"),n("nzyx"),n("BC7C"),n("x8ZO"),n("9P93"),n("eHKK"),n("BJ/l"),n("pp/T"),n("CyHz"),n("bBoP"),n("x8Yj"),n("hLT2"),e.exports=n("g3g5").Math},CyHz:function(e,t,n){var r=n("XKFU");r(r.S,"Math",{sign:n("lvtm")})},DNiP:function(e,t,n){"use strict";var r=n("XKFU"),o=n("eyMr");r(r.P+r.F*!n("LyE8")([].reduce,!0),"Array",{reduce:function(e){return o(this,e,arguments.length,arguments[1],!1)}})},DVgA:function(e,t,n){var r=n("zhAb"),o=n("4R4u");e.exports=Object.keys||function(e){return r(e,o)}},DW2E:function(e,t,n){var r=n("0/R4"),o=n("Z6vF").onFreeze;n("Xtr8")("freeze",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},EK0E:function(e,t,n){"use strict";var r,o=n("CkkT")(0),a=n("KroJ"),i=n("Z6vF"),u=n("czNK"),s=n("ZD67"),c=n("0/R4"),l=n("eeVq"),f=n("s5qY"),h=i.getWeak,p=Object.isExtensible,g=s.ufstore,d={},v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(c(e)){var t=h(e);return!0===t?g(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return s.def(f(this,"WeakMap"),e,t)}},m=e.exports=n("4LiD")("WeakMap",v,y,s,!0,!0);l(function(){return 7!=(new m).set((Object.freeze||Object)(d),7).get(d)})&&(u((r=s.getConstructor(v,"WeakMap")).prototype,y),i.NEED=!0,o(["delete","has","get","set"],function(e){var t=m.prototype,n=t[e];a(t,e,function(t,o){if(c(t)&&!p(t)){this._f||(this._f=new r);var a=this._f[e](t,o);return"set"==e?this:a}return n.call(this,t,o)})}))},EWmC:function(e,t,n){var r=n("LZWt");e.exports=Array.isArray||function(e){return"Array"==r(e)}},EemH:function(e,t,n){var r=n("UqcF"),o=n("RjD/"),a=n("aCFj"),i=n("apmT"),u=n("aagx"),s=n("xpql"),c=Object.getOwnPropertyDescriptor;t.f=n("nh4g")?c:function(e,t){if(e=a(e),t=i(t,!0),s)try{return c(e,t)}catch(e){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},FEjr:function(e,t,n){"use strict";n("OGtf")("strike",function(e){return function(){return e(this,"strike","","")}})},FJW5:function(e,t,n){var r=n("hswa"),o=n("y3w9"),a=n("DVgA");e.exports=n("nh4g")?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),u=i.length,s=0;u>s;)r.f(e,n=i[s++],t[n]);return e}},FLlr:function(e,t,n){var r=n("XKFU");r(r.P,"String",{repeat:n("l0Rn")})},FZcq:function(e,t,n){n("49D4"),n("zq+C"),n("45Tv"),n("uAtd"),n("BqfV"),n("fN/3"),n("iW+S"),n("7Dlh"),n("Opxb"),e.exports=n("g3g5").Reflect},FlsD:function(e,t,n){var r=n("0/R4");n("Xtr8")("isExtensible",function(e){return function(t){return!!r(t)&&(!e||e(t))}})},FoZm:function(e,t,n){global.IntlPolyfill=n("fL0r"),n(2),global.Intl||(global.Intl=global.IntlPolyfill,global.IntlPolyfill.__applyLocaleSensitivePrototypes()),e.exports=global.IntlPolyfill},GNAe:function(e,t,n){var r=n("XKFU"),o=n("PKUr");r(r.G+r.F*(parseInt!=o),{parseInt:o})},H6hf:function(e,t,n){var r=n("y3w9");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},"HAE/":function(e,t,n){var r=n("XKFU");r(r.S+r.F*!n("nh4g"),"Object",{defineProperty:n("hswa").f})},HEwt:function(e,t,n){"use strict";var r=n("m0Pp"),o=n("XKFU"),a=n("S/j/"),i=n("H6hf"),u=n("M6Qj"),s=n("ne8i"),c=n("8a7r"),l=n("J+6e");o(o.S+o.F*!n("XMVh")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,f,h=a(e),p="function"==typeof this?this:Array,g=arguments.length,d=g>1?arguments[1]:void 0,v=void 0!==d,y=0,m=l(h);if(v&&(d=r(d,g>2?arguments[2]:void 0,2)),void 0==m||p==Array&&u(m))for(n=new p(t=s(h.length));t>y;y++)c(n,y,v?d(h[y],y):h[y]);else for(f=m.call(h),n=new p;!(o=f.next()).done;y++)c(n,y,v?i(f,d,[o.value,y],!0):o.value);return n.length=y,n}})},I78e:function(e,t,n){"use strict";var r=n("XKFU"),o=n("+rLv"),a=n("LZWt"),i=n("d/Gc"),u=n("ne8i"),s=[].slice;r(r.P+r.F*n("eeVq")(function(){o&&s.call(o)}),"Array",{slice:function(e,t){var n=u(this.length),r=a(this);if(t=void 0===t?n:t,"Array"==r)return s.call(this,e,t);for(var o=i(e,n),c=i(t,n),l=u(c-o),f=new Array(l),h=0;h1?arguments[1]:void 0)}}),n("nGyu")(a)},"IU+Z":function(e,t,n){"use strict";var r=n("Mukb"),o=n("KroJ"),a=n("eeVq"),i=n("vhPU"),u=n("K0xU");e.exports=function(e,t,n){var s=u(e),c=n(i,s,""[e]),l=c[0],f=c[1];a(function(){var t={};return t[s]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,l),r(RegExp.prototype,s,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},IXt9:function(e,t,n){"use strict";var r=n("0/R4"),o=n("OP3Y"),a=n("K0xU")("hasInstance"),i=Function.prototype;a in i||n("hswa").f(i,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},Iw71:function(e,t,n){var r=n("0/R4"),o=n("dyZX").document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},"J+6e":function(e,t,n){var r=n("I8a+"),o=n("K0xU")("iterator"),a=n("hPIQ");e.exports=n("g3g5").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||a[r(e)]}},JCqj:function(e,t,n){"use strict";n("OGtf")("sup",function(e){return function(){return e(this,"sup","","")}})},Jcmo:function(e,t,n){var r=n("XKFU"),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},JduL:function(e,t,n){n("Xtr8")("getOwnPropertyNames",function(){return n("e7yV").f})},JiEa:function(e,t){t.f=Object.getOwnPropertySymbols},K0xU:function(e,t,n){var r=n("VTer")("wks"),o=n("ylqs"),a=n("dyZX").Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},KKXr:function(e,t,n){n("IU+Z")("split",2,function(e,t,r){"use strict";var o=n("quPj"),a=r,i=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var u=void 0===/()??/.exec("")[1];r=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!o(e))return a.call(n,e,t);var r,s,c,l,f,h=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,d=void 0===t?4294967295:t>>>0,v=new RegExp(e.source,p+"g");for(u||(r=new RegExp("^"+v.source+"$(?!\\s)",p));(s=v.exec(n))&&!((c=s.index+s[0].length)>g&&(h.push(n.slice(g,s.index)),!u&&s.length>1&&s[0].replace(r,function(){for(f=1;f1&&s.index=d));)v.lastIndex===s.index&&v.lastIndex++;return g===n.length?!l&&v.test("")||h.push(""):h.push(n.slice(g)),h.length>d?h.slice(0,d):h}}else"0".split(void 0,0).length&&(r=function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)});return[function(n,o){var a=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,a,o):r.call(String(a),n,o)},r]})},KroJ:function(e,t,n){var r=n("dyZX"),o=n("Mukb"),a=n("aagx"),i=n("ylqs")("src"),u=Function.toString,s=(""+u).split("toString");n("g3g5").inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,u){var c="function"==typeof n;c&&(a(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(a(n,i)||o(n,i,e[t]?""+e[t]:s.join(String(t)))),e===r?e[t]=n:u?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||u.call(this)})},Kuth:function(e,t,n){var r=n("y3w9"),o=n("FJW5"),a=n("4R4u"),i=n("YTvA")("IE_PROTO"),u=function(){},s=function(){var e,t=n("Iw71")("iframe"),r=a.length;for(t.style.display="none",n("+rLv").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" - - - - - - - - - - - Loading... - - - \ No newline at end of file diff --git a/package.json b/package.json deleted file mode 100644 index d15f5e1..0000000 --- a/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "angular2-essential-training", - "version": "1.0.0", - "author": "Justin Schwartzenberger", - "description": "This project is the repository for my Angular 2 Essential Training course on Lynda.com.", - "repository": { - "type": "git", - "url": "https://github.com/LyndaExerciseFiles/angular2-essential-training.git" - }, - "scripts": { - "clean": "rimraf app/**/*.js app/**/*.js.map", - "tsc": "tsc", - "tsc:w": "tsc -w", - "lite": "lite-server", - "prestart": "npm run clean", - "start": "tsc && concurrently \"tsc -w\" \"lite-server\" " - }, - "dependencies": { - "@angular/common": "2.0.0", - "@angular/compiler": "2.0.0", - "@angular/core": "2.0.0", - "@angular/forms": "2.0.0", - "@angular/http": "2.0.0", - "@angular/platform-browser": "2.0.0", - "@angular/platform-browser-dynamic": "2.0.0", - "@angular/router": "3.0.0", - "systemjs": "0.19.27", - "core-js": "2.4.1", - "reflect-metadata": "0.1.3", - "rxjs": "5.0.0-beta.12", - "zone.js": "0.6.23" - }, - "devDependencies": { - "@types/core-js": "^0.9.34", - "@types/node": "^6.0.41", - "concurrently": "2.2.0", - "lite-server": "2.2.2", - "rimraf": "2.5.4", - "typescript": "2.0.2" - } -} diff --git a/resets.css b/resets.css deleted file mode 100644 index 83d923c..0000000 --- a/resets.css +++ /dev/null @@ -1,20 +0,0 @@ -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} \ No newline at end of file diff --git a/sample.txt b/sample.txt deleted file mode 100755 index 8c96068..0000000 --- a/sample.txt +++ /dev/null @@ -1,10 +0,0 @@ -var categories = []; -mediaItems.forEach(mediaItem => { - if (categories.indexOf(mediaItem.category) <= -1) { - categories.push(mediaItem.category); - } -}); -return categories.join(', '); - - -[\\w\\-\\s\\/]+ diff --git a/systemjs.config.js b/systemjs.config.js deleted file mode 100644 index b32efb1..0000000 --- a/systemjs.config.js +++ /dev/null @@ -1,55 +0,0 @@ -/** - * System configuration for Angular 2 samples - * Adjust as necessary for your application needs. - */ -(function (global) { - - // map tells the System loader where to look for things - var map = { - 'app': 'app', // 'dist', - - '@angular': 'node_modules/@angular', - 'rxjs': 'node_modules/rxjs' - }; - - // packages tells the System loader how to load when no filename and/or no extension - var packages = { - 'app': { main: 'main.js', defaultExtension: 'js' }, - 'rxjs': { defaultExtension: 'js' } - }; - - var ngPackageNames = [ - 'common', - 'compiler', - 'core', - 'forms', - 'http', - 'platform-browser', - 'platform-browser-dynamic', - 'router', - ]; - - // Individual files (~300 requests): - function packIndex(pkgName) { - packages['@angular/' + pkgName] = { main: 'index.js', defaultExtension: 'js' }; - } - - // Bundled (~40 requests): - function packUmd(pkgName) { - packages['@angular/' + pkgName] = { main: '/bundles/' + pkgName + '.umd.js', defaultExtension: 'js' }; - } - - // Most environments should use UMD; some (Karma) need the individual index files - var setPackageConfig = System.packageWithIndex ? packIndex : packUmd; - - // Add package entries for angular packages - ngPackageNames.forEach(setPackageConfig); - - var config = { - map: map, - packages: packages - }; - - System.config(config); - -})(this); \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index e14d316..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "system", - "moduleResolution": "node", - "sourceMap": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "removeComments": false, - "noImplicitAny": false, - "suppressImplicitAnyIndexErrors": true - } -} \ No newline at end of file