diff --git a/apps/maarch_entreprise/indexing_searching/choose_file.php b/apps/maarch_entreprise/indexing_searching/choose_file.php index c65f38c4f23687ecf35abd1a0d4bb75eec0c3b02..55fe88aaffacb544e025ecb65161e5357688a75e 100644 --- a/apps/maarch_entreprise/indexing_searching/choose_file.php +++ b/apps/maarch_entreprise/indexing_searching/choose_file.php @@ -108,7 +108,7 @@ $_SESSION['with_file'] = false; $upFileOK = true; } } elseif ($_REQUEST['with_file'] == 'false') { - $_SESSION['upfile'] = array(); + $_SESSION['upfile'] = []; $upFileOK = true; } //if ($upFileOK) { @@ -150,22 +150,22 @@ $_SESSION['with_file'] = false; <?php if (!empty($_SESSION['upfile']['local_path']) && empty($_SESSION['error'])) { ?> <i class="fa fa-check-square fa-2x" title="<?php echo _DOWNLOADED_FILE; ?>"></i> - <input type="button" id="fileButton" onclick="$$('#file')[0].click();" class="button" + <input type="button" id="fileButton" onclick="$j('#file').click();" class="button" value="<?php if($_REQUEST['with_file'] == 'true'){ echo _WITHOUT_FILE; } else {echo _DOWNLOADED_FILE;}?>" style="width: 90%;margin: 0px;margin-top: -2px;font-size: 15px;text-align: center;"> <?php } else { ?> <i class="fa fa-remove fa-2x" title="<?php echo _NO_FILE_SELECTED; ?>"></i> - <input type="button" id="fileButton" onclick="$$('#file')[0].click()" class="button" value="<?php echo _CHOOSE_FILE; ?>" style="width: 90%;margin: 0px;margin-top: -2px;font-size: 15px;text-align: center;"> + <input type="button" id="fileButton" onclick="$j('#file').click()" class="button" value="<?php echo _CHOOSE_FILE; ?>" style="width: 90%;margin: 0px;margin-top: -2px;font-size: 15px;text-align: center;"> <?php } ?> </label> <?php if($_REQUEST['with_file'] == 'true'){ ?> - <i class="fa fa-ban fa-2x" id="with_file_icon" onclick="$$('#with_file')[0].click();" title="<?php echo _WITHOUT_FILE; ?> (actif)" style="cursor:pointer;"></i> + <i class="fa fa-ban fa-2x" id="with_file_icon" onclick="$j('#with_file').click();" title="<?php echo _WITHOUT_FILE; ?> (actif)" style="cursor:pointer;"></i> <?php }else{ ?> - <i class="fa fa-ban fa-2x" id="with_file_icon" onclick="$$('#with_file2')[0].click();" title="<?php echo _WITHOUT_FILE; ?>" style="cursor:pointer;"></i> + <i class="fa fa-ban fa-2x" id="with_file_icon" onclick="$j('#with_file')[0].value='true';$j('#with_file2').click();" title="<?php echo _WITHOUT_FILE; ?>" style="cursor:pointer;"></i> <?php } ?> - <input type="file" name="file" id="file" onchange="$('with_file').value='false';this.form.method = 'post';this.form.submit();" + <input type="file" name="file" id="file" onchange="$j('#with_file')[0].value='false';this.form.method = 'post';this.form.submit();" value="<?php $_REQUEST['with_file'] = 'false'; if (isset($_SESSION['file_path'])) { echo $_SESSION['file_path']; diff --git a/apps/maarch_entreprise/js/angular/app/signature-book.component.js b/apps/maarch_entreprise/js/angular/app/signature-book.component.js index a8f2bce7d962412fa7c84714f53bf002c3ad2154..51c82af6b7f54d5f3f6394c44fa5f95f4a743875 100644 --- a/apps/maarch_entreprise/js/angular/app/signature-book.component.js +++ b/apps/maarch_entreprise/js/angular/app/signature-book.component.js @@ -131,9 +131,11 @@ var SignatureBookComponent = (function () { setTimeout(function () { $j("#rightPanelContent").niceScroll({ touchbehavior: false, cursorcolor: "#666", cursoropacitymax: 0.6, cursorwidth: 4 }); $j(".pjSign").niceScroll({ touchbehavior: false, cursorcolor: "#666", cursoropacitymax: 0.6, cursorwidth: 4 }); - $j("#obsVersion").tooltipster({ - interactive: true - }); + if ($j(".tooltipstered").length == 0) { + $j("#obsVersion").tooltipster({ + interactive: true + }); + } }, 0); }); }); diff --git a/apps/maarch_entreprise/js/angular/app/signature-book.component.ts b/apps/maarch_entreprise/js/angular/app/signature-book.component.ts index 4ef86928681f538726fb42012c45db120e262584..0596ac42ab4d01e3cfe484182f703ea41a5270b8 100644 --- a/apps/maarch_entreprise/js/angular/app/signature-book.component.ts +++ b/apps/maarch_entreprise/js/angular/app/signature-book.component.ts @@ -141,9 +141,11 @@ export class SignatureBookComponent implements OnInit { setTimeout(() => { $j("#rightPanelContent").niceScroll({touchbehavior:false, cursorcolor:"#666", cursoropacitymax:0.6, cursorwidth:4}); $j(".pjSign").niceScroll({touchbehavior:false, cursorcolor:"#666", cursoropacitymax:0.6, cursorwidth:4}); - $j("#obsVersion").tooltipster({ - interactive: true - }); + if ($j(".tooltipstered").length == 0) { + $j("#obsVersion").tooltipster({ + interactive: true + }); + } }, 0); }); }); diff --git a/apps/maarch_entreprise/js/angular/main.bundle.min.js b/apps/maarch_entreprise/js/angular/main.bundle.min.js index 8d090a39f1e96b9a03288e38caee8c1e1dafd6c4..bf43f59e9974157a4af39cc0d30ee9aeea8e84fb 100644 --- a/apps/maarch_entreprise/js/angular/main.bundle.min.js +++ b/apps/maarch_entreprise/js/angular/main.bundle.min.js @@ -1,36 +1 @@ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.main=t()}}(function(){var t;return function e(t,r,n){function o(s,a){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var r=t[s][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=function(){function t(){}return t}();i=n([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"})],i),r.AppComponent=i},{"@angular/core":8}],2:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=t("@angular/platform-browser"),s=t("@angular/router"),a=t("@angular/http"),u=t("@angular/forms"),c=t("./app.component"),l=t("./profile.component"),p=t("./signature-book.component"),h=function(){function t(){}return t}();h=n([o.NgModule({imports:[i.BrowserModule,u.FormsModule,s.RouterModule.forRoot([{path:"profile",component:l.ProfileComponent},{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),a.HttpModule],declarations:[c.AppComponent,l.ProfileComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]})],h),r.AppModule=h},{"./app.component":1,"./profile.component":3,"./signature-book.component":4,"@angular/core":8,"@angular/forms":9,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13}],3:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t,e){var r=this;this.http=t,this.zone=e,this.user={lang:{}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.resultInfo="",this.loading=!1,window.angularProfileComponent={componentAfterUpload:function(t){return r.processAfterUpload(t)}}}return t.prototype.prepareProfile=function(){if($j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove(),Prototype.BrowserFeatures.ElementExtensions){var t=["collapse","dropdown","modal","tooltip","popover","tab"];disablePrototypeJS("show",t),disablePrototypeJS("hide",t)}tinymce.baseURL="../../node_modules/tinymce",tinymce.suffix=".min",tinymce.init({selector:"textarea#emailSignature",statusbar:!1,language:"fr_FR",language_url:"tools/tinymce/langs/fr_FR.js",height:"200",plugins:["textcolor"],external_plugins:{bdesk_photo:"../../apps/maarch_entreprise/tools/tinymce/bdesk_photo/plugin.min.js"},menubar:!1,toolbar:"undo | bold italic underline | alignleft aligncenter alignright | bdesk_photo | forecolor",theme_buttons1_add:"fontselect,fontsizeselect",theme_buttons2_add_before:"cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",theme_buttons2_add:"separator,insertdate,inserttime,preview,separator,forecolor,backcolor",theme_buttons3_add_before:"tablecontrols,separator",theme_buttons3_add:"separator,print,separator,ltr,rtl,separator,fullscreen,separator,insertlayer,moveforward,movebackward,absolut",theme_toolbar_align:"left",theme_advanced_toolbar_location:"top",theme_styles:"Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"})},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Profil")},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/user/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.loading=!1})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",this.resultInfo="Taille maximum de fichier dépassée (2 MB)",$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},t.prototype.displayPassword=function(){this.showPassword=!this.showPassword},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularProfileComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.changeEmailSignature=function(){var t=$j("#emailSignaturesSelect").prop("selectedIndex");this.mailSignatureModel.selected=t,t>0?(tinymce.get("emailSignature").setContent(this.user.emailSignatures[t-1].html_body),this.mailSignatureModel.title=this.user.emailSignatures[t-1].title):(tinymce.get("emailSignature").setContent(""),this.mailSignatureModel.title="")},t.prototype.getAbsenceInfos=function(){var t=this;this.http.get(this.coreUrl+"rest/currentUser/baskets/absence").map(function(t){return t.json()}).subscribe(function(){t.loading=!1})},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.submitEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent(),this.http.post(this.coreUrl+"rest/currentUser/emailSignature",this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent();var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.put(this.coreUrl+"rest/currentUser/emailSignature/"+e,this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures[t.mailSignatureModel.selected-1].title=e.emailSignature.title,t.user.emailSignatures[t.mailSignatureModel.selected-1].html_body=e.emailSignature.html_body,t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteEmailSignature=function(){var t=this,e=confirm("Voulez-vous vraiment supprimer la signature de mail ?");if(e){var r=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http["delete"](this.coreUrl+"rest/currentUser/emailSignature/"+r).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})}},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/currentUser/signature",this.signatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/currentUser/signature/"+e,{label:this.selectedSignatureLabel}).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteSignature=function(t){var e=this,r=confirm("Voulez-vous vraiment supprimer la signature ?");r&&this.http["delete"](this.coreUrl+"rest/currentUser/signature/"+t).map(function(t){return t.json()}).subscribe(function(t){t.errors?(e.resultInfo=t.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(e.user.signatures=t.signatures,e.resultInfo=t.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.onSubmit=function(){var t=this;this.http.put(this.coreUrl+"rest/user/profile",this.user).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},function(t){alert(t.statusText)})},t.prototype.absenceModal=function(){createModal(this.user.absence,"modal_redirect","auto","950px"),autocomplete(this.user.countBasketsForAbsence,"index.php?display=true&module=basket&page=autocomplete_users_list")},t}();a=n([i.Component({templateUrl:angularGlobals.profileView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","js/angular/app/Css/profile.component.css"]}),o("design:paramtypes",[s.Http,i.NgZone])],a),r.ProfileComponent=a},{"@angular/core":8,"@angular/http":10,"rxjs/add/operator/map":24}],4:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=n([i.Pipe({name:"safeUrl"}),o("design:paramtypes",[a.DomSanitizer])],c),r.SafeUrlPipe=c;var l=function(){function t(t,e,r,n){var o=this;this.http=t,this.route=e,this.router=r,this.zone=n,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[],resListIndex:0,lang:{}},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentPanel=!1,this.showSignaturesPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",this.attachmentsViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return o.processAfterAttach(t)},componentAfterAction:function(){return o.processAfterAction()},componentAfterNotes:function(){return o.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){return e.error?(location.hash="",void(location.search="")):(t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&page=show_history_tab&resId="+t.resId+"&collId=letterbox_coll",t.linksViewerLink="index.php?display=true&page=show_links_tab&id="+t.resId,t.attachmentsViewerLink="index.php?display=true&module=attachments&page=frame_list_attachments&resId="+t.resId+"&noModification=true&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder",t.leftContentWidth="44%",t.rightContentWidth="44%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink,"outgoing"==t.signatureBook.documents[0].category_id&&(t.headerTab=3)),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.displayPanel("RESLEFT"),t.loading=!1,void setTimeout(function(){$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j(".pjSign").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#obsVersion").tooltipster({interactive:!0})},0))})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,r=this.signatureBook.resList.length,n=0;r>n;n++)this.signatureBook.resList[n].res_id==this.resId&&(this.signatureBook.resList[n+1]?e=this.signatureBook.resList[n+1].res_id:n>0&&(e=this.signatureBook.resList[n-1].res_id));unlockDocument(this.resId),e>=0?($j("#send").removeAttr("disabled"),$j("#send").css("opacity","1"),this.zone.run(function(){return t.changeLocation(e,"action")})):this.zone.run(function(){return t.backToBasket()})},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){this.showAttachmentPanel=!1,this.rightViewerLink=this.signatureBook.attachments[t].viewerLink,this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){var e=this;"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%",0==this.signatureBook.resList.length&&this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.resList=t.resList,e.signatureBook.resList.forEach(function(t,r){t.res_id==e.resId&&(e.signatureBook.resListIndex=r)}),setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42)},0)})):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.displayAttachmentPanel=function(){this.showAttachmentPanel=!this.showAttachmentPanel,this.rightSelectedThumbnail=0,this.signatureBook.attachments[0]&&(this.rightViewerLink=this.signatureBook.attachments[0].viewerLink)},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(r){var n=0;if("add"==t){var o=!1;r.forEach(function(t,r){o||e.signatureBook.attachments[r]&&t.res_id==e.signatureBook.attachments[r].res_id||(n=r,o=!0)})}else if("edit"==t){var i=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;r.forEach(function(t,e){t.res_id==i&&(n=e)})}e.signatureBook.attachments=r,"add"==t||"edit"==t?e.changeRightViewer(n):"del"==t&&e.changeRightViewer(0)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){if(t.canModify&&"SIGN"!=t.status){var e;0==t.res_id?e=t.res_id_version:0==t.res_id_version&&(e=t.res_id),modifyAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&id="+e+"&relation="+t.relation+"&docId="+this.resId,"98%","auto")}},t.prototype.delAttachment=function(t){var e=this;if(t.canDelete){if(this.signatureBook.attachments.length<=1)var r=confirm("Attention, ceci est votre dernière pièce jointe pour ce courrier, voulez-vous vraiment la supprimer ?");else var r=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(r){var n;0==t.res_id?n=t.res_id_version:0==t.res_id_version&&(n=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+n+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.signFile=function(t,e){var r=this;if(!this.loadingSign&&this.signatureBook.canSign){this.loadingSign=!0;var n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&signatureId="+e.id;0==t.res_id?n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isVersion&isOutgoing&id="+t.res_id_version:"&isVersion&id="+t.res_id_version:0==t.res_id_version&&(n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isOutgoing&id="+t.res_id:"&id="+t.res_id),this.http.get(n,e).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){r.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+r.resId+"&id="+t.new_id+"&isVersion=false",r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="SIGN",r.signatureBook.attachments[r.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;r.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),r.signatureBook.resList.length>0&&(r.signatureBook.resList[r.signatureBook.resListIndex].allSigned=e)}else alert(t.error);r.showSignaturesPanel=!1,r.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,r,n,o=this;0==t.res_id?(r=t.res_id_version,e="res_version_attachments",n="true"):0==t.res_id_version&&(r=t.res_id,e="res_attachments",n="false"),this.http.put(this.coreUrl+"rest/"+e+"/"+r+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(e){"OK"==e.status?(o.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+o.resId+"&id="+t.viewerNoSignId+"&isVersion="+n,o.signatureBook.attachments[o.rightSelectedThumbnail].viewerLink=o.rightViewerLink,o.signatureBook.attachments[o.rightSelectedThumbnail].status="A_TRA",o.signatureBook.attachments[o.rightSelectedThumbnail].idToDl=r,o.signatureBook.resList.length>0&&(o.signatureBook.resList[o.signatureBook.resListIndex].allSigned=!1)):alert(e.error)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var r=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").map(function(t){return t.json()}).subscribe(function(n){if(n.lock)"view"==e?alert("Courrier verouillé par "+n.lockBy):"action"==e&&(alert("Courrier suivant verouillé par "+n.lockBy),r.backToBasket());else{var o="/"+r.basketId+"/signatureBook/"+t;r.router.navigate([o])}})},t.prototype.validForm=function(){var t=this;""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),0==this.signatureBook.resList.length&&this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.resList=e.resList,valid_action_form("empty","index.php?display=true&page=manage_action&module=core",t.signatureBook.currentAction.id,t.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])})):alert("Aucune action choisie")},t}();l=n([i.Component({templateUrl:angularGlobals["signature-bookView"]}),o("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,i.NgZone])],l),r.SignatureBookComponent=l},{"@angular/core":8,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13,"rxjs/add/operator/map":24}],5:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@angular/platform-browser-dynamic"),o=t("@angular/core"),i=t("./app/app.module");o.enableProdMode(),n.platformBrowserDynamic().bootstrapModule(i.AppModule)},{"./app/app.module":2,"@angular/core":8,"@angular/platform-browser-dynamic":11}],6:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.common=o.ng.common||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function n(t){return t.replace(/\/index.html$/,"")}function o(t,e,r){var n="="+t;if(e.indexOf(n)>-1)return n;if(n=r.getPluralCategory(t),e.indexOf(n)>-1)return n;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function i(t,e){"string"==typeof e&&(e=parseInt(e,10));var r=e,n=r.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(r)),i=n.length,s=parseInt(n,10),a=parseInt(r.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,u=t.split("-")[0].toLowerCase();switch(u){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===r?H.One:H.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return r===Math.floor(r)&&r>=0&&1>=r?H.One:H.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===r?H.One:H.Other;case"ar":return 0===r?H.Zero:1===r?H.One:2===r?H.Two:r%100===Math.floor(r%100)&&r%100>=3&&10>=r%100?H.Few:r%100===Math.floor(r%100)&&r%100>=11&&99>=r%100?H.Many:H.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?H.One:H.Other;case"be":return r%10===1&&r%100!==11?H.One:r%10===Math.floor(r%10)&&r%10>=2&&4>=r%10&&!(r%100>=12&&14>=r%100)?H.Few:r%10===0||r%10===Math.floor(r%10)&&r%10>=5&&9>=r%10||r%100===Math.floor(r%100)&&r%100>=11&&14>=r%100?H.Many:H.Other;case"br":return r%10===1&&r%100!==11&&r%100!==71&&r%100!==91?H.One:r%10===2&&r%100!==12&&r%100!==72&&r%100!==92?H.Two:r%10===Math.floor(r%10)&&(r%10>=3&&4>=r%10||r%10===9)&&!(r%100>=10&&19>=r%100||r%100>=70&&79>=r%100||r%100>=90&&99>=r%100)?H.Few:0!==r&&r%1e6===0?H.Many:H.Other;case"bs":case"hr":case"sr":return 0===i&&o%10===1&&o%100!==11||s%10===1&&s%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)||s%10===Math.floor(s%10)&&s%10>=2&&4>=s%10&&!(s%100>=12&&14>=s%100)?H.Few:H.Other;case"cs":case"sk":return 1===o&&0===i?H.One:o===Math.floor(o)&&o>=2&&4>=o&&0===i?H.Few:0!==i?H.Many:H.Other;case"cy":return 0===r?H.Zero:1===r?H.One:2===r?H.Two:3===r?H.Few:6===r?H.Many:H.Other;case"da":return 1===r||0!==a&&(0===o||1===o)?H.One:H.Other;case"dsb":case"hsb":return 0===i&&o%100===1||s%100===1?H.One:0===i&&o%100===2||s%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||s%100===Math.floor(s%100)&&s%100>=3&&4>=s%100?H.Few:H.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?H.One:H.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!==4&&o%10!==6&&o%10!==9||0!==i&&s%10!==4&&s%10!==6&&s%10!==9?H.One:H.Other;case"ga":return 1===r?H.One:2===r?H.Two:r===Math.floor(r)&&r>=3&&6>=r?H.Few:r===Math.floor(r)&&r>=7&&10>=r?H.Many:H.Other;case"gd":return 1===r||11===r?H.One:2===r||12===r?H.Two:r===Math.floor(r)&&(r>=3&&10>=r||r>=13&&19>=r)?H.Few:H.Other;case"gv":return 0===i&&o%10===1?H.One:0===i&&o%10===2?H.Two:0!==i||o%100!==0&&o%100!==20&&o%100!==40&&o%100!==60&&o%100!==80?0!==i?H.Many:H.Other:H.Few;case"he":return 1===o&&0===i?H.One:2===o&&0===i?H.Two:0!==i||r>=0&&10>=r||r%10!==0?H.Other:H.Many;case"is":return 0===a&&o%10===1&&o%100!==11||0!==a?H.One:H.Other;case"ksh":return 0===r?H.Zero:1===r?H.One:H.Other;case"kw":case"naq":case"se":case"smn":return 1===r?H.One:2===r?H.Two:H.Other;case"lag":return 0===r?H.Zero:0!==o&&1!==o||0===r?H.Other:H.One;case"lt":return r%10!==1||r%100>=11&&19>=r%100?r%10===Math.floor(r%10)&&r%10>=2&&9>=r%10&&!(r%100>=11&&19>=r%100)?H.Few:0!==s?H.Many:H.Other:H.One;case"lv":case"prg":return r%10===0||r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&19>=s%100?H.Zero:r%10===1&&r%100!==11||2===i&&s%10===1&&s%100!==11||2!==i&&s%10===1?H.One:H.Other; - -case"mk":return 0===i&&o%10===1||s%10===1?H.One:H.Other;case"mt":return 1===r?H.One:0===r||r%100===Math.floor(r%100)&&r%100>=2&&10>=r%100?H.Few:r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100?H.Many:H.Other;case"pl":return 1===o&&0===i?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&1>=o%10||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&14>=o%100?H.Many:H.Other;case"pt":return r===Math.floor(r)&&r>=0&&2>=r&&2!==r?H.One:H.Other;case"ro":return 1===o&&0===i?H.One:0!==i||0===r||1!==r&&r%100===Math.floor(r%100)&&r%100>=1&&19>=r%100?H.Few:H.Other;case"ru":case"uk":return 0===i&&o%10===1&&o%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&o%10===0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&14>=o%100?H.Many:H.Other;case"shi":return 0===o||1===r?H.One:r===Math.floor(r)&&r>=2&&10>=r?H.Few:H.Other;case"si":return 0===r||1===r||0===o&&1===s?H.One:H.Other;case"sl":return 0===i&&o%100===1?H.One:0===i&&o%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||0!==i?H.Few:H.Other;case"tzm":return r===Math.floor(r)&&r>=0&&1>=r||r===Math.floor(r)&&r>=11&&99>=r?H.One:H.Other;default:return H.Other}}function s(t){return t.name||typeof t}function a(t,r){return Error("InvalidPipeArgument: '"+r+"' for pipe '"+e.ɵstringify(t)+"'")}function u(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function c(t){return function(e,r){var n=t(e,r);return 1==n.length?"0"+n:n}}function l(t){return function(e,r){return t(e,r).split(" ")[1]}}function p(t){return function(e,r){return t(e,r).split(" ")[0]}}function h(t,e,r){return new Intl.DateTimeFormat(e,r).format(t).replace(/[\u200e\u200f]/g,"")}function f(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,r){var n=h(t,r,e);return n?n.substring(3):""}}function d(t,e){return t.hour12=e,t}function m(t,e){var r={};return r[t]=2===e?"2-digit":"numeric",r}function y(t,e){var r={};return r[t]=4>e?e>1?"short":"narrow":"long",r}function v(t){return Object.assign.apply(Object,[{}].concat(t))}function g(t){return function(e,r){return h(e,r,t)}}function _(t,e,r){var n=vt[t];if(n)return n(e,r);var o=t,i=_t.get(o);if(!i){i=[];var s=void 0;yt.exec(t);for(var a=t;a;)s=yt.exec(a),s?(i=i.concat(s.slice(1)),a=i.pop()):(i.push(a),a=null);_t.set(o,i)}return i.reduce(function(t,n){var o=gt[n];return t+(o?o(e,r):b(n))},"")}function b(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function w(t,e,r,n,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==r)return null;if(r="string"==typeof r&&E(r)?+r:r,"number"!=typeof r)throw a(t,r);var u=void 0,c=void 0,l=void 0;if(n!==dt.Currency&&(u=1,c=0,l=3),o){var p=o.match(wt);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(u=C(p[1])),null!=p[3]&&(c=C(p[3])),null!=p[5]&&(l=C(p[5]))}return mt.format(r,e,n,{minimumIntegerDigits:u,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function C(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function E(t){return!isNaN(t-parseFloat(t))}function S(t){return null==t||""===t}function x(t){return t instanceof Date&&!isNaN(t.valueOf())}function T(t){var e=new Date(0),r=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=P(t[9]+t[10]),n=P(t[9]+t[11])),o.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-r,a=P(t[5]||"0")-n,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}function A(t){return t===Nt}function O(t){return t===Dt}function M(t){return t===jt}function R(t){return t===Lt}var k=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},I=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(){},t.prototype.onHashChange=function(){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),j=new e.InjectionToken("appBaseHref"),L=function(){function t(r){var o=this;this._subject=new e.EventEmitter,this._platformStrategy=r;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(n(i)),this._platformStrategy.onPopState(function(t){o._subject.emit({url:o.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,r){return void 0===r&&(r=""),this.path()==this.normalize(e+t.normalizeQueryParams(r))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,n(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,r){return this._subject.subscribe({next:t,error:e,complete:r})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,2==r?t+e.substring(1):1==r?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[{type:D}]};var V=function(t){function e(e,r){var n=t.call(this)||this;return n._platformLocation=e,n._baseHref="",null!=r&&(n._baseHref=r),n}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=L.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));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}(D);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var F=function(t){function e(e,r){var n=t.call(this)||this;if(n._platformLocation=e,null==r&&(r=n._platformLocation.getBaseHrefFromDOM()),null==r)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 n._baseHref=r,n}return k(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 L.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+L.normalizeQueryParams(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?""+e+r:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var U=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),B=function(t){function e(e){var r=t.call(this)||this;return r.locale=e,r}return k(e,t),e.prototype.getPluralCategory=function(t){var e=i(this.locale,t);switch(e){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}},e}(U);B.decorators=[{type:e.Injectable}],B.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var H={};H.Zero=0,H.One=1,H.Two=2,H.Few=3,H.Many=4,H.Other=5,H[H.Zero]="Zero",H[H.One]="One",H[H.Two]="Two",H[H.Few]="Few",H[H.Many]="Many",H[H.Other]="Other";var q=function(){function t(t,e,r,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=r,this._renderer=n,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(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._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},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 r=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));r._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return r._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(r){return e._toggleClass(r,!t)})},t.prototype._applyClasses=function(t,e){var r=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return r._toggleClass(t,!e)}):Object.keys(t).forEach(function(n){null!=t[n]&&r._toggleClass(n,!e)}))},t.prototype._toggleClass=function(t,e){var r=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){r._renderer.setElementClass(r._ngEl.nativeElement,t,!!e)})},t}();q.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],q.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},q.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var z=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=r.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var o=this._moduleRef?this._moduleRef.componentFactoryResolver:r.get(e.ComponentFactoryResolver),i=o.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,r,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();z.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],z.ctorParameters=function(){return[{type:e.ViewContainerRef}]},z.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var G=function(){function t(t,e,r,n){this.$implicit=t,this.ngForOf=e,this.index=r,this.count=n}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}(),W=function(){function t(t,e,r){this._viewContainer=t,this._template=e,this._differs=r,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(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(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+s(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},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,r=[];t.forEachOperation(function(t,n,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new G(null,e.ngForOf,-1,-1),o),s=new $(t,i);r.push(s)}else if(null==o)e._viewContainer.remove(n);else{var i=e._viewContainer.get(n);e._viewContainer.move(i,o);var s=new $(t,i);r.push(s)}});for(var n=0;n<r.length;n++)this._perViewChange(r[n].view,r[n].record);for(var n=0,o=this._viewContainer.length;o>n;n++){var i=this._viewContainer.get(n);i.context.index=n,i.context.count=o}t.forEachIdentityChange(function(t){var r=e._viewContainer.get(t.currentIndex);r.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();W.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],W.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},W.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var $=function(){function t(t,e){this.record=t,this.view=e}return t}(),K=W,Q=function(){function t(t,e){this._viewContainer=t,this._context=new X,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();Q.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],Q.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},Q.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var X=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),Z=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Y=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){var r=this._defaultViews[e];r.enforceState(t)}}},t}();Y.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],Y.ctorParameters=function(){return[]},Y.propDecorators={ngSwitch:[{type:e.Input}]};var J=function(){function t(t,e,r){this.ngSwitch=r,r._addCase(),this._view=new Z(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();J.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],J.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]},J.propDecorators={ngSwitchCase:[{type:e.Input}]};var tt=function(){function t(t,e,r){r._addDefault(new Z(t,e))}return t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],tt.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]};var et=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],et.ctorParameters=function(){return[{type:U}]},et.propDecorators={ngPlural:[{type:e.Input}]};var rt=function(){function t(t,e,r,n){this.value=t;var o=!isNaN(Number(t));n.addCase(o?"="+t:t,new Z(r,e))}return t}();rt.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],rt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:et,decorators:[{type:e.Host}]}]};var nt=function(){function t(t,e,r){this._differs=t,this._ngEl=e,this._renderer=r}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var r=t.split("."),n=r[0],o=r[1];e=null!=e&&o?""+e+o:e,this._renderer.setElementStyle(this._ngEl.nativeElement,n,e)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],nt.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},nt.propDecorators={ngStyle:[{type:e.Input}]};var ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();ot.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],ot.ctorParameters=function(){return[{type:e.ViewContainerRef}]},ot.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}],ngOutletContext:[{type:e.Input}]};var it=[q,z,W,Q,ot,nt,Y,J,tt,et,rt],st=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),at=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(){},t.prototype.onDestroy=function(){},t}(),ut=new at,ct=new st,lt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(r){return e._updateLatestValue(t,r)})},t.prototype._selectStrategy=function(r){if(e.ɵisPromise(r))return ut;if(e.ɵisObservable(r))return ct;throw a(t,r)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();lt.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],lt.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var pt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toLowerCase()},t}();pt.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],pt.ctorParameters=function(){return[]};var ht=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.split(/\b/g).map(function(t){return u(t)}).join("")},t}();ht.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],ht.ctorParameters=function(){return[]};var ft=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toUpperCase()},t}();ft.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],ft.ctorParameters=function(){return[]};var dt={};dt.Decimal=0,dt.Percent=1,dt.Currency=2,dt[dt.Decimal]="Decimal",dt[dt.Percent]="Percent",dt[dt.Currency]="Currency";var mt=function(){function t(){}return t.format=function(t,e,r,n){var o=void 0===n?{}:n,i=o.minimumIntegerDigits,s=o.minimumFractionDigits,a=o.maximumFractionDigits,u=o.currency,c=o.currencyAsSymbol,l=void 0===c?!1:c,p={minimumIntegerDigits:i,minimumFractionDigits:s,maximumFractionDigits:a,style:dt[r].toLowerCase()};return r==dt.Currency&&(p.currency="string"==typeof u?u:void 0,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),yt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,vt={yMMMdjms:g(v([m("year",1),y("month",3),m("day",1),m("hour",1),m("minute",1),m("second",1)])),yMdjm:g(v([m("year",1),m("month",1),m("day",1),m("hour",1),m("minute",1)])),yMMMMEEEEd:g(v([m("year",1),y("month",4),y("weekday",4),m("day",1)])),yMMMMd:g(v([m("year",1),y("month",4),m("day",1)])),yMMMd:g(v([m("year",1),y("month",3),m("day",1)])),yMd:g(v([m("year",1),m("month",1),m("day",1)])),jms:g(v([m("hour",1),m("second",1),m("minute",1)])),jm:g(v([m("hour",1),m("minute",1)]))},gt={yyyy:g(m("year",4)),yy:g(m("year",2)),y:g(m("year",1)),MMMM:g(y("month",4)),MMM:g(y("month",3)),MM:g(m("month",2)),M:g(m("month",1)),LLLL:g(y("month",4)),L:g(y("month",1)),dd:g(m("day",2)),d:g(m("day",1)),HH:c(p(g(d(m("hour",2),!1)))),H:p(g(d(m("hour",1),!1))),hh:c(p(g(d(m("hour",2),!0)))),h:p(g(d(m("hour",1),!0))),jj:g(m("hour",2)),j:g(m("hour",1)),mm:c(g(m("minute",2))),m:g(m("minute",1)),ss:c(g(m("second",2))),s:g(m("second",1)),sss:g(m("second",3)),EEEE:g(y("weekday",4)),EEE:g(y("weekday",3)),EE:g(y("weekday",2)),E:g(y("weekday",1)),a:l(g(d(m("hour",1),!0))),Z:f("short"),z:f("long"),ww:g({}),w:g({}),G:g(y("era",1)),GG:g(y("era",2)),GGG:g(y("era",3)),GGGG:g(y("era",4))},_t=new Map,bt=function(){function t(){}return t.format=function(t,e,r){return _(r,t,e)},t}(),wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return w(t,this._locale,e,dt.Decimal,r)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"number"}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Et=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return w(t,this._locale,e,dt.Percent,r)},t}();Et.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r,n,o){return void 0===r&&(r="USD"),void 0===n&&(n=!1),w(t,this._locale,e,dt.Currency,o,r,n)},t}();St.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){void 0===r&&(r="mediumDate");var n;if(S(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),x(e))n=e;else if(E(e))n=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=e.split("-").map(function(t){return parseInt(t,10)}),i=o[0],s=o[1],u=o[2];n=new Date(i,s-1,u)}else n=new Date(e);if(!x(n)){var c=void 0;if("string"!=typeof e||!(c=e.match(xt)))throw a(t,e);n=T(c)}return bt.format(n,this._locale,t._ALIASES[r]||r)},t}();Tt._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Tt.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Pt=/#/g,At=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||null===r)throw a(t,r);var n=o(e,Object.keys(r),this._localization);return r[n].replace(Pt,e.toString())},t}();At.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],At.ctorParameters=function(){return[{type:U}]};var Ot=function(){function t(){}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||"string"!=typeof e)throw a(t,r);return r.hasOwnProperty(e)?r[e]:r.hasOwnProperty("other")?r.other:""},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Ot.ctorParameters=function(){return[]};var Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Mt.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],Mt.ctorParameters=function(){return[]};var Rt=function(){function t(){}return t.prototype.transform=function(e,r,n){if(null==e)return e;if(!this.supports(e))throw a(t,e);return e.slice(r,n)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Rt.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Rt.ctorParameters=function(){return[]};var kt=[lt,ft,pt,Mt,Rt,Ct,Et,ht,St,Tt,At,Ot],It=function(){function t(){}return t}();It.decorators=[{type:e.NgModule,args:[{declarations:[it,kt],exports:[it,kt],providers:[{provide:U,useClass:B}]}]}],It.ctorParameters=function(){return[]};var Nt="browser",Dt="server",jt="browserWorkerApp",Lt="browserWorkerUi",Vt=new e.Version("4.1.0");t.NgLocaleLocalization=B,t.NgLocalization=U,t.CommonModule=It,t.NgClass=q,t.NgFor=K,t.NgForOf=W,t.NgForOfContext=G,t.NgIf=Q,t.NgIfContext=X,t.NgPlural=et,t.NgPluralCase=rt,t.NgStyle=nt,t.NgSwitch=Y,t.NgSwitchCase=J,t.NgSwitchDefault=tt,t.NgTemplateOutlet=ot,t.NgComponentOutlet=z,t.AsyncPipe=lt,t.DatePipe=Tt,t.I18nPluralPipe=At,t.I18nSelectPipe=Ot,t.JsonPipe=Mt,t.LowerCasePipe=pt,t.CurrencyPipe=St,t.DecimalPipe=Ct,t.PercentPipe=Et,t.SlicePipe=Rt,t.UpperCasePipe=ft,t.TitleCasePipe=ht,t.ɵPLATFORM_BROWSER_ID=Nt,t.ɵPLATFORM_SERVER_ID=Dt,t.ɵPLATFORM_WORKER_APP_ID=jt,t.ɵPLATFORM_WORKER_UI_ID=Lt,t.isPlatformBrowser=A,t.isPlatformServer=O,t.isPlatformWorkerApp=M,t.isPlatformWorkerUi=R,t.VERSION=Vt,t.PlatformLocation=I,t.LOCATION_INITIALIZED=N,t.LocationStrategy=D,t.APP_BASE_HREF=j,t.HashLocationStrategy=V,t.PathLocationStrategy=F,t.Location=L,t.ɵa=it,t.ɵb=kt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],7:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.compiler=o.ng.compiler||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r); - -}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function n(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function o(t){return"ng-container"===n(t)[1]}function i(t){return"ng-content"===n(t)[1]}function s(t){return"ng-template"===n(t)[1]}function a(t){return null===t?null:n(t)[0]}function u(t,e){return t?":"+t+":"+e:e}function c(t){return bo[t.toLowerCase()]||wo}function l(t){return t.replace(Ao,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function p(t,e){return f(t,":",e)}function h(t,e){return f(t,".",e)}function f(t,e,r){var n=t.indexOf(e);return-1==n?r:[t.slice(0,n).trim(),t.slice(n+1).trim()]}function d(t,e,r){return Array.isArray(t)?e.visitArray(t,r):b(t)?e.visitStringMap(t,r):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,r):e.visitOther(t,r)}function m(t){return null!==t&&void 0!==t}function y(t){return void 0===t?null:t}function v(t){var e=Error(t);return e[Ro]=!0,e}function g(t){return t[Ro]}function _(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function b(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===ko}function w(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n>=55296&&56319>=n&&t.length>r+1){var o=t.charCodeAt(r+1);o>=56320&&57343>=o&&(r++,n=(n-55296<<10)+o-56320+65536)}127>=n?e+=String.fromCharCode(n):2047>=n?e+=String.fromCharCode(n>>6&31|192,63&n|128):65535>=n?e+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):2097151>=n&&(e+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return e}function C(t){return t.replace(/\W/g,"_")}function E(t){if(!t||!t.reference)return null;var r=t.reference;if(r instanceof mo)return r.name;if(r.__anonymousType)return r.__anonymousType;var n=e.ɵstringify(r);return n.indexOf("(")>=0?(n="anonymous_"+Go++,r.__anonymousType=n):n=C(n),n}function S(t){var r=t.reference;return r instanceof mo?r.filePath:e.ɵreflector.importUri(r)}function x(t,e){return"View_"+E({reference:t})+"_"+e}function T(t){return"RenderType_"+E({reference:t})}function P(t){return"HostView_"+E({reference:t})}function A(t){return"Wrapper_"+E({reference:t})}function O(t){return E({reference:t})+"NgFactory"}function M(t){return null!=t.value?C(t.value):E(t.identifier)}function R(t){return null!=t.identifier?t.identifier.reference:t.value}function k(t,r,n){var o=Eo.parse(r.selector)[0].getMatchingElementTemplate();return Qo.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Ko({encapsulation:e.ViewEncapsulation.None,template:o,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:n,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function I(t){return t||[]}function N(t){return t.reduce(function(t,e){var r=Array.isArray(e)?N(e):e;return t.concat(r)},[])}function D(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function j(t,e,r){var n;return n=r.isInline?e.type.reference instanceof mo?e.type.reference.filePath+"."+e.type.reference.name+".html":E(t)+"/"+E(e.type)+".html":r.templateUrl,D(n)}function L(t,e){var r=t.moduleUrl.split(/\/\\/g),n=r[r.length-1];return D("css/"+e+n+".ngstyle.js")}function V(t){return D(E(t.type)+"/module.ngfactory.js")}function F(t,e){return D(E(t)+"/"+E(e.type)+".ngfactory.js")}function U(t){return t>=Oi&&Ni>=t||t==Ps}function B(t){return t>=rs&&ns>=t}function H(t){return t>=ds&&Es>=t||t>=os&&us>=t}function q(t){return t>=ds&&ys>=t||t>=os&&ss>=t||B(t)}function z(){return function(t){return t}}function G(t,r){if(e.isDevMode()&&null!=r){if(!Array.isArray(r))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<r.length;n+=1)if("string"!=typeof r[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}function W(t,r){if(!(null==r||Array.isArray(r)&&2==r.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=r){var n=r[0],o=r[1];Os.forEach(function(t){if(t.test(n)||t.test(o))throw new Error("['"+n+"', '"+o+"'] contains unusable interpolation symbol.")})}}function $(t,e){return new Ds(t,ks.Character,e,String.fromCharCode(e))}function K(t,e){return new Ds(t,ks.Identifier,0,e)}function Q(t,e){return new Ds(t,ks.Keyword,0,e)}function X(t,e){return new Ds(t,ks.Operator,0,e)}function Z(t,e){return new Ds(t,ks.String,0,e)}function Y(t,e){return new Ds(t,ks.Number,e,"")}function J(t,e){return new Ds(t,ks.Error,0,e)}function tt(t){return t>=ds&&Es>=t||t>=os&&us>=t||t==fs||t==Vi}function et(t){if(0==t.length)return!1;var e=new Ls(t);if(!tt(e.peek))return!1;for(e.advance();e.peek!==Ai;){if(!rt(e.peek))return!1;e.advance()}return!0}function rt(t){return H(t)||B(t)||t==fs||t==Vi}function nt(t){return t==ms||t==is}function ot(t){return t==$i||t==Gi}function it(t){return t===Bi||t===ji||t===As}function st(t){switch(t){case vs:return Mi;case ys:return ki;case gs:return Ii;case _s:return Oi;case ws:return Ri;default:return t}}function at(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function ut(t){var e=_(t.start)+"([\\s\\S]*?)"+_(t.end);return new RegExp(e,"g")}function ct(t,e){var r=S(e),n=null!=r?"in "+t+" "+E(e)+" in "+r:"in "+t+" "+E(e),o=new zs("",n);return new Gs(new qs(o,-1,-1,-1),new qs(o,-1,-1,-1))}function lt(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function pt(t,e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Rs),new sa(new zs(t,e),r,n,o).tokenize()}function ht(t){var e=t===Ai?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function ft(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function dt(t){return!U(t)||t===Ai}function mt(t){return U(t)||t===ts||t===Qi||t===Bi||t===ji||t===Ji}function yt(t){return(ds>t||t>Es)&&(os>t||t>us)&&(rs>t||t>ns)}function vt(t){return t==Zi||t==Ai||!q(t)}function gt(t){return t==Zi||t==Ai||!H(t)}function _t(t,e,r){var n=r?t.indexOf(r.start,e)==e:!1;return t.charCodeAt(e)==Ss&&!n}function bt(t){return t===Ji||H(t)}function wt(t,e){return Ct(t)==Ct(e)}function Ct(t){return t>=ds&&Es>=t?t-ds+os:t}function Et(t){for(var e=[],r=void 0,n=0;n<t.length;n++){var o=t[n];r&&r.type==ta.TEXT&&o.type==ta.TEXT?(r.parts[0]+=o.parts[0],r.sourceSpan.end=o.sourceSpan.end):(r=o,e.push(r))}return e}function St(t,e){return t.length>0&&t[t.length-1]===e}function xt(t){var e=new Ea(Ca,t);return function(t,r,n,o){return e.toI18nMessage(t,r,n,o)}}function Tt(t){return t.split(Sa)[2]}function Pt(t,e,r,n){var o=new Ia(r,n);return o.extract(t,e)}function At(t,e,r,n,o){var i=new Ia(n,o);return i.merge(t,e,r)}function Ot(t){return!!(t instanceof Js&&t.value&&t.value.startsWith("i18n"))}function Mt(t){return!!(t instanceof Js&&t.value&&"/i18n"===t.value)}function Rt(t){return t.attrs.find(function(t){return t.name===Ta})||null}function kt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ma),r=t.indexOf(Oa),n=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],o=n[0],i=n[1],s=r>-1?[o.slice(0,r),o.slice(r+1)]:["",o],a=s[0],u=s[1];return{meaning:a,description:u,id:i}}function It(){return Da}function Nt(t){return t.id||Lt(jt(t.nodes).join("")+("["+t.meaning+"]"))}function Dt(t){if(t.id)return t.id;var e=new Fa,r=t.nodes.map(function(t){return t.visit(e,null)});return Ut(r.join(""),t.meaning)}function jt(t){return t.map(function(t){return t.visit(Va,null)})}function Lt(t){var e=w(t),r=Qt(e,Ua.Big),n=8*e.length,o=new Array(80),i=[1732584193,4023233417,2562383102,271733878,3285377520],s=i[0],a=i[1],u=i[2],c=i[3],l=i[4];r[n>>5]|=128<<24-n%32,r[(n+64>>9<<4)+15]=n;for(var p=0;p<r.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],m=h[2],y=h[3],v=h[4],g=0;80>g;g++){o[g]=16>g?r[p+g]:$t(o[g-3]^o[g-8]^o[g-14]^o[g-16],1);var _=Vt(g,a,u,c),b=_[0],C=_[1],E=[$t(s,5),b,l,C,o[g]].reduce(qt);S=[c,u,$t(a,30),s,E],l=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}x=[qt(s,f),qt(a,d),qt(u,m),qt(c,y),qt(l,v)],s=x[0],a=x[1],u=x[2],c=x[3],l=x[4]}return te(Yt([s,a,u,c,l]));var S,x}function Vt(t,e,r,n){return 20>t?[e&r|~e&n,1518500249]:40>t?[e^r^n,1859775393]:60>t?[e&r|e&n|r&n,2400959708]:[e^r^n,3395469782]}function Ft(t){var e=w(t),r=[Bt(e,0),Bt(e,102072)],n=r[0],o=r[1];return 0!=n||0!=o&&1!=o||(n=319790063^n,o=-1801410264^o),[n,o]}function Ut(t,e){var r=Ft(t),n=r[0],o=r[1];if(e){var i=Ft(e),s=i[0],a=i[1];u=Gt(Kt([n,o],1),[s,a]),n=u[0],o=u[1]}return ee(Yt([2147483647&n,o]));var u}function Bt(t,e){var r,n=[2654435769,2654435769],o=n[0],i=n[1],s=t.length;for(r=0;s>=r+12;r+=12)o=qt(o,Zt(t,r,Ua.Little)),i=qt(i,Zt(t,r+4,Ua.Little)),e=qt(e,Zt(t,r+8,Ua.Little)),a=Ht([o,i,e]),o=a[0],i=a[1],e=a[2];return o=qt(o,Zt(t,r,Ua.Little)),i=qt(i,Zt(t,r+4,Ua.Little)),e=qt(e,s),e=qt(e,Zt(t,r+8,Ua.Little)<<8),Ht([o,i,e])[2];var a}function Ht(t){var e=t[0],r=t[1],n=t[2];return e=Wt(e,r),e=Wt(e,n),e^=n>>>13,r=Wt(r,n),r=Wt(r,e),r^=e<<8,n=Wt(n,e),n=Wt(n,r),n^=r>>>13,e=Wt(e,r),e=Wt(e,n),e^=n>>>12,r=Wt(r,n),r=Wt(r,e),r^=e<<16,n=Wt(n,e),n=Wt(n,r),n^=r>>>5,e=Wt(e,r),e=Wt(e,n),e^=n>>>3,r=Wt(r,n),r=Wt(r,e),r^=e<<10,n=Wt(n,e),n=Wt(n,r),n^=r>>>15,[e,r,n]}function qt(t,e){return zt(t,e)[1]}function zt(t,e){var r=(65535&t)+(65535&e),n=(t>>>16)+(e>>>16)+(r>>>16);return[n>>>16,n<<16|65535&r]}function Gt(t,e){var r=t[0],n=t[1],o=e[0],i=e[1],s=zt(n,i),a=s[0],u=s[1],c=qt(qt(r,o),a);return[c,u]}function Wt(t,e){var r=(65535&t)-(65535&e),n=(t>>16)-(e>>16)+(r>>16);return n<<16|65535&r}function $t(t,e){return t<<e|t>>>32-e}function Kt(t,e){var r=t[0],n=t[1],o=r<<e|n>>>32-e,i=n<<e|r>>>32-e;return[o,i]}function Qt(t,e){for(var r=Array(t.length+3>>>2),n=0;n<r.length;n++)r[n]=Zt(t,4*n,e);return r}function Xt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Zt(t,e,r){var n=0;if(r===Ua.Big)for(var o=0;4>o;o++)n+=Xt(t,e+o)<<24-8*o;else for(var o=0;4>o;o++)n+=Xt(t,e+o)<<8*o;return n}function Yt(t){return t.reduce(function(t,e){return t+Jt(e)},"")}function Jt(t){for(var e="",r=0;4>r;r++)e+=String.fromCharCode(t>>>8*(3-r)&255);return e}function te(t){for(var e="",r=0;r<t.length;r++){var n=Xt(t,r);e+=(n>>>4).toString(16)+(15&n).toString(16)}return e.toLowerCase()}function ee(t){for(var e="",r="1",n=t.length-1;n>=0;n--)e=re(e,ne(Xt(t,n),r)),r=ne(256,r);return e.split("").reverse().join("")}function re(t,e){for(var r="",n=Math.max(t.length,e.length),o=0,i=0;n>o||i;o++){var s=i+ +(t[o]||0)+ +(e[o]||0);s>=10?(i=1,r+=s-10):(i=0,r+=s)}return r}function ne(t,e){for(var r="",n=e;0!==t;t>>>=1)1&t&&(r=re(r,n)),n=re(n,n);return r}function oe(t){return t.map(function(t){return t.visit(za)}).join("")}function ie(t){return Xa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function se(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function ae(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function ue(t){return Dt(t)}function ce(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function le(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(t,e,{enumerable:!0,value:n}),n},set:function(){throw new Error("Could not overwrite an XTB translation")}})}function pe(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Mu;case"xtb":return new ju;case"xliff2":case"xlf2":return new bu;case"xliff":case"xlf":default:return new au}}function he(t,e,r){return void 0===e&&(e=null),void 0===r&&(r="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+r+"/"+e}function fe(t){var r=t.name;return e.ɵreflector.resolveIdentifier(r,t.moduleUrl,null,t.runtime)}function de(t){return{reference:fe(t)}}function me(t){return{identifier:t}}function ye(t){return me(de(t))}function ve(t){var e=new Ku;return new Wu(lt(e,t),e.isExpanded,e.errors)}function ge(t,e){var r=t.cases.map(function(t){-1!=Gu.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new $u(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Gu.join(", ")));var r=ve(t.expression);return e.push.apply(e,r.errors),new Ys("ng-template",[new Zs("ngPluralCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new Zs("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Ys("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function _e(t,e){var r=t.cases.map(function(t){var r=ve(t.expression);return e.push.apply(e,r.errors),"other"===t.value?new Ys("ng-template",[new Zs("ngSwitchDefault","",t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Ys("ng-template",[new Zs("ngSwitchCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new Zs("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Ys("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function be(t,e){var r=e.useExisting,n=e.useValue,o=e.deps;return{token:t.token,useClass:t.useClass,useExisting:r,useFactory:t.useFactory,useValue:n,deps:o,multi:t.multi}}function we(t,e){var r=e.eager,n=e.providers;return new lo(t.token,t.multiProvider,t.eager||r,n,t.providerType,t.lifecycleHooks,t.sourceSpan)}function Ce(t,e,r){var n=new Map;t.forEach(function(t){var o={token:{identifier:t.type},useClass:t.type};Ee([o],t.isComponent?po.Component:po.Directive,!0,e,r,n)});var o=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return o.forEach(function(t){Ee(t.providers,po.PublicService,!1,e,r,n),Ee(t.viewProviders,po.PrivateService,!1,e,r,n)}),n}function Ee(t,e,r,n,o,i){t.forEach(function(t){var s=i.get(R(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Qu("Mixing multi and non multi provider is not possible for token "+M(s.token),n)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new lo(t.token,!!t.multi,r||u,[t],e,a,n),i.set(R(t.token),s)}})}function Se(t){var e=1,r=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return Te(r,{meta:t,queryId:e++})}),r}function xe(t,e){var r=t,n=new Map;return e.forEach(function(t){t.queries&&t.queries.forEach(function(t){return Te(n,{meta:t,queryId:r++})})}),n}function Te(t,e){e.meta.selectors.forEach(function(r){var n=t.get(R(r));n||(n=[],t.set(R(r),n)),n.push(e)})}function Pe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(nc);return null===e||"package"==e[1]||"asset"==e[1]}function Ae(t,e,r){var n=[],o=r.replace(rc,"").replace(ec,function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=r[1]||r[2];return Pe(i)?(n.push(t.resolve(e,i)),""):r[0]});return new tc(o,n)}function Oe(t){return"@"==t[0]}function Me(t,r,n,o){var i=[];return Eo.parse(r).forEach(function(e){var r=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=r.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,n,o)}))}),0===i.length?[e.SecurityContext.NONE]:Array.from(new Set(i)).sort()}function Re(t){var e=null,r=null,n=null,o=!1,s=null;t.attrs.forEach(function(t){var i=t.name.toLowerCase();i==fc?e=t.value:i==yc?r=t.value:i==mc?n=t.value:t.name==bc?o=!0:t.name==wc&&t.value.length>0&&(s=t.value)}),e=ke(e);var a=t.name.toLowerCase(),u=Cc.OTHER;return i(a)?u=Cc.NG_CONTENT:a==gc?u=Cc.STYLE:a==_c?u=Cc.SCRIPT:a==dc&&n==vc&&(u=Cc.STYLESHEET),new Ec(u,e,r,o,s)}function ke(t){return null===t||0===t.length?"*":t}function Ie(t){return function(e){return-1!==t.indexOf(e.msg)?(Hc[e.msg]=(Hc[e.msg]||0)+1,Hc[e.msg]<=1):!0}}function Ne(t){return t.trim().split(/\s+/g)}function De(t,e){var r=new Eo,o=n(t)[1];r.setElement(o);for(var i=0;i<e.length;i++){var s=e[i][0],a=n(s)[1],u=e[i][1];if(r.addAttribute(a,u),s.toLowerCase()==Vc){var c=Ne(u);c.forEach(function(t){return r.addClassName(t)})}}return r}function je(t){return t instanceof Ks&&0==t.value.trim().length}function Le(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function Ve(t){return t instanceof Si&&(t=t.ast),t instanceof ii}function Fe(t,e,r){if(s(t.name))return!0;var o=n(t.name)[1];return o.toLowerCase()===Dc&&e&&o.toLowerCase()===Dc?(r(Uc,t.sourceSpan),!0):!1}function Ue(){return new el}function Be(){return new el(".")}function He(t){var e=ze(t);return e&&e[nl.Scheme]||""}function qe(t,e,r,n,o,i,s){var a=[];return null!=t&&a.push(t+":"),null!=r&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(r),null!=n&&a.push(":"+n)),null!=o&&a.push(o),null!=i&&a.push("?"+i),null!=s&&a.push("#"+s),a.join("")}function ze(t){return t.match(rl)}function Ge(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",r="/"===t[t.length-1]?"/":"",n=t.split("/"),o=[],i=0,s=0;s<n.length;s++){var a=n[s];switch(a){case"":case".":break;case"..":o.length>0?o.pop():i++;break;default:o.push(a)}}if(""==e){for(;i-->0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+r}function We(t){var e=t[nl.Path];return e=null==e?"":Ge(e),t[nl.Path]=e,qe(t[nl.Scheme],t[nl.UserInfo],t[nl.Domain],t[nl.Port],e,t[nl.QueryData],t[nl.Fragment])}function $e(t,e){var r=ze(encodeURI(e)),n=ze(t);if(null!=r[nl.Scheme])return We(r);r[nl.Scheme]=n[nl.Scheme];for(var o=nl.Scheme;o<=nl.Port;o++)null==r[o]&&(r[o]=n[o]);if("/"==r[nl.Path][0])return We(r);var i=n[nl.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+r[nl.Path],r[nl.Path]=i,We(r)}function Ke(t){return t instanceof e.Directive}function Qe(t,e){for(var r=t.length-1;r>=0;r--)if(e(t[r]))return t[r];return null}function Xe(t){var e=Je(t);return e[0]+".ngfactory"+e[1]}function Ze(t){return t.replace(cl,".")}function Ye(t){return cl.test(t)}function Je(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function tr(t){var e=t.replace(ul,"");return e+".ngsummary.json"}function er(t,r){return e.ɵreflector.hasLifecycleHook(r,rr(t))}function rr(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function nr(t){return t instanceof e.NgModule}function or(t){return t instanceof e.Pipe}function ir(t,r){if(void 0===r&&(r=[]),t)for(var n=0;n<t.length;n++){var o=e.resolveForwardRef(t[n]);Array.isArray(o)?ir(o,r):r.push(o)}return r}function sr(t){return t?Array.from(new Set(t)):[]}function ar(t){return sr(ir(t))}function ur(t){return t instanceof mo||t instanceof e.Type}function cr(t,e,r){if(e instanceof mo)return t.resourceUri(e);var n=r.moduleId;if("string"==typeof n){var o=He(n);return o?n:"package:"+n+Po}if(null!==n&&void 0!==n)throw v('moduleId should be a string in "'+pr(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return t.importUri(e)}function lr(t,e){d(t,new ml,e)}function pr(t){return t instanceof mo?t.name+" in "+t.filePath:e.ɵstringify(t)}function hr(t){var r=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return r[e.ɵERROR_COMPONENT_TYPE]=t,r}function fr(t){var e=new vp;return e.visitAllStatements(t,null),e.varNames}function dr(t,e){if(!e)return t;var r=new gp(e);return t.visitStatement(r,null)}function mr(t,e){if(!e)return t;var r=new gp(e);return t.visitExpression(r,null)}function yr(t,e,r){return new Ol(t,e,r)}function vr(t,e,r){return void 0===e&&(e=null),new Vl(t,null,e,r)}function gr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),null!=t?_r(vr(t,e,null),r):null}function _r(t,e){return void 0===e&&(e=null),null!=t?new bl(t,e):null}function br(t,e,r){return new $l(t,e,r)}function wr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=!1),new Ql(t.map(function(t){return new Kl(t[0],t[1],r)}),e,null)}function Cr(t,e){return new Ul(t,e)}function Er(t,e,r,n){return new ql(t,e,r,n)}function Sr(t,e,r){return new Ll(t,e,r)}function xr(t){var e=t.parentArgs||[],r=t.parent?[Yl.callFn(e).toStmt()]:[],n=Tr(Array.isArray(t.builders)?t.builders:[t.builders]),o=new cp(null,t.ctorParams||[],r.concat(n.ctorStmts));return new pp(t.name,t.parent||null,n.fields,n.getters,o,n.methods,t.modifiers||[],t.sourceSpan)}function Tr(t){return{fields:[].concat.apply([],t.map(function(t){return t.fields||[]})),methods:[].concat.apply([],t.map(function(t){return t.methods||[]})),getters:[].concat.apply([],t.map(function(t){return t.getters||[]})),ctorStmts:[].concat.apply([],t.map(function(t){return t.ctorStmts||[]}))}}function Pr(t,e){return void 0===e&&(e=null),d(t,new bp,e)}function Ar(t){return null!=t.value?Sr(t.value):vr(t.identifier)}function Or(t){var e="";t=w(t);for(var r=0;r<t.length;){var n=t.charCodeAt(r++),o=t.charCodeAt(r++),i=t.charCodeAt(r++);e+=Rr(n>>2),e+=Rr((3&n)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":Rr((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":Rr(63&i)}return e}function Mr(t){t=0>t?(-t<<1)+1:t<<1;var e="";do{var r=31&t;t>>=5,t>0&&(r=32|r),e+=Rr(r)}while(t>0);return e}function Rr(t){if(0>t||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Mp[t]}function kr(t,e,r){if(void 0===r&&(r=!0),null==t)return null;var n=t.replace(Rp,function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=r||!kp.test(n);return o?"'"+n+"'":n}function Ir(t){for(var e="",r=0;t>r;r++)e+=Ip;return e}function Nr(t){var e=new Bp(Fp,{fileNameToModuleName:function(t){return t},getImportAs:function(){return null},getTypeArity:function(){return null}}),r=Lp.createRoot([]),n=Array.isArray(t)?t:[t];return n.forEach(function(t){if(t instanceof rp)t.visitStatement(e,r);else if(t instanceof Pl)t.visitExpression(e,r);else{if(!(t instanceof vl))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,r)}}),r.toSource()}function Dr(t,e){for(var r=0,n=e;r<n.length;r++){var o=n[r];Hp[o.toLowerCase()]=t}}function jr(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function Lr(t){return t.replace(dh,"")}function Vr(t){var e=t.match(mh);return e?e[0]:""}function Fr(t,e){var r=Ur(t),n=0;return r.escapedString.replace(yh,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+bh)&&(s=r.blocks[n++],a=a.substring(bh.length+1),u="{");var c=e(new wh(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Ur(t){for(var e=t.split(vh),r=[],n=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==_h&&o--,o>0?i.push(a):(i.length>0&&(n.push(i.join("")),r.push(bh),i=[]),r.push(a)),a==gh&&o++}return i.length>0&&(n.push(i.join("")),r.push(bh)),new Ch(r.join(""),n)}function Br(t){var e="styles";return t&&(e+="_"+E(t.type)),e}function Hr(t,e,r,n){t||(t=new jh);var o=qr({createLiteralArrayConverter:function(){return function(t){return br(t)}},createLiteralMapConverter:function(t){return function(e){return wr(t.map(function(t,r){return[t,e[r]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},r),i=new Dh(t,e,n),s=[];Yr(o.visit(i,Ih.Statement),s),Kr(i.temporaryCount,n,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=en(c);l&&(u=tn(n),s[a]=u.set(l.cast(El).notIdentical(Sr(!1))).toDeclStmt(null,[ep.Final]))}return new Rh(s,u)}function qr(t,e){return Gr(t,e)}function zr(t,e,r,n){t||(t=new jh);var o=Jr(n),i=[],s=new Dh(t,e,n),a=r.visit(s,Ih.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push($r(n,u));return i.push(o.set(a).toDeclStmt(null,[ep.Final])),new kh(i,o)}function Gr(t,e){var r=new Nh(t);return e.visit(r)}function Wr(t,e){return"tmp_"+t+"_"+e}function $r(t,e){return new np(Wr(t,e),Jl)}function Kr(t,e,r){for(var n=t-1;n>=0;n--)r.unshift($r(e,n))}function Qr(t,e){if(t!==Ih.Statement)throw new Error("Expected a statement, but saw "+e)}function Xr(t,e){if(t!==Ih.Expression)throw new Error("Expected an expression, but saw "+e)}function Zr(t,e){return t===Ih.Statement?e.toStmt():e}function Yr(t,e){Array.isArray(t)?t.forEach(function(t){return Yr(t,e)}):e.push(t)}function Jr(t){return yr("currVal_"+t)}function tn(t){return yr("pd_"+t)}function en(t){return t instanceof ip?t.expr:t instanceof sp?t.value:null}function rn(t){return t.multiProvider?nn(t.providers):on(t.providerType,t.providers[0])}function nn(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return n.push(new Hl(i,El)),r.push(an(e)),yr(i)})}var r=[],n=[],o=t.map(function(t,r){var n;if(t.useClass){var o=e(r,t.deps||t.useClass.diDeps);n=vr(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(r,t.deps||t.useFactory.diDeps);n=vr(t.useFactory).callFn(o)}else if(t.useExisting){var o=e(r,[{token:t.useExisting}]);n=o[0]}else n=Pr(t.useValue);return n}),i=Er(n,[new sp(br(o))],Sl);return{providerExpr:i,flags:512,depsExpr:br(r)}}function on(t,e){var r,n,o;t===po.Directive||t===po.Component?(r=vr(e.useClass),n=8192,o=e.deps||e.useClass.diDeps):e.useClass?(r=vr(e.useClass),n=256,o=e.deps||e.useClass.diDeps):e.useFactory?(r=vr(e.useFactory),n=512,o=e.deps||e.useFactory.diDeps):e.useExisting?(r=Jl,n=1024,o=[{token:e.useExisting}]):(r=Pr(e.useValue),n=128,o=[]);var i=br(o.map(function(t){return an(t)}));return{providerExpr:r,flags:n,depsExpr:i}}function sn(t){return t.identifier?vr(t.identifier):Sr(t.value)}function an(t){var e=t.isValue?Pr(t.value):sn(t.token),r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isValue&&(r|=8),0===r?e:br([Sr(r),e])}function un(t){var e=t[t.length-1];return e instanceof ao?e.hasViewContainer:e instanceof so?o(e.name)&&e.children.length?un(e.children):e.hasViewContainer:e instanceof ho}function cn(t){var r=0;switch(t){case e.ɵLifecycleHooks.AfterContentChecked:r=1048576;break;case e.ɵLifecycleHooks.AfterContentInit:r=524288;break;case e.ɵLifecycleHooks.AfterViewChecked:r=4194304;break;case e.ɵLifecycleHooks.AfterViewInit:r=2097152;break;case e.ɵLifecycleHooks.DoCheck:r=131072;break;case e.ɵLifecycleHooks.OnChanges:r=262144;break;case e.ɵLifecycleHooks.OnDestroy:r=65536;break;case e.ɵLifecycleHooks.OnInit:r=32768}return r}function ln(t,e){switch(t.type){case fo.Attribute:return br([Sr(1),Sr(t.name),Sr(t.securityContext)]);case fo.Property:return br([Sr(8),Sr(t.name),Sr(t.securityContext)]);case fo.Animation:var r=8|(e&&e.directive.isComponent?32:16);return br([Sr(r),Sr("@"+t.name),Sr(t.securityContext)]);case fo.Class:return br([Sr(2),Sr(t.name),Jl]);case fo.Style:return br([Sr(4),Sr(t.name),Sr(t.unit)])}}function pn(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(r){var n=t.directive.hostAttributes[r],o=e[r];e[r]=null!=o?hn(r,o,n):n})}),br(Object.keys(e).sort().map(function(t){return br([Sr(t),Sr(e[t])])}))}function hn(t,e,r){return t==Vh||t==Fh?e+" "+r:r}function fn(t,e){return Gh.callFn(e.length>10?[zh,Sr(t),Sr(1),br(e)]:[zh,Sr(t),Sr(0)].concat(e))}function dn(t,e,r){return vr(de(zu.unwrapValue)).callFn([zh,Sr(t),Sr(e),r])}function mn(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var r=new Set,n=new Set,o=void 0;t instanceof so?(mn(t.children,e),t.children.forEach(function(t){var o=e.get(t);o.staticQueryIds.forEach(function(t){return r.add(t)}),o.dynamicQueryIds.forEach(function(t){return n.add(t)})}),o=t.queryMatches):t instanceof ao&&(mn(t.children,e),t.children.forEach(function(t){var r=e.get(t);r.staticQueryIds.forEach(function(t){return n.add(t)}),r.dynamicQueryIds.forEach(function(t){return n.add(t)})}),o=t.queryMatches),o&&o.forEach(function(t){return r.add(t.queryId)}),n.forEach(function(t){return r["delete"](t)}),e.set(t,{staticQueryIds:r,dynamicQueryIds:n})}),e}function yn(t){var e=new Set,r=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return r.add(t)})}),r.forEach(function(t){return e["delete"](t)}),{staticQueryIds:e,dynamicQueryIds:r}}function vn(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var r=e.directive.entryComponents.map(function(t){return vr({reference:t.componentFactory})}),n=ye(zu.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:br(r)},{token:n,isSkipSelf:!0,isOptional:!0},{token:ye(zu.NgModuleRef)}],lifecycleHooks:[],reference:fe(zu.CodegenComponentFactoryResolver)};return new lo(n,!1,!0,[{token:n,multi:!1,useClass:o}],po.PrivateService,[],e.sourceSpan)}return null}function gn(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function _n(t,e,r){var n=0;return n|=!r||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?268435456:134217728}function bn(t,e,r,n){var o=new Zh(e,t);r.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var i=0;i<o.symbols.length;i++){var s=o.symbols[i];if(t.isLibraryFile(s.filePath)){var a=t.resolveSummary(s);if(!a){var u=e.resolveSymbol(s);u&&(a={symbol:u.symbol,metadata:u.metadata})}a&&o.addOrMergeSummary(a)}}return n.forEach(function(e){if(o.addOrMergeSummary({symbol:e.type.reference,metadata:null,type:e}),e.summaryKind===Wo.NgModule){var r=e;r.exportedDirectives.concat(r.exportedPipes).forEach(function(e){var r=e.reference;if(t.isLibraryFile(r.filePath)){var n=t.resolveSummary(r);n&&o.addOrMergeSummary(n)}})}}),o.serialize()}function wn(t,e){var r=new Yh(t);return r.deserialize(e)}function Cn(t,e,r){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(En(e.moduleUrl,e.isShimmed,r),e.name)}),e.statements}function En(t,e,r){return""+t+(e?".shim":"")+".ngstyle"+r}function Sn(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function xn(t,e,r){var n=On(t,e,r),o=n.ngModules,i=n.symbolsMissingModule;return Pn(t,o,i,r)}function Tn(t,e,r){var n=xn(t,e,r);if(n.symbolsMissingModule&&n.symbolsMissingModule.length){var o=n.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."});throw v(o.join("\n"))}return n}function Pn(t,e,r,n){var o=new Map;e.forEach(function(t){return o.set(t.type.reference,t)});var i=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),n.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var r=e.reference.filePath;l.add(r),a.set(r,(a.get(r)||[]).concat(e.reference)), -i.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var r=e.reference.filePath;l.add(r),u.set(r,(u.get(r)||[]).concat(e.reference)),i.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],r=u.get(t)||[],n=s.get(t)||[],o=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:r,ngModules:n,injectables:o})}),{ngModuleByPipeOrDirective:i,files:p,ngModules:e,symbolsMissingModule:r}}function An(t,e,r){var n=[];return e.filter(function(t){return r.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var r=t.resolveSymbol(e),o=r.metadata;o&&"error"!=o.__symbolic&&n.push(r.symbol)})}),n}function On(t,e,r){var n=new Map,o=[],i=new Set,s=function(t){if(n.has(t)||!e.isSourceFile(t.filePath))return!1;var o=r.getNgModuleMetadata(t,!1);return o&&(n.set(o.type.reference,o),o.declaredDirectives.forEach(function(t){return i.add(t.reference)}),o.declaredPipes.forEach(function(t){return i.add(t.reference)}),o.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!o};t.forEach(function(t){s(t)||!r.isDirective(t)&&!r.isPipe(t)||o.push(t)});var a=o.filter(function(t){return!i.has(t)});return{ngModules:Array.from(n.values()),symbolsMissingModule:a}}function Mn(t){return"object"==typeof t&&t.name&&t.filePath}function Rn(t){return t&&"ignore"==t.__symbolic}function kn(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":var e=t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F";return e+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function In(t){return"Error encountered resolving symbol values statically. "+kn(t)}function Nn(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){var o=e(t[n],n);Rn(o)||(rf.test(n)?Object.defineProperty(r,n,{enumerable:!1,configurable:!0,value:o}):r[n]=o)}),r}function Dn(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function jn(t,e,r,n){var o=new Error(t);return o.fileName=e,o.line=r,o.column=n,o}function Ln(t){return t.startsWith("___")?t.substr(1):t}function Vn(t,r){var n=r.translations||"",o=Be(),i=new yo,s=new pf(t,i),a=new lf(t,i,s),u=new of(s,a);tf.install(u);var c=new e.ɵConsole,l=new Hu(new Fu,n,r.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new ti({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:r.enableLegacyTemplate!==!1}),h=new ol({get:function(e){return t.loadResource(e)}},o,l,p),f=new Us(new Ns),d=new Qp,m=new Wc(p,f,d,l,c,[]),y=new dl(p,new ll(u),new al(u),new pl(u),s,d,h,c,i,u),v={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,r){return t.fileNameToModuleName(e,r)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new Hh(p,d),_=new Jh(p,t,y,m,new Oh(o),g,new Ep,new Up(v),s,r.locale||null,r.i18nFormat||null,r.genFilePreamble||null,a);return{compiler:_,reflector:u}}function Fn(t,e){var r=t.concat([new sp(br(e.map(function(t){return yr(t)})))]),n=new hf(null,null,null,new Map),o=new df,i=o.visitAllStatements(r,n);return null!=i?i.value:null}function Un(t,e,r,n,o){for(var i=n.createChildWihtLocalVars(),s=0;s<t.length;s++)i.vars.set(t[s],e[s]);var a=o.visitAllStatements(r,i);return a?a.value:null}function Bn(t,e,r){var n={};t.getters.forEach(function(o){n[o.name]={configurable:!1,get:function(){var n=new hf(e,this,t.name,e.vars);return Un([],[],o.body,n,r)}}}),t.methods.forEach(function(o){var i=o.params.map(function(t){return t.name});n[o.name]={writable:!1,configurable:!1,value:function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var a=new hf(e,this,t.name,e.vars);return Un(i,n,o.body,a,r)}}});var o=t.constructorMethod.params.map(function(t){return t.name}),i=function(){for(var n=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new hf(e,this,t.name,e.vars);t.fields.forEach(function(t){n[t.name]=void 0}),Un(o,i,t.constructorMethod.body,a,r)},s=t.parent?t.parent.visitExpression(r,e):Object;return i.prototype=Object.create(s.prototype,n),i}function Hn(t,e,r,n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Un(t,o,e,r,n)}}function qn(t,r,n){var o=r.toSource()+"\n//# sourceURL="+t,i=[],s=[];for(var a in n)i.push(a),s.push(n[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(i.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;o+="\n"+r.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(i.concat(o))))).apply(void 0,s)}function zn(t,e,r){var n=new gf,o=Lp.createRoot(r),i=new sp(br(r.map(function(t){return yr(t)})));return n.visitAllStatements(e.concat([i]),o),qn(t,o,n.getArgs())}function Gn(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function Wn(t,e,r,n,o){return new Hu(t,e,r,n.missingTranslation,o)}function $n(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function Kn(t){return{useJit:Qn(t.map(function(t){return t.useJit})),defaultEncapsulation:Qn(t.map(function(t){return t.defaultEncapsulation})),providers:Xn(t.map(function(t){return t.providers})),missingTranslation:Qn(t.map(function(t){return t.missingTranslation}))}}function Qn(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function Xn(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Zn=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Yn=new e.Version("4.1.0"),Jn=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),to=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),eo=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),ro=function(){function t(t,e,r,n,o,i){this.name=t,this.type=e,this.securityContext=r,this.value=n,this.unit=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===fo.Animation},enumerable:!0,configurable:!0}),t}(),no=function(){function t(t,e,r,n,o){this.name=t,this.target=e,this.phase=r,this.handler=n,this.sourceSpan=o}return t.calcFullName=function(t,e,r){return e?e+":"+t:r?"@"+t+"."+r:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),oo=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),io=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),so=function(){function t(t,e,r,n,o,i,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=r,this.outputs=n,this.references=o,this.directives=i,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ao=function(){function t(t,e,r,n,o,i,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=r,this.variables=n,this.directives=o,this.providers=i,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),uo=function(){function t(t,e,r,n){this.directiveName=t,this.templateName=e,this.value=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),co=function(){function t(t,e,r,n,o,i){this.directive=t,this.inputs=e,this.hostProperties=r,this.hostEvents=n,this.contentQueryStartId=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),lo=function(){function t(t,e,r,n,o,i,s){this.token=t,this.multiProvider=e,this.eager=r,this.providers=n,this.providerType=o,this.lifecycleHooks=i,this.sourceSpan=s}return t.prototype.visit=function(){return null},t}(),po={};po.PublicService=0,po.PrivateService=1,po.Component=2,po.Directive=3,po.Builtin=4,po[po.PublicService]="PublicService",po[po.PrivateService]="PrivateService",po[po.Component]="Component",po[po.Directive]="Directive",po[po.Builtin]="Builtin";var ho=function(){function t(t,e,r){this.index=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),fo={};fo.Property=0,fo.Attribute=1,fo.Class=2,fo.Style=3,fo.Animation=4,fo[fo.Property]="Property",fo[fo.Attribute]="Attribute",fo[fo.Class]="Class",fo[fo.Style]="Style",fo[fo.Animation]="Animation";var mo=function(){function t(t,e,r){this.filePath=t,this.name=e,this.members=r}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),yo=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,r){r=r||[];var n=r.length?"."+r.join("."):"",o='"'+t+'".'+e+n,i=this.cache.get(o);return i||(i=new mo(t,e,r),this.cache.set(o,i)),i},t}(),vo={};vo.RAW_TEXT=0,vo.ESCAPABLE_RAW_TEXT=1,vo.PARSABLE_DATA=2,vo[vo.RAW_TEXT]="RAW_TEXT",vo[vo.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",vo[vo.PARSABLE_DATA]="PARSABLE_DATA";var go={Aacute:"Ã",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à ",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Ã…",aring:"Ã¥",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Î’",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"Æ’",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"â„",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Ã",iacute:"Ã",Icirc:"ÃŽ",icirc:"î",iexcl:"¡",Igrave:"ÃŒ",igrave:"ì",image:"â„‘",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ã",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"â†",lArr:"â‡",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"â—Š",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Îœ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Î",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Å’",oelig:"Å“",Ograve:"Ã’",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Î ",pi:"Ï€",piv:"Ï–",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"âˆ",prop:"âˆ",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"â€",real:"â„œ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"Ï",rlm:"â€",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Å ",scaron:"Å¡",sdot:"â‹…",sect:"§",shy:"Â",Sigma:"Σ",sigma:"σ",sigmaf:"Ï‚",sim:"∼",spades:"â™ ",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"Ï„",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"Ï‘",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"Ëœ",times:"×",trade:"â„¢",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"Ï’",Upsilon:"Î¥",upsilon:"Ï…",Uuml:"Ãœ",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ã",yacute:"ý",yen:"Â¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"â€",zwnj:"‌"},_o=function(){function t(t){var e=void 0===t?{}:t,r=e.closedByChildren,n=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?vo.PARSABLE_DATA:i,a=e.closedByParent,u=void 0===a?!1:a,c=e.isVoid,l=void 0===c?!1:c,p=e.ignoreFirstLf,h=void 0===p?!1:p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,n&&n.length>0&&(this.requiredParents={},this.parentToAdd=n[0],n.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase(),r="template"===e||"ng-template"===t;return!r&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),bo={base:new _o({isVoid:!0}),meta:new _o({isVoid:!0}),area:new _o({isVoid:!0}),embed:new _o({isVoid:!0}),link:new _o({isVoid:!0}),img:new _o({isVoid:!0}),input:new _o({isVoid:!0}),param:new _o({isVoid:!0}),hr:new _o({isVoid:!0}),br:new _o({isVoid:!0}),source:new _o({isVoid:!0}),track:new _o({isVoid:!0}),wbr:new _o({isVoid:!0}),p:new _o({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new _o({closedByChildren:["tbody","tfoot"]}),tbody:new _o({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new _o({closedByChildren:["tbody"],closedByParent:!0}),tr:new _o({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new _o({closedByChildren:["td","th"],closedByParent:!0}),th:new _o({closedByChildren:["td","th"],closedByParent:!0}),col:new _o({requiredParents:["colgroup"],isVoid:!0}),svg:new _o({implicitNamespacePrefix:"svg"}),math:new _o({implicitNamespacePrefix:"math"}),li:new _o({closedByChildren:["li"],closedByParent:!0}),dt:new _o({closedByChildren:["dt","dd"]}),dd:new _o({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new _o({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new _o({closedByChildren:["optgroup"],closedByParent:!0}),option:new _o({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new _o({ignoreFirstLf:!0}),listing:new _o({ignoreFirstLf:!0}),style:new _o({contentType:vo.RAW_TEXT}),script:new _o({contentType:vo.RAW_TEXT}),title:new _o({contentType:vo.ESCAPABLE_RAW_TEXT}),textarea:new _o({contentType:vo.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},wo=new _o,Co=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Eo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var r,n=[],o=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},i=new t,s=i,a=!1;for(Co.lastIndex=0;r=Co.exec(e);){if(r[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,i.notSelectors.push(s)}if(r[2]&&s.setElement(r[2]),r[3]&&s.addClassName(r[3]),r[4]&&s.addAttribute(r[4],r[6]),r[7]&&(a=!1,s=i),r[8]){if(a)throw new Error("Multiple selectors in :not are not supported");o(n,i),i=s=new t}}return o(n,i),n},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",r="",n=0;n<this.attrs.length;n+=2){var o=this.attrs[n],i=""!==this.attrs[n+1]?'="'+this.attrs[n+1]+'"':"";r+=" "+o+i}return c(t).isVoid?"<"+t+e+r+"/>":"<"+t+e+r+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var r=this.attrs[e],n=this.attrs[e+1];t+="["+r+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),So=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var r=new t;return r.addSelectables(e,null),r},t.prototype.addSelectables=function(t,e){var r=null;t.length>1&&(r=new xo(t),this._listContexts.push(r));for(var n=0;n<t.length;n++)this._addSelectable(t[n],e,r)},t.prototype._addSelectable=function(t,e,r){var n=this,o=t.element,i=t.classNames,s=t.attrs,a=new To(t,e,r);if(o){var u=0===s.length&&0===i.length;u?this._addTerminal(n._elementMap,o,a):n=this._addPartial(n._elementPartialMap,o)}if(i)for(var c=0;c<i.length;c++){var u=0===s.length&&c===i.length-1,l=i[c];u?this._addTerminal(n._classMap,l,a):n=this._addPartial(n._classPartialMap,l)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,p=s[c],h=s[c+1];if(u){var f=n._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var m=n._attrValuePartialMap,y=m.get(p);y||(y=new Map,m.set(p,y)),n=this._addPartial(y,h)}}},t.prototype._addTerminal=function(t,e,r){var n=t.get(e);n||(n=[],t.set(e,n)),n.push(r)},t.prototype._addPartial=function(e,r){var n=e.get(r);return n||(n=new t,e.set(r,n)),n},t.prototype.match=function(t,e){for(var r=!1,n=t.element,o=t.classNames,i=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,n,t,e)||r,r=this._matchPartial(this._elementPartialMap,n,t,e)||r,o)for(var s=0;s<o.length;s++){var a=o[s];r=this._matchTerminal(this._classMap,a,t,e)||r,r=this._matchPartial(this._classPartialMap,a,t,e)||r}if(i)for(var s=0;s<i.length;s+=2){var u=i[s],c=i[s+1],l=this._attrValueMap.get(u);c&&(r=this._matchTerminal(l,"",t,e)||r),r=this._matchTerminal(l,c,t,e)||r;var p=this._attrValuePartialMap.get(u);c&&(r=this._matchPartial(p,"",t,e)||r),r=this._matchPartial(p,c,t,e)||r}return r},t.prototype._matchTerminal=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var o=t.get(e)||[],i=t.get("*");if(i&&(o=o.concat(i)),0===o.length)return!1;for(var s,a=!1,u=0;u<o.length;u++)s=o[u],a=s.finalize(r,n)||a;return a},t.prototype._matchPartial=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var o=t.get(e);return o?o.match(r,n):!1},t}(),xo=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),To=function(){function t(t,e,r){this.selector=t,this.cbContext=e,this.listContext=r,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var r=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){var n=So.createNotMatcher(this.notSelectors);r=!n.match(t,null)}return!r||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),r},t}(),Po="",Ao=/-+([a-z0-9])/g,Oo=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return t.map(function(t){return d(t,r,e)})},t.prototype.visitStringMap=function(t,e){var r=this,n={};return Object.keys(t).forEach(function(o){n[o]=d(t[o],r,e)}),n},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),Mo=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),Ro="ngSyntaxError",ko=Object.getPrototypeOf({}),Io=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,No=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Do=function(){function t(){}return t}(),jo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateNameExpr=e,n.styles=r,n}return Zn(e,t),e}(Do),Lo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateChangeExpr=e,n.steps=r,n}return Zn(e,t),e}(Do),Vo=function(){function t(){}return t}(),Fo=function(t){function e(e){void 0===e&&(e=[]);var r=t.call(this)||this;return r.steps=e,r}return Zn(e,t),e}(Vo),Uo=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this)||this;return n.offset=e,n.styles=r,n}return Zn(e,t),e}(Vo),Bo=function(t){function e(e,r){void 0===e&&(e=0),void 0===r&&(r=null);var n=t.call(this)||this;return n.timings=e,n.styles=r,n}return Zn(e,t),e}(Vo),Ho=function(t){function e(e){void 0===e&&(e=null);var r=t.call(this)||this;return r.steps=e,r}return Zn(e,t),e}(Vo),qo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Zn(e,t),e}(Ho),zo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Zn(e,t),e}(Ho),Go=0,Wo={};Wo.Pipe=0,Wo.Directive=1,Wo.NgModule=2,Wo.Injectable=3,Wo[Wo.Pipe]="Pipe",Wo[Wo.Directive]="Directive",Wo[Wo.NgModule]="NgModule",Wo[Wo.Injectable]="Injectable";var $o=function(){function t(t){var e=void 0===t?{}:t,r=e.moduleUrl,n=e.styles,o=e.styleUrls;this.moduleUrl=r||null,this.styles=I(n),this.styleUrls=I(o)}return t}(),Ko=function(){function t(t){var e=t.encapsulation,r=t.template,n=t.templateUrl,o=t.styles,i=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=r,this.templateUrl=n,this.styles=I(o),this.styleUrls=I(i),this.externalStylesheets=I(s),this.animations=a?N(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Qo=function(){function t(t){var e=t.isHost,r=t.type,n=t.isComponent,o=t.selector,i=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,m=t.viewQueries,y=t.entryComponents,v=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=r,this.isComponent=n,this.selector=o,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=I(h),this.viewProviders=I(f),this.queries=I(d),this.viewQueries=I(m),this.entryComponents=I(y),this.template=v,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var r=e.isHost,n=e.type,o=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,h=e.providers,f=e.viewProviders,d=e.queries,m=e.viewQueries,y=e.entryComponents,v=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},C={},E={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],r=t.match(Io);null===r?E[t]=e:null!=r[1]?C[r[1]]=e:null!=r[2]&&(w[r[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=p(t,[t,t]);S[e[0]]=e[1]});var x={};return null!=c&&c.forEach(function(t){var e=p(t,[t,t]);x[e[0]]=e[1]}),new t({isHost:r,type:n,isComponent:!!o,selector:i,exportAs:s,changeDetection:a,inputs:S,outputs:x,hostListeners:w,hostProperties:C,hostAttributes:E,providers:h,viewProviders:f,queries:d,viewQueries:m,entryComponents:y,template:v,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:Wo.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Xo=function(){function t(t){var e=t.type,r=t.name,n=t.pure;this.type=e,this.name=r,this.pure=!!n}return t.prototype.toSummary=function(){return{summaryKind:Wo.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Zo=function(){function t(t){var e=t.type,r=t.providers,n=t.declaredDirectives,o=t.exportedDirectives,i=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=I(n),this.exportedDirectives=I(o),this.declaredPipes=I(i),this.exportedPipes=I(s),this.providers=I(r),this.entryComponents=I(a),this.bootstrapComponents=I(u),this.importedModules=I(c),this.exportedModules=I(l),this.schemas=I(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Wo.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Yo=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Jo=function(){function t(t,e){var r=e.useClass,n=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=r||null,this.useValue=n,this.useExisting=o,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}return t}(),ti=function(){function t(t){var r=void 0===t?{}:t,n=r.defaultEncapsulation,o=void 0===n?e.ViewEncapsulation.Emulated:n,i=r.useJit,s=void 0===i?!0:i,a=r.missingTranslation,u=r.enableLegacyTemplate;this.defaultEncapsulation=o,this.useJit=!!s,this.missingTranslation=a||null,this.enableLegacyTemplate=u!==!1}return t}(),ei=function(){function t(t,e,r,n){this.input=e,this.errLocation=r,this.ctxLocation=n,this.message="Parser Error: "+t+" "+r+" ["+e+"] in "+n}return t}(),ri=function(){function t(t,e){this.start=t,this.end=e}return t}(),ni=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),oi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.prefix=r,i.uninterpretedExpression=n,i.location=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(ni),ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(ni),si=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(ni),ai=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expressions=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(ni),ui=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.condition=r,i.trueExp=n,i.falseExp=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(ni),ci=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.receiver=r,o.name=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(ni),li=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.value=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(ni),pi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.receiver=r,o.name=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(ni),hi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.obj=r,o.key=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(ni),fi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.obj=r,i.key=n,i.value=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(ni),di=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.exp=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(ni),mi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(ni),yi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expressions=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(ni),vi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.keys=r,o.values=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(ni),gi=function(t){function e(e,r,n){ -var o=t.call(this,e)||this;return o.strings=r,o.expressions=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(ni),_i=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.operation=r,i.left=n,i.right=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(ni),bi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expression=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(ni),wi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(ni),Ci=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(ni),Ei=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.target=r,o.args=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(ni),Si=function(t){function e(e,r,n,o){var i=t.call(this,new ri(0,null==r?0:r.length))||this;return i.ast=e,i.source=r,i.location=n,i.errors=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(ni),xi=function(){function t(t,e,r,n,o){this.span=t,this.key=e,this.keyIsVar=r,this.name=n,this.expression=o}return t}(),Ti=function(){function t(){}return t.prototype.visitBinary=function(t){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var r=this;return t.forEach(function(t){return t.visit(r,e)}),null},t.prototype.visitQuote=function(){return null},t}(),Pi=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t){return t},t.prototype.visitInterpolation=function(t){return new gi(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t){return new mi(t.span,t.value)},t.prototype.visitPropertyRead=function(t){return new ci(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t){return new li(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t){return new pi(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t){return new wi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t){return new Ci(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t){return new Ei(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t){return new yi(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t){return new vi(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t){return new _i(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t){return new bi(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t){return new ui(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t){return new di(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t){return new hi(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t){return new fi(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),r=0;r<t.length;++r)e[r]=t[r].visit(this);return e},t.prototype.visitChain=function(t){return new ai(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t){return new oi(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),Ai=0,Oi=9,Mi=10,Ri=11,ki=12,Ii=13,Ni=32,Di=33,ji=34,Li=35,Vi=36,Fi=37,Ui=38,Bi=39,Hi=40,qi=41,zi=42,Gi=43,Wi=44,$i=45,Ki=46,Qi=47,Xi=58,Zi=59,Yi=60,Ji=61,ts=62,es=63,rs=48,ns=57,os=65,is=69,ss=70,as=88,us=90,cs=91,ls=92,ps=93,hs=94,fs=95,ds=97,ms=101,ys=102,vs=110,gs=114,_s=116,bs=117,ws=118,Cs=120,Es=122,Ss=123,xs=124,Ts=125,Ps=160,As=96,Os=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Ms=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(W("interpolation",e),new t(e[0],e[1])):Rs},t}(),Rs=new Ms("{{","}}"),ks={};ks.Character=0,ks.Identifier=1,ks.Keyword=2,ks.String=3,ks.Operator=4,ks.Number=5,ks.Error=6,ks[ks.Character]="Character",ks[ks.Identifier]="Identifier",ks[ks.Keyword]="Keyword",ks[ks.String]="String",ks[ks.Operator]="Operator",ks[ks.Number]="Number",ks[ks.Error]="Error";var Is=["var","let","as","null","undefined","true","false","if","else","this"],Ns=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ls(t),r=[],n=e.scanToken();null!=n;)r.push(n),n=e.scanToken();return r},t}();Ns.decorators=[{type:z}],Ns.ctorParameters=function(){return[]};var Ds=function(){function t(t,e,r,n){this.index=t,this.type=e,this.numValue=r,this.strValue=n}return t.prototype.isCharacter=function(t){return this.type==ks.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==ks.Number},t.prototype.isString=function(){return this.type==ks.String},t.prototype.isOperator=function(t){return this.type==ks.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==ks.Identifier},t.prototype.isKeyword=function(){return this.type==ks.Keyword},t.prototype.isKeywordLet=function(){return this.type==ks.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==ks.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==ks.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==ks.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==ks.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==ks.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==ks.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==ks.Error},t.prototype.toNumber=function(){return this.type==ks.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case ks.Character:case ks.Identifier:case ks.Keyword:case ks.Operator:case ks.String:case ks.Error:return this.strValue;case ks.Number:return this.numValue.toString();default:return null}},t}(),js=new Ds(-1,ks.Character,0,""),Ls=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?Ai:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,r=this.peek,n=this.index;Ni>=r;){if(++n>=e){r=Ai;break}r=t.charCodeAt(n)}if(this.peek=r,this.index=n,n>=e)return null;if(tt(r))return this.scanIdentifier();if(B(r))return this.scanNumber(n);var o=n;switch(r){case Ki:return this.advance(),B(this.peek)?this.scanNumber(o):$(o,Ki);case Hi:case qi:case Ss:case Ts:case cs:case ps:case Wi:case Xi:case Zi:return this.scanCharacter(o,r);case Bi:case ji:return this.scanString();case Li:case Gi:case $i:case zi:case Qi:case Fi:case hs:return this.scanOperator(o,String.fromCharCode(r));case es:return this.scanComplexOperator(o,"?",Ki,".");case Yi:case ts:return this.scanComplexOperator(o,String.fromCharCode(r),Ji,"=");case Di:case Ji:return this.scanComplexOperator(o,String.fromCharCode(r),Ji,"=",Ji,"=");case Ui:return this.scanComplexOperator(o,"&",Ui,"&");case xs:return this.scanComplexOperator(o,"|",xs,"|");case Ps:for(;U(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(r)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),$(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),X(t,e)},t.prototype.scanComplexOperator=function(t,e,r,n,o,i){this.advance();var s=e;return this.peek==r&&(this.advance(),s+=n),null!=o&&this.peek==o&&(this.advance(),s+=i),X(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();rt(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Is.indexOf(e)>-1?Q(t,e):K(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(B(this.peek));else if(this.peek==Ki)e=!1;else{if(!nt(this.peek))break;if(this.advance(),ot(this.peek)&&this.advance(),!B(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var r=this.input.substring(t,this.index),n=e?at(r):parseFloat(r);return Y(t,n)},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var r="",n=this.index,o=this.input;this.peek!=e;)if(this.peek==ls){r+=o.substring(n,this.index),this.advance();var i=void 0;if(this.peek=this.peek,this.peek==bs){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;5>a;a++)this.advance()}else i=st(this.peek),this.advance();r+=String.fromCharCode(i),n=this.index}else{if(this.peek==Ai)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(n,this.index);return this.advance(),Z(t,r+u)},t.prototype.error=function(t,e){var r=this.index+e;return J(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}(),Vs=function(){function t(t,e,r){this.strings=t,this.expressions=e,this.offsets=r}return t}(),Fs=function(){function t(t,e,r){this.templateBindings=t,this.warnings=e,this.errors=r}return t}(),Us=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,r){void 0===r&&(r=Rs),this._checkNoInterpolation(t,e,r);var n=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new Bs(t,e,o,n.length,!0,this.errors,t.length-n.length).parseChain();return new Si(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,r){void 0===r&&(r=Rs);var n=this._parseBindingAst(t,e,r);return new Si(n,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,r){void 0===r&&(r=Rs);var n=this._parseBindingAst(t,e,r),o=Hs.check(n);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new Si(n,t,e,this.errors)},t.prototype._reportError=function(t,e,r,n){this.errors.push(new ei(t,e,r,n))},t.prototype._parseBindingAst=function(t,e,r){var n=this._parseQuote(t,e);if(null!=n)return n;this._checkNoInterpolation(t,e,r);var o=this._stripComments(t),i=this._lexer.tokenize(o);return new Bs(t,e,i,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var r=t.indexOf(":");if(-1==r)return null;var n=t.substring(0,r).trim();if(!et(n))return null;var o=t.substring(r+1);return new oi(new ri(0,t.length),n,o,e)},t.prototype.parseTemplateBindings=function(t,e,r){var n=this._lexer.tokenize(e);if(t){var o=this._lexer.tokenize(t).map(function(t){return t.index=0,t});n.unshift.apply(n,o)}return new Bs(e,r,n,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,r){void 0===r&&(r=Rs);var n=this.splitInterpolation(t,e,r);if(null==n)return null;for(var o=[],i=0;i<n.expressions.length;++i){var s=n.expressions[i],a=this._stripComments(s),u=this._lexer.tokenize(this._stripComments(n.expressions[i])),c=new Bs(t,e,u,a.length,!1,this.errors,n.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new Si(new gi(new ri(0,null==t?0:t.length),n.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,r){void 0===r&&(r=Rs);var n=ut(r),o=t.split(n);if(o.length<=1)return null;for(var i=[],s=[],a=[],u=0,c=0;c<o.length;c++){var l=o[c];c%2===0?(i.push(l),u+=l.length):l.trim().length>0?(u+=r.start.length,s.push(l),a.push(u),u+=l.length+r.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(o,c,r)+" in",e),s.push("$implict"),a.push(u))}return new Vs(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new Si(new mi(new ri(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,r=0;r<t.length-1;r++){var n=t.charCodeAt(r),o=t.charCodeAt(r+1);if(n===Qi&&o==Qi&&null==e)return r;e===n?e=null:null==e&&it(n)&&(e=n)}return null},t.prototype._checkNoInterpolation=function(t,e,r){var n=ut(r),o=t.split(n);o.length>1&&this._reportError("Got interpolation ("+r.start+r.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,r)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,r){for(var n="",o=0;e>o;o++)n+=o%2===0?t[o]:""+r.start+t[o]+r.end;return n.length},t}();Us.decorators=[{type:z}],Us.ctorParameters=function(){return[{type:Ns}]};var Bs=function(){function t(t,e,r,n,o,i,s){this.input=t,this.location=e,this.tokens=r,this.inputLength=n,this.parseAction=o,this.errors=i,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:js},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new ri(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return this.next.isCharacter(t)?(this.advance(),!0):!1},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return this.next.isOperator(t)?(this.advance(),!0):!1},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var r=this.parsePipe();if(t.push(r),this.optionalCharacter(Zi))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Zi););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new ii(this.span(e)):1==t.length?t[0]:new ai(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),r=[];this.optionalCharacter(Xi);)r.push(this.parseExpression());t=new di(this.span(t.span.start),t,e,r)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var r=this.parsePipe(),n=void 0;if(this.optionalCharacter(Xi))n=this.parsePipe();else{var o=this.inputIndex,i=this.input.substring(t,o);this.error("Conditional expression "+i+" requires all 3 expressions"),n=new ii(this.span(t))}return new ui(this.span(t),e,r,n)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new _i(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new _i(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var r=this.parseRelational();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var r=this.parseAdditive();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var r=this.parseMultiplicative();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==ks.Operator){var t=this.inputIndex,e=this.next.strValue,r=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),r=this.parsePrefix(),new _i(this.span(t),e,new mi(new ri(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new bi(this.span(t),r)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Ki))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(cs)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(ps),this.optionalOperator("=")){var r=this.parseConditional();t=new fi(this.span(t.span.start),t,e,r)}else t=new hi(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Hi))return t;this.rparensExpected++;var n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(qi),t=new Ei(this.span(t.span.start),t,n)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Hi)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(qi),e}if(this.next.isKeywordNull())return this.advance(),new mi(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new mi(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new mi(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new mi(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new si(this.span(t));if(this.optionalCharacter(cs)){this.rbracketsExpected++;var r=this.parseExpressionList(ps);return this.rbracketsExpected--,this.expectCharacter(ps),new yi(this.span(t),r)}if(this.next.isCharacter(Ss))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new si(this.span(t)),!1);if(this.next.isNumber()){var n=this.next.toNumber();return this.advance(),new mi(this.span(t),n)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new mi(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new ii(this.span(t))):(this.error("Unexpected token "+this.next),new ii(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Wi));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],r=this.inputIndex;if(this.expectCharacter(Ss),!this.optionalCharacter(Ts)){this.rbracesExpected++;do{var n=this.expectIdentifierOrKeywordOrString();t.push(n),this.expectCharacter(Xi),e.push(this.parsePipe())}while(this.optionalCharacter(Wi));this.rbracesExpected--,this.expectCharacter(Ts)}return new vi(this.span(r),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var r=t.span.start,n=this.expectIdentifierOrKeyword();if(this.optionalCharacter(Hi)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(qi),this.rparensExpected--;var i=this.span(r);return e?new Ci(i,t,n,o):new wi(i,t,n,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new ii(this.span(r))):new pi(this.span(r),t,n);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new ii(this.span(r));var s=this.parseConditional();return new li(this.span(r),t,n,s)}return new ci(this.span(r),t,n)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(qi))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Wi));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,r=[];this.index<this.tokens.length;){var n=this.inputIndex,o=this.peekKeywordLet();o&&this.advance();var i=this.expectTemplateBindingKey(),s=i;o||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(Xi);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==js&&!this.peekKeywordLet()){var l=this.inputIndex,p=this.parsePipe(),h=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new Si(p,h,this.location,this.errors)}if(t.push(new xi(this.span(n),s,o,a,u)),this.peekKeywordAs()&&!o){var c=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new xi(this.span(c),f,!0,s,null))}this.optionalCharacter(Zi)||this.optionalCharacter(Wi)}return new Fs(t,r,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new ei(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(Zi)&&(this.rparensExpected<=0||!t.isCharacter(qi))&&(this.rbracesExpected<=0||!t.isCharacter(Ts))&&(this.rbracketsExpected<=0||!t.isCharacter(ps));)this.next.isError()&&this.errors.push(new ei(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Hs=function(){function t(){this.errors=[]}return t.check=function(e){var r=new t;return e.visit(r),r.errors},t.prototype.visitImplicitReceiver=function(){},t.prototype.visitInterpolation=function(){},t.prototype.visitLiteralPrimitive=function(){},t.prototype.visitPropertyRead=function(){},t.prototype.visitPropertyWrite=function(){},t.prototype.visitSafePropertyRead=function(){},t.prototype.visitMethodCall=function(){},t.prototype.visitSafeMethodCall=function(){},t.prototype.visitFunctionCall=function(){},t.prototype.visitLiteralArray=function(t){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t){this.visitAll(t.values)},t.prototype.visitBinary=function(){},t.prototype.visitPrefixNot=function(){},t.prototype.visitConditional=function(){},t.prototype.visitPipe=function(){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(){},t.prototype.visitKeyedWrite=function(){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(){},t.prototype.visitQuote=function(){},t}(),qs=function(){function t(t,e,r,n){this.file=t,this.offset=e,this.line=r,this.col=n}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var r=this.file.content,n=r.length,o=this.offset,i=this.line,s=this.col;o>0&&0>e;){o--,e++;var a=r.charCodeAt(o);if(a==Mi){i--;var u=r.substr(0,o-1).lastIndexOf(String.fromCharCode(Mi));s=u>0?o-u:o}else s--}for(;n>o&&e>0;){var a=r.charCodeAt(o);o++,e--,a==Mi?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);for(var o=n,i=0,s=0;t>i&&n>0&&(n--,i++,"\n"!=r[n]||++s!=e););for(i=0,s=0;t>i&&o<r.length-1&&(o++,i++,"\n"!=r[o]||++s!=e););return{before:r.substring(n,this.offset),after:r.substring(this.offset,o+1)}}return null},t}(),zs=function(){function t(t,e){this.content=t,this.url=e}return t}(),Gs=function(){function t(t,e,r){void 0===r&&(r=null),this.start=t,this.end=e,this.details=r}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Ws={};Ws.WARNING=0,Ws.ERROR=1,Ws[Ws.WARNING]="WARNING",Ws[Ws.ERROR]="ERROR";var $s=function(){function t(t,e,r){void 0===r&&(r=Ws.ERROR),this.span=t,this.msg=e,this.level=r}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"["+Ws[this.level]+" ->]"+t.after+'")':"",r=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+r},t}(),Ks=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Qs=function(){function t(t,e,r,n,o){this.switchValue=t,this.type=e,this.cases=r,this.sourceSpan=n,this.switchValueSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Xs=function(){function t(t,e,r,n,o){this.value=t,this.expression=e,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Zs=function(){function t(t,e,r,n){this.name=t,this.value=e,this.sourceSpan=r,this.valueSpan=n}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Ys=function(){function t(t,e,r,n,o,i){void 0===o&&(o=null),void 0===i&&(i=null),this.name=t,this.attrs=e,this.children=r,this.sourceSpan=n,this.startSourceSpan=o,this.endSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Js=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),ta={};ta.TAG_OPEN_START=0,ta.TAG_OPEN_END=1,ta.TAG_OPEN_END_VOID=2,ta.TAG_CLOSE=3,ta.TEXT=4,ta.ESCAPABLE_RAW_TEXT=5,ta.RAW_TEXT=6,ta.COMMENT_START=7,ta.COMMENT_END=8,ta.CDATA_START=9,ta.CDATA_END=10,ta.ATTR_NAME=11,ta.ATTR_VALUE=12,ta.DOC_TYPE=13,ta.EXPANSION_FORM_START=14,ta.EXPANSION_CASE_VALUE=15,ta.EXPANSION_CASE_EXP_START=16,ta.EXPANSION_CASE_EXP_END=17,ta.EXPANSION_FORM_END=18,ta.EOF=19,ta[ta.TAG_OPEN_START]="TAG_OPEN_START",ta[ta.TAG_OPEN_END]="TAG_OPEN_END",ta[ta.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",ta[ta.TAG_CLOSE]="TAG_CLOSE",ta[ta.TEXT]="TEXT",ta[ta.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ta[ta.RAW_TEXT]="RAW_TEXT",ta[ta.COMMENT_START]="COMMENT_START",ta[ta.COMMENT_END]="COMMENT_END",ta[ta.CDATA_START]="CDATA_START",ta[ta.CDATA_END]="CDATA_END",ta[ta.ATTR_NAME]="ATTR_NAME",ta[ta.ATTR_VALUE]="ATTR_VALUE",ta[ta.DOC_TYPE]="DOC_TYPE",ta[ta.EXPANSION_FORM_START]="EXPANSION_FORM_START",ta[ta.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",ta[ta.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",ta[ta.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",ta[ta.EXPANSION_FORM_END]="EXPANSION_FORM_END",ta[ta.EOF]="EOF";var ea=function(){function t(t,e,r){this.type=t,this.parts=e,this.sourceSpan=r}return t}(),ra=function(t){function e(e,r,n){var o=t.call(this,n,e)||this;return o.tokenType=r,o}return Zn(e,t),e}($s),na=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),oa=/\r\n?/g,ia=function(){function t(t){this.error=t}return t}(),sa=function(){function t(t,e,r,n){void 0===n&&(n=Rs),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=r,this._interpolationConfig=n,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(oa,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Ai;){var t=this._getLocation();try{this._attemptCharCode(Yi)?this._attemptCharCode(Di)?this._attemptCharCode(cs)?this._consumeCdata(t):this._attemptCharCode($i)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Qi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof ia))throw e;this.errors.push(e.error)}}return this._beginToken(ta.EOF),this._endToken([]),new na(Et(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(_t(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(bt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===Ts){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new qs(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Gs(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var r=new ea(this._currentTokenType,t,new Gs(this._currentTokenStart,e));return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)'); - -var r=new ra(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new ia(r)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(ht(Ai),this._getSpan());this._peek===Mi?(this._line++,this._column=0):this._peek!==Mi&&this._peek!==Ii&&this._column++,this._index++,this._peek=this._index>=this._length?Ai:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Ai:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t?(this._advance(),!0):!1},t.prototype._attemptCharCodeCaseInsensitive=function(t){return wt(this._peek,t)?(this._advance(),!0):!1},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(ht(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var r=this._savePosition(),n=0;e>n;n++)if(!this._attemptCharCode(t.charCodeAt(n)))return this._restorePosition(r),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(ht(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var r=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-r.offset<e)throw this._createError(ht(this._peek),this._getSpan(r,r))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&this._peek===Ui)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(Li)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(gt),this._peek!=Zi)return this._restorePosition(e),"&";this._advance();var r=this._input.substring(t.offset+1,this._index-1),n=go[r];if(!n)throw this._createError(ft(r),this._getSpan(t));return n}var o=this._attemptCharCode(Cs)||this._attemptCharCode(as),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(vt),this._peek!=Zi)throw this._createError(ht(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError(ft(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,r){var n,o=this._getLocation();this._beginToken(t?ta.ESCAPABLE_RAW_TEXT:ta.RAW_TEXT,o);for(var i=[];;){if(n=this._getLocation(),this._attemptCharCode(e)&&r())break;for(this._index>n.offset&&i.push(this._input.substring(n.offset,this._index));this._peek!==e;)i.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(i.join(""))],n)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(ta.COMMENT_START,t),this._requireCharCode($i),this._endToken([]);var r=this._consumeRawText(!1,$i,function(){return e._attemptStr("->")});this._beginToken(ta.COMMENT_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(ta.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var r=this._consumeRawText(!1,ps,function(){return e._attemptStr("]>")});this._beginToken(ta.CDATA_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(ta.DOC_TYPE,t),this._attemptUntilChar(ts),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;this._peek!==Xi&&!yt(this._peek);)this._advance();var r;this._peek===Xi?(this._advance(),e=this._input.substring(t,this._index-1),r=this._index):r=t,this._requireCharCodeUntilFn(mt,this._index===r?1:0);var n=this._input.substring(r,this._index);return[e,n]},t.prototype._consumeTagOpen=function(t){var e,r,n=this._savePosition();try{if(!H(this._peek))throw this._createError(ht(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(o,this._index),r=e.toLowerCase(),this._attemptCharCodeUntilFn(dt);this._peek!==Qi&&this._peek!==ts;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(dt),this._attemptCharCode(Ji)&&(this._attemptCharCodeUntilFn(dt),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(dt);this._consumeTagOpenEnd()}catch(i){if(i instanceof ia)return this._restorePosition(n),this._beginToken(ta.TEXT,t),void this._endToken(["<"]);throw i}var s=this._getTagDefinition(e).contentType;s===vo.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):s===vo.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var r=this,n=this._consumeRawText(e,Yi,function(){return r._attemptCharCode(Qi)?(r._attemptCharCodeUntilFn(dt),r._attemptStrCaseInsensitive(t)?(r._attemptCharCodeUntilFn(dt),r._attemptCharCode(ts)):!1):!1});this._beginToken(ta.TAG_CLOSE,n.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(ta.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(ta.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(ta.ATTR_VALUE);var t;if(this._peek===Bi||this._peek===ji){var e=this._peek;this._advance();for(var r=[];this._peek!==e;)r.push(this._readChar(!0));t=r.join(""),this._advance()}else{var n=this._index;this._requireCharCodeUntilFn(mt,1),t=this._input.substring(n,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Qi)?ta.TAG_OPEN_END_VOID:ta.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(ts),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(ta.TAG_CLOSE,t),this._attemptCharCodeUntilFn(dt);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(dt),this._requireCharCode(ts),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(ta.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Ss),this._endToken([]),this._expansionCaseStack.push(ta.EXPANSION_FORM_START),this._beginToken(ta.RAW_TEXT,this._getLocation());var t=this._readUntil(Wi);this._endToken([t],this._getLocation()),this._requireCharCode(Wi),this._attemptCharCodeUntilFn(dt),this._beginToken(ta.RAW_TEXT,this._getLocation());var e=this._readUntil(Wi);this._endToken([e],this._getLocation()),this._requireCharCode(Wi),this._attemptCharCodeUntilFn(dt)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(ta.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(Ss).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._beginToken(ta.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Ss),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.push(ta.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(ta.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(Ts),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(ta.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(Ts),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(ta.TEXT,t);var e=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(this._peek===Yi||this._peek===Ai)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(_t(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===Ts&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ta.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ta.EXPANSION_FORM_START},t}(),aa=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.elementName=e,o}return Zn(e,t),e.create=function(t,r,n){return new e(t,r,n)},e}($s),ua=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),ca=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=Rs);var o=pt(t,e,this.getTagDefinition,r,n),i=new la(o.tokens,this.getTagDefinition).build();return new ua(i.rootNodes,o.errors.concat(i.errors))},t}(),la=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==ta.EOF;)this._peek.type===ta.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ta.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===ta.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ta.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ta.TEXT||this._peek.type===ta.RAW_TEXT||this._peek.type===ta.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ta.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new ua(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(){this._consumeText(this._advance()),this._advanceIf(ta.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(ta.RAW_TEXT);this._advanceIf(ta.COMMENT_END);var r=null!=e?e.parts[0].trim():null;this._addToParent(new Js(r,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),r=this._advance(),n=[];this._peek.type===ta.EXPANSION_CASE_VALUE;){var o=this._parseExpansionCase();if(!o)return;n.push(o)}if(this._peek.type!==ta.EXPANSION_FORM_END)return void this._errors.push(aa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var i=new Gs(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Qs(e.parts[0],r.parts[0],n,i,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==ta.EXPANSION_CASE_EXP_START)return this._errors.push(aa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;var o=this._advance();n.push(new ea(ta.EOF,[],o.sourceSpan));var i=new t(n,this.getTagDefinition).build();if(i.errors.length>0)return this._errors=this._errors.concat(i.errors),null;var s=new Gs(e.sourceSpan.start,o.sourceSpan.end),a=new Gs(r.sourceSpan.start,o.sourceSpan.end);return new Xs(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],r=[ta.EXPANSION_CASE_EXP_START];;){if((this._peek.type===ta.EXPANSION_FORM_START||this._peek.type===ta.EXPANSION_CASE_EXP_START)&&r.push(this._peek.type),this._peek.type===ta.EXPANSION_CASE_EXP_END){if(!St(r,ta.EXPANSION_CASE_EXP_START))return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0==r.length)return e}if(this._peek.type===ta.EXPANSION_FORM_END){if(!St(r,ta.EXPANSION_FORM_START))return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===ta.EOF)return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var r=this._getParentElement();null!=r&&0==r.children.length&&this.getTagDefinition(r.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Ks(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],r=t.parts[1],n=[];this._peek.type===ta.ATTR_NAME;)n.push(this._consumeAttr(this._advance()));var o=this._getElementFullName(e,r,this._getParentElement()),i=!1;if(this._peek.type===ta.TAG_OPEN_END_VOID){this._advance(),i=!0;var s=this.getTagDefinition(o);s.canSelfClose||null!==a(o)||s.isVoid||this._errors.push(aa.create(o,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===ta.TAG_OPEN_END&&(this._advance(),i=!1);var u=this._peek.sourceSpan.start,c=new Gs(t.sourceSpan.start,u),l=new Ys(o,n,[],c,c,void 0);this._pushElement(l),i&&(this._popElement(o),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var r=this.getTagDefinition(t.name),n=this._getParentElementSkippingContainers(),o=n.parent,i=n.container;if(o&&r.requireExtraParent(o.name)){var s=new Ys(r.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(o,i,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(aa.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var r='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(aa.create(e,t.sourceSpan,r))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var r=this._elementStack[e];if(r.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(r.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=u(t.parts[0],t.parts[1]),r=t.sourceSpan.end,n="",o=void 0;if(this._peek.type===ta.ATTR_VALUE){var i=this._advance();n=i.parts[0],r=i.sourceSpan.end,o=i.sourceSpan}return new Zs(e,n,new Gs(t.sourceSpan.start,r),o)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!o(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,r){if(e){if(t){var n=t.children.indexOf(e);t.children[n]=r}else this._rootNodes.push(r);r.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,r)}else this._addToParent(r),this._elementStack.push(r)},t.prototype._getElementFullName=function(t,e,r){return null==t&&(t=this.getTagDefinition(e).implicitNamespacePrefix,null==t&&null!=r&&(t=a(r.name))),u(t,e)},t}(),pa=function(){function t(t,e,r,n,o,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=r,this.meaning=n,this.description=o,this.id=i,this.sources=t.length?[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:[]}return t}(),ha=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),fa=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),da=function(){function t(t,e,r,n){this.expression=t,this.type=e,this.cases=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),ma=function(){function t(t,e,r,n,o,i,s){this.tag=t,this.attrs=e,this.startName=r,this.closeName=n,this.children=o,this.isVoid=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),ya=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),va=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),ga=function(){function t(){}return t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var r=this,n=t.children.map(function(t){return t.visit(r,e)});return new fa(n,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var r=this,n={};Object.keys(t.cases).forEach(function(o){return n[o]=t.cases[o].visit(r,e)});var o=new da(t.expression,t.type,n,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var r=this,n=t.children.map(function(t){return t.visit(r,e)});return new ma(t.tag,t.attrs,t.startName,t.closeName,n,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t){return new ya(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t){return new va(t.value,t.name,t.sourceSpan)},t}(),_a=function(){function t(){}return t.prototype.visitText=function(){},t.prototype.visitContainer=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitIcu=function(t){var e=this;Object.keys(t.cases).forEach(function(r){t.cases[r].visit(e)})},t.prototype.visitTagPlaceholder=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitPlaceholder=function(){},t.prototype.visitIcuPlaceholder=function(){},t}(),ba={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},wa=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,r){var n=this._hashTag(t,e,r);if(this._signatureToName[n])return this._signatureToName[n];var o=t.toUpperCase(),i=ba[o]||"TAG_"+o,s=this._generateUniqueName(r?i:"START_"+i);return this._signatureToName[n]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var r=t.toUpperCase(),n=ba[r]||"TAG_"+r,o=this._generateUniqueName("CLOSE_"+n);return this._signatureToName[e]=o,o},t.prototype.getPlaceholderName=function(t,e){var r=t.toUpperCase(),n="PH: "+r+"="+e;if(this._signatureToName[n])return this._signatureToName[n];var o=this._generateUniqueName(r);return this._signatureToName[n]=o,o},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,r){var n="<"+t,o=Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join(""),i=r?"/>":"></"+t+">";return n+o+i},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){var e=this._placeHolderNameCounts.hasOwnProperty(t);if(!e)return this._placeHolderNameCounts[t]=1,t;var r=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=r+1,t+"_"+r},t}(),Ca=new Us(new Ns),Ea=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,r,n){this._isIcu=1==t.length&&t[0]instanceof Qs,this._icuDepth=0,this._placeholderRegistry=new wa,this._placeholderToContent={},this._placeholderToMessage={};var o=lt(this,t,{});return new pa(o,this._placeholderToContent,this._placeholderToMessage,e,r,n)},t.prototype.visitElement=function(t){var e=lt(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var n=c(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,n);this._placeholderToContent[o]=t.sourceSpan.toString();var i="";return n||(i=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[i]="</"+t.name+">"),new ma(t.name,r,o,i,e,n,t.sourceSpan)},t.prototype.visitAttribute=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitExpansion=function(e){var r=this;this._icuDepth++;var n={},o=new da(e.switchValue,e.type,n,e.sourceSpan);if(e.cases.forEach(function(t){n[t.value]=new fa(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var i=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=i,this._placeholderToContent[i]=e.switchValue,o}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),a=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=a.toI18nMessage([e],"","",""),new va(o,s,e.sourceSpan)},t.prototype.visitExpansionCase=function(){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var r=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!r)return new ha(t,e);for(var n=[],o=new fa(n,e),i=this._interpolationConfig,s=i.start,a=i.end,u=0;u<r.strings.length-1;u++){var c=r.expressions[u],l=Tt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);r.strings[u].length&&n.push(new ha(r.strings[u],e)),n.push(new ya(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=r.strings.length-1;return r.strings[h].length&&n.push(new ha(r.strings[h],e)),o},t}(),Sa=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,xa=function(t){function e(e,r){return t.call(this,e,r)||this}return Zn(e,t),e}($s),Ta="i18n",Pa="i18n-",Aa=/^i18n:?/,Oa="|",Ma="@@",Ra=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),ka={};ka.Extract=0,ka.Merge=1,ka[ka.Extract]="Extract",ka[ka.Merge]="Merge";var Ia=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var r=this;return this._init(ka.Extract,e),t.forEach(function(t){return t.visit(r,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Ra(this._messages,this._errors)},t.prototype.merge=function(t,e,r){this._init(ka.Merge,r),this._translations=e;var n=new Ys("wrapper",[],t,void 0,void 0,void 0),o=n.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ua(o.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var r=lt(this,t.expression,e);return this._mode===ka.Merge?new Xs(t.value,r,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan):void 0},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var r=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var n=lt(this,t.cases,e);return this._mode===ka.Merge&&(t=new Qs(t.switchValue,t.type,n,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=r,t},t.prototype.visitComment=function(t){var e=Ot(t);if(e&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var r=Mt(t);if(r&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var n=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),o=this._translateMessage(t,n);return lt(this,o)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else e&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(Aa,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var r=this;this._mayBeAddBlockChildren(t),this._depth++;var n=this._inI18nNode,o=this._inImplicitNode,i=[],s=void 0,a=Rt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==ka.Extract&<(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);s=this._translateMessage(t,p)}if(this._mode==ka.Extract){var h=a||l;h&&this._openTranslatableSection(t),lt(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===ka.Merge){var f=s||t.children;f.forEach(function(t){var n=t.visit(r,e);n&&!r._isInTranslatableSection&&(i=i.concat(n))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=n,this._inImplicitNode=o,this._mode===ka.Merge){var d=this._translateAttributes(t);return new Ys(t.name,d,i,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=xt(e)},t.prototype._visitAttributesOf=function(t){var e=this,r={},n=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(Pa)}).forEach(function(t){return r[t.name.slice(Pa.length)]=t.value}),t.attrs.forEach(function(t){t.name in r?e._addMessage([t],r[t.name]):n.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Zs&&!t[0].value)return null;var r=kt(e),n=r.meaning,o=r.description,i=r.id,s=this._createI18nMessage(t,n,o,i);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===ka.Merge){var r=this._translations.get(e);if(r)return r;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,r=t.attrs,n={};r.forEach(function(t){t.name.startsWith(Pa)&&(n[t.name.slice(Pa.length)]=kt(t.value))});var o=[];return r.forEach(function(r){if(r.name!==Ta&&!r.name.startsWith(Pa))if(r.value&&""!=r.value&&n.hasOwnProperty(r.name)){var i=n[r.name],s=i.meaning,a=i.description,u=i.id,c=e._createI18nMessage([r],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)o.push(new Zs(r.name,"",r.sourceSpan));else if(l[0]instanceof Ks){var p=l[0].value;o.push(new Zs(r.name,p,r.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+r.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+r.name+'" (id="'+(u||e._translations.digest(c))+'")')}else o.push(r)}),o},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var r=this._msgCountAtSectionStart,n=e.reduce(function(t,e){return t+(e instanceof Js?0:1)},0);if(1==n)for(var o=this._messages.length-1;o>=r;o--){var i=this._messages[o].nodes;if(!(1==i.length&&i[0]instanceof ha)){this._messages.splice(o,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Na=function(){function t(){this.closedByParent=!1,this.contentType=vo.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(){return!1},t.prototype.isClosedByChild=function(){return!1},t}(),Da=new Na,ja=function(t){function e(){return t.call(this,It)||this}return Zn(e,t),e.prototype.parse=function(e,r,n){return void 0===n&&(n=!1),t.prototype.parse.call(this,e,r,n)},e}(ca),La=function(){function t(){}return t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return"["+t.children.map(function(t){return t.visit(e)}).join(", ")+"]"},t.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t){var e=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(e)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),Va=new La,Fa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(La),Ua={};Ua.Little=0,Ua.Big=1,Ua[Ua.Little]="Little",Ua[Ua.Big]="Big";var Ba=function(){function t(){}return t.prototype.write=function(){},t.prototype.load=function(){},t.prototype.digest=function(){}, -t.prototype.createNameMapper=function(){return null},t}(),Ha=function(t){function e(e,r){var n=t.call(this)||this;return n.mapName=r,n.internalToPublic={},n.publicToNextId={},n.publicToInternal={},e.nodes.forEach(function(t){return t.visit(n)}),n}return Zn(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(){return null},e.prototype.visitTagPlaceholder=function(e,r){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,r),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var r=this.publicToNextId[e];this.publicToNextId[e]=r+1,e=e+"_"+r}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(_a),qa=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,r=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+r+"/>";var n=t.children.map(function(t){return t.visit(e)});return"<"+t.name+r+">"+n.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}(),za=new qa,Ga=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(r){e.attrs[r]=ie(t[r])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Wa=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),$a=function(){function t(t,e,r){void 0===e&&(e={}),void 0===r&&(r=[]);var n=this;this.name=t,this.children=r,this.attrs={},Object.keys(e).forEach(function(t){n.attrs[t]=ie(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ka=function(){function t(t){this.value=ie(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Qa=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Zn(e,t),e}(Ka),Xa=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]],Za="1.2",Ya="urn:oasis:names:tc:xliff:document:1.2",Ja="en",tu="x",eu="file",ru="source",nu="target",ou="trans-unit",iu="context-group",su="context",au=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t,e){var r=new uu,n=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var r=new $a(iu,{purpose:"location"});r.children.push(new Qa(10),new $a(su,{"context-type":"sourcefile"},[new Ka(t.filePath)]),new Qa(10),new $a(su,{"context-type":"linenumber"},[new Ka(""+t.startLine)]),new Qa(8)),e.push(new Qa(8),r)});var o=new $a(ou,{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new Qa(8),new $a(ru,{},r.serialize(t.nodes)),new Qa(8),new $a(nu)].concat(e)),t.description&&o.children.push(new Qa(8),new $a("note",{priority:"1",from:"description"},[new Ka(t.description)])),t.meaning&&o.children.push(new Qa(8),new $a("note",{priority:"1",from:"meaning"},[new Ka(t.meaning)])),o.children.push(new Qa(6)),n.push(new Qa(6),o);var i});var o=new $a("body",{},n.concat([new Qa(4)])),i=new $a("file",{"source-language":e||Ja,datatype:"plaintext",original:"ng2.template"},[new Qa(4),o,new Qa(2)]),s=new $a("xliff",{version:Za,xmlns:Ya},[new Qa(2),i,new Qa]);return oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,s,new Qa])},e.prototype.load=function(t,e){var r=new cu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new lu;if(Object.keys(i).forEach(function(t){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;s.push.apply(s,o),a[t]=n}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Nt(t)},e}(Ba),uu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=se(t.tag),r=new $a(tu,{id:t.startName,ctype:e});if(t.isVoid)return[r];var n=new $a(tu,{id:t.closeName,ctype:e});return[r].concat(this.serialize(t.children),[n])},t.prototype.visitPlaceholder=function(t){return[new $a(tu,{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new $a(tu,{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),cu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case ou:this._unitMlString=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+ou+'> misses the "id" attribute');break;case ru:break;case nu:var n=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,i=t.startSourceSpan.start.file.content,s=i.slice(n,o);this._unitMlString=s;break;case eu:var a=t.attrs.find(function(t){return"target-language"===t.name});a&&(this._locale=a.value),lt(this,t.children,null);break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),lu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:lt(this,r.rootNodes);return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){if(t.name===tu){var e=t.attrs.find(function(t){return"id"===t.name});if(e)return new ya("",e.value,t.sourceSpan);this._addError(t,"<"+tu+'> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),pu="2.0",hu="urn:oasis:names:tc:xliff:document:2.0",fu="en",du="ph",mu="pc",yu="xliff",vu="source",gu="target",_u="unit",bu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t,e){var r=new wu,n=[];t.forEach(function(t){var e=new $a(_u,{id:t.id});if(t.description||t.meaning){var o=new $a("notes");t.description&&o.children.push(new Qa(8),new $a("note",{category:"description"},[new Ka(t.description)])),t.meaning&&o.children.push(new Qa(8),new $a("note",{category:"meaning"},[new Ka(t.meaning)])),o.children.push(new Qa(6)),e.children.push(new Qa(6),o)}var i=new $a("segment");i.children.push(new Qa(8),new $a(vu,{},r.serialize(t.nodes)),new Qa(6)),e.children.push(new Qa(6),i,new Qa(4)),n.push(new Qa(4),e)});var o=new $a("file",{original:"ng.template",id:"ngi18n"},n.concat([new Qa(2)])),i=new $a(yu,{version:pu,xmlns:hu,srcLang:e||fu},[new Qa(2),o,new Qa]);return oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,i,new Qa])},e.prototype.load=function(t,e){var r=new Cu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new Eu;if(Object.keys(i).forEach(function(t){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;s.push.apply(s,o),a[t]=n}),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Dt(t)},e}(Ba),wu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=this,r=ae(t.tag);if(t.isVoid){var n=new $a(du,{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"});return[n]}var o=new $a(mu,{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),i=[].concat.apply([],t.children.map(function(t){return t.visit(e)}));return i.length?i.forEach(function(t){return o.children.push(t)}):o.children.push(new Ka("")),[o]},t.prototype.visitPlaceholder=function(t){return[new $a(du,{id:(this._nextPlaceholderId++).toString(),equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(){return[new $a(du,{id:(this._nextPlaceholderId++).toString()})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Cu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case _u:this._unitMlString=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+_u+'> misses the "id" attribute');break;case vu:break;case gu:var n=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,i=t.startSourceSpan.start.file.content,s=i.slice(n,o);this._unitMlString=s;break;case yu:var a=t.attrs.find(function(t){return"trgLang"===t.name});a&&(this._locale=a.value);var u=t.attrs.find(function(t){return"version"===t.name});if(u){var c=u.value;"2.0"!==c?this._addError(t,"The XLIFF file version "+c+" is not compatible with XLIFF 2.0 serializer"):lt(this,t.children,null)}break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Eu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:[].concat.apply([],lt(this,r.rootNodes));return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){var e=this;switch(t.name){case du:var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new ya("",r.value,t.sourceSpan)];this._addError(t,"<"+du+'> misses the "equiv" attribute');break;case mu:var n=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(n){if(o){var i=n.value,s=o.value,a=[];return a.concat.apply(a,[new ya("",i,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(e,null)}),[new ya("",s,t.sourceSpan)]))}this._addError(t,"<"+du+'> misses the "equivEnd" attribute')}else this._addError(t,"<"+du+'> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:[].concat.apply([],lt(this,t.expression))}},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Su="messagebundle",xu="msg",Tu="ph",Pu="ex",Au="source",Ou='<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>',Mu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t){var e=new ku,r=new Ru,n=new $a(Su);return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var o=[];t.sources.forEach(function(t){o.push(new $a(Au,{},[new Ka(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),n.children.push(new Qa(2),new $a(xu,e,o.concat(r.serialize(t.nodes))))}),n.children.push(new Qa),oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,new Wa(Su,Ou),new Qa,e.addDefaultExamples(n),new Qa])},e.prototype.load=function(){throw new Error("Unsupported")},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new Ha(t,ce)},e}(Ba),Ru=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=new $a(Pu,{},[new Ka("<"+t.tag+">")]),r=new $a(Tu,{name:t.startName},[e]);if(t.isVoid)return[r];var n=new $a(Pu,{},[new Ka("</"+t.tag+">")]),o=new $a(Tu,{name:t.closeName},[n]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t){return[new $a(Tu,{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new $a(Tu,{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),ku=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if(t.name===Tu){if(!t.children||0==t.children.length){var r=new Ka(t.attrs.name||"...");t.children=[new $a(Pu,{},[r])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(){},t.prototype.visitDeclaration=function(){},t.prototype.visitDoctype=function(){},t}(),Iu="translationbundle",Nu="translation",Du="ph",ju=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(){throw new Error("Unsupported")},e.prototype.load=function(t,e){var r=new Lu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new Vu;if(Object.keys(i).forEach(function(t){var r=function(){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return n};le(a,t,r)}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new Ha(t,ce)},e}(Ba),Lu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case Iu:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+Iu+"> elements can not be nested");var e=t.attrs.find(function(t){return"lang"===t.name});e&&(this._locale=e.value),lt(this,t.children,null),this._bundleDepth--;break;case Nu:var r=t.attrs.find(function(t){return"id"===t.name});if(r){var n=r.value;if(this._msgIdToHtml.hasOwnProperty(n))this._addError(t,"Duplicated translations for msg "+n);else{var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(o,i);this._msgIdToHtml[n]=a}}else this._addError(t,"<"+Nu+'> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Vu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:lt(this,r.rootNodes);return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitElement=function(t){if(t.name===Du){var e=t.attrs.find(function(t){return"name"===t.name});if(e)return new ya("",e.value,t.sourceSpan);this._addError(t,"<"+Du+'> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Fu=function(t){function e(){return t.call(this,c)||this}return Zn(e,t),e.prototype.parse=function(e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Rs),t.prototype.parse.call(this,e,r,n,o)},e}(ca);Fu.decorators=[{type:z}],Fu.ctorParameters=function(){return[]};var Uu=function(){function t(t,r,n,o,i,s){void 0===t&&(t={}),void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=o,this._i18nToHtml=new Bu(t,r,n,o,i,s)}return t.load=function(e,r,n,o,i){var s=n.load(e,r),a=s.locale,u=s.i18nNodesByMsgId,c=function(t){return n.digest(t)},l=function(t){return n.createNameMapper(t)};return new t(u,a,c,l,o,i)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),Bu=function(){function t(t,e,r,n,o,i){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=r,this._mapperFactory=n,this._missingTranslationStrategy=o,this._console=i,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),r=t.nodes[0].sourceSpan.start.file.url,n=(new Fu).parse(e,r,!0);return{nodes:n.rootNodes,errors:this._errors.concat(n.errors)}},t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return t.children.map(function(t){return t.visit(e)}).join("")},t.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"}),n=this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression;return"{"+n+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t){var e=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(e)?this._srcMsg.placeholders[e]:this._srcMsg.placeholderToMessage.hasOwnProperty(e)?this._convertToText(this._srcMsg.placeholderToMessage[e]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t){var e=this,r=""+t.tag,n=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");if(t.isVoid)return"<"+r+" "+n+"/>";var o=t.children.map(function(t){return t.visit(e)}).join("");return"<"+r+" "+n+">"+o+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var r,n=this,o=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(o))r=this._i18nNodesByMsgId[o],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){var s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+o+'"'+s)}else if(this._console&&this._missingTranslationStrategy===e.MissingTranslationStrategy.Warning){var s=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+o+'"'+s)}r=t.nodes,this._mapper=function(t){return t}}var a=r.map(function(t){return t.visit(n)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Hu=function(){function t(t,r,n,o,i){if(void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._htmlParser=t,r){var s=pe(n);this._translationBundle=Uu.load(r,"i18n",s,o,i)}}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=Rs);var o=this._htmlParser.parse(t,e,r,n);return this._translationBundle?o.errors.length?new ua(o.rootNodes,o.errors):At(o.rootNodes,this._translationBundle,n,[],{}):o},t}(),qu=he("core"),zu=function(){function t(){}return t}();zu.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:qu,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},zu.ElementRef={name:"ElementRef",moduleUrl:qu,runtime:e.ElementRef},zu.NgModuleRef={name:"NgModuleRef",moduleUrl:qu,runtime:e.NgModuleRef},zu.ViewContainerRef={name:"ViewContainerRef",moduleUrl:qu,runtime:e.ViewContainerRef},zu.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:qu,runtime:e.ChangeDetectorRef},zu.QueryList={name:"QueryList",moduleUrl:qu,runtime:e.QueryList},zu.TemplateRef={name:"TemplateRef",moduleUrl:qu,runtime:e.TemplateRef},zu.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:qu,runtime:e.ɵCodegenComponentFactoryResolver},zu.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:qu,runtime:e.ComponentFactoryResolver},zu.ComponentFactory={name:"ComponentFactory",moduleUrl:qu,runtime:e.ComponentFactory},zu.ComponentRef={name:"ComponentRef",moduleUrl:qu,runtime:e.ComponentRef},zu.NgModuleFactory={name:"NgModuleFactory",moduleUrl:qu,runtime:e.NgModuleFactory},zu.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:qu,runtime:e.ɵNgModuleInjector},zu.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:qu,runtime:e.ɵregisterModuleFactory},zu.Injector={name:"Injector",moduleUrl:qu,runtime:e.Injector},zu.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:qu,runtime:e.ViewEncapsulation},zu.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:qu,runtime:e.ChangeDetectionStrategy},zu.SecurityContext={name:"SecurityContext",moduleUrl:qu,runtime:e.SecurityContext},zu.LOCALE_ID={name:"LOCALE_ID",moduleUrl:qu,runtime:e.LOCALE_ID},zu.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:qu,runtime:e.TRANSLATIONS_FORMAT},zu.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:qu,runtime:e.ɵinlineInterpolate},zu.interpolate={name:"ɵinterpolate",moduleUrl:qu,runtime:e.ɵinterpolate},zu.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:qu,runtime:e.ɵEMPTY_ARRAY},zu.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:qu,runtime:e.ɵEMPTY_MAP},zu.Renderer={name:"Renderer",moduleUrl:qu,runtime:e.Renderer},zu.viewDef={name:"ɵvid",moduleUrl:qu,runtime:e.ɵvid},zu.elementDef={name:"ɵeld",moduleUrl:qu,runtime:e.ɵeld},zu.anchorDef={name:"ɵand",moduleUrl:qu,runtime:e.ɵand},zu.textDef={name:"ɵted",moduleUrl:qu,runtime:e.ɵted},zu.directiveDef={name:"ɵdid",moduleUrl:qu,runtime:e.ɵdid},zu.providerDef={name:"ɵprd",moduleUrl:qu,runtime:e.ɵprd},zu.queryDef={name:"ɵqud",moduleUrl:qu,runtime:e.ɵqud},zu.pureArrayDef={name:"ɵpad",moduleUrl:qu,runtime:e.ɵpad},zu.pureObjectDef={name:"ɵpod",moduleUrl:qu,runtime:e.ɵpod},zu.purePipeDef={name:"ɵppd",moduleUrl:qu,runtime:e.ɵppd},zu.pipeDef={name:"ɵpid",moduleUrl:qu,runtime:e.ɵpid},zu.nodeValue={name:"ɵnov",moduleUrl:qu,runtime:e.ɵnov},zu.ngContentDef={name:"ɵncd",moduleUrl:qu,runtime:e.ɵncd},zu.unwrapValue={name:"ɵunv",moduleUrl:qu,runtime:e.ɵunv},zu.createRendererType2={name:"ɵcrt",moduleUrl:qu,runtime:e.ɵcrt},zu.RendererType2={name:"RendererType2",moduleUrl:qu,runtime:null},zu.ViewDefinition={name:"ɵViewDefinition",moduleUrl:qu,runtime:null},zu.createComponentFactory={name:"ɵccf",moduleUrl:qu,runtime:e.ɵccf};var Gu=["zero","one","two","few","many","other"],Wu=function(){function t(t,e,r){this.nodes=t,this.expanded=e,this.errors=r}return t}(),$u=function(t){function e(e,r){return t.call(this,e,r)||this}return Zn(e,t),e}($s),Ku=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t){return new Ys(t.name,t.attrs,lt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t){return t},t.prototype.visitText=function(t){return t},t.prototype.visitComment=function(t){return t},t.prototype.visitExpansion=function(t){return this.isExpanded=!0,"plural"==t.type?ge(t,this.errors):_e(t,this.errors)},t.prototype.visitExpansionCase=function(){throw new Error("Should not be reached")},t}(),Qu=function(t){function e(e,r){return t.call(this,r,e)||this}return Zn(e,t),e}($s),Xu=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=Se(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(R(t.token))&&e.viewProviders.set(R(t.token),!0)})}return t}(),Zu=function(){function t(t,e,r,n,o,i,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=r,this._directiveAsts=n,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},o.forEach(function(t){return c._attrs[t.name]=t.value});var l=n.map(function(t){return t.directive});if(this._allProviders=Ce(l,u,t.errors),this._contentQueries=xe(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=ye(zu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||ye(zu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(fe(zu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||c._queriedTokens.get(R(t.token));e&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,r){return t.indexOf(e.directive.type)-t.indexOf(r.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,r){this._getQueriesFor(t).forEach(function(t){var n=t.meta.read||e,o=R(n),i=r.get(o);i||(i=[],r.set(o,i)),i.push({queryId:t.queryId,value:n})})},t.prototype._getQueriesFor=function(t){for(var e,r=[],n=this,o=0;null!==n;)e=n._contentQueries.get(R(t)),e&&r.push.apply(r,e.filter(function(t){return t.meta.descendants||1>=o})),n._directiveAsts.length>0&&o++,n=n._parent;return e=this.viewContext.viewQueries.get(R(t)),e&&r.push.apply(r,e),r},t.prototype._getOrCreateLocalProvider=function(t,e,r){var n=this,o=this._allProviders.get(R(e));if(!o||(t===po.Directive||t===po.PublicService)&&o.providerType===po.PrivateService||(t===po.PrivateService||t===po.PublicService)&&o.providerType===po.Builtin)return null;var i=this._transformedProviders.get(R(e));if(i)return i;if(null!=this._seenProviders.get(R(e)))return this.viewContext.errors.push(new Qu("Cannot instantiate cyclic dependency! "+M(e),this._sourceSpan)),null;this._seenProviders.set(R(e),!0);var s=o.providers.map(function(t){var e=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency(o.providerType,{token:t.useExisting},r);null!=a.token?i=a.token:(i=null,e=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return n._getDependency(o.providerType,t,r)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(o.providerType,t,r)})}return be(t,{useExisting:i,useValue:e,deps:s})});return i=we(o,{eager:r,providers:s}),this._transformedProviders.set(R(e),i),i},t.prototype._getLocalDependency=function(t,e,r){if(void 0===r&&(r=!1),e.isAttribute){var n=this._attrs[e.token.value];return{isValue:!0,value:null==n?null:n}}if(null!=e.token){if(t===po.Directive||t===po.Component){if(R(e.token)===fe(zu.Renderer)||R(e.token)===fe(zu.ElementRef)||R(e.token)===fe(zu.ChangeDetectorRef)||R(e.token)===fe(zu.TemplateRef))return e;R(e.token)===fe(zu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(R(e.token)===fe(zu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,r))return e}return null},t.prototype._getDependency=function(t,e,r){void 0===r&&(r=!1);var n=this,o=r,i=null;if(e.isSkipSelf||(i=this._getLocalDependency(t,e,r)),e.isSelf)!i&&e.isOptional&&(i={isValue:!0,value:null});else{for(;!i&&n._parent;){var s=n;n=n._parent,s._isViewRoot&&(o=!1), -i=n._getLocalDependency(po.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===R(e.token)||null!=this.viewContext.viewProviders.get(R(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Qu("No provider for "+M(e.token),this._sourceSpan)),i},t}(),Yu=function(){function t(t,e,r){var n=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){var e={token:{identifier:t},useClass:t};Ee([e],po.PublicService,!0,r,n._errors,n._allProviders)}),Ee(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),po.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var r=this,n=this._allProviders.get(R(t));if(!n)return null;var o=this._transformedProviders.get(R(t));if(o)return o;if(null!=this._seenProviders.get(R(t)))return this._errors.push(new Qu("Cannot instantiate cyclic dependency! "+M(t),n.sourceSpan)),null;this._seenProviders.set(R(t),!0);var i=n.providers.map(function(t){var o=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency({token:t.useExisting},e,n.sourceSpan);null!=a.token?i=a.token:(i=null,o=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}return be(t,{useExisting:i,useValue:o,deps:s})});return o=we(n,{eager:e,providers:i}),this._transformedProviders.set(R(t),o),o},t.prototype._getDependency=function(t,e,r){void 0===e&&(e=!1);var n=!1;t.isSkipSelf||null==t.token||(R(t.token)===fe(zu.Injector)||R(t.token)===fe(zu.ComponentFactoryResolver)?n=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(n=!0));var o=t;return t.isSelf&&!n&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Qu("No provider for "+M(t.token),r))),o},t}(),Ju=function(){function t(){}return t.prototype.hasProperty=function(){},t.prototype.hasElement=function(){},t.prototype.securityContext=function(){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(){},t.prototype.validateAttribute=function(){},t.prototype.normalizeAnimationStyleProperty=function(){},t.prototype.normalizeAnimationStyleValue=function(){},t}(),tc=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),ec=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,rc=/\/\*.+?\*\//g,nc=/^([^:\/?#]+):/,oc=".",ic="attr",sc="class",ac="style",uc="animate-",cc={};cc.DEFAULT=0,cc.LITERAL_ATTR=1,cc.ANIMATION=2,cc[cc.DEFAULT]="DEFAULT",cc[cc.LITERAL_ATTR]="LITERAL_ATTR",cc[cc.ANIMATION]="ANIMATION";var lc=function(){function t(t,e,r,n){this.name=t,this.expression=e,this.type=r,this.sourceSpan=n}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===cc.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===cc.ANIMATION},enumerable:!0,configurable:!0}),t}(),pc=function(){function t(t,e,r,n,o){var i=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=r,this._targetErrors=o,this.pipesByName=new Map,this._usedPipes=new Map,n.forEach(function(t){return i.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,r){var n=this;if(t.hostProperties){var o=[];return Object.keys(t.hostProperties).forEach(function(e){var i=t.hostProperties[e];"string"==typeof i?n.parsePropertyBinding(e,i,!0,r,[],o):n._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",r)}),o.map(function(t){return n.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var r=this;if(t.hostListeners){var n=[];return Object.keys(t.hostListeners).forEach(function(o){var i=t.hostListeners[o];"string"==typeof i?r.parseEvent(o,i,e,[],n):r._reportError('Value of the host listener "'+o+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",e)}),n}return null},t.prototype.parseInterpolation=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseInterpolation(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),this._checkPipes(n,e),n}catch(o){return this._reportError(""+o,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.parseInlineTemplateBinding=function(t,e,r,n,o,i){for(var s=this._parseTemplateBindings(t,e,r),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?i.push(new io(u.key,u.name,r)):u.expression?this._parsePropertyAst(u.key,u.expression,r,n,o):(n.push([u.key,""]),this.parseLiteralAttr(u.key,null,r,n,o))}},t.prototype._parseTemplateBindings=function(t,e,r){var n=this,o=r.start.toString();try{var i=this._exprParser.parseTemplateBindings(t,e,o);return this._reportExpressionParserErrors(i.errors,r),i.templateBindings.forEach(function(t){t.expression&&n._checkPipes(t.expression,r)}),i.warnings.forEach(function(t){n._reportError(t,r,Ws.WARNING)}),i.templateBindings}catch(s){return this._reportError(""+s,r),[]}},t.prototype.parseLiteralAttr=function(t,e,r,n,o){Oe(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',r,Ws.ERROR),this._parseAnimation(t,e,r,n,o)):o.push(new lc(t,this._exprParser.wrapLiteralPrimitive(e,""),cc.LITERAL_ATTR,r))},t.prototype.parsePropertyBinding=function(t,e,r,n,o,i){var s=!1;t.startsWith(uc)?(s=!0,t=t.substring(uc.length)):Oe(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,n,o,i):this._parsePropertyAst(t,this._parseBinding(e,r,n),n,o,i)},t.prototype.parsePropertyInterpolation=function(t,e,r,n,o){var i=this.parseInterpolation(e,r);return i?(this._parsePropertyAst(t,i,r,n,o),!0):!1},t.prototype._parsePropertyAst=function(t,e,r,n,o){n.push([t,e.source]),o.push(new lc(t,e,cc.DEFAULT,r))},t.prototype._parseAnimation=function(t,e,r,n,o){var i=this._parseBinding(e||"null",!1,r);n.push([t,i.source]),o.push(new lc(t,i,cc.ANIMATION,r))},t.prototype._parseBinding=function(t,e,r){var n=r.start.toString();try{var o=e?this._exprParser.parseSimpleBinding(t,n,this._interpolationConfig):this._exprParser.parseBinding(t,n,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,r),this._checkPipes(o,r),o}catch(i){return this._reportError(""+i,r),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.createElementPropertyAst=function(t,r){if(r.isAnimation)return new ro(r.name,fo.Animation,e.SecurityContext.NONE,r.expression,null,r.sourceSpan);var n=null,o=void 0,i=null,s=r.name.split(oc),a=void 0;if(s.length>1)if(s[0]==ic){i=s[1],this._validatePropertyOrAttributeName(i,r.sourceSpan,!0),a=Me(this._schemaRegistry,t,i,!0);var c=i.indexOf(":");if(c>-1){var l=i.substring(0,c),p=i.substring(c+1);i=u(l,p)}o=fo.Attribute}else s[0]==sc?(i=s[1],o=fo.Class,a=[e.SecurityContext.NONE]):s[0]==ac&&(n=s.length>2?s[2]:null,i=s[1],o=fo.Style,a=[e.SecurityContext.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(r.name),a=Me(this._schemaRegistry,t,i,!1),o=fo.Property,this._validatePropertyOrAttributeName(i,r.sourceSpan,!1)),new ro(i,o,a[0],r.expression,n,r.sourceSpan)},t.prototype.parseEvent=function(t,e,r,n,o){Oe(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,r,o)):this._parseEvent(t,e,r,n,o)},t.prototype._parseAnimationEvent=function(t,e,r,n){var o=h(t,[t,""]),i=o[0],s=o[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,r);n.push(new no(i,null,s,a,r));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+i+'" is not supported (use start or done)',r)}else this._reportError("The animation trigger output event (@"+i+") is missing its phase value name (start or done are currently supported)",r)},t.prototype._parseEvent=function(t,e,r,n,o){var i=p(t,[null,t]),s=i[0],a=i[1],u=this._parseAction(e,r);n.push([t,u.source]),o.push(new no(a,s,null,u,r))},t.prototype._parseAction=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseAction(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),!n||n.ast instanceof ii?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",r)):(this._checkPipes(n,e),n)}catch(o){return this._reportError(""+o,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Ws.ERROR),this._targetErrors.push(new $s(e,t,r))},t.prototype._reportExpressionParserErrors=function(t,e){for(var r=0,n=t;r<n.length;r++){var o=n[r];this._reportError(o.message,e)}},t.prototype._checkPipes=function(t,e){var r=this;if(t){var n=new hc;t.visit(n),n.pipes.forEach(function(t,n){var o=r.pipesByName.get(n);o?r._usedPipes.set(n,o):r._reportError("The pipe '"+n+"' could not be found",new Gs(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,r){var n=r?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);n.error&&this._reportError(n.msg,e,Ws.ERROR)},t}(),hc=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return Zn(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(Ti),fc="select",dc="link",mc="rel",yc="href",vc="stylesheet",gc="style",_c="script",bc="ngNonBindable",wc="ngProjectAs",Cc={};Cc.NG_CONTENT=0,Cc.STYLE=1,Cc.STYLESHEET=2,Cc.SCRIPT=3,Cc.OTHER=4,Cc[Cc.NG_CONTENT]="NG_CONTENT",Cc[Cc.STYLE]="STYLE",Cc[Cc.STYLESHEET]="STYLESHEET",Cc[Cc.SCRIPT]="SCRIPT",Cc[Cc.OTHER]="OTHER";var Ec=function(){function t(t,e,r,n,o){this.type=t,this.selectAttr=e,this.hrefAttr=r,this.nonBindable=n,this.projectAs=o}return t}(),Sc=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,xc=1,Tc=2,Pc=3,Ac=4,Oc=5,Mc=6,Rc=7,kc=8,Ic=9,Nc=10,Dc="template",jc="template",Lc="*",Vc="class",Fc=Eo.parse("*")[0],Uc="The <template> element is deprecated. Use <ng-template> instead",Bc="The template attribute is deprecated. Use an ng-template element instead.",Hc={},qc=new e.InjectionToken("TemplateTransforms"),zc=function(t){function e(e,r,n){return t.call(this,r,e,n)||this}return Zn(e,t),e}($s),Gc=function(){function t(t,e,r){this.templateAst=t,this.usedPipes=e,this.errors=r}return t}(),Wc=function(){function t(t,e,r,n,o,i){this._config=t,this._exprParser=e,this._schemaRegistry=r,this._htmlParser=n,this._console=o,this.transforms=i}return t.prototype.parse=function(t,e,r,n,o,i){var s=this.tryParse(t,e,r,n,o,i),a=s.errors.filter(function(t){return t.level===Ws.WARNING}).filter(Ie([Bc,Uc])),u=s.errors.filter(function(t){return t.level===Ws.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw v("Template parse errors:\n"+c)}return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,r,n,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,r,n,o)},t.prototype.tryParseHtml=function(t,e,n,o,i){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=Le(n),l=Le(o),p=new Xu(e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new pc(this._exprParser,h,this._schemaRegistry,l,a),d=new $c(this._config,p,c,f,this._schemaRegistry,i,a);s=lt(d,t.rootNodes,Zc),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Gc(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new Gc(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var r=t.errors;if(0==r.length||e){var n=ve(t.rootNodes);r.push.apply(r,n.errors),t=new ua(n.nodes,r)}return t},t.prototype.getInterpolationConfig=function(t){return t.template?Ms.fromArray(t.template.interpolation):void 0},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var r=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var n=t.name;if(r.indexOf(n)<0)r.push(n);else{var o=new zc('Reference "#'+n+'" is defined several times',t.sourceSpan,Ws.ERROR);e.push(o)}})})},t}();Wc.decorators=[{type:z}],Wc.ctorParameters=function(){return[{type:ti},{type:Us},{type:Ju},{type:Hu},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[qc]}]}]};var $c=function(){function t(t,e,r,n,o,i,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=n,this._schemaRegistry=o,this._schemas=i,this._targetErrors=s,this.selectorMatcher=new So,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,r.forEach(function(t,e){var r=Eo.parse(t.selector);a.selectorMatcher.addSelectables(r,t),a.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(){return null},t.prototype.visitExpansionCase=function(){return null},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(Fc),n=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return n?new to(n,r,t.sourceSpan):new Jn(t.value,r,t.sourceSpan)},t.prototype.visitAttribute=function(t){return new eo(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitElement=function(t,e){var r=this,n=this.contentQueryStartId,o=t.name,i=Re(t);if(i.type===Cc.SCRIPT||i.type===Cc.STYLE)return null;if(i.type===Cc.STYLESHEET&&Pe(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,m=[],y=Fe(t,this.config.enableLegacyTemplate,function(t,e){return r._reportError(t,e,Ws.WARNING)});t.attrs.forEach(function(t){var e,n,o=r._parseAttr(y,t,s,a,l,u,c),i=r._normalizeAttributeName(t.name);r.config.enableLegacyTemplate&&i==jc?(r._reportError(Bc,t.sourceSpan,Ws.WARNING),e=t.value):i.startsWith(Lc)&&(e=t.value,n=i.substring(Lc.length)+":");var v=null!=e;v&&(d&&r._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,r._bindingParser.parseInlineTemplateBinding(n,e,t.sourceSpan,h,p,f)),o||v||(m.push(r.visitAttribute(t,null)),s.push([t.name,t.value]))});var v=De(o,s),g=this._parseDirectives(this.selectorMatcher,v),_=g.directives,b=g.matchElement,w=[],C=new Set,E=this._createDirectiveAsts(y,t.name,_,a,u,t.sourceSpan,w,C),S=this._createElementPropertyAsts(t.name,a,C),x=e.isTemplateElement||d,T=new Zu(this.providerViewContext,e.providerContext,x,E,m,w,y,n,t.sourceSpan),P=lt(i.nonBindable?Yc:this,t.children,Xc.create(y,E,y?e.providerContext:T));T.afterElement();var A,O=null!=i.projectAs?Eo.parse(i.projectAs)[0]:v,M=e.findNgContentIndex(O);if(i.type===Cc.NG_CONTENT)t.children&&!t.children.every(je)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new ho(this.ngContentCount++,d?null:M,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,S,t.sourceSpan),A=new ao(m,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(E,t.sourceSpan);var R=d?null:e.findNgContentIndex(O);A=new so(o,m,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:R,t.sourceSpan,t.endSourceSpan||null)}if(d){var k=this.contentQueryStartId,I=De(Dc,h),N=this._parseDirectives(this.selectorMatcher,I).directives,D=new Set,j=this._createDirectiveAsts(!0,t.name,N,p,[],t.sourceSpan,[],D),L=this._createElementPropertyAsts(t.name,p,D);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,t.sourceSpan);var V=new Zu(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],!0,k,t.sourceSpan);V.afterElement(),A=new ao([],[],[],f,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,V.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,r,n,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(Sc),p=!1;if(null!==l)if(p=!0,null!=l[xc])this._bindingParser.parsePropertyBinding(l[Rc],u,!1,c,r,n);else if(l[Tc])if(t){var h=l[Rc];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[Pc]){var h=l[Rc];this._parseReference(h,u,c,i)}else l[Ac]?this._bindingParser.parseEvent(l[Rc],u,c,r,o):l[Oc]?(this._bindingParser.parsePropertyBinding(l[Rc],u,!1,c,r,n),this._parseAssignmentEvent(l[Rc],u,c,r,o)):l[Mc]?this._bindingParser.parseLiteralAttr(a,u,c,r,n):l[kc]?(this._bindingParser.parsePropertyBinding(l[kc],u,!1,c,r,n),this._parseAssignmentEvent(l[kc],u,c,r,o)):l[Ic]?this._bindingParser.parsePropertyBinding(l[Ic],u,!1,c,r,n):l[Nc]&&this._bindingParser.parseEvent(l[Nc],u,c,r,o);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,r,n);return p||this._bindingParser.parseLiteralAttr(a,u,c,r,n),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',r),n.push(new io(t,e,r))},t.prototype._parseReference=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',r),n.push(new Qc(t,e,r))},t.prototype._parseAssignmentEvent=function(t,e,r,n,o){this._bindingParser.parseEvent(t+"Change",e+"=$event",r,n,o)},t.prototype._parseDirectives=function(t,e){var r=this,n=new Array(this.directivesIndex.size),o=!1;return t.match(e,function(t,e){n[r.directivesIndex.get(e)]=e,o=o||t.hasElementSelector()}),{directives:n.filter(function(t){return!!t}),matchElement:o}},t.prototype._createDirectiveAsts=function(t,e,r,n,o,i,s,a){var u=this,c=new Set,l=null,p=r.map(function(t){var r=new Gs(i.start,i.end,"Directive "+E(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,r);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,r);u._createDirectivePropertyAsts(t.inputs,n,p,a),o.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new oo(e.name,me(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new co(t,p,h,f,d,r)});return o.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var r=null;t&&(r=ye(zu.TemplateRef)),s.push(new oo(e.name,r,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,r,n){if(t){var o=new Map;e.forEach(function(t){var e=o.get(t.name);(!e||e.isLiteral)&&o.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],s=o.get(i);s&&(n.add(s.name),Ve(s.expression)||r.push(new uo(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,r){var n=this,o=[];return e.forEach(function(e){e.isLiteral||r.has(e.name)||o.push(n._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,o)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return E(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var r=this._findComponentDirectiveNames(t);r.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+r.join(","),e)},t.prototype._assertElementExists=function(t,e){var r=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(r,this._schemas)){var n="'"+r+"' is not a known element:\n";n+="1. If '"+r+"' is an Angular component, then verify that it is part of this module.\n",n+=r.indexOf("-")>-1?"2. If '"+r+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":"2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(n,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,r){var n=this,o=this._findComponentDirectiveNames(t);o.length>0&&this._reportError("Components on an embedded template: "+o.join(","),r),e.forEach(function(t){n._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',r)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var r=this,n=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var r=t.directive.outputs[e];n.add(r)})}),e.forEach(function(t){null==t.target&&n.has(t.name)||r._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var r=this;return e.filter(function(e){if(e.type===fo.Property&&!r._schemaRegistry.hasProperty(t,e.name,r._schemas)){var n="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?n+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(n+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module."+("\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.")+"\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),r._reportError(n,e.sourceSpan)}return!Ve(e.value)})},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Ws.ERROR),this._targetErrors.push(new $s(e,t,r))},t}(),Kc=function(){function t(){}return t.prototype.visitElement=function(t,e){var r=Re(t);if(r.type===Cc.SCRIPT||r.type===Cc.STYLE||r.type===Cc.STYLESHEET)return null;var n=t.attrs.map(function(t){return[t.name,t.value]}),o=De(t.name,n),i=e.findNgContentIndex(o),s=lt(this,t.children,Zc);return new so(t.name,lt(this,t.attrs),[],[],[],[],[],!1,[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(t){return new eo(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(Fc);return new Jn(t.value,r,t.sourceSpan)},t.prototype.visitExpansion=function(t){return t},t.prototype.visitExpansionCase=function(t){return t},t}(),Qc=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t}(),Xc=function(){function t(t,e,r,n){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=r,this.providerContext=n}return t.create=function(e,r,n){var o=new So,i=null,s=r.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?i=u:o.addSelectables(Eo.parse(a[u]),u)}return new t(e,o,i,n)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,r){e.push(r)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Zc=new Xc(!0,new So,null,null),Yc=new Kc,Jc=function(){function t(){}return t.prototype.get=function(){return null},t}(),tl={provide:e.PACKAGE_ROOT_URL,useValue:"/"},el=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var r=e;null!=t&&t.length>0&&(r=$e(t,r));var n=ze(r),o=this._packagePrefix;if(null!=o&&null!=n&&"package"==n[nl.Scheme]){var i=n[nl.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return r},t}();el.decorators=[{type:z}],el.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var rl=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),nl={};nl.Scheme=1,nl.UserInfo=2,nl.Domain=3,nl.Port=4,nl.Path=5,nl.QueryData=6,nl.Fragment=7,nl[nl.Scheme]="Scheme",nl[nl.UserInfo]="UserInfo",nl[nl.Domain]="Domain",nl[nl.Port]="Port",nl[nl.Path]="Path",nl[nl.QueryData]="QueryData",nl[nl.Fragment]="Fragment";var ol=function(){function t(t,e,r,n){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=r,this._config=n,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var r=t.template;this._resourceLoaderCache["delete"](r.templateUrl),r.externalStylesheets.forEach(function(t){e._resourceLoaderCache["delete"](t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var r=this,n=null,o=void 0;if(m(t.template)){if(m(t.templateUrl))throw v("'"+e.ɵstringify(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw v("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string");n=this.normalizeTemplateSync(t),o=Promise.resolve(n)}else{if(!m(t.templateUrl))throw v("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw v("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string");o=this.normalizeTemplateAsync(t)}return n&&0===n.styleUrls.length?new Mo(n):new Mo(null,o.then(function(t){return r.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,r=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(r).then(function(n){return e.normalizeLoadedTemplate(t,n,r)})},t.prototype.normalizeLoadedTemplate=function(t,r,n){var o=!!t.template,i=Ms.fromArray(t.interpolation),s=this._htmlParser.parse(r,j({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:o,templateUrl:n}),!0,i);if(s.errors.length>0){var a=s.errors.join("\n");throw v("Template parse errors:\n"+a)}var u=this.normalizeStylesheet(new $o({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),c=new il;lt(c,s.rootNodes);var l=this.normalizeStylesheet(new $o({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:n})),p=t.encapsulation;null==p&&(p=this._config.defaultEncapsulation);var h=u.styles.concat(l.styles),f=u.styleUrls.concat(l.styleUrls);return p===e.ViewEncapsulation.Emulated&&0===h.length&&0===f.length&&(p=e.ViewEncapsulation.None),new Ko({encapsulation:p,template:r,templateUrl:n,styles:h,styleUrls:f,ngContentSelectors:c.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:o,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Ko({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var r=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return r._fetch(t).then(function(n){var o=r.normalizeStylesheet(new $o({styles:[n],moduleUrl:t}));return e.set(t,o),r._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,r=t.moduleUrl,n=t.styleUrls.filter(Pe).map(function(t){return e._urlResolver.resolve(r,t)}),o=t.styles.map(function(t){var o=Ae(e._urlResolver,r,t);return n.push.apply(n,o.styleUrls),o.style});return new $o({styles:o,styleUrls:n,moduleUrl:r})},t}();ol.decorators=[{type:z}],ol.ctorParameters=function(){return[{type:Jc},{type:el},{type:Fu},{type:ti}]};var il=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t){var e=Re(t);switch(e.type){case Cc.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(e.selectAttr);break;case Cc.STYLE:var r="";t.children.forEach(function(t){t instanceof Ks&&(r+=t.value)}),this.styles.push(r);break;case Cc.STYLESHEET:this.styleUrls.push(e.hrefAttr)}return e.nonBindable&&this.ngNonBindableStackCount++,lt(this,t.children),e.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t){lt(this,t.cases)},t.prototype.visitExpansionCase=function(t){lt(this,t.expression)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(){return null},t.prototype.visitText=function(){return null},t}(),sl=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},al=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isDirective=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(Ke)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var o=Qe(n,Ke);if(o){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(o,i,t)}}if(r)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,r,n){var o=[],i=[],s={},a={};return Object.keys(r).forEach(function(t){var n=Qe(r[t],function(t){return t instanceof e.Input});n&&o.push(n.bindingPropertyName?t+": "+n.bindingPropertyName:t);var u=Qe(r[t],function(t){return t instanceof e.Output});u&&i.push(u.bindingPropertyName?t+": "+u.bindingPropertyName:t);var c=r[t].filter(function(t){return t&&t instanceof e.HostBinding});c.forEach(function(e){if(e.hostPropertyName){var r=e.hostPropertyName[0];if("("===r)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===r)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t});var l=r[t].filter(function(t){return t&&t instanceof e.HostListener});l.forEach(function(e){var r=e.args||[];s["("+e.eventName+")"]=t+"("+r.join(",")+")"});var p=Qe(r[t],function(t){return t instanceof e.Query});p&&(a[t]=p)}),this._merge(t,o,i,s,a,n); - -},t.prototype._extractPublicName=function(t){return p(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,r=[],n=t.length-1;n>=0;n--){var o=t[n],i=this._extractPublicName(o);e.has(i)||(e.add(i),r.push(o))}return r.reverse()},t.prototype._merge=function(t,r,n,o,i){var s=this._dedupeBindings(t.inputs?t.inputs.concat(r):r),a=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?sl({},t.host,o):o,c=t.queries?sl({},t.queries,i):i;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}();al.decorators=[{type:z}],al.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var ul=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,cl=/\.ngfactory\./,ll=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(nr)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=Qe(this._reflector.annotations(t),nr);if(n)return n;if(r)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();ll.decorators=[{type:z}],ll.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var pl=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isPipe=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(or)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var o=Qe(n,or);if(o)return o}if(r)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();pl.decorators=[{type:z}],pl.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var hl=function(){function t(){}return t.prototype.isLibraryFile=function(){return!1},t.prototype.getLibraryFileName=function(){return null},t.prototype.resolveSummary=function(){return null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t}();hl.decorators=[{type:z}],hl.ctorParameters=function(){return[]};var fl=new e.InjectionToken("ErrorCollector"),dl=function(){function t(t,r,n,o,i,s,a,u,c,l,p){void 0===l&&(l=e.ɵreflector),this._config=t,this._ngModuleResolver=r,this._directiveResolver=n,this._pipeResolver=o,this._summaryResolver=i,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache["delete"](t),this._nonNormalizedDirectiveCache["delete"](t),this._summaryCache["delete"](t),this._pipeCache["delete"](t),this._ngModuleOfTypes["delete"](t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,r){var n=null,o=function(){if(!n)throw new Error("Illegal state: Class "+r+" for type "+e.ɵstringify(t)+" is not compiled yet!");return n.apply(this,arguments)};return o.setDelegate=function(t){n=t,o.prototype=t.prototype},o.overriddenName=r,o},t.prototype.getGeneratedClass=function(t,e){return t instanceof mo?this._staticSymbolCache.get(Xe(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,x(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,P(t))},t.prototype.getHostComponentType=function(t){var e=E({reference:t})+"_Host";if(t instanceof mo)return this._staticSymbolCache.get(t.filePath,e);var r=function(){};return r.overriddenName=e,r},t.prototype.getRendererType=function(t){return t instanceof mo?this._staticSymbolCache.get(Xe(t.filePath),T(t)):{}},t.prototype.getComponentFactory=function(t,r,n,o){if(r instanceof mo)return this._staticSymbolCache.get(Xe(r.filePath),O(r));var i=this.getHostComponentViewClass(r);return e.ɵccf(t,r,i,n,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof mo||(r=t.ngContentSelectors).push.apply(r,e);var r},t.prototype._loadSummary=function(t,e){var r=this._summaryCache.get(t);if(!r){var n=this._summaryResolver.resolveSummary(t);r=n?n.type:null,this._summaryCache.set(t,r||null)}return r&&r.summaryKind===e?r:null},t.prototype._loadDirectiveMetadata=function(t,r,n){var o=this;if(this._directiveCache.has(r))return null;r=e.resolveForwardRef(r);var i=this.getNonNormalizedDirectiveMetadata(r),s=i.annotation,a=i.metadata,u=function(t){var e=new Qo({isHost:!1,type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(r,e),o._summaryCache.set(r,e.toSummary()),e};if(a.isComponent){var c=a.template,l=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:r,moduleUrl:cr(this._reflector,r,s),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation});return l.syncResult?(u(l.syncResult),null):n?(this._reportError(hr(r),r),null):l.asyncResult.then(u)}return u(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var r=this;if(t=e.resolveForwardRef(t),!t)return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var o=this._directiveResolver.resolve(t,!1);if(!o)return null;var i=void 0;if(o instanceof e.Component){G("styles",o.styles),G("styleUrls",o.styleUrls),W("interpolation",o.interpolation);var s=o.animations;i=new Ko({encapsulation:y(o.encapsulation),template:y(o.template),templateUrl:y(o.templateUrl),styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:y(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[]})}var a=null,u=[],c=[],l=o.selector;o instanceof e.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+pr(t)+'"',[],t)),o.entryComponents&&(c=ar(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(v("Directive "+pr(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+pr(t)+'"',[],t));var h=[],f=[];null!=o.queries&&(h=this._getQueriesMetadata(o.queries,!1,t),f=this._getQueriesMetadata(o.queries,!0,t));var d=Qo.create({isHost:!1,selector:l,exportAs:y(o.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs||[],outputs:o.outputs||[],host:o.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),n={metadata:d,annotation:o},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(v("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+pr(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Wo.Directive);return e||this._reportError(v("Illegal state: Could not load the summary for directive "+pr(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Wo.NgModule);if(!e){var r=this.getNgModuleMetadata(t,!1);e=r?r.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,r){var n=this;void 0===r&&(r=!0);var o=this.getNgModuleMetadata(t,r),i=[];return o&&(o.declaredDirectives.forEach(function(r){var o=n._loadDirectiveMetadata(t,r.reference,e);o&&i.push(o)}),o.declaredPipes.forEach(function(t){return n._loadPipeMetadata(t.reference)})),Promise.all(i)},t.prototype.getNgModuleMetadata=function(t,r){var n=this;void 0===r&&(r=!0),t=e.resolveForwardRef(t);var o=this._ngModuleCache.get(t);if(o)return o;var i=this._ngModuleResolver.resolve(t,r);if(!i)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[];i.imports&&ar(i.imports).forEach(function(e){var r=void 0;if(ur(e))r=e;else if(e&&e.ngModule){var o=e;r=o.ngModule,o.providers&&p.push.apply(p,n._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+pr(r)+"'",[],e))}if(!r)return void n._reportError(v("Unexpected value '"+pr(e)+"' imported by the module '"+pr(t)+"'"),t);if(!n._checkSelfImport(t,r)){var i=n.getNgModuleSummary(r);return i?void c.push(i):void n._reportError(v("Unexpected "+n._getTypeDescriptor(e)+" '"+pr(e)+"' imported by the module '"+pr(t)+"'. Please add a @NgModule annotation."),t)}}),i.exports&&ar(i.exports).forEach(function(e){if(!ur(e))return void n._reportError(v("Unexpected value '"+pr(e)+"' exported by the module '"+pr(t)+"'"),t);var r=n.getNgModuleSummary(e);r?l.push(r):a.push(n._getIdentifierMetadata(e))});var m=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&ar(i.declarations).forEach(function(e){if(!ur(e))return void n._reportError(v("Unexpected value '"+pr(e)+"' declared by the module '"+pr(t)+"'"),t);var r=n._getIdentifierMetadata(e);if(n._directiveResolver.isDirective(e))m.addDirective(r),s.push(r),n._addTypeToModule(e,t);else{if(!n._pipeResolver.isPipe(e))return void n._reportError(v("Unexpected "+n._getTypeDescriptor(e)+" '"+pr(e)+"' declared by the module '"+pr(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(r),m.pipes.push(r),u.push(r),n._addTypeToModule(e,t)}});var y=[],g=[];return a.forEach(function(e){if(m.directivesSet.has(e.reference))y.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void n._reportError(v("Can't export "+n._getTypeDescriptor(e.reference)+" "+pr(e.reference)+" from "+pr(t)+" as it was neither declared nor imported!"),t);g.push(e),m.addExportedPipe(e)}}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+pr(t)+"'",[],t)),i.entryComponents&&h.push.apply(h,ar(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)})),i.bootstrap&&ar(i.bootstrap).forEach(function(e){return ur(e)?void f.push(n._getIdentifierMetadata(e)):void n._reportError(v("Unexpected value '"+pr(e)+"' used in the bootstrap property of module '"+pr(t)+"'"),t)}),h.push.apply(h,f.map(function(t){return n._getEntryComponentMetadata(t.reference)})),i.schemas&&d.push.apply(d,ar(i.schemas)),o=new Zo({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:m,id:i.id||null}),h.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,o.type)}),m.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e?(this._reportError(v("'"+pr(t)+"' module can't import itself"),t),!0):!1},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var r=this._ngModuleOfTypes.get(t);return r&&r!==e?void this._reportError(v("Type "+pr(t)+" is part of the declarations of 2 modules: "+pr(r)+" and "+pr(e)+"! "+("Please consider moving "+pr(t)+" to a higher module that imports "+pr(r)+" and "+pr(e)+". ")+("You can also create a new NgModule that exports and includes "+pr(t)+" then import that NgModule in "+pr(r)+" and "+pr(e)+".")),e):void this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var r=new Yo,n=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return r.addModule(t)}),t.entryComponents.forEach(function(t){return r.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var o=R(t.provider.token),i=n.get(o);i||(i=new Set,n.set(o,i));var s=t.module.reference;(e.has(o)||!i.has(s))&&(i.add(s),e.add(o),r.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return r.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addDirective(t)}),t.exportedPipes.forEach(function(t){return r.addPipe(t)})}),r},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){var r=this._reflector.annotations(t);return r.some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Wo.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var r=this._loadSummary(t,Wo.Injectable);return r?r.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,r,n){void 0===r&&(r=null),void 0===n&&(n=!0);var o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,r,n),lifecycleHooks:e.ɵLIFECYCLE_HOOKS_VALUES.filter(function(t){return er(t,o.reference)})}},t.prototype._getFactoryMetadata=function(t,r){return void 0===r&&(r=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,r)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(v("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+pr(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Wo.Pipe);return e||this._reportError(v("Illegal state: Could not load the summary for pipe "+pr(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var r=this._pipeResolver.resolve(t),n=new Xo({type:this._getTypeMetadata(t),name:r.name,pure:!!r.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,r,n){var o=this;void 0===n&&(n=!0);var i=!1,s=r||this._reflector.parameters(t)||[],a=s.map(function(t){var r=!1,n=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?n=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(r=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:ur(t)&&null==c&&(c=t)}):c=t,null==c?(i=!0,null):{isAttribute:r,isHost:n,isSelf:s,isSkipSelf:a,isOptional:u,token:o._getTokenMetadata(c)}});if(i){var u=a.map(function(t){return t?pr(t.token):"?"}).join(", "),c="Can't resolve all parameters for "+pr(t)+": ("+u+").";n?this._reportError(v(c),t):this._console.warn("Warning: "+c+" This will become an error in Angular v5.x")}return a},t.prototype._getTokenMetadata=function(t){t=e.resolveForwardRef(t);var r;return r="string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,r,n,o,i){var s=this;return void 0===o&&(o=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,r,n,o);else{a=e.resolveForwardRef(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Jo(a.provide,a);else{if(!ur(a)){if(void 0===a)return void s._reportError(v("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,r){return u>r?t.push(""+pr(e)):r==u?t.push("?"+pr(e)+"?"):r==u+1&&t.push("..."),t},[]).join(", ");return void s._reportError(v("Invalid "+(n?n:"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c=new Jo(a,{useClass:a})}c.token===fe(zu.ANALYZE_FOR_ENTRY_COMPONENTS)?r.push.apply(r,s._getEntryComponentsFromProvider(c,i)):o.push(s.getProviderMetadata(c))}}),o},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(v("Invalid provider for "+pr(t.provide)+". useClass cannot be "+t.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var r=this,n=[],o=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(lr(t.useValue,o),o.forEach(function(t){var e=r._getEntryComponentMetadata(t.reference,!1);e&&n.push(e)}),n):(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var r=this.getNonNormalizedDirectiveMetadata(t);if(r&&r.metadata.isComponent)return{componentType:t,componentFactory:r.metadata.componentFactory};var n=this._loadSummary(t,Wo.Directive);if(n&&n.isComponent)return{componentType:t,componentFactory:n.componentFactory};if(e)throw v(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,r=null,n=null,o=this._getTokenMetadata(t.token);return t.useClass?(r=this._getInjectableMetadata(t.useClass,t.dependencies),e=r.diDeps,t.token===t.useClass&&(o={identifier:r})):t.useFactory&&(n=this._getFactoryMetadata(t.useFactory,t.dependencies),e=n.diDeps),{token:o,useClass:r,useValue:t.useValue,useFactory:n,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,r){var n=this,o=[];return Object.keys(t).forEach(function(i){var s=t[i];s.isViewQuery===e&&o.push(n._getQueryMetadata(s,i,r))}),o},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,r){var n,o=this;return"string"==typeof t.selector?n=this._queryVarBindings(t.selector).map(function(t){return o._getTokenMetadata(t)}):t.selector?n=[this._getTokenMetadata(t.selector)]:(this._reportError(v("Can't construct a query for the property \""+e+'" of "'+pr(r)+"\" since the query selector wasn't defined."),r),n=[]),{selectors:n,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,r){if(!this._errorCollector)throw t;this._errorCollector(t,e),r&&this._errorCollector(t,r)},t}();dl.decorators=[{type:z}],dl.ctorParameters=function(){return[{type:ti},{type:ll},{type:al},{type:pl},{type:hl},{type:Ju},{type:ol},{type:e.ɵConsole},{type:yo,decorators:[{type:e.Optional}]},{type:e.ɵReflectorReader},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[fl]}]}]};var ml=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Oo),yl={};yl.Const=0,yl[yl.Const]="Const";var vl=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),gl={};gl.Dynamic=0,gl.Bool=1,gl.String=2,gl.Int=3,gl.Number=4,gl.Function=5,gl.Inferred=6,gl[gl.Dynamic]="Dynamic",gl[gl.Bool]="Bool",gl[gl.String]="String",gl[gl.Int]="Int",gl[gl.Number]="Number",gl[gl.Function]="Function",gl[gl.Inferred]="Inferred";var _l=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.name=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(vl),bl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.value=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(vl),wl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.of=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(vl),Cl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.valueType=e||null,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(vl),El=new _l(gl.Dynamic),Sl=new _l(gl.Inferred),xl=new _l(gl.Bool),Tl=(new _l(gl.Int),new _l(gl.Number),new _l(gl.String),new _l(gl.Function),{});Tl.Equals=0,Tl.NotEquals=1,Tl.Identical=2,Tl.NotIdentical=3,Tl.Minus=4,Tl.Plus=5,Tl.Divide=6,Tl.Multiply=7,Tl.Modulo=8,Tl.And=9,Tl.Or=10,Tl.Lower=11,Tl.LowerEquals=12,Tl.Bigger=13,Tl.BiggerEquals=14,Tl[Tl.Equals]="Equals",Tl[Tl.NotEquals]="NotEquals",Tl[Tl.Identical]="Identical",Tl[Tl.NotIdentical]="NotIdentical",Tl[Tl.Minus]="Minus",Tl[Tl.Plus]="Plus",Tl[Tl.Divide]="Divide",Tl[Tl.Multiply]="Multiply",Tl[Tl.Modulo]="Modulo",Tl[Tl.And]="And",Tl[Tl.Or]="Or",Tl[Tl.Lower]="Lower",Tl[Tl.LowerEquals]="LowerEquals",Tl[Tl.Bigger]="Bigger",Tl[Tl.BiggerEquals]="BiggerEquals";var Pl=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.visitExpression=function(){},t.prototype.prop=function(t,e){return new Gl(this,t,null,e)},t.prototype.key=function(t,e,r){return new Wl(this,t,e,r)},t.prototype.callMethod=function(t,e,r){return new Nl(this,t,e,null,r)},t.prototype.callFn=function(t,e){return new Dl(this,t,null,e)},t.prototype.instantiate=function(t,e,r){return new jl(this,t,e,r)},t.prototype.conditional=function(t,e,r){return void 0===e&&(e=null),new Fl(this,t,e,null,r)},t.prototype.equals=function(t,e){return new zl(Tl.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new zl(Tl.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new zl(Tl.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new zl(Tl.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new zl(Tl.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new zl(Tl.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new zl(Tl.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new zl(Tl.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new zl(Tl.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new zl(Tl.And,this,t,null,e)},t.prototype.or=function(t,e){return new zl(Tl.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new zl(Tl.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new zl(Tl.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new zl(Tl.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new zl(Tl.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(tp,t)},t.prototype.cast=function(t,e){return new Bl(this,t,e)},t.prototype.toStmt=function(){return new ip(this,null)},t}(),Al={};Al.This=0,Al.Super=1,Al.CatchError=2,Al.CatchStack=3,Al[Al.This]="This",Al[Al.Super]="Super",Al[Al.CatchError]="CatchError",Al[Al.CatchStack]="CatchStack";var Ol=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return"string"==typeof e?(o.name=e,o.builtin=null):(o.name=null,o.builtin=e),o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Ml(this.name,t,null,this.sourceSpan)},e}(Pl),Ml=function(t){function e(e,r,n,o){var i=t.call(this,n||r.type,o)||this;return i.name=e,i.value=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new np(this.name,this.value,t,e,this.sourceSpan)},e}(Pl),Rl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||n.type,i)||this;return s.receiver=e,s.index=r,s.value=n,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Pl),kl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||n.type,i)||this;return s.receiver=e,s.name=r,s.value=n,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Pl),Il={};Il.ConcatArray=0,Il.SubscribeObservable=1,Il.Bind=2,Il[Il.ConcatArray]="ConcatArray",Il[Il.SubscribeObservable]="SubscribeObservable",Il[Il.Bind]="Bind";var Nl=function(t){function e(e,r,n,o,i){var s=t.call(this,o,i)||this;return s.receiver=e,s.args=n,"string"==typeof r?(s.name=r,s.builtin=null):(s.name=null,s.builtin=r),s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Pl),Dl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.fn=e,i.args=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Pl),jl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.classExpr=e,i.args=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Pl),Ll=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.value=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Pl),Vl=function(t){function e(e,r,n,o){void 0===n&&(n=null);var i=t.call(this,r,o)||this;return i.value=e,i.typeParams=n,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Pl),Fl=function(t){function e(e,r,n,o,i){void 0===n&&(n=null);var s=t.call(this,o||r.type,i)||this;return s.condition=e,s.falseCase=n,s.trueCase=r,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Pl),Ul=function(t){function e(e,r){var n=t.call(this,xl,r)||this;return n.condition=e,n}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Pl),Bl=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.value=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Pl),Hl=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),ql=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.params=e,i.statements=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new op(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(Pl),zl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||r.type,i)||this;return s.operator=e,s.rhs=n,s.lhs=r,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Pl),Gl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.receiver=e,i.name=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new kl(this.receiver,this.name,t,null,this.sourceSpan)},e}(Pl),Wl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.receiver=e,i.index=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Rl(this.receiver,this.index,t,null,this.sourceSpan)},e}(Pl),$l=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.entries=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Pl),Kl=function(){function t(t,e,r){void 0===r&&(r=!1),this.key=t,this.value=e,this.quoted=r}return t}(),Ql=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.entries=e,o.valueType=null,r&&(o.valueType=r.valueType),o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Pl),Xl=function(t){function e(e,r){var n=t.call(this,e[e.length-1].type,r)||this;return n.parts=e,n}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(Pl),Zl=new Ol(Al.This,null,null),Yl=new Ol(Al.Super,null,null),Jl=(new Ol(Al.CatchError,null,null),new Ol(Al.CatchStack,null,null),new Ll(null,null,null)),tp=new Ll(null,Sl,null),ep={};ep.Final=0,ep.Private=1,ep[ep.Final]="Final",ep[ep.Private]="Private";var rp=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.visitStatement=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),np=function(t){function e(e,r,n,o,i){void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.name=e,s.value=r,s.type=n||r.type,s}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(rp),op=function(t){function e(e,r,n,o,i,s){void 0===i&&(i=null);var a=t.call(this,i,s)||this;return a.name=e,a.params=r,a.statements=n,a.type=o||null,a}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(rp),ip=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.expr=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(rp),sp=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.value=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(rp),ap=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),up=function(t){function e(e,r,n){void 0===n&&(n=null);var o=t.call(this,r,n)||this;return o.name=e,o}return Zn(e,t),e}(ap),cp=function(t){function e(e,r,n,o,i){void 0===i&&(i=null);var s=t.call(this,o,i)||this;return s.name=e,s.params=r,s.body=n,s}return Zn(e,t),e}(ap),lp=function(t){function e(e,r,n,o){void 0===o&&(o=null);var i=t.call(this,n,o)||this;return i.name=e,i.body=r,i}return Zn(e,t),e}(ap),pp=function(t){function e(e,r,n,o,i,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=r,c.fields=n,c.getters=o,c.constructorMethod=i,c.methods=s,c}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(rp),hp=function(t){function e(e,r,n,o){void 0===n&&(n=[]);var i=t.call(this,null,o)||this;return i.condition=e,i.trueCase=r,i.falseCase=n,i}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(rp),fp=function(t){function e(e,r,n){var o=t.call(this,null,n)||this; - -return o.bodyStmts=e,o.catchStmts=r,o}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(rp),dp=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.error=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(rp),mp=function(){function t(){}return t.prototype.transformExpr=function(t){return t},t.prototype.transformStmt=function(t){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new Ml(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new Rl(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new kl(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var r=t.builtin||t.name;return this.transformExpr(new Nl(t.receiver.visitExpression(this,e),r,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new Dl(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new jl(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new Fl(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new Ul(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Bl(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new ql(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new zl(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Gl(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Wl(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new $l(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.map(function(t){return new Kl(t.key,t.value.visitExpression(r,e),t.quoted)}),o=new Cl(t.valueType,null);return this.transformExpr(new Ql(n,o,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Xl(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new np(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new op(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new ip(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new sp(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var r=this,n=t.parent.visitExpression(this,e),o=t.getters.map(function(t){return new lp(t.name,r.visitAllStatements(t.body,e),t.type,t.modifiers)}),i=t.constructorMethod&&new cp(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new cp(t.name,t.params,r.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new pp(t.name,n,t.fields,o,i,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new hp(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new fp(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new dp(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var r=this;return t.map(function(t){return t.visitStatement(r,e)})},t}(),yp=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var r=this;return t.entries.forEach(function(t){return t.value.visitExpression(r,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var r=this;t.forEach(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var r=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return r.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return r.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),vp=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return Zn(e,t),e.prototype.visitDeclareFunctionStmt=function(t){return t},e.prototype.visitDeclareClassStmt=function(t){return t},e.prototype.visitReadVarExpr=function(t){return t.name&&this.varNames.add(t.name),null},e}(yp),gp=function(t){function e(e){var r=t.call(this)||this;return r.sourceSpan=e,r}return Zn(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var r in t)e[r]=t[r];return e},e.prototype.transformExpr=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e}(mp),_p="$quoted$",bp=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return br(t.map(function(t){return d(t,r,null)}),e)},t.prototype.visitStringMap=function(t,e){var r=this,n=[],o=new Set(t&&t[_p]);return Object.keys(t).forEach(function(e){n.push(new Kl(e,d(t[e],r,null),o.has(e)))}),new Ql(n,e)},t.prototype.visitPrimitive=function(t,e){return Sr(t,e)},t.prototype.visitOther=function(t){return t instanceof Pl?t:vr({reference:t})},t}(),wp=function(){function t(t){this.compType=t}return t}(),Cp=function(){function t(t,e,r){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=r}return t}(),Ep=function(){function t(){}return t.prototype.compile=function(t,e){var r=ct("NgModule",t.type),n=[],o=[],i=t.transitiveModule.entryComponents.map(function(e){return t.bootstrapComponents.some(function(t){return t.reference===e.componentType})&&o.push({reference:e.componentFactory}),n.push(new wp(e.componentType)),{reference:e.componentFactory}}),s=new Sp(t,i,o,r),a=new Yu(t,e,r);a.parse().forEach(function(t){return s.addProvider(t)});var u=s.build(),c=E(t.type)+"NgFactory",l=yr(c).set(vr(de(zu.NgModuleFactory)).instantiate([yr(u.name),vr(t.type)],gr(de(zu.NgModuleFactory),[gr(t.type)],[yl.Const]))).toDeclStmt(null,[ep.Final]),p=[u,l];if(t.id){var h=vr(de(zu.RegisterModuleFactoryFn)).callFn([Sr(t.id),yr(c)]).toStmt();p.push(h)}return new Cp(p,c,n)},t}();Ep.decorators=[{type:z}],Ep.ctorParameters=function(){return[]};var Sp=function(){function t(t,e,r,n){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=r,this._sourceSpan=n,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._lazyProps=new Map,this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var r=this,n=t.providers.map(function(t){return r._getProviderValue(t)}),o="_"+M(t.token)+"_"+this._instances.size,i=this._createProviderProperty(o,t,n,t.multiProvider,t.eager);if(-1!==t.lifecycleHooks.indexOf(e.ɵLifecycleHooks.OnDestroy)){var s=i.callMethod("ngOnDestroy",[]);t.eager||(s=this._lazyProps.get(i.name).and(s)),this._destroyStmts.push(s.toStmt())}this._tokens.push(t.token),this._instances.set(R(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var r=t._instances.get(R(e));return new hp(Tp.token.identical(Ar(e)),[new sp(r)])}),r=[new cp("createInternal",[],this._createStmts.concat(new sp(this._instances.get(this._ngModuleMeta.type.reference))),gr(this._ngModuleMeta.type)),new cp("getInternal",[new Hl(Tp.token.name,El),new Hl(Tp.notFoundResult.name,El)],e.concat([new sp(Tp.notFoundResult)]),El),new cp("destroyInternal",[],this._destroyStmts)],n=[yr(xp.parent.name),br(this._entryComponentFactories.map(function(t){return vr(t)})),br(this._bootstrapComponentFactories.map(function(t){return vr(t)}))],o=E(this._ngModuleMeta.type)+"Injector";return xr({name:o,ctorParams:[new Hl(xp.parent.name,gr(de(zu.Injector)))],parent:vr(de(zu.NgModuleInjector),[gr(this._ngModuleMeta.type)]),parentArgs:n,builders:[{methods:r},this]})},t.prototype._getProviderValue=function(t){var e,r=this;if(null!=t.useExisting)e=this._getDependency({token:t.useExisting});else if(null!=t.useFactory){var n=t.deps||t.useFactory.diDeps,o=n.map(function(t){return r._getDependency(t)});e=vr(t.useFactory).callFn(o)}else if(null!=t.useClass){var n=t.deps||t.useClass.diDeps,o=n.map(function(t){return r._getDependency(t)});e=vr(t.useClass).instantiate(o,gr(t.useClass))}else e=Pr(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,r,n,o){var i,s;if(n?(i=br(r),s=new wl(El)):(i=r[0],s=r[0].type),s||(s=El),o)this.fields.push(new up(t,s)),this._createStmts.push(Zl.prop(t).set(i).toStmt());else{var a=Zl.prop("_"+t);this.fields.push(new up(a.name,s));var u=[new hp(a.isBlank(),[a.set(i).toStmt()]),new sp(a)];this.getters.push(new lp(t,u,s)),this._lazyProps.set(t,a)}return Zl.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=Sr(t.value)),t.isSkipSelf||(t.token&&(R(t.token)===fe(zu.Injector)?e=Zl:R(t.token)===fe(zu.ComponentFactoryResolver)&&(e=Zl.prop("componentFactoryResolver"))),e||(e=this._instances.get(R(t.token)))),!e){var r=[Ar(t.token)];t.isOptional&&r.push(Jl),e=xp.parent.callMethod("get",r)}return e},t}(),xp=function(){function t(){}return t}();xp.parent=Zl.prop("parent");var Tp=function(){function t(){}return t}();Tp.token=yr("token"),Tp.notFoundResult=yr("notFoundResult");var Pp=3,Ap="# sourceMappingURL=data:application/json;base64,",Op=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,r,n){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==r||null==n))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:r,sourceCol0:n}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,r=[],n=[];Array.from(this.sourcesContent.keys()).forEach(function(o,i){e.set(o,i),r.push(o),n.push(t.sourcesContent.get(o)||null)});var o="",i=0,s=0,a=0,u=0;return this.lines.forEach(function(t){i=0,o+=t.map(function(t){var r=Mr(t.col0-i);return i=t.col0,null!=t.sourceUrl&&(r+=Mr(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),r+=Mr(t.sourceLine0-a),a=t.sourceLine0,r+=Mr(t.sourceCol0-u),u=t.sourceCol0),r}).join(","),o+=";"}),o=o.slice(0,-1),{file:this.file||"",version:Pp,sourceRoot:"",sources:r,sourcesContent:n,mappings:o}},t.prototype.toJsComment=function(){return this.hasMappings?"//"+Ap+Or(JSON.stringify(this,null,0)):""},t}(),Mp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rp=/'|\\|\n|\r|\$/g,kp=/^[$A-Z_][0-9A-Z_$]*$/i,Ip=" ",Np=yr("error",null,null),Dp=yr("stack",null,null),jp=function(){function t(t){this.indent=t,this.parts=[],this.srcSpans=[]}return t}(),Lp=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new jp(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e,r){void 0===r&&(r=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),r&&this._lines.push(new jp(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?Ir(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,r){void 0===r&&(r=0);for(var n=new Op(e),o=!1,i=function(){o||(n.addSource(t," ").addMapping(0,t,0,0),o=!0)},s=0;r>s;s++)n.addLine(),i();return this.sourceLines.forEach(function(t,e){n.addLine();for(var r=t.srcSpans,s=t.parts,a=t.indent*Ip.length,u=0;u<r.length&&!r[u];)a+=s[u].length,u++;for(u<r.length&&0===e&&0===a?o=!0:i();u<r.length;){var c=r[u],l=c.start.file,p=c.start.line,h=c.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<r.length&&(c===r[u]||!r[u]);)a+=s[u].length,u++}}),n},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),Vp=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(){},t.prototype.visitDeclareClassStmt=function(){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var r=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!r?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),r&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){var r=t.comment.split("\n");return r.forEach(function(r){e.println(t,"// "+r)}),null},t.prototype.visitDeclareVarStmt=function(){},t.prototype.visitWriteVarExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var r=t.name;return null!=t.builtin&&(r=this.getBuiltinMethodName(t.builtin),null==r)?null:(e.print(t,"."+r+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(null!=t.builtin)switch(t.builtin){case Al.Super:r="super";break;case Al.This:r="this";break;case Al.CatchError:r=Np.name;break;case Al.CatchStack:r=Dp.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,r),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var r=t.value;return"string"==typeof r?e.print(t,kr(r,this._escapeDollarInStrings)):e.print(t,""+r),null},t.prototype.visitExternalExpr=function(){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(){},t.prototype.visitDeclareFunctionStmt=function(){},t.prototype.visitBinaryOperatorExpr=function(t,e){var r;switch(t.operator){case Tl.Equals:r="==";break;case Tl.Identical:r="===";break;case Tl.NotEquals:r="!=";break;case Tl.NotIdentical:r="!==";break;case Tl.And:r="&&";break;case Tl.Or:r="||";break;case Tl.Plus:r="+";break;case Tl.Minus:r="-";break;case Tl.Divide:r="/";break;case Tl.Multiply:r="*";break;case Tl.Modulo:r="%";break;case Tl.Lower:r="<";break;case Tl.LowerEquals:r="<=";break;case Tl.Bigger:r=">";break;case Tl.BiggerEquals:r=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+r+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var r=t.entries.length>1;return e.print(t,"[",r),e.incIndent(),this.visitAllExpressions(t.entries,e,",",r),e.decIndent(),e.print(t,"]",r),null},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.length>1;return e.print(t,"{",n),e.incIndent(),this.visitAllObjects(function(n){e.print(t,kr(n.key,r._escapeDollarInStrings,n.quoted)+": "),n.value.visitExpression(r,e)},t.entries,e,",",n),e.decIndent(),e.print(t,"}",n),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,r,n){var o=this;void 0===n&&(n=!1),this.visitAllObjects(function(t){return t.visitExpression(o,e)},t,e,r,n)},t.prototype.visitAllObjects=function(t,e,r,n,o){void 0===o&&(o=!1);for(var i=0;i<e.length;i++)i>0&&r.print(null,n,o),t(e[i]);o&&r.println()},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),Fp="/debug/lib",Up=function(){function t(t){this._importResolver=t}return t.prototype.emitStatements=function(t,e,r,n,o){var i=this;void 0===o&&(o="");var s=new Bp(e,this._importResolver),a=Lp.createRoot(n);s.visitAllStatements(r,a);var u=o?o.split("\n"):[];s.reexports.forEach(function(t,r){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+n+"} from '"+i._importResolver.fileNameToModuleName(r,e)+"';")}),s.importsWithPrefixes.forEach(function(t,r){u.push("imp"+("ort * as "+t+" from '"+i._importResolver.fileNameToModuleName(r,e)+"';"))});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")},t}(),Bp=function(t){function e(e,r){var n=t.call(this,!1)||this;return n._genFilePath=e,n._importResolver=r,n.typeExpression=0,n.importsWithPrefixes=new Map,n.reexports=new Map,n}return Zn(e,t),e.prototype.visitType=function(t,e,r){void 0===r&&(r="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,r)},e.prototype.visitLiteralExpr=function(e,r){var n=e.value;return null==n&&e.type!=Sl?(r.print(e,"("+n+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,r)},e.prototype.visitLiteralArrayExpr=function(e,r){0===e.entries.length&&r.print(e,"(");var n=t.prototype.visitLiteralArrayExpr.call(this,e,r);return 0===e.entries.length&&r.print(e," as any[])"),n},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof Vl&&!t.type){var r=this._resolveStaticSymbol(t.value.value),n=r.name,o=r.filePath,i=r.members;if(0===i.length&&o!==this._genFilePath){var s=this.reexports.get(o);return s||(s=[],this.reexports.set(o,s)),s.push({name:n,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(ep.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return r._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return r._visitClassGetter(t,e)}),t.methods.forEach(function(t){return r._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(ep.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(ep.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(ep.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Np.name+") {"),e.incIndent();var r=[Dp.set(Np.prop("stack",null)).toDeclStmt(null,[ep.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var r;switch(t.name){case gl.Bool:r="boolean";break;case gl.Dynamic:r="any";break;case gl.Function:r="Function";break;case gl.Number:r="number";break;case gl.Int:r="number";break;case gl.String:r="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,r),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Il.ConcatArray:e="concat";break;case Il.SubscribeObservable:e="subscribe";break;case Il.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var r=this;this.visitAllObjects(function(t){e.print(null,t.name),r._printColonType(t.type,e)},t,e,",")},e.prototype._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof mo))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var r=this._importResolver.getTypeArity(e)||void 0,n=this._importResolver.getImportAs(e)||e;return{name:n.name,filePath:n.filePath,members:n.members,arity:r}},e.prototype._visitIdentifier=function(t,e,r){var n=this,o=this._resolveStaticSymbol(t),i=o.name,s=o.filePath,a=o.members,u=o.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),r.print(null,c+".")}if(a.length?(r.print(null,i),r.print(null,"."),r.print(null,a.join("."))):r.print(null,i),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(r.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(n,r)},e,r,","),p>0)for(var h=0;p>h;h++)(h>0||l>0)&&r.print(null,","),r.print(null,"any");r.print(null,">")}}},e.prototype._printColonType=function(t,e,r){t!==Sl&&(e.print(null,":"),this.visitType(t,e,r))},e}(Vp),Hp={};Dr(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Dr(e.SecurityContext.STYLE,["*|style"]),Dr(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Dr(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var qp="boolean",zp="number",Gp="string",Wp="object",$p=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Kp={ -"class":"className","for":"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Qp=function(t){function r(){var e=t.call(this)||this;return e._schema={},$p.forEach(function(t){var r={},n=t.split("|"),o=n[0],i=n[1],s=i.split(","),a=o.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=r});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){r[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":r[t.substring(1)]=qp;break;case"#":r[t.substring(1)]=zp;break;case"%":r[t.substring(1)]=Wp;break;default:r[t]=Gp}})}),e}return Zn(r,t),r.prototype.hasProperty=function(t,r,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!1;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var s=this._schema[t.toLowerCase()]||this._schema.unknown;return!!s[r]},r.prototype.hasElement=function(t,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!0;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},r.prototype.securityContext=function(t,r,n){n&&(r=this.getMappedPropName(r)),t=t.toLowerCase(),r=r.toLowerCase();var o=Hp[t+"|"+r];return o?o:(o=Hp["*|"+r],o?o:e.SecurityContext.NONE)},r.prototype.getMappedPropName=function(t){return Kp[t]||t},r.prototype.getDefaultComponentElementName=function(){return"ng-component"},r.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event property '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...")+("\nIf '"+t+"' is a directive input, make sure the directive is imported by the")+" current module.";return{error:!0,msg:e}}return{error:!1}},r.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event attribute '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...");return{error:!0,msg:e}}return{error:!1}},r.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},r.prototype.normalizeAnimationStyleProperty=function(t){return l(t)},r.prototype.normalizeAnimationStyleValue=function(t,e,r){var n="",o=r.toString().trim(),i=null;if(jr(t)&&0!==r&&"0"!==r)if("number"==typeof r)n="px";else{var s=r.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(i="Please provide a CSS unit value for "+e+":"+r)}return{error:i,value:o+n}},r}(Ju);Qp.decorators=[{type:z}],Qp.ctorParameters=function(){return[]};var Xp=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,r){void 0===r&&(r="");var n=Vr(t);return t=Lr(t),t=this._insertDirectives(t),this._scopeCssText(t,e,r)+n},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Yp,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(Jp,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[0].replace(t[1],"").replace(t[2],"");return t[4]+r})},t.prototype._scopeCssText=function(t,e,r){var n=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,r)),t=t+"\n"+n,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,r="";for(th.lastIndex=0;null!==(e=th.exec(t));){var n=e[0].replace(e[2],"").replace(e[1],e[4]);r+=n+"\n\n"}return r},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,oh,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,ih,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,r){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var n=t[2].split(","),o=[],i=0;i<n.length;i++){var s=n[i].trim();if(!s)break;o.push(r(sh,s,t[3]))}return o.join(",")}return sh+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,r){return e.indexOf(eh)>-1?this._colonHostPartReplacer(t,e,r):t+e+r+", "+e+" "+t+r},t.prototype._colonHostPartReplacer=function(t,e,r){return t+e.replace(eh,"")+r},t.prototype._convertShadowDOMSelectors=function(t){return uh.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,r){var n=this;return Fr(t,function(t){var o=t.selector,i=t.content;return"@"!=t.selector[0]?o=n._scopeSelector(t.selector,e,r,n.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=n._scopeSelectors(t.content,e,r)),new wh(o,i)})},t.prototype._scopeSelector=function(t,e,r,n){var o=this;return t.split(",").map(function(t){return t.trim().split(ch)}).map(function(t){var i=t[0],s=t.slice(1),a=function(t){return o._selectorNeedsScoping(t,e)?n?o._applyStrictSelectorScope(t,e,r):o._applySelectorScope(t,e,r):t};return[a(i)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){var r=this._makeScopeMatcher(e);return!r.test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,r=/\]/g;return t=t.replace(e,"\\[").replace(r,"\\]"),new RegExp("^("+t+")"+lh,"m")},t.prototype._applySelectorScope=function(t,e,r){return this._applySimpleSelectorScope(t,e,r)},t.prototype._applySimpleSelectorScope=function(t,e,r){if(ph.lastIndex=0,ph.test(t)){var n=this.strictStyling?"["+r+"]":e;return t.replace(ah,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,r,o){return e+n+r+o})}).replace(ph,n+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,r){var n=this,o=/\[is=([^\]]*)\]/g;e=e.replace(o,function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t[0]});var i="["+e+"]",s=function(t){var o=t.trim();if(!o)return"";if(t.indexOf(sh)>-1)o=n._applySimpleSelectorScope(t,e,r);else{var s=t.replace(ph,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(o=a[1]+i+a[2]+a[3])}}return o},a=new Zp(t);t=a.content();for(var u,c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(sh);null!==(u=p.exec(t));){var f=u[1],d=t.slice(l,u.index).trim(),m=l>=h?s(d):d;c+=m+" "+f+" ",l=p.lastIndex}return c+=s(t.substring(l)),a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(fh,rh).replace(hh,eh)},t}(),Zp=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,r){var n="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,r,n){var o="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r+o})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,r){return e.placeholders[+r]})},t.prototype.content=function(){return this._content},t}(),Yp=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Jp=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,th=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,eh="-shadowcsshost",rh="-shadowcsscontext",nh=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",oh=new RegExp("("+eh+nh,"gim"),ih=new RegExp("("+rh+nh,"gim"),sh=eh+"-no-combinator",ah=/-shadowcsshost-no-combinator([^\s]*)/,uh=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],ch=/(?:>>>)|(?:\/deep\/)/g,lh="([>\\s~+[.,{:][\\s\\S]*)?$",ph=/-shadowcsshost/gim,hh=/:host/gim,fh=/:host-context/gim,dh=/\/\*\s*[\s\S]*?\*\//g,mh=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,yh=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,vh=/([{}])/g,gh="{",_h="}",bh="%BLOCK%",wh=function(){function t(t,e){this.selector=t,this.content=e}return t}(),Ch=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),Eh="%COMP%",Sh="_nghost-"+Eh,xh="_ngcontent-"+Eh,Th=function(){function t(t,e,r,n){this.name=t,this.moduleUrl=e,this.isShimmed=r,this.valuePlaceholder=n}return t}(),Ph=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),Ah=function(){function t(t,e,r,n,o){this.statements=t,this.stylesVar=e,this.dependencies=r,this.isShimmed=n,this.meta=o}return t}(),Oh=function(){function t(t){this._urlResolver=t,this._shadowCss=new Xp}return t.prototype.compileComponent=function(t){var e=this,r=t.template,n=[],o=this._compileStyles(t,new $o({styles:r.styles,styleUrls:r.styleUrls,moduleUrl:S(t.type)}),!0);return r.externalStylesheets.forEach(function(r){var o=e._compileStyles(t,r,!1);n.push(o)}),new Ph(o,n)},t.prototype._compileStyles=function(t,r,n){for(var o=this,i=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=r.styles.map(function(t){return Sr(o._shimIfNeeded(t,i))}),a=[],u=0;u<r.styleUrls.length;u++){var c={reference:null};a.push(new Th(Br(null),r.styleUrls[u],i,c)),s.push(new Vl(c))}var l=Br(n?t:null),p=yr(l).set(br(s,new wl(El,[yl.Const]))).toDeclStmt(null,[ep.Final]);return new Ah([p],l,a,i,r)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,xh,Sh):t},t}();Oh.decorators=[{type:z}],Oh.ctorParameters=function(){return[{type:el}]};var Mh=function(){function t(){}return t}();Mh.event=yr("$event");var Rh=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),kh=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),Ih={};Ih.Statement=0,Ih.Expression=1,Ih[Ih.Statement]="Statement",Ih[Ih.Expression]="Expression";var Nh=function(t){function e(e){var r=t.call(this)||this;return r._converterFactory=e,r}return Zn(e,t),e.prototype.visitPipe=function(t,e){var r=this,n=[t.exp].concat(t.args).map(function(t){return t.visit(r,e)});return new Lh(t.span,n,this._converterFactory.createPipeConverter(t.name,n.length))},e.prototype.visitLiteralArray=function(t,e){var r=this,n=t.expressions.map(function(t){return t.visit(r,e)});return new Lh(t.span,n,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var r=this,n=t.values.map(function(t){return t.visit(r,e)});return new Lh(t.span,n,this._converterFactory.createLiteralMapConverter(t.keys))},e}(Pi),Dh=function(){function t(t,e,r){this._localResolver=t,this._implicitReceiver=e,this.bindingId=r,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var r;switch(t.operation){case"+":r=Tl.Plus;break;case"-":r=Tl.Minus;break;case"*":r=Tl.Multiply;break;case"/":r=Tl.Divide;break;case"%":r=Tl.Modulo;break;case"&&":r=Tl.And;break;case"||":r=Tl.Or;break;case"==":r=Tl.Equals;break;case"!=":r=Tl.NotEquals;break;case"===":r=Tl.Identical;break;case"!==":r=Tl.NotIdentical;break;case"<":r=Tl.Lower;break;case">":r=Tl.Bigger;break;case"<=":r=Tl.LowerEquals;break;case">=":r=Tl.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Zr(e,new zl(r,this.visit(t.left,Ih.Expression),this.visit(t.right,Ih.Expression)))},t.prototype.visitChain=function(t,e){return Qr(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){var r=this.visit(t.condition,Ih.Expression);return Zr(e,r.conditional(this.visit(t.trueExp,Ih.Expression),this.visit(t.falseExp,Ih.Expression)))},t.prototype.visitPipe=function(t){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var r,n=this.visitAll(t.args,Ih.Expression);return r=t instanceof Lh?t.converter(n):this.visit(t.target,Ih.Expression).callFn(n),Zr(e,r)},t.prototype.visitImplicitReceiver=function(t,e){return Xr(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Xr(e,t);for(var r=[Sr(t.expressions.length)],n=0;n<t.strings.length-1;n++)r.push(Sr(t.strings[n])),r.push(this.visit(t.expressions[n],Ih.Expression));return r.push(Sr(t.strings[t.strings.length-1])),t.expressions.length<=9?vr(de(zu.inlineInterpolate)).callFn(r):vr(de(zu.interpolate)).callFn([r[0],br(r.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var r=this.leftMostSafeNode(t);return r?this.convertSafeAccess(t,r,e):Zr(e,this.visit(t.obj,Ih.Expression).key(this.visit(t.key,Ih.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var r=this.visit(t.obj,Ih.Expression),n=this.visit(t.key,Ih.Expression),o=this.visit(t.value,Ih.Expression);return Zr(e,r.key(n).set(o))},t.prototype.visitLiteralArray=function(){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return Zr(e,Sr(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var r=this.leftMostSafeNode(t);if(r)return this.convertSafeAccess(t,r,e);var n=this.visitAll(t.args,Ih.Expression),o=null,i=this.visit(t.receiver,Ih.Expression);if(i===this._implicitReceiver){var s=this._getLocal(t.name);s&&(o=s.callFn(n))}return null==o&&(o=i.callMethod(t.name,n)),Zr(e,o)},t.prototype.visitPrefixNot=function(t,e){return Zr(e,Cr(this.visit(t.expression,Ih.Expression)))},t.prototype.visitPropertyRead=function(t,e){var r=this.leftMostSafeNode(t);if(r)return this.convertSafeAccess(t,r,e);var n=null,o=this.visit(t.receiver,Ih.Expression);return o===this._implicitReceiver&&(n=this._getLocal(t.name)),null==n&&(n=o.prop(t.name)),Zr(e,n)},t.prototype.visitPropertyWrite=function(t,e){var r=this.visit(t.receiver,Ih.Expression);if(r===this._implicitReceiver){var n=this._getLocal(t.name);if(n)throw new Error("Cannot assign to a reference or variable!")}return Zr(e,r.prop(t.name).set(this.visit(t.value,Ih.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var r=this;return t.map(function(t){return r.visit(t,e)})},t.prototype.visitQuote=function(t){throw new Error("Quotes are not supported for evaluation!\n Statement: "+t.uninterpretedExpression+" located at "+t.location)},t.prototype.visit=function(t,e){var r=this._resultMap.get(t);return r?r:(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,r){var n=this.visit(e.receiver,Ih.Expression),o=void 0;this.needsTemporary(e.receiver)&&(o=this.allocateTemporary(),n=o.set(n),this._resultMap.set(e.receiver,o));var i=n.isBlank();e instanceof Ci?this._nodeMap.set(e,new wi(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new ci(e.span,e.receiver,e.name));var s=this.visit(t,Ih.Expression);return this._nodeMap["delete"](e),o&&this.releaseTemporary(o),Zr(r,i.conditional(Sr(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,r=function(t,r){return(e._nodeMap.get(r)||r).visit(t)};return t.visit({visitBinary:function(){return null},visitChain:function(){return null},visitConditional:function(){return null},visitFunctionCall:function(){return null},visitImplicitReceiver:function(){return null},visitInterpolation:function(){return null},visitKeyedRead:function(t){return r(this,t.obj)},visitKeyedWrite:function(){return null},visitLiteralArray:function(){return null},visitLiteralMap:function(){return null},visitLiteralPrimitive:function(){return null},visitMethodCall:function(t){return r(this,t.receiver)},visitPipe:function(){return null},visitPrefixNot:function(){return null},visitPropertyRead:function(t){return r(this,t.receiver)},visitPropertyWrite:function(){return null},visitQuote:function(){return null},visitSafeMethodCall:function(t){return r(this,t.receiver)||t},visitSafePropertyRead:function(t){return r(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,r=function(t,r){return r&&(e._nodeMap.get(r)||r).visit(t)},n=function(t,e){return e.some(function(e){return r(t,e)})};return t.visit({visitBinary:function(t){return r(this,t.left)||r(this,t.right)},visitChain:function(){return!1},visitConditional:function(t){return r(this,t.condition)||r(this,t.trueExp)||r(this,t.falseExp)},visitFunctionCall:function(){return!0},visitImplicitReceiver:function(){return!1},visitInterpolation:function(t){return n(this,t.expressions)},visitKeyedRead:function(){return!1},visitKeyedWrite:function(){return!1},visitLiteralArray:function(){return!0},visitLiteralMap:function(){return!0},visitLiteralPrimitive:function(){return!1},visitMethodCall:function(){return!0},visitPipe:function(){return!0},visitPrefixNot:function(t){return r(this,t.expression)},visitPropertyRead:function(){return!1},visitPropertyWrite:function(){return!1},visitQuote:function(){return!1},visitSafeMethodCall:function(){return!0},visitSafePropertyRead:function(){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Ol(Wr(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Wr(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),jh=function(){function t(){}return t.prototype.getLocal=function(t){return t===Mh.event.name?Mh.event:null},t}(),Lh=function(t){function e(e,r,n){var o=t.call(this,e,null,r)||this;return o.args=r,o.converter=n,o}return Zn(e,t),e}(Ei),Vh="class",Fh="style",Uh="$implicit",Bh=function(){function t(t,e,r){this.statements=t,this.viewClassVar=e,this.rendererTypeVar=r}return t}(),Hh=function(){function t(t,e){this._genConfigNext=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,r,n){var o=0,i=mn(e),s=[],a=void 0;if(!t.isHost){var u=t.template,c=[];u.animations&&u.animations.length&&c.push(new Kl("animation",Pr(u.animations),!0));var l=yr(T(t.type.reference));a=l.name,s.push(l.set(vr(de(zu.createRendererType2)).callFn([new Ql([new Kl("encapsulation",Sr(u.encapsulation)),new Kl("styles",r),new Kl("data",new Ql(c))])])).toDeclStmt(gr(de(zu.RendererType2)),[ep.Final]))}var p=function(e){var r=o++;return new Qh(e,t,r,n,i,p)},h=p(null);return h.visitAll([],e),s.push.apply(s,h.build()),new Bh(s,h.viewName,a)},t}();Hh.decorators=[{type:z}],Hh.ctorParameters=function(){return[{type:ti},{type:Ju}]};var qh=yr("l"),zh=yr("v"),Gh=yr("ck"),Wh=yr("co"),$h=yr("en"),Kh=yr("ad"),Qh=function(){function t(t,e,r,n,o,i){this.parent=t,this.component=e,this.embeddedViewIndex=r,this.usedPipes=n,this.staticQueryIds=o,this.viewBuilderFactory=i,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?El:gr(this.component.type)}return Object.defineProperty(t.prototype,"viewName",{get:function(){return x(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var n=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(n.purePipeNodeIndices[t.name]=n._createPipe(null,t))}),!this.parent){var o=yn(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var r=e+1,i=t.first?0:1,s=67108864|_n(o,r,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:vr(de(zu.queryDef)).callFn([Sr(s),Sr(r),new Ql([new Kl(t.propertyName,Sr(i))])])}})})}r(this,e),this.parent&&(0===e.length||un(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:vr(de(zu.anchorDef)).callFn([Sr(0),Jl,Jl,Sr(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var r=this._createNodeExpressions(),n=r.updateRendererStmts,o=r.updateDirectivesStmts,i=r.nodeDefExprs,s=this._createUpdateFn(n),a=this._createUpdateFn(o),u=0;this.parent||this.component.changeDetection!==e.ChangeDetectionStrategy.OnPush||(u|=2);var c=new op(this.viewName,[new Hl(qh.name)],[new sp(vr(de(zu.viewDef)).callFn([Sr(u),br(i),a,s]))],gr(de(zu.ViewDefinition)));return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var r=[];!this.component.isHost&&fr(t).has(Wh.name)&&r.push(Wh.set(zh.prop("component")).toDeclStmt(this.compType)),e=Er([new Hl(Gh.name,Sl),new Hl(zh.name,Sl)],r.concat(t),Sl)}else e=Jl;return e},t.prototype.visitNgContent=function(t){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:4,nodeDef:vr(de(zu.ngContentDef)).callFn([Sr(t.ngContentIndex),Sr(t.index)])}})},t.prototype.visitText=function(t){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:vr(de(zu.textDef)).callFn([Sr(t.ngContentIndex),br([Sr(t.value)])])}})},t.prototype.visitBoundText=function(t){var e=this,r=this.nodes.length;this.nodes.push(null);var n=t.value,o=n.ast,i=o.expressions.map(function(n,o){return e._preprocessUpdateExpression({nodeIndex:r,bindingIndex:o,sourceSpan:t.sourceSpan,context:Wh,value:n})});this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:vr(de(zu.textDef)).callFn([Sr(t.ngContentIndex),br(o.strings.map(function(t){return Sr(t)}))]),updateRenderer:i}}},t.prototype.visitEmbeddedTemplate=function(t){var e=this,r=this.nodes.length;this.nodes.push(null);var n=this._visitElementOrTemplate(r,t),o=n.flags,i=n.queryMatchesExpr,s=n.hostEvents,a=this.viewBuilderFactory(this);this.children.push(a),a.visitAll(t.variables,t.children);var u=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:vr(de(zu.anchorDef)).callFn([Sr(o),i,Sr(t.ngContentIndex),Sr(u),e._createElementHandleEventFn(r,s),yr(a.viewName)])}}},t.prototype.visitElement=function(t){var e=this,n=this.nodes.length;this.nodes.push(null);var i=o(t.name)?null:t.name,s=this._visitElementOrTemplate(n,t),a=s.flags,u=s.usedEvents,c=s.queryMatchesExpr,l=s.hostBindings,p=s.hostEvents,h=[],f=[],d=[];if(i){var m=t.inputs.map(function(t){return{context:Wh,inputAst:t,dirAst:null}}).concat(l);m.length&&(f=m.map(function(t,r){return e._preprocessUpdateExpression({context:t.context,nodeIndex:n,bindingIndex:r,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),h=m.map(function(t){return ln(t.inputAst,t.dirAst)})),d=u.map(function(t){var e=t[0],r=t[1];return br([Sr(e),Sr(r)])})}r(this,t.children);var y=this.nodes.length-n-1,v=t.directives.find(function(t){return t.directive.isComponent}),g=Jl,_=Jl;v&&(_=vr({reference:v.directive.componentViewType}),g=vr({reference:v.directive.rendererType})),this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|a,nodeDef:vr(de(zu.elementDef)).callFn([Sr(a),c,Sr(t.ngContentIndex),Sr(y),Sr(i),i?pn(t):Jl,h.length?br(h):Jl,d.length?br(d):Jl,e._createElementHandleEventFn(n,p),_,g]),updateRenderer:f}}},t.prototype._visitElementOrTemplate=function(t,r){var n=this,o=0;r.hasViewContainer&&(o|=8388608);var i=new Map;r.outputs.forEach(function(t){var r=gn(t,null),n=r.name,o=r.target;i.set(e.ɵelementEventFullName(o,n),[o,n])}),r.directives.forEach(function(t){t.hostEvents.forEach(function(r){var n=gn(r,t),o=n.name,s=n.target;i.set(e.ɵelementEventFullName(s,o),[s,o])})});var s=[],a=[],u=vn(r.directives);u&&this._visitProvider(u,r.queryMatches),r.providers.forEach(function(e){var o=void 0,u=void 0;if(r.directives.forEach(function(t,r){t.directive.type.reference===R(e.token)&&(o=t,u=r)}),o){var c=n._visitDirective(e,o,u,t,r.references,r.queryMatches,i,n.staticQueryIds.get(r)),l=c.hostBindings,p=c.hostEvents;s.push.apply(s,l),a.push.apply(a,p)}else n._visitProvider(e,r.queryMatches)});var c=[];return r.queryMatches.forEach(function(t){var e=void 0;R(t.value)===fe(zu.ElementRef)?e=0:R(t.value)===fe(zu.ViewContainerRef)?e=3:R(t.value)===fe(zu.TemplateRef)&&(e=2),null!=e&&c.push(br([Sr(t.queryId),Sr(e)]))}),r.references.forEach(function(e){var r=void 0;e.value?R(e.value)===fe(zu.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[e.name]=t,c.push(br([Sr(e.name),Sr(r)])))}),r.outputs.forEach(function(t){a.push({context:Wh,eventAst:t,dirAst:null})}),{flags:o,usedEvents:Array.from(i.values()),queryMatchesExpr:c.length?br(c):Jl,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,r,n,o,i,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,r){var n=e.contentQueryStartId+r,o=33554432|_n(a,n,t.first),i=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:o,nodeDef:vr(de(zu.queryDef)).callFn([Sr(o),Sr(n),new Ql([new Kl(t.propertyName,Sr(i))])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,i),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,m=p.depsExpr;o.forEach(function(e){e.value&&R(e.value)===R(t.token)&&(u.refNodeIndices[e.name]=c,f.push(br([Sr(e.name),Sr(4)])))}),e.directive.isComponent&&(h|=16384);var y=e.inputs.map(function(t,e){var r=br([Sr(e),Sr(t.directiveName)]);return new Kl(t.directiveName,r,!1)}),v=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&v.push(new Kl(t,Sr(e),!1))});var _=[];(e.inputs.length||(163840&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:Wh,value:t.value})}));var b=vr(de(zu.nodeValue)).callFn([zh,Sr(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),C=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:8192|h,nodeDef:vr(de(zu.directiveDef)).callFn([Sr(h),f.length?br(f):Jl,Sr(l),d,m,y.length?new Ql(y):Jl,v.length?new Ql(v):Jl]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:C}},t.prototype._visitProvider=function(t,e){var r=this.nodes.length;this.nodes.push(null);var n=this._visitProviderOrDirective(t,e),o=n.flags,i=n.queryMatchExprs,s=n.providerExpr,a=n.depsExpr;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:o,nodeDef:vr(de(zu.providerDef)).callFn([Sr(o),i.length?br(i):Jl,sn(t.token),s,a])}}},t.prototype._visitProviderOrDirective=function(t,r){var n=0;t.eager||(n|=2048),t.providerType===po.PrivateService&&(n|=4096),t.lifecycleHooks.forEach(function(r){(r===e.ɵLifecycleHooks.OnDestroy||t.providerType===po.Directive||t.providerType===po.Component)&&(n|=cn(r))});var o=[];r.forEach(function(e){R(e.value)===R(t.token)&&o.push(br([Sr(e.queryId),Sr(4)]))});var i=rn(t),s=i.providerExpr,a=i.depsExpr,u=i.flags;return{flags:n|u,queryMatchExprs:o,providerExpr:s,depsExpr:a}},t.prototype.getLocal=function(t){if(t==Mh.event.name)return Mh.event;for(var e=zh,r=this;r;r=r.parent,e=e.prop("parent").cast(El)){var n=r.refNodeIndices[t];if(null!=n)return vr(de(zu.nodeValue)).callFn([e,Sr(n)]);var o=r.variables.find(function(e){return e.name===t});if(o){var i=o.value||Uh;return e.prop("context").prop(i)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var r=vr(de(zu.EMPTY_ARRAY));return function(){return r}}var n=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:vr(de(zu.pureArrayDef)).callFn([Sr(e)])}}),function(t){return fn(n,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var r=vr(de(zu.EMPTY_MAP));return function(){return r}}var n=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:vr(de(zu.pureObjectDef)).callFn([br(e.map(function(t){return Sr(t)}))])}}),function(t){return fn(n,t)}},t.prototype.createPipeConverter=function(t,e,r){var n=this.usedPipes.find(function(t){return t.name===e});if(n.pure){var o=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:64,nodeDef:vr(de(zu.purePipeDef)).callFn([Sr(r)])}});for(var i=zh,s=this;s.parent;)s=s.parent,i=i.prop("parent").cast(El);var a=s.purePipeNodeIndices[e],u=vr(de(zu.nodeValue)).callFn([i,Sr(a)]);return function(e){return dn(t.nodeIndex,t.bindingIndex,fn(o,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,n),l=vr(de(zu.nodeValue)).callFn([zh,Sr(c)]);return function(e){return dn(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,r){var n=this.nodes.length,o=0;r.type.lifecycleHooks.forEach(function(t){t===e.ɵLifecycleHooks.OnDestroy&&(o|=cn(t))});var i=r.type.diDeps.map(an);return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:8,nodeDef:vr(de(zu.pipeDef)).callFn([Sr(o),vr(r.type),br(i)])}}),n},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:qr({createLiteralArrayConverter:function(r){return e.createLiteralArrayConverter(t.sourceSpan,r)},createLiteralMapConverter:function(r){return e.createLiteralMapConverter(t.sourceSpan,r)},createPipeConverter:function(r,n){return e.createPipeConverter(t,r,n)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,n,o,i){var s=[],a=o.map(function(t){var n=t.sourceSpan,o=t.context,i=t.value,a=""+r++,u=o===Wh?e:null,c=zr(u,o,i,a),l=c.stmts,p=c.currValExpr;return s.push.apply(s,l.map(function(t){return dr(t,n)})),mr(p,n)});return(o.length||i)&&s.push(dr(fn(t,a).toStmt(),n)),s}var e=this,r=0,n=[],o=[],i=this.nodes.map(function(e,r){var i=e(),s=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,c=i.updateRenderer,l=i.sourceSpan;c&&n.push.apply(n,t(r,l,c,!1)),u&&o.push.apply(o,t(r,l,u,(163840&a)>0));var p=3&a?new Xl([qh.callFn([]).callFn([]),s]):s;return mr(p,l)});return{updateRendererStmts:n,updateDirectivesStmts:o,nodeDefExprs:i}},t.prototype._createElementHandleEventFn=function(t,r){var n=this,o=[],i=0;r.forEach(function(t){var r=t.context,s=t.eventAst,a=t.dirAst,u=""+i++,c=r===Wh?n:null,l=Hr(c,r,s.handler,u),p=l.stmts,h=l.allowDefault,f=p;h&&f.push(Kh.set(h.and(Kh)).toStmt());var d=gn(s,a),m=d.target,y=d.name,v=e.ɵelementEventFullName(m,y);o.push(dr(new hp(Sr(v).identical($h),f),s.sourceSpan))});var s;if(o.length>0){var a=[Kh.set(Sr(!0)).toDeclStmt(xl)];!this.component.isHost&&fr(o).has(Wh.name)&&a.push(Wh.set(zh.prop("component")).toDeclStmt(this.compType)),s=Er([new Hl(zh.name,Sl),new Hl($h.name,Sl),new Hl(Mh.event.name,Sl)],a.concat(o,[new sp(Kh)]),Sl)}else s=Jl;return s},t.prototype.visitDirective=function(){},t.prototype.visitDirectiveProperty=function(){},t.prototype.visitReference=function(){},t.prototype.visitVariable=function(){},t.prototype.visitEvent=function(){},t.prototype.visitElementProperty=function(){},t.prototype.visitAttr=function(){},t}(),Xh=function(){function t(t,e,r){this.srcFileUrl=t,this.genFileUrl=e,this.source=r}return t}(),Zh=function(t){function e(e,r){var n=t.call(this)||this;return n.symbolResolver=e,n.summaryResolver=r,n.symbols=[],n.indexBySymbol=new Map,n.processedSummaryBySymbol=new Map,n.processedSummaries=[],n}return Zn(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;if(e&&"class"===e.__symbolic){var r={};Object.keys(e).forEach(function(t){"decorators"!==t&&(r[t]=e[t])}),e=r}var n=this.processedSummaryBySymbol.get(t.symbol);n||(n=this.processValue({symbol:t.symbol}),this.processedSummaries.push(n),this.processedSummaryBySymbol.set(t.symbol,n)),null==n.metadata&&null!=e&&(n.metadata=this.processValue(e)),null==n.type&&null!=t.type&&(n.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[],r=JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(r,n){r.assertNoMembers();var o=void 0;return t.summaryResolver.isLibraryFile(r.filePath)&&(o=r.name+"_"+n,e.push({symbol:r,exportAs:o})),{__symbol:n,name:r.name,filePath:t.summaryResolver.getLibraryFileName(r.filePath),importAs:o}})});return{json:r,exportAs:e -}},e.prototype.processValue=function(t){return d(t,this,null)},e.prototype.visitOther=function(t){if(t instanceof mo){var e=this.symbolResolver.getStaticSymbol(t.filePath,t.name),r=this.indexBySymbol.get(e);return null==r&&(r=this.indexBySymbol.size,this.indexBySymbol.set(e,r),this.symbols.push(e)),{__symbol:r,members:t.members}}},e}(Oo),Yh=function(t){function e(e){var r=t.call(this)||this;return r.symbolCache=e,r}return Zn(e,t),e.prototype.deserialize=function(t){var e=this,r=JSON.parse(t),n=[];this.symbols=[],r.symbols.forEach(function(t){var r=e.symbolCache.get(t.filePath,t.name);e.symbols.push(r),t.importAs&&n.push({symbol:r,importAs:t.importAs})});var o=d(r.summaries,this,null);return{summaries:o,importAs:n}},e.prototype.visitStringMap=function(e,r){if("__symbol"in e){var n=this.symbols[e.__symbol],o=e.members;return o.length?this.symbolCache.get(n.filePath,n.name,o):n}return t.prototype.visitStringMap.call(this,e,r)},e}(Oo),Jh=function(){function t(t,e,r,n,o,i,s,a,u,c,l,p,h){this._config=t,this._host=e,this._metadataResolver=r,this._templateParser=n,this._styleCompiler=o,this._viewCompiler=i,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._genFilePreamble=p,this._symbolResolver=h}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,r=An(this._symbolResolver,t,this._host),n=Tn(r,this._host,this._metadataResolver),o=n.ngModuleByPipeOrDirective,i=n.files,s=n.ngModules;return Promise.all(s.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=i.map(function(t){return e._compileSrcFile(t.srcUrl,o,t.directives,t.pipes,t.ngModules,t.injectables)});return N(t)})},t.prototype._compileSrcFile=function(t,e,r,n,o,i){var s=this,a=Je(t)[1],u=[],c=[],l=[];if(l.push(this._createSummary(t,r,n,o,i,u,c)),c.push.apply(c,o.map(function(t){return s._compileModule(t,u)})),r.forEach(function(r){var n=s._metadataResolver.getDirectiveMetadata(r);if(!n.isComponent)return Promise.resolve(null);var o=e.get(r);if(!o)throw new Error("Internal Error: cannot determine the module for component "+E(n.type)+"!");Sn(n);var i=s._styleCompiler.compileComponent(n);i.externalStylesheets.forEach(function(e){l.push(s._codgenStyles(t,e,a))});var p=s._compileComponent(n,o,o.transitiveModule.directives,i.componentStylesheet,a,u);c.push(s._compileComponentFactory(n,o,a,u),p.viewClassVar,p.compRenderTypeVar)}),u.length>0){var p=this._codegenSourceModule(t,Xe(t),u,c);l.unshift(p)}return l},t.prototype._createSummary=function(t,e,r,n,o,i,s){var a=this,u=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=n.map(function(t){return a._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return a._metadataResolver.getDirectiveSummary(t)}),r.map(function(t){return a._metadataResolver.getPipeSummary(t)}),o.map(function(t){return a._metadataResolver.getInjectableSummary(t)})),l=bn(this._summaryResolver,this._symbolResolver,u,c),p=l.json,h=l.exportAs;return h.forEach(function(t){i.push(yr(t.exportAs).set(vr({reference:t.symbol})).toDeclStmt()),s.push(t.exportAs)}),new Xh(t,tr(t),p)},t.prototype._compileModule=function(t,e){var r=this._metadataResolver.getNgModuleMetadata(t),n=[];this._localeId&&n.push({token:ye(zu.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&n.push({token:ye(zu.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(r,n);return e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileComponentFactory=function(t,e,r,n){var o=this._metadataResolver.getHostComponentType(t.type.reference),i=k(o,t,this._metadataResolver.getHostComponentViewClass(o)),s=this._compileComponent(i,e,[t.type],null,r,n).viewClassVar,a=O(t.type.reference),u=[];for(var c in t.inputs){var l=t.inputs[c];u.push(new Kl(c,Sr(l),!1))}var p=[];for(var c in t.outputs){var l=t.outputs[c];p.push(new Kl(c,Sr(l),!1))}return n.push(yr(a).set(vr(de(zu.createComponentFactory)).callFn([Sr(t.selector),vr(t.type),yr(s),new Ql(u),new Ql(p),br(t.template.ngContentSelectors.map(function(t){return Sr(t)}))])).toDeclStmt(gr(de(zu.ComponentFactory),[gr(t.type)],[yl.Const]),[ep.Final])),a},t.prototype._compileComponent=function(t,e,r,n,o,i){var s=this,a=r.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(t,t.template.template,a,u,e.schemas,j(e.type,t,t.template)),l=c.template,p=c.pipes,h=n?yr(n.stylesVar):br([]),f=this._viewCompiler.compileComponent(t,l,h,p);return n&&i.push.apply(i,Cn(this._symbolResolver,n,o)),i.push.apply(i,f.statements),{viewClassVar:f.viewClassVar,compRenderTypeVar:f.rendererTypeVar}},t.prototype._codgenStyles=function(t,e,r){return Cn(this._symbolResolver,e,r),this._codegenSourceModule(t,En(e.meta.moduleUrl,e.isShimmed,r),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,r,n){return new Xh(t,e,this._outputEmitter.emitStatements(D(t),e,r,n,this._genFilePreamble))},t}(),tf=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new e.ɵReflectionCapabilities}return t.install=function(r){e.ɵreflector.updateCapabilities(new t(r))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return Mn(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return Mn(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return Mn(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return Mn(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resourceUri=function(t){return this.staticDelegate.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,r){return this.staticDelegate.resolveIdentifier(t,e,r)},t.prototype.resolveEnum=function(t,e){return Mn(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),ef="@angular/core",rf=/^\$.*\$$/,nf={__symbolic:"ignore"},of=function(){function t(t,r,n,o,i){void 0===n&&(n=[]),void 0===o&&(o=[]);var s=this;this.summaryResolver=t,this.symbolResolver=r,this.errorRecorder=i,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.annotationNames=new Map,this.initializeConversionMap(),n.forEach(function(t){return s._registerDecoratorOrConstructor(s.getStaticSymbol(t.filePath,t.name),t.ctor)}),o.forEach(function(t){return s._registerFunction(s.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Wo.Directive,[e.Directive,e.Component]),this.annotationForParentClassWithSummaryKind.set(Wo.Pipe,[e.Pipe]),this.annotationForParentClassWithSummaryKind.set(Wo.NgModule,[e.NgModule]),this.annotationForParentClassWithSummaryKind.set(Wo.Injectable,[e.Injectable,e.Pipe,e.Directive,e.Component,e.NgModule]),this.annotationNames.set(e.Directive,"Directive"),this.annotationNames.set(e.Component,"Component"),this.annotationNames.set(e.Pipe,"Pipe"),this.annotationNames.set(e.NgModule,"NgModule"),this.annotationNames.set(e.Injectable,"Injectable")}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resourceUri=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveIdentifier=function(t,e,r){var n=this.getStaticSymbol(e,t),o=this.findDeclaration(e,t);return n!=o&&this.symbolResolver.recordImportAs(o,n),r&&r.length?this.getStaticSymbol(o.filePath,o.name,r):o},t.prototype.findDeclaration=function(t,e,r){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,r))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof mo?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var r=t,n=(r.members||[]).concat(e);return this.getStaticSymbol(r.filePath,r.name,n)},t.prototype.annotations=function(t){var e=this,r=this.annotationCache.get(t);if(!r){r=[];var n=this.getTypeMetadata(t),o=this.findParentType(t,n);if(o){var i=this.annotations(o);r.push.apply(r,i)}var s=[];if(n.decorators&&(s=this.simplify(t,n.decorators),r.push.apply(r,s)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var a=this.summaryResolver.resolveSummary(o);if(a&&a.type){var u=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind),c=u.some(function(t){return s.some(function(e){return e instanceof t})});c||this.reportError(v("Class "+t.name+" in "+t.filePath+" extends from a "+Wo[a.type.summaryKind]+" in another compilation unit without duplicating the decorator. "+("Please add a "+u.map(function(t){return e.annotationNames.get(t)}).join(" or ")+" decorator to the class.")),t)}}this.annotationCache.set(t,r.filter(function(t){return!!t}))}return r},t.prototype.propMetadata=function(t){var e=this,r=this.propertyCache.get(t);if(!r){var n=this.getTypeMetadata(t);r={};var o=this.findParentType(t,n);if(o){var i=this.propMetadata(o);Object.keys(i).forEach(function(t){r[t]=i[t]})}var s=n.members||{};Object.keys(s).forEach(function(n){var o=s[n],i=o.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];r[n]&&a.push.apply(a,r[n]),r[n]=a,i&&i.decorators&&a.push.apply(a,e.simplify(t,i.decorators))}),this.propertyCache.set(t,r)}return r},t.prototype.parameters=function(t){if(!(t instanceof mo))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var r=this.getTypeMetadata(t),n=this.findParentType(t,r),o=r?r.members:null,i=o?o.__ctor__:null;if(i){var s=i.find(function(t){return"constructor"==t.__symbolic}),a=this.simplify(t,s.parameters||[]),u=this.simplify(t,s.parameterDecorators||[]);e=[],a.forEach(function(t,r){var n=[];t&&n.push(t);var o=u?u[r]:null;o&&n.push.apply(n,o),e.push(n)})}else n&&(e=this.parameters(n));e||(e=[]),this.parameterCache.set(t,e)}return e}catch(c){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+c),c}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var r=this.getTypeMetadata(t);e={};var n=this.findParentType(t,r);if(n){var o=this._methodNames(n);Object.keys(o).forEach(function(t){e[t]=o[t]})}var i=r.members||{};Object.keys(i).forEach(function(t){var r=i[t],n=r.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var r=this.trySimplify(t,e["extends"]);return r instanceof mo?r:void 0},t.prototype.hasLifecycleHook=function(t,e){t instanceof mo||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(r){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+r),r}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,r){return new(e.bind.apply(e,[void 0].concat(r)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,r){return e.apply(void 0,r)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(ef,"InjectionToken"),this.opaqueToken=this.findDeclaration(ef,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(ef,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(ef,"state"),e.state),this._registerFunction(this.findDeclaration(ef,"transition"),e.transition),this._registerFunction(this.findDeclaration(ef,"style"),e.style),this._registerFunction(this.findDeclaration(ef,"animate"),e.animate),this._registerFunction(this.findDeclaration(ef,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(ef,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(ef,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,r){return this.symbolResolver.getStaticSymbol(t,e,r)},t.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},t.prototype.trySimplify=function(t,e){var r=this.errorRecorder;this.errorRecorder=function(){};var n=this.simplify(t,e);return this.errorRecorder=r,n},t.prototype.simplify=function(t,e){function r(t,e,n){function a(t){var e=o.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,o,a){if(o&&"function"==o.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=o.value;if(u&&(0!=n||"error"!=u.__symbolic)){var l=o.parameters,p=o.defaults;a=a.map(function(e){return r(t,e,n+1)}).map(function(t){return Rn(t)?void 0:t}),p&&p.length>a.length&&a.push.apply(a,p.slice(a.length).map(function(t){return c(t)}));for(var h=sf.build(),f=0;f<l.length;f++)h.define(l[f],a[f]);var d,m=i;try{i=h.done(),d=r(e,u,n+1)}finally{i=m}return d}}finally{s["delete"](e)}}return 0===n?nf:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Dn(e))return e;if(e instanceof Array){for(var s=[],l=0,p=e;l<p.length;l++){var h=p[l];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,m=f;d<m.length;d++){var y=m[d];s.push(y)}continue}}var v=c(h);Rn(v)||s.push(v)}return s}if(e instanceof mo){if(e===o.injectionToken||e===o.opaqueToken||o.conversionMap.has(e))return e;var g=e,_=a(g);return _?r(g,_,n+1):g}if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var b=c(e.left);if(Rn(b))return b;var w=c(e.right);if(Rn(w))return w;switch(e.operator){case"&&":return b&&w;case"||":return b||w;case"|":return b|w;case"^":return b^w;case"&":return b&w;case"==":return b==w;case"!=":return b!=w;case"===":return b===w;case"!==":return b!==w;case"<":return w>b;case">":return b>w;case"<=":return w>=b;case">=":return b>=w;case"<<":return b<<w;case">>":return b>>w;case"+":return b+w;case"-":return b-w;case"*":return b*w;case"/":return b/w;case"%":return b%w}return null;case"if":var C=c(e.condition);return c(C?e.thenExpression:e.elseExpression);case"pre":var E=c(e.operand);if(Rn(E))return E;switch(e.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var S=c(e.expression),x=c(e.index);return S&&Dn(x)?S[x]:null;case"select":var T=e.member,P=t,A=c(e.expression);if(A instanceof mo){var O=A.members.concat(T);P=o.getStaticSymbol(A.filePath,A.name,O);var _=a(P);return _?r(P,_,n+1):P}return A&&Dn(T)?r(P,A[T],n+1):null;case"reference":var M=e.name,R=i.resolve(M);if(R!=sf.missing)return R;break;case"class":return t;case"function":return t;case"new":case"call":if(g=r(t,e.expression,n+1),g instanceof mo){if(g===o.injectionToken||g===o.opaqueToken)return t;var k=e.arguments||[],I=o.conversionMap.get(g);if(I){var N=k.map(function(e){return r(t,e,n+1)}).map(function(t){return Rn(t)?void 0:t});return I(t,N)}var D=a(g);return u(g,D,k)}return nf;case"error":var j=In(e);return e.line?(j=j+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",o.reportError(jn(j,t.filePath,e.line,e.character),t)):o.reportError(new Error(j),t),nf;case"ignore":return e}return null}return Nn(e,function(t){return c(t)})}return nf}try{return c(e)}catch(l){var p=t.members.length?"."+t.members.join("."):"",h=l.message+", resolving symbol "+t.name+p+" in "+t.filePath;if(l.fileName)throw jn(h,l.fileName,l.line,l.column);throw v(h)}}var n=this,o=this,i=sf.empty,s=new Map,a=function(t,e,o){try{return r(t,e,o)}catch(i){n.reportError(i,t)}},u=this.errorRecorder?a(t,e,0):r(t,e,0);return Rn(u)?void 0:u},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),sf=function(){function t(){}return t.prototype.resolve=function(){},t.build=function(){var e=new Map;return{define:function(t,r){return e.set(t,r),this},done:function(){return e.size>0?new af(e):t.empty}}},t}();sf.missing={},sf.empty={resolve:function(){return sf.missing}};var af=function(t){function e(e){var r=t.call(this)||this;return r.bindings=e,r}return Zn(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):sf.missing},e}(sf),uf=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),cf=3,lf=function(){function t(t,e,r,n){this.host=t,this.staticSymbolCache=e,this.summaryResolver=r,this.errorRecorder=n,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e?e:(e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),r=this.getImportAs(e);return r?this.getStaticSymbol(r.filePath,r.name,t.members):null}var n=this.summaryResolver.getImportAs(t);return n||(n=this.importAs.get(t)),n},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Ye(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof mo;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache["delete"](t),this.resolvedFilePaths["delete"](t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile["delete"](t);for(var r=0,n=e;r<n.length;r++){var o=n[r];this.resolvedSymbols["delete"](o),this.importAs["delete"](o),this.symbolResourcePaths["delete"](o)}}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,r=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!r)return null;var n=r.metadata;if(n instanceof mo)return new uf(t,this.getStaticSymbol(n.filePath,n.name,e));if(!n||"class"!==n.__symbolic){for(var o=n,i=0;i<e.length&&o;i++)o=o[e[i]];return new uf(t,o)}return n.statics&&1===e.length?new uf(t,n.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new uf(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,r){return this.staticSymbolCache.get(t,e,r)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(r){r.symbol.filePath===t&&e.add(r.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var r=[],n=this.getModuleMetadata(t);if(n.metadata){var o=new Set(Object.keys(n.metadata).map(Ln)),i=n.origins||{};Object.keys(n.metadata).forEach(function(s){var a=n.metadata[s],u=Ln(s),c=e.getStaticSymbol(t,u),l=void 0;n.importAs&&(l=e.getStaticSymbol(n.importAs,u),e.recordImportAs(c,l));var p=i.hasOwnProperty(s)&&i[s];if(p){var h=e.resolveModule(p,t);h?e.symbolResourcePaths.set(c,h):e.reportError(new Error("Couldn't resolve original symbol for "+p+" from "+t))}r.push(e.createResolvedSymbol(c,t,o,a))})}if(n.exports)for(var s=function(n){if(n["export"])n["export"].forEach(function(o){var i;i="string"==typeof o?o:o.as,i=Ln(i);var s=i;"string"!=typeof o&&(s=Ln(o.name));var a=e.resolveModule(n.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,i);r.push(e.createExport(c,u))}});else{var o=a.resolveModule(n.from,t);if(o){var i=a.getSymbolsOf(o);i.forEach(function(n){var o=e.getStaticSymbol(t,n.name);r.push(e.createExport(o,n))})}}},a=this,u=0,c=n.exports;u<c.length;u++){var l=c[u];s(l)}r.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,r.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,r,n){if(this.summaryResolver.isLibraryFile(t.filePath)&&n&&"class"===n.__symbolic){var o={__symbolic:"class",arity:n.arity};return new uf(t,o)}var i=this,s=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return Zn(o,n),o.prototype.visitStringMap=function(o,s){var a=o.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,o.parameters||[]);var c=n.prototype.visitStringMap.call(this,o,s);return s.length=u,c}if("reference"!==a)return n.prototype.visitStringMap.call(this,o,s);var l=o.module,p=o.name?Ln(o.name):o.name;if(!p)return null;var h=void 0;return l?(h=i.resolveModule(l,t.filePath),h?i.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):s.indexOf(p)>=0?{__symbolic:"reference",name:p}:r.has(p)?i.getStaticSymbol(e,p):void 0},o}(Oo),a=d(n,new s,[]);return a instanceof mo?this.createExport(t,a):new uf(t,a)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new uf(t,e)},t.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var r=this.host.getMetadataFor(t);if(r){var n=-1;r.forEach(function(t){t.version>n&&(n=t.version,e=t)})}if(e||(e={__symbolic:"module",version:cf,module:t,metadata:{}}),e.version!=cf){var o=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected "+cf;this.reportError(new Error(o))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,r){var n=this.resolveModule(t,r);return n?this.getStaticSymbol(n,e):(this.reportError(new Error("Could not resolve module "+t+(r?" relative to $ {\n containingFile\n } ":""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(r){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(r,void 0,e)}return null},t}(),pf=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Ze(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var r=tr(t),n=void 0;try{n=this.host.loadSummary(r)}catch(o){throw console.error("Error loading summary file "+r),o}if(n){var i=wn(this.staticSymbolCache,n),s=i.summaries,a=i.importAs;s.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),a.forEach(function(r){e.importAs.set(r.symbol,e.staticSymbolCache.get(Xe(t),r.importAs))})}}},t}(),hf=function(){function t(t,e,r,n){this.parent=t,this.instance=e,this.className=r,this.vars=n}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),ff=function(){function t(t){this.value=t}return t}(),df=function(){function t(){}return t.prototype.debugAst=function(t){return Nr(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var r=t.value.visitExpression(this,e),n=e;null!=n;){if(n.vars.has(t.name))return n.vars.set(t.name,r),r;n=n.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(null!=t.builtin)switch(t.builtin){case Al.Super:return e.instance.__proto__;case Al.This:return e.instance;case Al.CatchError:r=mf;break;case Al.CatchStack:r=yf;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var n=e;null!=n;){if(n.vars.has(r))return n.vars.get(r);n=n.parent}throw new Error("Not declared variable "+r)},t.prototype.visitWriteKeyExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.index.visitExpression(this,e),o=t.value.visitExpression(this,e);return r[n]=o,o},t.prototype.visitWritePropExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.value.visitExpression(this,e);return r[t.name]=n,n},t.prototype.visitInvokeMethodExpr=function(t,e){var r,n=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case Il.ConcatArray:r=n.concat.apply(n,o);break;case Il.SubscribeObservable:r=n.subscribe({next:o[0]});break;case Il.Bind:r=n.bind.apply(n,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else r=n[t.name].apply(n,o);return r},t.prototype.visitInvokeFunctionExpr=function(t,e){var r=this.visitAllExpressions(t.args,e),n=t.fn;if(n instanceof Ol&&n.builtin===Al.Super)return e.instance.constructor.prototype.constructor.apply(e.instance,r),null;var o=t.fn.visitExpression(this,e);return o.apply(null,r)},t.prototype.visitReturnStmt=function(t,e){return new ff(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var r=Bn(t,e,this);return e.vars.set(t.name,r),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){var r=t.condition.visitExpression(this,e);return r?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(mf,r),n.vars.set(yf,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(){return null},t.prototype.visitInstantiateExpr=function(t,e){var r=this.visitAllExpressions(t.args,e),n=t.classExpr.visitExpression(this,e);return new(n.bind.apply(n,[void 0].concat(r)))},t.prototype.visitLiteralExpr=function(t){return t.value},t.prototype.visitExternalExpr=function(t){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){var r=t.params.map(function(t){return t.name});return Hn(r,t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var r=t.params.map(function(t){return t.name});return e.vars.set(t.name,Hn(r,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var r=this,n=function(){return t.lhs.visitExpression(r,e)},o=function(){return t.rhs.visitExpression(r,e)};switch(t.operator){case Tl.Equals:return n()==o();case Tl.Identical:return n()===o();case Tl.NotEquals:return n()!=o();case Tl.NotIdentical:return n()!==o();case Tl.And:return n()&&o();case Tl.Or:return n()||o();case Tl.Plus:return n()+o();case Tl.Minus:return n()-o();case Tl.Divide:return n()/o();case Tl.Multiply:return n()*o();case Tl.Modulo:return n()%o();case Tl.Lower:return n()<o();case Tl.LowerEquals:return n()<=o();case Tl.Bigger:return n()>o();case Tl.BiggerEquals:return n()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){var r,n=t.receiver.visitExpression(this,e);return r=n[t.name]},t.prototype.visitReadKeyExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.index.visitExpression(this,e);return r[n]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n={};return t.entries.forEach(function(t){return n[t.key]=t.value.visitExpression(r,e)}),n},t.prototype.visitCommaExpr=function(t,e){var r=this.visitAllExpressions(t.parts,e);return r[r.length-1]},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitAllStatements=function(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=n.visitStatement(this,e);if(o instanceof ff)return o}return null},t}(),mf="error",yf="stack",vf=function(t){function e(){return t.call(this,!1)||this}return Zn(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(n){return r._visitClassGetter(t,n,e)}),t.methods.forEach(function(n){return r._visitClassMethod(t,n,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("), -null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,r){r.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),r.incIndent(),e.body.length>0&&(r.println(t,"var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,r){r.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,r),r.println(t,") {"),r.incIndent(),e.body.length>0&&(r.println(t,"var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println(t,"};")},e.prototype.visitReadVarExpr=function(e,r){if(e.builtin===Al.This)r.print(e,"self");else{if(e.builtin===Al.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,r)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,r){var n=e.fn;return n instanceof Ol&&n.builtin===Al.Super?(r.currentClass.parent.visitExpression(this,r),r.print(e,".call(this"),e.args.length>0&&(r.print(e,", "),this.visitAllExpressions(e.args,r,",")),r.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,r),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Np.name+") {"),e.incIndent();var r=[Dp.set(Np.prop("stack")).toDeclStmt(null,[ep.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Il.ConcatArray:e="concat";break;case Il.SubscribeObservable:e="subscribe";break;case Il.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Vp),gf=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e}return Zn(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var r=t.value.reference,n=this._evalArgValues.indexOf(r);if(-1===n){n=this._evalArgValues.length,this._evalArgValues.push(r);var o=E(t.value)||"val";this._evalArgNames.push("jit_"+o+n)}return e.print(t,this._evalArgNames[n]),null},e}(vf),_f=function(){function t(t,e,r,n,o,i,s,a){this._injector=t,this._metadataResolver=e,this._templateParser=r,this._styleCompiler=n,this._viewCompiler=o,this._ngModuleCompiler=i,this._compilerConfig=s,this._console=a,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var r=this._compiledTemplateCache.get(t);if(!r)throw new Error("The component "+e.ɵstringify(t)+" is not yet compiled!");return r.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var r=this,n=this._loadModules(t,e),o=function(){return r._compileComponents(t,null),r._compileModule(t)};return e?new Mo(o()):new Mo(null,n.then(o))},t.prototype._compileModuleAndAllComponents=function(t,r){var n=this,o=this._loadModules(t,r),i=function(){var r=[];return n._compileComponents(t,r),new e.ModuleWithComponentFactories(n._compileModule(t),r)};return r?new Mo(i()):new Mo(null,o.then(i))},t.prototype._loadModules=function(t,e){var r=this,n=[],o=this._metadataResolver.getNgModuleMetadata(t);return o.transitiveModule.modules.forEach(function(t){n.push(r._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(n)},t.prototype._compileModule=function(t){var r=this,n=this._compiledNgModuleCache.get(t);if(!n){var o=this._metadataResolver.getNgModuleMetadata(t),i=[this._metadataResolver.getProviderMetadata(new Jo(e.Compiler,{useFactory:function(){return new wf(r,o.type.reference)}}))],s=this._ngModuleCompiler.compile(o,i);n=this._compilerConfig.useJit?zn(V(o),s.statements,[s.ngModuleFactoryVar])[0]:Fn(s.statements,[s.ngModuleFactoryVar])[0],this._compiledNgModuleCache.set(o.type.reference,n)}return n},t.prototype._compileComponents=function(t,e){var r=this,n=this._metadataResolver.getNgModuleMetadata(t),o=new Map,i=new Set;n.transitiveModule.modules.forEach(function(t){var n=r._metadataResolver.getNgModuleMetadata(t.reference);n.declaredDirectives.forEach(function(t){o.set(t.reference,n);var s=r._metadataResolver.getDirectiveMetadata(t.reference);if(s.isComponent&&(i.add(r._createCompiledTemplate(s,n)),e)){var a=r._createCompiledHostTemplate(s.type.reference,n);i.add(a),e.push(s.componentFactory)}})}),n.transitiveModule.modules.forEach(function(t){var e=r._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=r._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(r._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(r._createCompiledHostTemplate(t.componentType,e))})}),i.forEach(function(t){return r._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache["delete"](t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache["delete"](t);var e=this._compiledTemplateCache.get(t);e&&this._compiledTemplateCache["delete"](t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,r){if(!r)throw new Error("Component "+e.ɵstringify(t)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(t);if(!n){var o=this._metadataResolver.getDirectiveMetadata(t);Gn(o);var i=o.componentFactory,s=this._metadataResolver.getHostComponentType(t),a=k(s,o,e.ɵgetComponentViewDefinitionFactory(i));n=new bf(!0,o.type,a,r,[o.type]),this._compiledHostTemplateCache.set(t,n)}return n},t.prototype._createCompiledTemplate=function(t,e){var r=this._compiledTemplateCache.get(t.type.reference);return r||(Gn(t),r=new bf(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,r)),r},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var r=t.compMeta,n=new Map,o=this._styleCompiler.compileComponent(r);o.externalStylesheets.forEach(function(t){n.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(o.componentStylesheet,n);var i,s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(r,r.template.template,a,u,t.ngModule.schemas,j(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(r,l,yr(o.componentStylesheet.stylesVar),p),f=o.componentStylesheet.statements.concat(h.statements),d=r.isHost?[h.viewClassVar]:[h.viewClassVar,h.rendererTypeVar];this._compilerConfig.useJit?(y=zn(F(t.ngModule.type,t.compMeta),f,d),i=y[0],s=y[1]):(m=Fn(f,d),i=m[0],s=m[1]),t.compiled(i,s);var m,y}},t.prototype._resolveStylesCompileResult=function(t,e){var r=this;t.dependencies.forEach(function(t){var n=e.get(t.moduleUrl),o=r._resolveAndEvalStylesCompileResult(n,e);t.valuePlaceholder.reference=o})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?zn(L(t.meta,this._sharedStylesheetCount++),t.statements,[t.stylesVar])[0]:Fn(t.statements,[t.stylesVar])[0]},t}();_f.decorators=[{type:z}],_f.ctorParameters=function(){return[{type:e.Injector},{type:dl},{type:Wc},{type:Oh},{type:Hh},{type:Ep},{type:ti},{type:e.ɵConsole}]};var bf=function(){function t(t,e,r,n,o){this.isHost=t,this.compType=e,this.compMeta=r,this.ngModule=n,this.directives=o,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var r in e)this.compMeta.rendererType[r]=e[r];this.isCompiled=!0},t}(),wf=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),Cf=function(){function t(t,e,r,n){void 0===n&&(n=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=r,this._locale=n,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,r){var n=this._htmlParser.parse(t,e,!0,r);if(n.errors.length)return n.errors;var o=Pt(n.rootNodes,r,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((i=this._messages).push.apply(i,o.messages),null);var i},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var r={},n=new Ef;this._messages.forEach(function(e){var n=t.digest(e);r.hasOwnProperty(n)?(o=r[n].sources).push.apply(o,e.sources):r[n]=e;var o});var o=Object.keys(r).map(function(o){var i=t.createNameMapper(r[o]),s=r[o],a=i?n.convert(s.nodes,i):s.nodes,u=new pa(a,{},{},s.meaning,s.description,o);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(o,this._locale)},t}(),Ef=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.convert=function(t,e){var r=this;return e?t.map(function(t){return t.visit(r,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var r=this,n=e.toPublicName(t.startName),o=t.closeName?e.toPublicName(t.closeName):t.closeName,i=t.children.map(function(t){return t.visit(r,e)});return new ma(t.tag,t.attrs,n,o,i,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new ya(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new va(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(ga),Sf=function(){function t(t,e,r,n){this.host=t,this.staticSymbolResolver=e,this.messageBundle=r,this.metadataResolver=n}return t.prototype.extract=function(t){var e=this,r=An(this.staticSymbolResolver,t,this.host),n=Tn(r,this.host,this.metadataResolver),o=n.files,i=n.ngModules;return Promise.all(i.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(o.forEach(function(r){var n=[];r.directives.forEach(function(t){var r=e.metadataResolver.getDirectiveMetadata(t);r&&r.isComponent&&n.push(r)}),n.forEach(function(n){var o=n.template.template,i=Ms.fromArray(n.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(o,r.srcUrl,i))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(r,n){var o=new Hu(new Fu),i=Be(),s=new yo,a=new pf(r,s),u=new lf(r,s,a),c=new of(a,u);tf.install(c);var l=new ti({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1}),p=new ol({get:function(t){return r.loadResource(t)}},i,o,l),h=new Qp,f=new dl(l,new ll(c),new al(c),new pl(c),a,h,p,new e.ɵConsole,s,c),d=new Cf(o,[],{},n),m=new t(r,u,d,f);return{extractor:m,staticReflector:c}},t}(),xf={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},Tf=new e.InjectionToken("HtmlParser"),Pf=[{provide:e.ɵReflector,useValue:e.ɵreflector},{provide:e.ɵReflectorReader,useExisting:e.ɵReflector},{provide:Jc,useValue:xf},hl,e.ɵConsole,Ns,Us,{provide:Tf,useClass:Fu},{provide:Hu,useFactory:Wn,deps:[Tf,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)],[ti],[e.ɵConsole]]},{provide:Fu,useExisting:Hu},Wc,ol,dl,tl,Oh,Hh,Ep,{provide:ti,useValue:new ti},_f,{provide:e.Compiler,useExisting:_f},Qp,{provide:Ju,useExisting:Qp},el,al,pl,ll],Af=function(){function t(t){var r={useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,missingTranslation:e.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[r].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var r=Kn(this._defaultOptions.concat(t)),n=e.ReflectiveInjector.resolveAndCreate([Pf,{provide:ti,useFactory:function(){return new ti({useJit:r.useJit,defaultEncapsulation:r.defaultEncapsulation,missingTranslation:r.missingTranslation,enableLegacyTemplate:r.enableLegacyTemplate})},deps:[]},r.providers]);return n.get(e.Compiler)},t}();Af.decorators=[{type:z}],Af.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]};var Of=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:Af},{provide:e.PLATFORM_INITIALIZER,useValue:$n,multi:!0}]),Mf=function(){function t(){}return t.prototype.fileNameToModuleName=function(){},t.prototype.getImportAs=function(){},t.prototype.getTypeArity=function(){},t}();t.VERSION=Yn,t.TEMPLATE_TRANSFORMS=qc,t.CompilerConfig=ti,t.JitCompiler=_f,t.DirectiveResolver=al,t.PipeResolver=pl,t.NgModuleResolver=ll,t.DEFAULT_INTERPOLATION_CONFIG=Rs,t.InterpolationConfig=Ms,t.NgModuleCompiler=Ep,t.ViewCompiler=Hh,t.isSyntaxError=g,t.syntaxError=v,t.TextAst=Jn,t.BoundTextAst=to,t.AttrAst=eo,t.BoundElementPropertyAst=ro,t.BoundEventAst=no,t.ReferenceAst=oo,t.VariableAst=io,t.ElementAst=so,t.EmbeddedTemplateAst=ao,t.BoundDirectivePropertyAst=uo,t.DirectiveAst=co,t.ProviderAst=lo,t.ProviderAstType=po,t.NgContentAst=ho,t.PropertyBindingType=fo,t.templateVisitAll=r,t.CompileAnimationEntryMetadata=No,t.CompileAnimationStateMetadata=Do,t.CompileAnimationStateDeclarationMetadata=jo,t.CompileAnimationStateTransitionMetadata=Lo,t.CompileAnimationMetadata=Vo,t.CompileAnimationKeyframesSequenceMetadata=Fo,t.CompileAnimationStyleMetadata=Uo,t.CompileAnimationAnimateMetadata=Bo,t.CompileAnimationWithStepsMetadata=Ho,t.CompileAnimationSequenceMetadata=qo,t.CompileAnimationGroupMetadata=zo,t.identifierName=E,t.identifierModuleUrl=S,t.viewClassName=x,t.rendererTypeName=T,t.hostViewClassName=P,t.dirWrapperClassName=A,t.componentFactoryName=O,t.CompileSummaryKind=Wo,t.tokenName=M,t.tokenReference=R,t.CompileStylesheetMetadata=$o,t.CompileTemplateMetadata=Ko,t.CompileDirectiveMetadata=Qo,t.createHostComponentMeta=k,t.CompilePipeMetadata=Xo,t.CompileNgModuleMetadata=Zo,t.TransitiveCompileNgModuleMetadata=Yo,t.ProviderMeta=Jo,t.flatten=N,t.sourceUrl=D,t.templateSourceUrl=j,t.sharedStylesheetJitUrl=L,t.ngModuleJitUrl=V,t.templateJitUrl=F,t.createAotCompiler=Vn,t.AotCompiler=Jh,t.analyzeNgModules=xn,t.analyzeAndValidateNgModules=Tn,t.extractProgramSymbols=An,t.GeneratedFile=Xh,t.StaticReflector=of,t.StaticAndDynamicReflectionCapabilities=tf,t.StaticSymbol=mo,t.StaticSymbolCache=yo,t.ResolvedStaticSymbol=uf,t.StaticSymbolResolver=lf,t.unescapeIdentifier=Ln,t.AotSummaryResolver=pf,t.SummaryResolver=hl,t.i18nHtmlParserFactory=Wn,t.COMPILER_PROVIDERS=Pf,t.JitCompilerFactory=Af,t.platformCoreDynamic=Of,t.createUrlResolverWithoutPackagePrefix=Ue,t.createOfflineCompileUrlResolver=Be,t.DEFAULT_PACKAGE_URL_PROVIDER=tl,t.UrlResolver=el,t.getUrlScheme=He,t.ResourceLoader=Jc,t.ElementSchemaRegistry=Ju,t.Extractor=Sf,t.I18NHtmlParser=Hu,t.MessageBundle=Cf,t.Serializer=Ba,t.Xliff=au,t.Xliff2=bu,t.Xmb=Mu,t.Xtb=ju,t.DirectiveNormalizer=ol,t.ParserError=ei,t.ParseSpan=ri,t.AST=ni,t.Quote=oi,t.EmptyExpr=ii,t.ImplicitReceiver=si,t.Chain=ai,t.Conditional=ui,t.PropertyRead=ci,t.PropertyWrite=li,t.SafePropertyRead=pi,t.KeyedRead=hi,t.KeyedWrite=fi,t.BindingPipe=di,t.LiteralPrimitive=mi,t.LiteralArray=yi,t.LiteralMap=vi,t.Interpolation=gi,t.Binary=_i,t.PrefixNot=bi,t.MethodCall=wi,t.SafeMethodCall=Ci,t.FunctionCall=Ei,t.ASTWithSource=Si,t.TemplateBinding=xi,t.RecursiveAstVisitor=Ti,t.AstTransformer=Pi,t.TokenType=ks,t.Lexer=Ns,t.Token=Ds,t.EOF=js,t.isIdentifier=et,t.isQuote=it,t.SplitInterpolation=Vs,t.TemplateBindingParseResult=Fs,t.Parser=Us,t._ParseAST=Bs,t.ERROR_COLLECTOR_TOKEN=fl,t.CompileMetadataResolver=dl,t.componentModuleUrl=cr,t.Text=Ks,t.Expansion=Qs,t.ExpansionCase=Xs,t.Attribute=Zs,t.Element=Ys,t.Comment=Js,t.visitAll=lt,t.ParseTreeResult=ua,t.TreeError=aa,t.HtmlParser=Fu,t.HtmlTagDefinition=_o,t.getHtmlTagDefinition=c,t.TagContentType=vo,t.splitNsName=n,t.isNgContainer=o,t.isNgContent=i,t.isNgTemplate=s,t.getNsPrefix=a,t.mergeNsAndName=u,t.NAMED_ENTITIES=go,t.ImportResolver=Mf,t.debugOutputAstAsTypeScript=Nr,t.TypeScriptEmitter=Up,t.ParseLocation=qs,t.ParseSourceFile=zs,t.ParseSourceSpan=Gs,t.ParseErrorLevel=Ws,t.ParseError=$s,t.typeSourceSpan=ct,t.DomElementSchemaRegistry=Qp,t.CssSelector=Eo,t.SelectorMatcher=So,t.SelectorListContext=xo,t.SelectorContext=To,t.StylesCompileDependency=Th,t.StylesCompileResult=Ph,t.CompiledStylesheet=Ah,t.StyleCompiler=Oh,t.TemplateParseError=zc,t.TemplateParseResult=Gc,t.TemplateParser=Wc,t.splitClasses=Ne,t.createElementCssSelector=De,t.removeSummaryDuplicates=Le,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],8:[function(e,r,n){(function(o){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("rxjs/Observable"),e("rxjs/observable/merge"),e("rxjs/operator/share"),e("rxjs/Subject")):"function"==typeof t&&t.amd?t(["exports","rxjs/Observable","rxjs/observable/merge","rxjs/operator/share","rxjs/Subject"],i):i((o.ng=o.ng||{},o.ng.core=o.ng.core||{}),o.Rx,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx)}(this,function(t,e,r,n,i){"use strict";function s(){if(!oo){var t=no.Symbol;if(t&&t.iterator)oo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),r=0;r<e.length;++r){var n=e[r];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(oo=n)}}return oo}function a(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function u(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function c(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var r=e.indexOf("\n");return-1===r?e:e.substring(0,r)}function l(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function p(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+c(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var r=t,n=r.length-1,o=t[n];if("function"!=typeof o)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+c(o)+"'");if(n!=o.length)throw new Error("Number of annotations ("+n+") does not match number of arguments ("+o.length+") in the function: "+c(o));for(var i=[],s=0,a=r.length-1;a>s;s++){var u=[];i.push(u);var p=r[s];if(Array.isArray(p))for(var h=0;h<p.length;h++)u.push(l(p[h]));else u.push("function"==typeof p?l(p):p)}return so.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+c(t)+"'")}function h(t){var e=p(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),r=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t["extends"])throw new Error("Class definition 'extends' property must be a constructor function was: "+c(t["extends"]));e.prototype=r=Object.create(t["extends"].prototype)}for(var n in t)"extends"!==n&&"prototype"!==n&&t.hasOwnProperty(n)&&(r[n]=p(t[n],n));this&&this.annotations instanceof Array&&so.defineMetadata("annotations",this.annotations,e);var o=e.name;return o&&"constructor"!==o||(e.overriddenName="class"+io++),e}function f(t,e,r,n){function o(t){if(!so||!so.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof o)return i.call(this,t),this;var e=new o(t),r="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];r.push(e);var s=function(t){var r=so.getOwnMetadata("annotations",t)||[];return r.push(e),so.defineMetadata("annotations",r,t),t};return s.annotations=r,s.Class=h,n&&n(s),s}var i=d([e]);return r&&(o.prototype=Object.create(r.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}function d(t){return function(){for(var e=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t.forEach(function(t,n){var o=r[n];if(Array.isArray(t))e[t[0]]=void 0===o?t[1]:o;else for(var i in t)e[i]=o&&o.hasOwnProperty(i)?o[i]:t[i]})}}function m(t,e,r){function n(){function t(t,e,r){for(var n=so.getOwnMetadata("parameters",t)||[];n.length<=r;)n.push(null);return n[r]=n[r]||[],n[r].push(i),so.defineMetadata("parameters",n,t),t}for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this instanceof n)return o.apply(this,e),this;var i=new(n.bind.apply(n,[void 0].concat(e)));return t.annotation=i,t}var o=d(e);return r&&(n.prototype=Object.create(r.prototype)),n.prototype.toString=function(){return"@"+t},n.annotationCls=n,n}function y(t,e,r){function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof n)return o.apply(this,t),this;var r=new(n.bind.apply(n,[void 0].concat(t)));return function(t,e){var n=so.getOwnMetadata("propMetadata",t.constructor)||{};n[e]=n.hasOwnProperty(e)&&n[e]||[],n[e].unshift(r),so.defineMetadata("propMetadata",n,t.constructor)}}var o=d(e);return r&&(n.prototype=Object.create(r.prototype)),n.prototype.toString=function(){return"@"+t},n.annotationCls=n,n}function v(t){return null==t||t===mo.Default}function g(t){return t.__forward_ref__=g,t.toString=function(){return c(this())},t}function _(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===g?t():t}function b(t){return t[Ho]}function w(t){return t[qo]}function C(t){return t[zo]||E}function E(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t.error.apply(t,e)}function S(t,e){var r=t+" caused by: "+(e instanceof Error?e.message:e),n=Error(r);return n[qo]=e,n}function x(t){for(var e=[],r=0;r<t.length;++r){if(e.indexOf(t[r])>-1)return e.push(t[r]),e;e.push(t[r])}return e}function T(t){if(t.length>1){var e=x(t.slice().reverse()),r=e.map(function(t){return c(t.token)});return" ("+r.join(" -> ")+")"}return""}function P(t,e,r,n){var o=n?S("",n):Error();return o.addKey=A,o.keys=[e],o.injectors=[t],o.constructResolvingMessage=r,o.message=o.constructResolvingMessage(),o[qo]=n,o}function A(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function O(t,e){return P(t,e,function(){var t=c(this.keys[0].token);return"No provider for "+t+"!"+T(this.keys)})}function M(t,e){return P(t,e,function(){return"Cannot instantiate cyclic dependency!"+T(this.keys)})}function R(t,e,r,n){return P(t,n,function(){var t=c(this.keys[0].token);return w(this).message+": Error during instantiation of "+t+"!"+T(this.keys)+"."},e)}function k(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function I(t,e){for(var r=[],n=0,o=e.length;o>n;n++){var i=e[n];r.push(i&&0!=i.length?i.map(c).join(" "):"?")}return Error("Cannot resolve all parameters for '"+c(t)+"'("+r.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+c(t)+"' is decorated with Injectable.")}function N(t){return Error("Index "+t+" is out-of-bounds.")}function D(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function j(t){return"function"==typeof t}function L(t){return t?t.map(function(t){var e=t.type,r=e.annotationCls,n=t.args?t.args:[];return new(r.bind.apply(r,[void 0].concat(n)))}):[]}function V(t){var e=Object.getPrototypeOf(t.prototype),r=e?e.constructor:null;return r||Object}function F(t){var e,r;if(t.useClass){var n=_(t.useClass);e=ti.factory(n),r=G(n)}else t.useExisting?(e=function(t){return t},r=[ei.fromKey(Wo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,r=z(t.useFactory,t.deps)):(e=function(){return t.useValue},r=ri);return new oi(e,r)}function U(t){return new ni(Wo.get(t.provide),[F(t)],t.multi||!1)}function B(t){var e=q(t,[]),r=e.map(U),n=H(r,new Map);return Array.from(n.values())}function H(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=e.get(n.key.id);if(o){if(n.multiProvider!==o.multiProvider)throw D(o,n);if(n.multiProvider)for(var i=0;i<n.resolvedFactories.length;i++)o.resolvedFactories.push(n.resolvedFactories[i]);else e.set(n.key.id,n)}else{var s=void 0;s=n.multiProvider?new ni(n.key,n.resolvedFactories.slice(),n.multiProvider):n,e.set(n.key.id,s)}}return e}function q(t,e){return t.forEach(function(t){if(t instanceof Qo)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw k(t);q(t,e)}}),e}function z(t,e){if(e){var r=e.map(function(t){return[t]});return e.map(function(e){return W(t,e,r)})}return G(t)}function G(t){var e=ti.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw I(t,e);return e.map(function(r){return W(t,r,e)})}function W(t,e,r){var n=null,o=!1;if(!Array.isArray(e))return e instanceof Ro?$(e.token,o,null):$(e,o,null);for(var i=null,s=0;s<e.length;++s){var a=e[s];a instanceof Qo?n=a:a instanceof Ro?n=a.token:a instanceof ko?o=!0:a instanceof No||a instanceof Do?i=a:a instanceof Jn&&(n=a)}if(n=_(n),null!=n)return $(n,o,i);throw I(t,r)}function $(t,e,r){return new ei(Wo.get(t),e,r)}function K(t,e){for(var r=new Array(t._providers.length),n=0;n<t._providers.length;++n)r[n]=e(t.getProviderAtIndex(n));return r}function Q(t){return!!t&&"function"==typeof t.then}function X(t){return!!t&&"function"==typeof t.subscribe}function Z(){return""+Y()+Y()+Y()}function Y(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function J(){throw new Error("Runtime compiler is not loaded")}function tt(t){var e=Error("No component factory found for "+c(t)+". Did you add it to @NgModule.entryComponents?");return e[Si]=t,e}function et(){var t=no.wtf;return t&&(Pi=t.trace)?(Ai=Pi.events,!0):!1}function rt(t,e){return void 0===e&&(e=null),Ai.createScope(t,e)}function nt(t,e){return Pi.leaveScope(t,e),e}function ot(t,e){return Pi.beginTimeRange(t,e)}function it(t){Pi.endTimeRange(t)}function st(){return null}function at(t){Wi=t}function ut(){if(Ki)throw new Error("Cannot enable prod mode after platform setup.");$i=!1}function ct(){return Ki=!0,$i}function lt(t){if(zi&&!zi.destroyed&&!zi.injector.get(Qi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zi=t.get(Zi);var e=t.get(fi,null);return e&&e.forEach(function(t){return t()}),zi}function pt(t,e,r){void 0===r&&(r=[]);var n=new Jn("Platform: "+e);return function(e){void 0===e&&(e=[]);var o=dt();return(!o||o.injector.get(Qi,!1))&&(t?t(r.concat(e).concat({provide:n,useValue:!0})):lt(si.resolveAndCreate(r.concat(e).concat({provide:n,useValue:!0})))),ht(n)}}function ht(t){var e=dt();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}function ft(){zi&&!zi.destroyed&&zi.destroy()}function dt(){return zi&&!zi.destroyed?zi:null}function mt(t,e){try{var r=e();return Q(r)?r["catch"](function(e){throw t.handleError(e),e}):r}catch(n){throw t.handleError(n),n}}function yt(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)}function vt(t,e){var r=ls.get(t);if(r)throw new Error("Duplicate module registered for "+t+" - "+r.moduleType.name+" vs "+e.moduleType.name);ls.set(t,e)}function gt(t){var e=ls.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function _t(t){return t.reduce(function(t,e){var r=Array.isArray(e)?_t(e):e;return t.concat(r)},[])}function bt(t,e,r){if(!t)throw new Error("Cannot find '"+r+"' in '"+e+"'");return t}function wt(t){return t.map(function(t){return t.nativeElement})}function Ct(t,e,r){t.childNodes.forEach(function(t){t instanceof Ss&&(e(t)&&r.push(t),Ct(t,e,r))})}function Et(t,e,r){t instanceof Ss&&t.childNodes.forEach(function(t){e(t)&&r.push(t),t instanceof Ss&&Et(t,e,r)})}function St(t){return xs.get(t)||null}function xt(t){xs.set(t.nativeNode,t)}function Tt(t){xs["delete"](t.nativeNode)}function Pt(t,e){var r=At(t),n=At(e);if(r&&n)return Ot(t,e,Pt);var o=t&&("object"==typeof t||"function"==typeof t),i=e&&("object"==typeof e||"function"==typeof e);return!r&&o&&!n&&i?!0:u(t,e)}function At(t){return Rt(t)?Array.isArray(t)||!(t instanceof Map)&&s()in t:!1}function Ot(t,e,r){for(var n=t[s()](),o=e[s()]();;){var i=n.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!r(i.value,a.value))return!1}}function Mt(t,e){if(Array.isArray(t))for(var r=0;r<t.length;r++)e(t[r]);else for(var n=t[s()](),o=void 0;!(o=n.next()).done;)e(o.value)}function Rt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function kt(t,e,r){var n=t.previousIndex;if(null===n)return n;var o=0;return r&&n<r.length&&(o=r[n]),n+e+o}function It(t){return t.name||typeof t}function Nt(){return ti}function Dt(t,e){return t.nodes[e]}function jt(t,e){return t.nodes[e]}function Lt(t,e){return t.nodes[e]}function Vt(t,e){return t.nodes[e]}function Ft(t,e){return t.nodes[e]}function Ut(t,e,r,n){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+r+"'.";return n&&(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 ?"),Ht(o,t)}function Bt(t,e){return t instanceof Error||(t=new Error(t.toString())),qt(t,e),t}function Ht(t,e){ -var r=new Error(t);return qt(r,e),r}function qt(t,e){t[Ho]=e,t[zo]=e.logError.bind(e)}function zt(t){return!!b(t)}function Gt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Wt(t){var e=ea.get(t);return e||(e=c(t)+"_"+ea.size,ea.set(t,e)),e}function $t(t,e,r,n){if(n instanceof Ts){n=n.wrapped;var o=t.def.nodes[e].bindingIndex+r,i=t.oldValues[o];i instanceof Ts&&(i=i.wrapped),t.oldValues[o]=new Ts(i)}return n}function Kt(t){return{id:ra,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function Qt(t){if(t&&t.id===ra){var e=null!=t.encapsulation&&t.encapsulation!==Po.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+oa++:na}return t&&t.id===na&&(t=null),t||null}function Xt(t,e,r,n){var o=t.oldValues;return 1&t.state||!u(o[e.bindingIndex+r],n)?!0:!1}function Zt(t,e,r,n){return Xt(t,e,r,n)?(t.oldValues[e.bindingIndex+r]=n,!0):!1}function Yt(t,e,r,n){var o=t.oldValues[e.bindingIndex+r];if(1&t.state||!Pt(o,n))throw Ut(Js.createDebugContext(t,e.index),o,n,0!==(1&t.state))}function Jt(t){for(var e=t;e;)2&e.def.flags&&(e.state|=2),e=e.viewContainerParent||e.parent}function te(t,e,r,n){var o=t.def.nodes[e],i=16777216&o.flags?jt(t,e).componentView:t;return Jt(i),Js.handleEvent(t,e,r,n)}function ee(t){if(t.parent){var e=t.parent;return jt(e,t.parentNodeDef.index)}return null}function re(t){var e=t.parent;return e?t.parentNodeDef.parent:null}function ne(t,e){switch(100673535&e.flags){case 1:return jt(t,e.index).renderElement;case 2:return Dt(t,e.index).renderText}}function oe(t,e){return t?t+":"+e:e}function ie(t){return!!t.parent&&!!(16384&t.parentNodeDef.flags)}function se(t){return!(!t.parent||16384&t.parentNodeDef.flags)}function ae(t){return 1<<t%32}function ue(t){var e={},r=0,n={};return t&&t.forEach(function(t){var o=t[0],i=t[1];"number"==typeof o?(e[o]=i,r|=ae(o)):n[o]=i}),{matchedQueries:e,references:n,matchedQueryIds:r}}function ce(t,e,r){var n=r.renderParent;return n?0===(1&n.flags)||0===(16777216&n.flags)||n.element.componentRendererType&&n.element.componentRendererType.encapsulation===Po.Native?jt(t,r.renderParent.index).renderElement:void 0:e}function le(t){var e=ia.get(t);return e||(e=t(function(){return ta}),e.factory=t,ia.set(t,e)),e}function pe(t){var e=[];return he(t,0,void 0,void 0,e),e}function he(t,e,r,n,o){3===e&&(r=t.renderer.parentNode(ne(t,t.def.lastRenderRootNode))),fe(t,e,0,t.def.nodes.length-1,r,n,o)}function fe(t,e,r,n,o,i,s){for(var a=r;n>=a;a++){var u=t.def.nodes[a];7&u.flags&&me(t,u,e,o,i,s),a+=u.childCount}}function de(t,e,r,n,o,i){for(var s=t;s&&!ie(s);)s=s.parent;for(var a=s.parent,u=re(s),c=u.index+1,l=u.index+u.childCount,p=c;l>=p;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&me(a,h,r,n,o,i),p+=h.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(var p=0;p<f.length;p++)ye(t,f[p],r,n,o,i)}}function me(t,e,r,n,o,i){if(4&e.flags)de(t,e.ngContent.index,r,n,o,i);else{var s=ne(t,e);if(3===r&&16777216&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&ye(t,s,r,n,o,i),32&e.bindingFlags){var a=jt(t,e.index).componentView;ye(a,s,r,n,o,i)}}else ye(t,s,r,n,o,i);if(8388608&e.flags)for(var u=jt(t,e.index).viewContainer._embeddedViews,c=0;c<u.length;c++)he(u[c],r,n,o,i);1&e.flags&&!e.element.name&&fe(t,r,e.index+1,e.index+e.childCount,n,o,i)}}function ye(t,e,r,n,o,i){var s=t.renderer;switch(r){case 1:s.appendChild(n,e);break;case 2:s.insertBefore(n,e,o);break;case 3:s.removeChild(n,e);break;case 0:i.push(e)}}function ve(t){if(":"===t[0]){var e=t.match(sa);return[e[1],e[2]]}return["",t]}function ge(t){for(var e=0,r=0;r<t.length;r++)e|=t[r].flags;return e}function _e(t,e){for(var r="",n=0;2*t>n;n+=2)r=r+e[n]+we(e[n+1]);return r+e[2*t]}function be(t,e,r,n,o,i,s,a,u,c,l,p,h,f,d,m,y,v,g,_){switch(t){case 1:return e+we(r)+n;case 2:return e+we(r)+n+we(o)+i;case 3:return e+we(r)+n+we(o)+i+we(s)+a;case 4:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c;case 5:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p;case 6:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f;case 7:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+m;case 8:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+m+we(y)+v;case 9:return e+we(r)+n+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+m+we(y)+v+we(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function we(t){return null!=t?t.toString():""}function Ce(t,e,r,n,o,i){t|=1;var s=ue(e),a=s.matchedQueries,u=s.references,c=s.matchedQueryIds,l=i?le(i):null;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:c,references:u,ngContentIndex:r,childCount:n,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:l,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||ta},provider:null,text:null,query:null,ngContent:null}}function Ee(t,e,r,n,o,i,s,a,u,c,l){void 0===i&&(i=[]),u||(u=ta);var p=ue(e),h=p.matchedQueries,f=p.references,d=p.matchedQueryIds,m=null,y=null;o&&(I=ve(o),m=I[0],y=I[1]),s=s||[];for(var v=new Array(s.length),g=0;g<s.length;g++){var _=s[g],b=_[0],w=_[1],C=_[2],E=ve(w),S=E[0],x=E[1],T=void 0,P=void 0;switch(15&b){case 4:P=C;break;case 1:case 8:T=C}v[g]={flags:b,ns:S,name:x,nonMinifiedName:x,securityContext:T,suffix:P}}a=a||[];for(var A=new Array(a.length),g=0;g<a.length;g++){var O=a[g],M=O[0],R=O[1];A[g]={type:0,target:M,eventName:R,propName:null}}i=i||[];var k=i.map(function(t){var e=t[0],r=t[1],n=ve(e),o=n[0],i=n[1];return[o,i,r]});return l=Qt(l),c&&(t|=16777216),t|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:d,references:f,ngContentIndex:r,childCount:n,bindings:v,bindingFlags:ge(v),outputs:A,element:{ns:m,name:y,attrs:k,template:null,componentProvider:null,componentView:c||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:u||ta},provider:null,text:null,query:null,ngContent:null};var I}function Se(t,e,r){var n,o=r.element,i=t.root.selectorOrNode,s=t.renderer;if(t.parent||!i){n=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=ce(t,e,r);a&&s.appendChild(a,n)}else n=s.selectRootElement(i);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=o.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(n,p,h,l)}return n}function xe(t,e,r,n){for(var o=0;o<r.outputs.length;o++){var i=r.outputs[o],s=Te(t,r.index,oe(i.target,i.eventName)),a=i.target,u=t;"component"===i.target&&(a=null,u=e);var c=u.renderer.listen(a||n,i.eventName,s);t.disposables[r.outputIndex+o]=c}}function Te(t,e,r){return function(n){return te(t,e,r,n)}}function Pe(t,e,r,n,o,i,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Oe(t,e,0,r)&&(f=!0),h>1&&Oe(t,e,1,n)&&(f=!0),h>2&&Oe(t,e,2,o)&&(f=!0),h>3&&Oe(t,e,3,i)&&(f=!0),h>4&&Oe(t,e,4,s)&&(f=!0),h>5&&Oe(t,e,5,a)&&(f=!0),h>6&&Oe(t,e,6,u)&&(f=!0),h>7&&Oe(t,e,7,c)&&(f=!0),h>8&&Oe(t,e,8,l)&&(f=!0),h>9&&Oe(t,e,9,p)&&(f=!0),f}function Ae(t,e,r){for(var n=!1,o=0;o<r.length;o++)Oe(t,e,o,r[o])&&(n=!0);return n}function Oe(t,e,r,n){if(!Zt(t,e,r,n))return!1;var o=e.bindings[r],i=jt(t,e.index),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:Me(t,o,s,o.ns,a,n);break;case 2:Re(t,s,a,n);break;case 4:ke(t,o,s,a,n);break;case 8:var u=16777216&e.flags&&32&o.flags?i.componentView:t;Ie(u,o,s,a,n)}return!0}function Me(t,e,r,n,o,i){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=t.renderer;null!=i?u.setAttribute(r,o,a,n):u.removeAttribute(r,o,n)}function Re(t,e,r,n){var o=t.renderer;n?o.addClass(e,r):o.removeClass(e,r)}function ke(t,e,r,n,o){var i=t.root.sanitizer.sanitize(Xs.STYLE,o);if(null!=i){i=i.toString();var s=e.suffix;null!=s&&(i+=s)}else i=null;var a=t.renderer;null!=i?a.setStyle(r,n,i):a.removeStyle(r,n)}function Ie(t,e,r,n,o){var i=e.securityContext,s=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(r,n,s)}function Ne(t,e){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:4,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function De(t,e,r){var n=ce(t,e,r);if(n){var o=r.ngContent.index;de(t,o,1,n,null,void 0)}}function je(t,e,r,n){var o=e.viewContainer._embeddedViews;(null===r||void 0===r)&&(r=o.length),n.viewContainerParent=t,Be(o,r,n);var i=ee(n);if(i&&i!==e){var s=i.template._projectedViews;s||(s=i.template._projectedViews=[]),s.push(n)}Js.dirtyParentQueries(n);var a=r>0?o[r-1]:null;Fe(e,a,n)}function Le(t,e){var r=t.viewContainer._embeddedViews;if((null==e||e>=r.length)&&(e=r.length-1),0>e)return null;var n=r[e];n.viewContainerParent=null,He(r,e);var o=ee(n);if(o&&o!==t){var i=o.template._projectedViews;He(i,i.indexOf(n))}return Js.dirtyParentQueries(n),Ue(n),n}function Ve(t,e,r){var n=t.viewContainer._embeddedViews,o=n[e];He(n,e),null==r&&(r=n.length),Be(n,r,o),Js.dirtyParentQueries(o),Ue(o);var i=r>0?n[r-1]:null;return Fe(t,i,o),o}function Fe(t,e,r){var n=e?ne(e,e.def.lastRenderRootNode):t.renderElement,o=r.renderer.parentNode(n),i=r.renderer.nextSibling(n);he(r,2,o,i,void 0)}function Ue(t){he(t,3,null,null,void 0)}function Be(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function He(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function qe(t,e,r,n,o,i){return new la(t,e,r,n,o,i)}function ze(t){return t.viewDefFactory}function Ge(t,e,r){return new ha(t,e,r)}function We(t){return new fa(t)}function $e(t,e){return new da(t,e)}function Ke(t,e){return new ma(t,e)}function Qe(t,e){var r=t.def.nodes[e];if(1&r.flags){var n=jt(t,r.index);return r.element.template?n.template:n.renderElement}if(2&r.flags)return Dt(t,r.index).renderText;if(10120&r.flags)return Lt(t,r.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Xe(t){return new ya(t.renderer)}function Ze(t,e,r,n,o,i,s){var a=[];if(i)for(var u in i){var c=i[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=8192,tr(t,e,r,n,n,o,a,h)}function Ye(t,e,r){return t|=8,tr(t,null,0,e,e,r)}function Je(t,e,r,n,o){return tr(t,e,0,r,n,o)}function tr(t,e,r,n,o,i,s,a){var u=ue(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=i.map(function(t){var e,r;return Array.isArray(t)?(r=t[0],e=t[1]):(r=0,e=t),{flags:r,token:e,tokenKey:Wt(e)}});return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:ge(s),outputs:a,element:null,provider:{token:n,tokenKey:Wt(n),value:o,deps:h},text:null,query:null,ngContent:null}}function er(t,e){return 2048&e.flags?Sa:ar(t,e)}function rr(t,e){for(var r=t;r.parent&&!ie(r);)r=r.parent;var n=!0;return ur(r.parent,re(r),n,e.provider.value,e.provider.deps)}function nr(t,e){var r=(16384&e.flags)>0,n=ur(t,e.parent,r,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o<e.outputs.length;o++){var i=e.outputs[o],s=n[i.propName].subscribe(or(t,e.parent.index,i.eventName));t.disposables[e.outputIndex+o]=s.unsubscribe.bind(s)}return n}function or(t,e,r){return function(n){return te(t,e,r,n)}}function ir(t,e,r,n,o,i,s,a,u,c,l,p){var h=Lt(t,e.index),f=h.instance,d=!1,m=void 0,y=e.bindings.length;return y>0&&Xt(t,e,0,r)&&(d=!0,m=hr(t,h,e,0,r,m)),y>1&&Xt(t,e,1,n)&&(d=!0,m=hr(t,h,e,1,n,m)),y>2&&Xt(t,e,2,o)&&(d=!0,m=hr(t,h,e,2,o,m)),y>3&&Xt(t,e,3,i)&&(d=!0,m=hr(t,h,e,3,i,m)),y>4&&Xt(t,e,4,s)&&(d=!0,m=hr(t,h,e,4,s,m)),y>5&&Xt(t,e,5,a)&&(d=!0,m=hr(t,h,e,5,a,m)),y>6&&Xt(t,e,6,u)&&(d=!0,m=hr(t,h,e,6,u,m)),y>7&&Xt(t,e,7,c)&&(d=!0,m=hr(t,h,e,7,c,m)),y>8&&Xt(t,e,8,l)&&(d=!0,m=hr(t,h,e,8,l,m)),y>9&&Xt(t,e,9,p)&&(d=!0,m=hr(t,h,e,9,p,m)),m&&f.ngOnChanges(m),1&t.state&&32768&e.flags&&f.ngOnInit(),131072&e.flags&&f.ngDoCheck(),d}function sr(t,e,r){for(var n=Lt(t,e.index),o=n.instance,i=!1,s=void 0,a=0;a<r.length;a++)Xt(t,e,a,r[a])&&(i=!0,s=hr(t,n,e,a,r[a],s));return s&&o.ngOnChanges(s),1&t.state&&32768&e.flags&&o.ngOnInit(),131072&e.flags&&o.ngDoCheck(),i}function ar(t,e){var r,n=(4096&e.flags)>0,o=e.provider;switch(100673535&e.flags){case 256:r=ur(t,e.parent,n,o.value,o.deps);break;case 512:r=cr(t,e.parent,n,o.value,o.deps);break;case 1024:r=lr(t,e.parent,n,o.deps[0]);break;case 128:r=o.value}return r}function ur(t,e,r,n,o){var i,s=o.length;switch(s){case 0:i=new n;break;case 1:i=new n(lr(t,e,r,o[0]));break;case 2:i=new n(lr(t,e,r,o[0]),lr(t,e,r,o[1]));break;case 3:i=new n(lr(t,e,r,o[0]),lr(t,e,r,o[1]),lr(t,e,r,o[2]));break;default:for(var a=new Array(s),u=0;s>u;u++)a[u]=lr(t,e,r,o[u]);i=new(n.bind.apply(n,[void 0].concat(a)))}return i}function cr(t,e,r,n,o){var i,s=o.length;switch(s){case 0:i=n();break;case 1:i=n(lr(t,e,r,o[0]));break;case 2:i=n(lr(t,e,r,o[0]),lr(t,e,r,o[1]));break;case 3:i=n(lr(t,e,r,o[0]),lr(t,e,r,o[1]),lr(t,e,r,o[2]));break;default:for(var a=Array(s),u=0;s>u;u++)a[u]=lr(t,e,r,o[u]);i=n.apply(void 0,a)}return i}function lr(t,e,r,n,o){if(void 0===o&&(o=Uo.THROW_IF_NOT_FOUND),8&n.flags)return n.token;var i=t;2&n.flags&&(o=null);var s=n.tokenKey;for(e&&1&n.flags&&(r=!1,e=e.parent);t;){if(e)switch(s){case va:var a=pr(t,e,r);return Xe(a);case ga:var a=pr(t,e,r);return a.renderer;case _a:return new us(jt(t,e.index).renderElement);case ba:return jt(t,e.index).viewContainer;case wa:if(e.element.template)return jt(t,e.index).template;break;case Ca:var u=pr(t,e,r);return We(u);case Ea:return Ke(t,e);default:var c=(r?e.element.allProviders:e.element.publicProviders)[s];if(c){var l=Lt(t,c.index);return l.instance===Sa&&(l.instance=ar(t,c)),l.instance}}r=ie(t),e=re(t),t=t.parent}var p=i.root.injector.get(n.token,xa);return p!==xa||o===xa?p:i.root.ngModule.injector.get(n.token,o)}function pr(t,e,r){var n;if(r)n=jt(t,e.index).componentView;else for(n=t;n.parent&&!ie(n);)n=n.parent;return n}function hr(t,e,r,n,o,i){if(16384&r.flags){var s=jt(t,r.parent.index).componentView;2&s.def.flags&&(s.state|=2)}var a=r.bindings[n],u=a.name;if(e.instance[u]=o,262144&r.flags){i=i||{};var c=t.oldValues[r.bindingIndex+n];c instanceof Ts&&(c=c.wrapped);var l=r.bindings[n];i[l.nonMinifiedName]=new As(c,o,0!==(1&t.state))}return t.oldValues[r.bindingIndex+n]=o,i}function fr(t,e){if(t.def.nodeFlags&e)for(var r=t.def.nodes,n=0;n<r.length;n++){var o=r[n],i=o.parent;for(!i&&o.flags&e&&mr(t,n,o.flags&e),0===(o.childFlags&e)&&(n+=o.childCount);i&&1&i.flags&&n===i.index+i.childCount;)i.directChildFlags&e&&dr(t,i,e),i=i.parent}}function dr(t,e,r){for(var n=e.index+1;n<=e.index+e.childCount;n++){var o=t.def.nodes[n];o.flags&r&&mr(t,n,o.flags&r),n+=o.childCount}}function mr(t,e,r){var n=Lt(t,e).instance;n!==Sa&&(Js.setCurrentNode(t,e),524288&r&&n.ngAfterContentInit(),1048576&r&&n.ngAfterContentChecked(),2097152&r&&n.ngAfterViewInit(),4194304&r&&n.ngAfterViewChecked(),65536&r&&n.ngOnDestroy())}function yr(t){return _r(64,new Array(t+1))}function vr(t){return _r(16,new Array(t))}function gr(t){return _r(32,t)}function _r(t,e){for(var r=new Array(e.length),n=0;n<e.length;n++){var o=e[n];r[n]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ge(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function br(){return{value:void 0}}function wr(t,e,r,n,o,i,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Zt(t,e,0,r)&&(f=!0),d>1&&Zt(t,e,1,n)&&(f=!0),d>2&&Zt(t,e,2,o)&&(f=!0),d>3&&Zt(t,e,3,i)&&(f=!0),d>4&&Zt(t,e,4,s)&&(f=!0),d>5&&Zt(t,e,5,a)&&(f=!0),d>6&&Zt(t,e,6,u)&&(f=!0),d>7&&Zt(t,e,7,c)&&(f=!0),d>8&&Zt(t,e,8,l)&&(f=!0),d>9&&Zt(t,e,9,p)&&(f=!0),f){var m=Vt(t,e.index),y=void 0;switch(100673535&e.flags){case 16:y=new Array(h.length),d>0&&(y[0]=r),d>1&&(y[1]=n),d>2&&(y[2]=o),d>3&&(y[3]=i),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 32:y={},d>0&&(y[h[0].name]=r),d>1&&(y[h[1].name]=n),d>2&&(y[h[2].name]=o),d>3&&(y[h[3].name]=i),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 64:var v=r;switch(d){case 1:y=v.transform(r);break;case 2:y=v.transform(n);break;case 3:y=v.transform(n,o);break;case 4:y=v.transform(n,o,i);break;case 5:y=v.transform(n,o,i,s);break;case 6:y=v.transform(n,o,i,s,a);break;case 7:y=v.transform(n,o,i,s,a,u);break;case 8:y=v.transform(n,o,i,s,a,u,c);break;case 9:y=v.transform(n,o,i,s,a,u,c,l);break;case 10:y=v.transform(n,o,i,s,a,u,c,l,p)}}m.value=y}return f}function Cr(t,e,r){for(var n=e.bindings,o=!1,i=0;i<r.length;i++)Zt(t,e,i,r[i])&&(o=!0);if(o){var s=Vt(t,e.index),a=void 0;switch(100673535&e.flags){case 16:a=r;break;case 32:a={};for(var i=0;i<r.length;i++)a[n[i].name]=r[i];break;case 64:var u=r[0],c=r.slice(1);a=u.transform.apply(u,c)}s.value=a}return o}function Er(t,e,r){var n=[];for(var o in r){var i=r[o];n.push({propName:o,bindingType:i})}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:ae(e),bindings:n},ngContent:null}}function Sr(){return new ps}function xr(t){for(var e=t.def.nodeMatchedQueries;t.parent&&se(t);){var r=t.parentNodeDef;t=t.parent;for(var n=r.index+r.childCount,o=0;n>=o;o++){var i=t.def.nodes[o];33554432&i.flags&&268435456&i.flags&&(i.query.filterId&e)===i.query.filterId&&Ft(t,o).setDirty(),!(1&i.flags&&o+i.childCount<r.index)&&33554432&i.childFlags&&268435456&i.childFlags||(o+=i.childCount)}}if(67108864&t.def.nodeFlags)for(var o=0;o<t.def.nodes.length;o++){var i=t.def.nodes[o];67108864&i.flags&&268435456&i.flags&&Ft(t,o).setDirty(),o+=i.childCount}}function Tr(t,e){var r=Ft(t,e.index);if(r.dirty){var n,o=void 0;if(33554432&e.flags){var i=e.parent.parent;o=Pr(t,i.index,i.index+i.childCount,e.query,[]),n=Lt(t,e.parent.index).instance}else 67108864&e.flags&&(o=Pr(t,0,t.def.nodes.length-1,e.query,[]),n=t.component);r.reset(o);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=r.first;break;case 1:l=r,a=!0}n[c.propName]=l}a&&r.notifyOnChanges()}}function Pr(t,e,r,n,o){for(var i=e;r>=i;i++){var s=t.def.nodes[i],a=s.matchedQueries[n.id];if(null!=a&&o.push(Ar(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&n.filterId)===n.filterId){var u=jt(t,i);if(8388608&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=ee(p);h&&h===u&&Pr(p,0,p.def.nodes.length-1,n,o)}var f=u.template._projectedViews;if(f)for(var l=0;l<f.length;l++){var d=f[l];Pr(d,0,d.def.nodes.length-1,n,o)}}(s.childMatchedQueries&n.filterId)!==n.filterId&&(i+=s.childCount)}return o}function Ar(t,e,r){if(null!=r){var n=void 0;switch(r){case 1:n=jt(t,e.index).renderElement;break;case 0:n=new us(jt(t,e.index).renderElement);break;case 2:n=jt(t,e.index).template;break;case 3:n=jt(t,e.index).viewContainer;break;case 4:n=Lt(t,e.index).instance}return n}}function Or(t,e){for(var r=new Array(e.length-1),n=1;n<e.length;n++)r[n-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[n]};var o=2;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:o,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:ge(r),outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function Mr(t,e,r){var n,o=t.renderer;n=o.createText(r.text.prefix);var i=ce(t,e,r);return i&&o.appendChild(i,n),{renderText:n}}function Rr(t,e,r,n,o,i,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Zt(t,e,0,r)&&(h=!0),d>1&&Zt(t,e,1,n)&&(h=!0),d>2&&Zt(t,e,2,o)&&(h=!0),d>3&&Zt(t,e,3,i)&&(h=!0),d>4&&Zt(t,e,4,s)&&(h=!0),d>5&&Zt(t,e,5,a)&&(h=!0),d>6&&Zt(t,e,6,u)&&(h=!0),d>7&&Zt(t,e,7,c)&&(h=!0),d>8&&Zt(t,e,8,l)&&(h=!0),d>9&&Zt(t,e,9,p)&&(h=!0),h){var m=e.text.prefix;d>0&&(m+=Ir(r,f[0])),d>1&&(m+=Ir(n,f[1])),d>2&&(m+=Ir(o,f[2])),d>3&&(m+=Ir(i,f[3])),d>4&&(m+=Ir(s,f[4])),d>5&&(m+=Ir(a,f[5])),d>6&&(m+=Ir(u,f[6])),d>7&&(m+=Ir(c,f[7])),d>8&&(m+=Ir(l,f[8])),d>9&&(m+=Ir(p,f[9]));var y=Dt(t,e.index).renderText;t.renderer.setValue(y,m)}return h}function kr(t,e,r){for(var n=e.bindings,o=!1,i=0;i<r.length;i++)Zt(t,e,i,r[i])&&(o=!0);if(o){for(var s="",i=0;i<r.length;i++)s+=Ir(r[i],n[i]);s=e.text.prefix+s;var a=Dt(t,e.index).renderText;t.renderer.setValue(a,s)}return o}function Ir(t,e){var r=null!=t?t.toString():"";return r+e.suffix}function Nr(t,e,r,n){for(var o=0,i=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,f=0;f<e.length;f++){for(;c&&f>c.index+c.childCount;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var m=e[f];m.index=f,m.parent=c,m.bindingIndex=o,m.outputIndex=i;var y=void 0;if(y=c&&1&c.flags&&!c.element.name?c.renderParent:c,m.renderParent=y,m.element){var v=m.element;v.publicProviders=c?c.element.publicProviders:Object.create(null),v.allProviders=v.publicProviders,l=!1,p=!1}if(Dr(c,m,e.length),s|=m.flags,u|=m.matchedQueryIds,m.element&&m.element.template&&(u|=m.element.template.nodeMatchedQueries),c?(c.childFlags|=m.flags,c.directChildFlags|=m.flags,c.childMatchedQueries|=m.matchedQueryIds,m.element&&m.element.template&&(c.childMatchedQueries|=m.element.template.nodeMatchedQueries)):a|=m.flags,o+=m.bindings.length,i+=m.outputs.length,!y&&3&m.flags&&(h=m),10112&m.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var g=0!==(4096&m.flags),_=0!==(16384&m.flags);!g||_?c.element.publicProviders[m.provider.tokenKey]=m:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[m.provider.tokenKey]=m),_&&(c.element.componentProvider=m)}m.childCount&&(c=m)}for(;c;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var b=function(t,r,n,o){return e[r].element.handleEvent(t,n,o)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:r||ta,updateRenderer:n||ta,handleEvent:b||ta,bindingCount:o,outputCount:i,lastRenderRootNode:h}}function Dr(t,e,r){var n=e.element&&e.element.template;if(n){if(!n.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(n.lastRenderRootNode&&8388608&n.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(10112&e.flags){var o=t?t.flags:0;if(0===(1&o))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!")}if(e.query){if(33554432&e.flags&&(!t||0===(8192&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.index+"!");if(67108864&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var i=t?t.index+t.childCount:r-1;if(e.index<=i&&e.index+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function jr(t,e,r){var n=Vr(t.root,t.renderer,t,e,e.element.template);return Fr(n,t.component,r),Ur(n),n}function Lr(t,e,r){var n=Vr(t,t.renderer,null,null,e);return Fr(n,r,r),Ur(n),n}function Vr(t,e,r,n,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null,a={def:o,parent:r,viewContainerParent:null,parentNodeDef:n,context:null,component:null,nodes:i,state:3,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s};return a}function Fr(t,e,r){t.component=e,t.context=r}function Ur(t){var e;if(ie(t)){var r=t.parentNodeDef;e=jt(t.parent,r.parent.index).renderElement}for(var n=t.def,o=t.nodes,i=0;i<n.nodes.length;i++){var s=n.nodes[i];Js.setCurrentNode(t,i);var a=void 0;switch(100673535&s.flags){case 1:var u=Se(t,e,s),c=void 0;if(16777216&s.flags){var l=le(s.element.componentView),p=s.element.componentRendererType,h=void 0;h=p?t.root.rendererFactory.createRenderer(u,p):t.root.renderer,c=Vr(t.root,h,t,s.element.componentProvider,l)}xe(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?$e(t,s):void 0},8388608&s.flags&&(a.viewContainer=Ge(t,s,a));break;case 2:a=Mr(t,e,s);break;case 256:case 512:case 1024:case 128:var f=er(t,s);a={instance:f};break;case 8:var f=rr(t,s);a={instance:f};break;case 8192:var f=nr(t,s);if(a={instance:f},16384&s.flags){var d=jt(t,s.parent.index).componentView;Fr(d,f,f)}break;case 16:case 32:case 64:a=br(t,s);break;case 33554432:case 67108864:a=Sr();break;case 4:De(t,e,s),a=void 0}o[i]=a}Yr(t,Ta.CreateViewNodes),en(t,100663296,134217728,0)}function Br(t){Js.updateDirectives(t,1),Jr(t,Ta.CheckNoChanges),Js.updateRenderer(t,1),Yr(t,Ta.CheckNoChanges)}function Hr(t){Js.updateDirectives(t,0),Jr(t,Ta.CheckAndUpdate),en(t,33554432,268435456,0),fr(t,1048576|(1&t.state?524288:0)),Js.updateRenderer(t,0),Yr(t,Ta.CheckAndUpdate),en(t,67108864,268435456,0),fr(t,4194304|(1&t.state?2097152:0)),2&t.def.flags&&(t.state&=-3),t.state&=-2}function qr(t,e,r,n,o,i,s,a,u,c,l,p,h){return 0===r?zr(t,e,n,o,i,s,a,u,c,l,p,h):Gr(t,e,n)}function zr(t,e,r,n,o,i,s,a,u,c,l,p){var h=!1;switch(100673535&e.flags){case 1:h=Pe(t,e,r,n,o,i,s,a,u,c,l,p);break;case 2:h=Rr(t,e,r,n,o,i,s,a,u,c,l,p);break;case 8192:h=ir(t,e,r,n,o,i,s,a,u,c,l,p);break;case 16:case 32:case 64:h=wr(t,e,r,n,o,i,s,a,u,c,l,p)}return h}function Gr(t,e,r){var n=!1;switch(100673535&e.flags){case 1:n=Ae(t,e,r);break;case 2:n=kr(t,e,r);break;case 8192:n=sr(t,e,r);break;case 16:case 32:case 64:n=Cr(t,e,r)}if(n)for(var o=e.bindings.length,i=e.bindingIndex,s=t.oldValues,a=0;o>a;a++)s[i+a]=r[a];return n}function Wr(t,e,r,n,o,i,s,a,u,c,l,p,h){return 0===r?$r(t,e,n,o,i,s,a,u,c,l,p,h):Kr(t,e,n),!1}function $r(t,e,r,n,o,i,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Yt(t,e,0,r),h>1&&Yt(t,e,1,n),h>2&&Yt(t,e,2,o),h>3&&Yt(t,e,3,i),h>4&&Yt(t,e,4,s),h>5&&Yt(t,e,5,a),h>6&&Yt(t,e,6,u),h>7&&Yt(t,e,7,c),h>8&&Yt(t,e,8,l),h>9&&Yt(t,e,9,p)}function Kr(t,e,r){for(var n=0;n<r.length;n++)Yt(t,e,n,r[n])}function Qr(t,e){var r=Ft(t,e.index);if(r.dirty)throw Ut(Js.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!==(1&t.state))}function Xr(t){if(!(8&t.state)){if(Jr(t,Ta.Destroy),Yr(t,Ta.Destroy),fr(t,65536),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();t.renderer.destroyNode&&Zr(t),ie(t)&&t.renderer.destroy(),t.state|=8}}function Zr(t){for(var e=t.def.nodes.length,r=0;e>r;r++){var n=t.def.nodes[r];1&n.flags?t.renderer.destroyNode(jt(t,r).renderElement):2&n.flags&&t.renderer.destroyNode(Dt(t,r).renderText)}}function Yr(t,e){var r=t.def;if(16777216&r.nodeFlags)for(var n=0;n<r.nodes.length;n++){var o=r.nodes[n];16777216&o.flags?tn(jt(t,n).componentView,e):0===(16777216&o.childFlags)&&(n+=o.childCount)}}function Jr(t,e){var r=t.def;if(8388608&r.nodeFlags)for(var n=0;n<r.nodes.length;n++){var o=r.nodes[n];if(8388608&o.flags)for(var i=jt(t,n).viewContainer._embeddedViews,s=0;s<i.length;s++)tn(i[s],e);else 0===(8388608&o.childFlags)&&(n+=o.childCount)}}function tn(t,e){var r=t.state;switch(e){case Ta.CheckNoChanges:2&r&&0===(12&r)&&Br(t);break;case Ta.CheckAndUpdate:2&r&&0===(12&r)&&Hr(t);break;case Ta.Destroy:Xr(t);break;case Ta.CreateViewNodes:Ur(t)}}function en(t,e,r,n){if(t.def.nodeFlags&e&&t.def.nodeFlags&r)for(var o=t.def.nodes.length,i=0;o>i;i++){var s=t.def.nodes[i];if(s.flags&e&&s.flags&r)switch(Js.setCurrentNode(t,s.index),n){case 0:Tr(t,s);break;case 1:Qr(t,s)}s.childFlags&e&&s.childFlags&r||(i+=s.childCount)}}function rn(){if(!Pa){Pa=!0;var t=ct()?on():nn();Js.setCurrentNode=t.setCurrentNode,Js.createRootView=t.createRootView,Js.createEmbeddedView=t.createEmbeddedView,Js.checkAndUpdateView=t.checkAndUpdateView,Js.checkNoChangesView=t.checkNoChangesView,Js.destroyView=t.destroyView,Js.resolveDep=lr,Js.createDebugContext=t.createDebugContext,Js.handleEvent=t.handleEvent,Js.updateDirectives=t.updateDirectives,Js.updateRenderer=t.updateRenderer,Js.dirtyParentQueries=xr}}function nn(){return{setCurrentNode:function(){},createRootView:sn,createEmbeddedView:jr,checkAndUpdateView:Hr,checkNoChangesView:Br,destroyView:Xr,createDebugContext:function(t,e){return new Ia(t,e)},handleEvent:function(t,e,r,n){return t.def.handleEvent(t,e,r,n)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?cn:ln,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?cn:ln,t)}}}function on(){return{setCurrentNode:mn,createRootView:an,createEmbeddedView:pn,checkAndUpdateView:hn,checkNoChangesView:fn,destroyView:dn,createDebugContext:function(t,e){return new Ia(t,e)},handleEvent:yn,updateDirectives:vn,updateRenderer:gn}}function sn(t,e,r,n,o,i){var s=o.injector.get(is);return Lr(un(t,o,s,e,r),n,i)}function an(t,e,r,n,o,i){var s=o.injector.get(is),a=un(t,o,new Na(s),e,r);return On(Aa.create,Lr,null,[a,n,i])}function un(t,e,r,n,o){var i=e.injector.get(Zs),s=r.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:n,selectorOrNode:o,sanitizer:i,rendererFactory:r,renderer:s}}function cn(t,e,r,n,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return qr(t,f,r,n,o,i,s,a,u,c,l,p,h),112&f.flags?Vt(t,e).value:void 0}function ln(t,e,r,n,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Wr(t,f,r,n,o,i,s,a,u,c,l,p,h),112&f.flags?Vt(t,e).value:void 0}function pn(t,e,r){return On(Aa.create,jr,null,[t,e,r])}function hn(t){return On(Aa.detectChanges,Hr,null,[t])}function fn(t){return On(Aa.checkNoChanges,Br,null,[t])}function dn(t){return On(Aa.destroy,Xr,null,[t])}function mn(t,e){Ma=t,Ra=e}function yn(t,e,r,n){return mn(t,e),On(Aa.handleEvent,t.def.handleEvent,null,[t,e,r,n])}function vn(t,e){function r(t,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[r];return 0===e?_n(t,s,n,o):bn(t,s,n,o),8192&s.flags&&mn(t,Sn(t,r)),112&s.flags?Vt(t,s.index).value:void 0}if(8&t.state)throw Gt(Aa[Oa]);return mn(t,Sn(t,0)),t.def.updateDirectives(r,t)}function gn(t,e){function r(t,r,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[r];return 0===e?_n(t,s,n,o):bn(t,s,n,o),3&s.flags&&mn(t,xn(t,r)),112&s.flags?Vt(t,s.index).value:void 0}if(8&t.state)throw Gt(Aa[Oa]);return mn(t,xn(t,0)),t.def.updateRenderer(r,t)}function _n(t,e,r,n){var o=qr.apply(void 0,[t,e,r].concat(n));if(o){var i=1===r?n[0]:n;if(8192&e.flags){for(var s={},a=0;a<e.bindings.length;a++){var u=e.bindings[a],c=i[a];8&u.flags&&(s[wn(u.nonMinifiedName)]=En(c))}var l=e.parent,p=jt(t,l.index).renderElement;if(l.element.name)for(var h in s){var c=s[h];null!=c?t.renderer.setAttribute(p,h,c):t.renderer.removeAttribute(p,h)}else t.renderer.setValue(p,"bindings="+JSON.stringify(s,null,2))}}}function bn(t,e,r,n){Wr.apply(void 0,[t,e,r].concat(n))}function wn(t){return t=Cn(t.replace(/[$@]/g,"_")),"ng-reflect-"+t}function Cn(t){return t.replace(ka,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function En(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Sn(t,e){for(var r=e;r<t.def.nodes.length;r++){var n=t.def.nodes[r];if(8192&n.flags&&n.bindings&&n.bindings.length)return r}return null}function xn(t,e){for(var r=e;r<t.def.nodes.length;r++){ -var n=t.def.nodes[r];if(3&n.flags&&n.bindings&&n.bindings.length)return r}return null}function Tn(t,e){for(var r=-1,n=0;e>=n;n++){var o=t.nodes[n];3&o.flags&&r++}return r}function Pn(t){for(;t&&!ie(t);)t=t.parent;return t.parent?jt(t.parent,re(t).index):null}function An(t,e,r){for(var n in e.references)r[n]=Ar(t,e,e.references[n])}function On(t,e,r,n){var o=Oa,i=Ma,s=Ra;try{Oa=t;var a=e.apply(r,n);return Ma=i,Ra=s,Oa=o,a}catch(u){if(zt(u)||!Ma)throw u;throw Ma.state|=4,Bt(u,Mn())}}function Mn(){return Ma?new Ia(Ma,Ra):null}function Rn(){return Hs}function kn(){return qs}function In(t){return t||"en-US"}function Nn(){rn()}function Dn(t,e){return{name:t,definitions:e}}function jn(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function Ln(t){return{type:3,steps:t}}function Vn(t){return{type:2,steps:t}}function Fn(t){return{type:6,styles:t}}function Un(t,e){return{type:0,name:t,styles:e}}function Bn(t){return{type:5,steps:t}}function Hn(t,e){return{type:1,expr:t,animation:e}}function qn(t,e){return Dn(t,e)}function zn(t,e){return jn(t,e)}function Gn(t){return Ln(t)}function Wn(t){return Vn(t)}function $n(t){return Fn(t)}function Kn(t,e){return Un(t,e)}function Qn(t){return Bn(t)}function Xn(t,e){return Hn(t,e)}var Zn=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Yn=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),Jn=function(t){function e(e){return t.call(this,e)||this}return Zn(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(Yn),to="undefined"!=typeof window&&window,eo="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ro="undefined"!=typeof o&&o,no=to||ro||eo,oo=null,io=0,so=no.Reflect,ao=new Jn("AnalyzeForEntryComponents"),uo=m("Attribute",[["attributeName",void 0]]),co=function(){function t(){}return t}(),lo=y("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],co),po=y("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],co),ho=y("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],co),fo=y("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],co),mo={};mo.OnPush=0,mo.Default=1,mo[mo.OnPush]="OnPush",mo[mo.Default]="Default";var yo={};yo.CheckOnce=0,yo.Checked=1,yo.CheckAlways=2,yo.Detached=3,yo.Errored=4,yo.Destroyed=5,yo[yo.CheckOnce]="CheckOnce",yo[yo.Checked]="Checked",yo[yo.CheckAlways]="CheckAlways",yo[yo.Detached]="Detached",yo[yo.Errored]="Errored",yo[yo.Destroyed]="Destroyed";var vo=f("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),go=f("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:mo.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},vo),_o=f("Pipe",{name:void 0,pure:!0}),bo=y("Input",[["bindingPropertyName",void 0]]),wo=y("Output",[["bindingPropertyName",void 0]]),Co=y("HostBinding",[["hostPropertyName",void 0]]),Eo=y("HostListener",[["eventName",void 0],["args",[]]]),So={name:"custom-elements"},xo={name:"no-errors-schema"},To=f("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),Po={};Po.Emulated=0,Po.Native=1,Po.None=2,Po[Po.Emulated]="Emulated",Po[Po.Native]="Native",Po[Po.None]="None";var Ao=function(){function t(t){var e=void 0===t?{}:t,r=e.templateUrl,n=e.template,o=e.encapsulation,i=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=r,this.template=n,this.styleUrls=s,this.styles=i,this.encapsulation=o,this.animations=a,this.interpolation=u}return t}(),Oo=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}(),Mo=new Oo("4.1.0"),Ro=m("Inject",[["token",void 0]]),ko=m("Optional",[]),Io=f("Injectable",[]),No=m("Self",[]),Do=m("SkipSelf",[]),jo=m("Host",[]),Lo=new Object,Vo=Lo,Fo=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Lo),e===Lo)throw new Error("No provider for "+c(t)+"!");return e},t}(),Uo=function(){function t(){}return t.prototype.get=function(){},t.prototype.get=function(){},t}();Uo.THROW_IF_NOT_FOUND=Lo,Uo.NULL=new Fo;var Bo="ngComponentType",Ho="ngDebugContext",qo="ngOriginalError",zo="ngErrorLogger",Go=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),r=this._findContext(t),n=C(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),r&&n(this._console,"ERROR CONTEXT",r)},t.prototype._findContext=function(t){return t?b(t)?b(t):this._findContext(w(t)):null},t.prototype._findOriginalError=function(t){for(var e=w(t);e&&w(e);)e=w(e);return e},t}(),Wo=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return c(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Ko.get(_(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Ko.numberOfKeys},enumerable:!0,configurable:!0}),t}(),$o=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Wo)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Wo(t,Wo.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}(),Ko=new $o,Qo=Function,Xo=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Zo=function(){function t(t){this._reflect=t||no.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var r;r=new Array("undefined"==typeof t?e.length:t.length);for(var n=0;n<r.length;n++)r[n]="undefined"==typeof t?[]:t[n]!=Object?[t[n]]:[],e&&null!=e[n]&&(r[n]=r[n].concat(e[n]));return r},t.prototype._ownParameters=function(t,e){if(Xo.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var r=t.ctorParameters;if(r&&r!==e.ctorParameters){var n="function"==typeof r?r():r,o=n.map(function(t){return t&&t.type}),i=n.map(function(t){return t&&L(t.decorators)});return this._zipTypesAndAnnotations(o,i)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){var i=this._reflect.getOwnMetadata("parameters",t),o=this._reflect.getOwnMetadata("design:paramtypes",t);if(o||i)return this._zipTypesAndAnnotations(o,i)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!j(t))return[];var e=V(t),r=this._ownParameters(t,e);return r||e===Object||(r=this.parameters(e)),r||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var r=t.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==e.decorators?L(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!j(t))return[];var e=V(t),r=this._ownAnnotations(t,e)||[],n=e!==Object?this.annotations(e):[];return n.concat(r)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var r=t.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var n=t.propDecorators,o={};return Object.keys(n).forEach(function(t){o[t]=L(n[t])}),o}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!j(t))return{};var e=V(t),r={};if(e!==Object){var n=this.propMetadata(e);Object.keys(n).forEach(function(t){r[t]=n[t]})}var o=this._ownPropMetadata(t,e);return o&&Object.keys(o).forEach(function(t){var e=[];r.hasOwnProperty(t)&&e.push.apply(e,r[t]),e.push.apply(e,o[t]),r[t]=e}),r},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Qo&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+c(t)},t.prototype.resourceUri=function(t){return"./"+c(t)},t.prototype.resolveIdentifier=function(t,e,r,n){return n},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),Yo=function(){function t(){}return t.prototype.parameters=function(){},t.prototype.annotations=function(){},t.prototype.propMetadata=function(){},t.prototype.importUri=function(){},t.prototype.resourceUri=function(){},t.prototype.resolveIdentifier=function(){},t.prototype.resolveEnum=function(){},t}(),Jo=function(t){function e(e){var r=t.call(this)||this;return r.reflectionCapabilities=e,r}return Zn(e,t),e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},e.prototype.resolveIdentifier=function(t,e,r,n){return this.reflectionCapabilities.resolveIdentifier(t,e,r,n)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(Yo),ti=new Jo(new Zo),ei=function(){function t(t,e,r){this.key=t,this.optional=e,this.visibility=r}return t.fromKey=function(e){return new t(e,!1,null)},t}(),ri=[],ni=function(){function t(t,e,r){this.key=t,this.resolvedFactories=e,this.multiProvider=r}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),oi=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),ii=new Object,si=function(){function t(){}return t.resolve=function(t){return B(t)},t.resolveAndCreate=function(e,r){var n=t.resolve(e);return t.fromResolvedProviders(n,r)},t.fromResolvedProviders=function(t,e){return new ai(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(){},t.prototype.createChildFromResolved=function(){},t.prototype.resolveAndInstantiate=function(){},t.prototype.instantiateResolved=function(){},t.prototype.get=function(){},t}(),ai=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var r=t.length;this.keyIds=new Array(r),this.objs=new Array(r);for(var n=0;r>n;n++)this.keyIds[n]=t[n].key.id,this.objs[n]=ii}return t.prototype.get=function(t,e){return void 0===e&&(e=Vo),this._getByKey(Wo.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=si.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var r=new t(e);return r._parent=this,r},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(si.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(0>t||t>=this._providers.length)throw N(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw M(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),r=0;r<t.resolvedFactories.length;++r)e[r]=this._instantiate(t,t.resolvedFactories[r]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var r,n=this,o=e.factory;try{r=e.dependencies.map(function(t){return n._getByReflectiveDependency(t)})}catch(i){throw i.addKey&&i.addKey(this,t.key),i}var s;try{s=o.apply(void 0,r)}catch(i){throw R(this,i,i.stack,t.key)}return s},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:Vo)},t.prototype._getByKey=function(t,e,r){return t===ui?this:e instanceof No?this._getByKeySelf(t,r):this._getByKeyDefault(t,r,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===ii&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return ii},t.prototype._throwOrNull=function(t,e){if(e!==Vo)return e;throw O(this,t)},t.prototype._getByKeySelf=function(t,e){var r=this._getObjByKeyId(t.id);return r!==ii?r:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,r,n){var o;for(o=n instanceof Do?this._parent:this;o instanceof t;){var i=o,s=i._getObjByKeyId(e.id);if(s!==ii)return s;o=i._parent}return null!==o?o.get(e.token,r):this._throwOrNull(e,r)},Object.defineProperty(t.prototype,"displayName",{get:function(){var t=K(this,function(t){return' "'+t.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: ["+t+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),ui=Wo.get(Uo),ci=new Jn("Application Initializer"),li=function(){function t(t){var e=this;this._done=!1;var r=[];if(t)for(var n=0;n<t.length;n++){var o=t[n]();Q(o)&&r.push(o)}this._donePromise=Promise.all(r).then(function(){e._done=!0}),0===r.length&&(this._done=!0)}return Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();li.decorators=[{type:Io}],li.ctorParameters=function(){return[{type:Array,decorators:[{type:Ro,args:[ci]},{type:ko}]}]};var pi=new Jn("AppId"),hi={provide:pi,useFactory:Z,deps:[]},fi=new Jn("Platform Initializer"),di=new Jn("Platform ID"),mi=new Jn("appBootstrapListener"),yi=new Jn("Application Packages Root URL"),vi=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();vi.decorators=[{type:Io}],vi.ctorParameters=function(){return[]};var gi=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),_i=function(){function t(){}return t.prototype.compileModuleSync=function(){throw J()},t.prototype.compileModuleAsync=function(){throw J()},t.prototype.compileModuleAndAllComponentsSync=function(){throw J()},t.prototype.compileModuleAndAllComponentsAsync=function(){throw J()},t.prototype.getNgContentSelectors=function(){throw J()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(){},t}();_i.decorators=[{type:Io}],_i.ctorParameters=function(){return[]};var bi=new Jn("compilerOptions"),wi=function(){function t(){}return t.prototype.createCompiler=function(){},t}(),Ci=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),Ei=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(){},t}(),Si="ngComponent",xi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw tt(t)},t}(),Ti=function(){function t(){}return t.prototype.resolveComponentFactory=function(){},t}();Ti.NULL=new xi;var Pi,Ai,Oi=function(){function t(t,e,r){this._parent=e,this._ngModule=r,this._factories=new Map;for(var n=0;n<t.length;n++){var o=t[n];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t)||this._parent.resolveComponentFactory(t);return new Mi(e,this._ngModule)},t}(),Mi=function(t){function e(e,r){var n=t.call(this)||this;return n.factory=e,n.ngModule=r,n}return Zn(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,r,n){return this.factory.create(t,e,r,n||this.ngModule)},e}(Ei),Ri=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),ki=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){var e=new this._injectorClass(t||Uo.NULL);return e.create(),e},t}(),Ii=new Object,Ni=function(){function t(t,e,r){var n=this;this.parent=t,this._destroyListeners=[],this._destroyed=!1,this.bootstrapFactories=r.map(function(t){return new Mi(t,n)}),this._cmpFactoryResolver=new Oi(e,t.get(Ti,Ti.NULL),this)}return t.prototype.create=function(){this.instance=this.createInternal()},t.prototype.createInternal=function(){},t.prototype.get=function(t,e){if(void 0===e&&(e=Vo),t===Uo||t===Ri)return this;if(t===Ti)return this._cmpFactoryResolver;var r=this.getInternal(t,Ii);return r===Ii?this.parent.get(t,e):r},t.prototype.getInternal=function(){},Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this._cmpFactoryResolver},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+c(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t.prototype.destroyInternal=function(){},t}(),Di=et(),ji=Di?rt:function(){return st},Li=Di?nt:function(t,e){return e},Vi=Di?ot:function(){return null},Fi=Di?it:function(){return null},Ui=function(t){function e(e){void 0===e&&(e=!1);var r=t.call(this)||this;return r.__isAsync=e,r}return Zn(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,r,n){var o,i=function(){return null},s=function(){return null};return e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},r&&(i=this.__isAsync?function(t){setTimeout(function(){return r(t)})}:function(t){r(t)}),n&&(s=this.__isAsync?function(){setTimeout(function(){return n()})}:function(){n()})),t.prototype.subscribe.call(this,o,i,s)},e}(i.Subject),Bi=function(){function t(t){var e=t.enableLongStackTrace,r=void 0===e?!1:e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new Ui(!1),this._onMicrotaskEmpty=new Ui(!1),this._onStable=new Ui(!1),this._onErrorEvents=new Ui(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,r,n,o,i,s){try{return t.onEnter(),e.invokeTask(n,o,i,s)}finally{t.onLeave()}},onInvoke:function(e,r,n,o,i,s,a){try{return t.onEnter(),e.invoke(n,o,i,s,a)}finally{t.onLeave()}},onHasTask:function(e,r,n,o){e.hasTask(n,o),r===n&&("microTask"==o.change?t.setHasMicrotask(o.microTask):"macroTask"==o.change&&t.setHasMacrotask(o.macroTask))},onHandleError:function(e,r,n,o){return e.handleError(n,o),t.triggerError(o),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),Hi=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){Bi.assertNotInAngularZone(),a(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?a(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(){return[]},t.prototype.findProviders=function(){return[]},t}();Hi.decorators=[{type:Io}],Hi.ctorParameters=function(){return[{type:Bi}]};var qi=function(){function t(){this._applications=new Map,Wi.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},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),Wi.findTestabilityInTree(this,t,e)},t}();qi.decorators=[{type:Io}],qi.ctorParameters=function(){return[]};var zi,Gi=function(){function t(){}return t.prototype.addToWindow=function(){},t.prototype.findTestabilityInTree=function(){return null},t}(),Wi=new Gi,$i=!0,Ki=!1,Qi=new Jn("AllowMultipleToken"),Xi=function(){function t(t,e){this.name=t,this.token=e}return t}(),Zi=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(){},t.prototype.bootstrapModule=function(){},t.prototype.onDestroy=function(){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),Yi=function(t){function e(e){var r=t.call(this)||this;return r._injector=e,r._modules=[],r._destroyListeners=[],r._destroyed=!1,r}return Zn(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.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},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var r=this;return e||(e=new Bi({enableLongStackTrace:ct()})),e.run(function(){var n=si.resolveAndCreate([{provide:Bi,useValue:e}],r.injector),o=t.create(n),i=o.injector.get(Go,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return yt(r._modules,o)}),e.onError.subscribe({next:function(t){i.handleError(t)}}),mt(i,function(){var t=o.injector.get(li);return t.donePromise.then(function(){return r._moduleDoBootstrap(o),o})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,r){var n=this;void 0===e&&(e=[]);var o=this.injector.get(wi),i=o.createCompiler(Array.isArray(e)?e:[e]);return i.compileModuleAsync(t).then(function(t){return n._bootstrapModuleFactoryWithZone(t,r)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Ji);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+c(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e}(Zi);Yi.decorators=[{type:Io}],Yi.ctorParameters=function(){return[{type:Uo}]};var Ji=function(){function t(){}return t.prototype.bootstrap=function(){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(){},t.prototype.detachView=function(){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),ts=function(t){function o(o,i,s,u,c,l){var p=t.call(this)||this;p._zone=o,p._console=i,p._injector=s,p._exceptionHandler=u,p._componentFactoryResolver=c,p._initStatus=l,p._bootstrapListeners=[],p._rootComponents=[],p._rootComponentTypes=[],p._views=[],p._runningTick=!1,p._enforceNoNewChanges=!1,p._stable=!0,p._enforceNoNewChanges=ct(),p._zone.onMicrotaskEmpty.subscribe({next:function(){p._zone.run(function(){p.tick()})}});var h=new e.Observable(function(t){p._stable=p._zone.isStable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks,p._zone.runOutsideAngular(function(){t.next(p._stable),t.complete()})}),f=new e.Observable(function(t){var e=p._zone.onStable.subscribe(function(){Bi.assertNotInAngularZone(),a(function(){p._stable||p._zone.hasPendingMacrotasks||p._zone.hasPendingMicrotasks||(p._stable=!0,t.next(!0))})}),r=p._zone.onUnstable.subscribe(function(){Bi.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),r.unsubscribe()}});return p._isStable=r.merge(h,n.share.call(f)),p}return Zn(o,t),o.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},o.prototype.detachView=function(t){var e=t;yt(this._views,e),e.detachFromAppRef()},o.prototype.bootstrap=function(t){var e=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var r;r=t instanceof Ei?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(r.componentType);var n=r instanceof Mi?null:this._injector.get(Ri),o=r.create(Uo.NULL,[],r.selector,n);o.onDestroy(function(){e._unloadComponent(o)});var i=o.injector.get(Hi,null);return i&&o.injector.get(qi).registerApplication(o.location.nativeElement,i),this._loadComponent(o),ct()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},o.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t);var e=this._injector.get(mi,[]).concat(this._bootstrapListeners);e.forEach(function(e){return e(t)})},o.prototype._unloadComponent=function(t){this.detachView(t.hostView),yt(this._rootComponents,t); - -},o.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=o._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}finally{this._runningTick=!1,Li(t)}},o.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(o.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),o}(Ji);ts._tickScope=ji("ApplicationRef#tick()"),ts.decorators=[{type:Io}],ts.ctorParameters=function(){return[{type:Bi},{type:vi},{type:Uo},{type:Go},{type:Ti},{type:li}]};var es=function(){function t(t,e,r,n,o,i){this.id=t,this.templateUrl=e,this.slotCount=r,this.encapsulation=n,this.styles=o,this.animations=i}return t}(),rs=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),ns=function(){function t(){}return t.prototype.selectRootElement=function(){},t.prototype.createElement=function(){},t.prototype.createViewRoot=function(){},t.prototype.createTemplateAnchor=function(){},t.prototype.createText=function(){},t.prototype.projectNodes=function(){},t.prototype.attachViewAfter=function(){},t.prototype.detachView=function(){},t.prototype.destroyView=function(){},t.prototype.listen=function(){},t.prototype.listenGlobal=function(){},t.prototype.setElementProperty=function(){},t.prototype.setElementAttribute=function(){},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(){},t.prototype.setElementStyle=function(){},t.prototype.invokeElementMethod=function(){},t.prototype.setText=function(){},t.prototype.animate=function(){},t}(),os=(new Jn("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(){},t}()),is=function(){function t(){}return t.prototype.createRenderer=function(){},t}(),ss={};ss.Important=1,ss.DashCase=2,ss[ss.Important]="Important",ss[ss.DashCase]="DashCase";var as=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(){},t.prototype.createComment=function(){},t.prototype.createText=function(){},t.prototype.appendChild=function(){},t.prototype.insertBefore=function(){},t.prototype.removeChild=function(){},t.prototype.selectRootElement=function(){},t.prototype.parentNode=function(){},t.prototype.nextSibling=function(){},t.prototype.setAttribute=function(){},t.prototype.removeAttribute=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.setProperty=function(){},t.prototype.setValue=function(){},t.prototype.listen=function(){},t}(),us=function(){function t(t){this.nativeElement=t}return t}(),cs=function(){function t(){}return t.prototype.load=function(){},t}(),ls=new Map,ps=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new Ui}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),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[s()]=function(){return this._results[s()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=_t(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),hs="#",fs="NgFactory",ds=function(){function t(){}return t}(),ms={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ys=function(){function t(t,e){this._compiler=t,this._config=e||ms}return t.prototype.load=function(t){var e=this._compiler instanceof _i;return e?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split(hs),n=r[0],o=r[1];return void 0===o&&(o="default"),System["import"](n).then(function(t){return t[o]}).then(function(t){return bt(t,n,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split(hs),r=e[0],n=e[1],o=fs;return void 0===n&&(n="default",o=""),System["import"](this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[n+o]}).then(function(t){return bt(t,r,n)})},t}();ys.decorators=[{type:Io}],ys.ctorParameters=function(){return[{type:_i},{type:ds,decorators:[{type:ko}]}]};var vs=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(){},t}(),gs=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(){},t.prototype.createComponent=function(){},t.prototype.insert=function(){},t.prototype.move=function(){},t.prototype.indexOf=function(){},t.prototype.remove=function(){},t.prototype.detach=function(){},t}(),_s=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(){},e}(_s),ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(bs),Cs=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Es=function(){function t(t,e,r){this._debugContext=r,this.nativeNode=t,e&&e instanceof Ss?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}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),Ss=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return Zn(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 r=this,n=this.childNodes.indexOf(t);-1!==n&&((o=this.childNodes).splice.apply(o,[n+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}));var o},e.prototype.insertBefore=function(t,e){var r=this.childNodes.indexOf(t);-1===r?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(r,0,e))},e.prototype.query=function(t){var e=this.queryAll(t);return e[0]||null},e.prototype.queryAll=function(t){var e=[];return Ct(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Et(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(r){r.name==t&&r.callback(e)})},e}(Es),xs=new Map,Ts=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Ps=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof Ts?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),As=function(){function t(t,e,r){this.previousValue=t,this.currentValue=e,this.firstChange=r}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),Os=function(){function t(){}return t.prototype.supports=function(t){return At(t)},t.prototype.create=function(t,e){return new Rs(e||t)},t}(),Ms=function(t,e){return e},Rs=function(){function t(t){this._length=0,this._collection=null,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||Ms}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),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,r=this._removalsHead,n=0,o=null;e||r;){var i=!r||e&&e.currentIndex<kt(r,n,o)?e:r,s=kt(i,n,o),a=i.currentIndex;if(i===r)n--,r=r._nextRemoved;else if(e=e._next,null==i.previousIndex)n++;else{o||(o=[]);var u=s-n,c=a-n;if(u!=c){for(var l=0;u>l;l++){var p=l<o.length?o[l]:o[l]=0,h=p+l;h>=c&&u>h&&(o[l]=p+1)}var f=i.previousIndex;o[f]=c-u}}s!==a&&t(i,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!At(t))throw new Error("Error trying to diff '"+c(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var r,n,o,i=this._itHead,s=!1;if(Array.isArray(t)){this._length=t.length;for(var a=0;a<this._length;a++)n=t[a],o=this._trackByFn(a,n),null!==i&&u(i.trackById,o)?(s&&(i=this._verifyReinsertion(i,n,o,a)),u(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,o,a),s=!0),i=i._next}else r=0,Mt(t,function(t){o=e._trackByFn(r,t),null!==i&&u(i.trackById,o)?(s&&(i=e._verifyReinsertion(i,t,o,r)),u(i.item,t)||e._addIdentityChange(i,t)):(i=e._mismatch(i,t,o,r),s=!0),i=i._next,r++}),this._length=r;return this._truncate(i),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,r,n){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(r,n),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,n)):(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,n)):t=this._addAfter(new ks(e,r),o,n)),t},t.prototype._verifyReinsertion=function(t,e,r,n){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==o?t=this._reinsertAfter(o,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var n=t._prevRemoved,o=t._nextRemoved;return null===n?this._removalsHead=o:n._nextRemoved=o,null===o?this._removalsTail=n:o._prevRemoved=n,this._insertAfter(t,e,r),this._addToMoves(t,r),t},t.prototype._moveAfter=function(t,e,r){return this._unlink(t),this._insertAfter(t,e,r),this._addToMoves(t,r),t},t.prototype._addAfter=function(t,e,r){return this._insertAfter(t,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,r){var n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ns),this._linkedRecords.put(t),t.currentIndex=r,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,r=t._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ns),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var r=[];this.forEachAddedItem(function(t){return r.push(t)});var n=[];this.forEachMovedItem(function(t){return n.push(t)});var o=[];this.forEachRemovedItem(function(t){return o.push(t)});var i=[];return this.forEachIdentityChange(function(t){return i.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+r.join(", ")+"\nmoves: "+n.join(", ")+"\nremovals: "+o.join(", ")+"\nidentityChanges: "+i.join(", ")+"\n"},t}(),ks=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?c(this.item):c(this.item)+"["+c(this.previousIndex)+"->"+c(this.currentIndex)+"]"},t}(),Is=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<r.currentIndex)&&u(r.trackById,t))return r;return null},t.prototype.remove=function(t){var e=t._prevDup,r=t._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head},t}(),Ns=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,r=this.map.get(e);r||(r=new Is,this.map.set(e,r)),r.add(t)},t.prototype.get=function(t,e){var r=t,n=this.map.get(r);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById,r=this.map.get(e);return r.remove(t)&&this.map["delete"](e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+c(this.map)+")"},t}(),Ds=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Rt(t)},t.prototype.create=function(){return new js},t}(),js=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Rt(t)))throw new Error("Error trying to diff '"+c(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var r=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,n){if(r&&r.key===n)e._maybeAddToChanges(r,t),e._appendAfter=r,r=r._next;else{var o=e._getOrCreateRecordForKey(n,t);r=e._insertBeforeOrAppend(r,o)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(var n=r;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records["delete"](n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var r=t._prev;return e._next=t,e._prev=r,t._prev=e,r&&(r._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var r=this._records.get(t);this._maybeAddToChanges(r,e);var n=r._prev,o=r._next;return n&&(n._next=o),o&&(o._prev=n),r._next=null,r._prev=null,r}var i=new Ls(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){u(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t=[],e=[],r=[],n=[],o=[];return this.forEachItem(function(e){return t.push(c(e))}),this.forEachPreviousItem(function(t){return e.push(c(t))}),this.forEachChangedItem(function(t){return r.push(c(t))}),this.forEachAddedItem(function(t){return n.push(c(t))}),this.forEachRemovedItem(function(t){return o.push(c(t))}),"map: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nchanges: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(r){return e(t[r],r)})},t}(),Ls=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return u(this.previousValue,this.currentValue)?c(this.key):c(this.key)+"["+c(this.previousValue)+"->"+c(this.currentValue)+"]"},t}(),Vs=function(){function t(t){this.factories=t}return t.create=function(e,r){if(null!=r){var n=r.factories.slice();return e=e.concat(n),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(r){if(!r)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,r)},deps:[[t,new Do,new ko]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+It(t)+"'")},t}(),Fs=function(){function t(t){this.factories=t}return t.create=function(e,r){if(r){var n=r.factories.slice();e=e.concat(n)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(r){if(!r)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,r)},deps:[[t,new Do,new ko]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Us=[new Ds],Bs=[new Os],Hs=new Vs(Bs),qs=new Fs(Us),zs=[{provide:di,useValue:"unknown"},Yi,{provide:Zi,useExisting:Yi},{provide:Jo,useFactory:Nt,deps:[]},{provide:Yo,useExisting:Jo},qi,vi],Gs=pt(null,"core",zs),Ws=new Jn("LocaleId"),$s=new Jn("Translations"),Ks=new Jn("TranslationsFormat"),Qs={};Qs.Error=0,Qs.Warning=1,Qs.Ignore=2,Qs[Qs.Error]="Error",Qs[Qs.Warning]="Warning",Qs[Qs.Ignore]="Ignore";var Xs={};Xs.NONE=0,Xs.HTML=1,Xs.STYLE=2,Xs.SCRIPT=3,Xs.URL=4,Xs.RESOURCE_URL=5,Xs[Xs.NONE]="NONE",Xs[Xs.HTML]="HTML",Xs[Xs.STYLE]="STYLE",Xs[Xs.SCRIPT]="SCRIPT",Xs[Xs.URL]="URL",Xs[Xs.RESOURCE_URL]="RESOURCE_URL";var Zs=function(){function t(){}return t.prototype.sanitize=function(){},t}(),Ys=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e]},t}(),Js={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView: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},ta=function(){},ea=new Map,ra="$$undefined",na="$$empty",oa=0,ia=new WeakMap,sa=/^:([^:]+):(.+)$/,aa=[],ua={},ca=new Object,la=function(t){function e(e,r,n,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=r,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=n,a}return Zn(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var r in e){var n=e[r];t.push({propName:r,templateName:n})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var r=this._outputs[e];t.push({propName:e,templateName:r})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,r,n){if(!n)throw new Error("ngModule should be provided");var o=le(this.viewDefFactory),i=o.nodes[0].element.componentProvider.index,s=Js.createRootView(t,e||[],r,o,n,ca),a=Lt(s,i).instance;return s.renderer.setAttribute(jt(s,0).renderElement,"ng-version",Mo.full),new pa(s,new fa(s),a)},e}(Ei),pa=function(t){function e(e,r,n){var o=t.call(this)||this;return o._view=e,o._viewRef=r,o._component=n,o._elDef=o._view.def.nodes[0],o}return Zn(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new us(jt(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ma(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},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}(Ci),ha=function(){function t(t,e,r){this._view=t,this._elDef=e,this._data=r,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new us(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ma(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=re(t),t=t.parent;return t?new ma(t,e):new ma(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length,e=t-1;e>=0;e--){var r=Le(this._data,e);Js.destroyView(r)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var r=new fa(e);return r.attachToViewContainerRef(this),r}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,r){var n=t.createEmbeddedView(e||{});return this.insert(n,r),n},t.prototype.createComponent=function(t,e,r,n,o){var i=r||this.parentInjector;o||t instanceof Mi||(o=i.get(Ri));var s=t.create(i,n,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var r=t,n=r._view;return je(this._view,this._data,e,n),r.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var r=this._embeddedViews.indexOf(t._view);return Ve(this._data,r,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Le(this._data,t);e&&Js.destroyView(e)},t.prototype.detach=function(t){var e=Le(this._data,t);return e?new fa(e):null},t}(),fa=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return pe(this._view)},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!==(8&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Jt(this._view)},t.prototype.detach=function(){this._view.state&=-3},t.prototype.detectChanges=function(){Js.checkAndUpdateView(this._view)},t.prototype.checkNoChanges=function(){Js.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=2},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)),Js.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ue(this._view),Js.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}(),da=function(t){function e(e,r){var n=t.call(this)||this;return n._parentView=e,n._def=r,n}return Zn(e,t),e.prototype.createEmbeddedView=function(t){return new fa(Js.createEmbeddedView(this._parentView,this._def,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new us(jt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(vs),ma=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Uo.THROW_IF_NOT_FOUND);var r=this.elDef?0!==(16777216&this.elDef.flags):!1;return Js.resolveDep(this.view,this.elDef,r,{flags:0,token:t,tokenKey:Wt(t)},e)},t}(),ya=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 r=ve(e),n=r[0],o=r[1],i=this.delegate.createElement(o,n);return t&&this.delegate.appendChild(t,i),i},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 r=this.delegate.createText(e);return t&&this.delegate.appendChild(t,r),r},t.prototype.projectNodes=function(t,e){ -for(var r=0;r<e.length;r++)this.delegate.appendChild(t,e[r])},t.prototype.attachViewAfter=function(t,e){for(var r=this.delegate.parentNode(t),n=this.delegate.nextSibling(t),o=0;o<e.length;o++)this.delegate.insertBefore(r,e[o],n)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=this.delegate.parentNode(r);this.delegate.removeChild(n,r)}},t.prototype.destroyView=function(t,e){for(var r=0;r<e.length;r++)this.delegate.destroyNode(e[r])},t.prototype.listen=function(t,e,r){return this.delegate.listen(t,e,r)},t.prototype.listenGlobal=function(t,e,r){return this.delegate.listen(t,e,r)},t.prototype.setElementProperty=function(t,e,r){this.delegate.setProperty(t,e,r)},t.prototype.setElementAttribute=function(t,e,r){var n=ve(e),o=n[0],i=n[1];null!=r?this.delegate.setAttribute(t,i,r,o):this.delegate.removeAttribute(t,i,o)},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(t,e,r){r?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,r){null!=r?this.delegate.setStyle(t,e,r):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,r){t[e].apply(t,r)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),va=Wt(ns),ga=Wt(as),_a=Wt(us),ba=Wt(gs),wa=Wt(vs),Ca=Wt(_s),Ea=Wt(Uo),Sa=new Object,xa={},Ta={};Ta.CreateViewNodes=0,Ta.CheckNoChanges=1,Ta.CheckAndUpdate=2,Ta.Destroy=3,Ta[Ta.CreateViewNodes]="CreateViewNodes",Ta[Ta.CheckNoChanges]="CheckNoChanges",Ta[Ta.CheckAndUpdate]="CheckAndUpdate",Ta[Ta.Destroy]="Destroy";var Pa=!1,Aa={};Aa.create=0,Aa.detectChanges=1,Aa.checkNoChanges=2,Aa.destroy=3,Aa.handleEvent=4,Aa[Aa.create]="create",Aa[Aa.detectChanges]="detectChanges",Aa[Aa.checkNoChanges]="checkNoChanges",Aa[Aa.destroy]="destroy",Aa[Aa.handleEvent]="handleEvent";var Oa,Ma,Ra,ka=/([A-Z])/g,Ia=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var r=this.nodeDef,n=t;r&&0===(1&r.flags);)r=r.parent;if(!r)for(;!r&&n;)r=re(n),n=n.parent;this.elDef=r,this.elView=n}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return jt(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Ke(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var r=this.elView.def.nodes[e];10112&r.flags&&t.push(r.provider.token),e+=r.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){An(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var r=this.elView.def.nodes[e];10112&r.flags&&An(this.elView,r,t),e+=r.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=Pn(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?ne(this.view,this.nodeDef):ne(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n,o;2&this.nodeDef.flags?(n=this.view.def,o=this.nodeDef.index):(n=this.elView.def,o=this.elDef.index);var i=Tn(n,o),s=-1,a=function(){return s++,s===i?(r=t.error).bind.apply(r,[t].concat(e)):ta;var r};n.factory(a),i>s&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),Na=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Da(this.delegate.createRenderer(t,e))},t}(),Da=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){Tt(St(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var r=this.delegate.createElement(t,e),n=Mn();if(n){var o=new Ss(r,null,n);o.name=t,xt(o)}return r},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),r=Mn();return r&&xt(new Es(e,null,r)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),r=Mn();return r&&xt(new Es(e,null,r)),e},t.prototype.appendChild=function(t,e){var r=St(t),n=St(e);r&&n&&r instanceof Ss&&r.addChild(n),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,r){var n=St(t),o=St(e),i=St(r);n&&o&&n instanceof Ss&&n.insertBefore(i,o),this.delegate.insertBefore(t,e,r)},t.prototype.removeChild=function(t,e){var r=St(t),n=St(e);r&&n&&r instanceof Ss&&r.removeChild(n),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),r=Mn();return r&&xt(new Ss(e,null,r)),e},t.prototype.setAttribute=function(t,e,r,n){var o=St(t);if(o&&o instanceof Ss){var i=n?n+":"+e:e;o.attributes[i]=r}this.delegate.setAttribute(t,e,r,n)},t.prototype.removeAttribute=function(t,e,r){var n=St(t);if(n&&n instanceof Ss){var o=r?r+":"+e:e;n.attributes[o]=null}this.delegate.removeAttribute(t,e,r)},t.prototype.addClass=function(t,e){var r=St(t);r&&r instanceof Ss&&(r.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var r=St(t);r&&r instanceof Ss&&(r.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,r,n){var o=St(t);o&&o instanceof Ss&&(o.styles[e]=r),this.delegate.setStyle(t,e,r,n)},t.prototype.removeStyle=function(t,e,r){var n=St(t);n&&n instanceof Ss&&(n.styles[e]=null),this.delegate.removeStyle(t,e,r)},t.prototype.setProperty=function(t,e,r){var n=St(t);n&&n instanceof Ss&&(n.properties[e]=r),this.delegate.setProperty(t,e,r)},t.prototype.listen=function(t,e,r){if("string"!=typeof t){var n=St(t);n&&n.listeners.push(new Cs(e,r))}return this.delegate.listen(t,e,r)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),ja=function(){function t(){}return t}();ja.decorators=[{type:To,args:[{providers:[ts,{provide:Ji,useExisting:ts},li,_i,hi,{provide:Vs,useFactory:Rn},{provide:Fs,useFactory:kn},{provide:Ws,useFactory:In,deps:[[new Ro(Ws),new ko,new Do]]},{provide:ci,useValue:Nn,multi:!0}]}]}],ja.ctorParameters=function(){return[{type:Ji}]};var La={};La.OnInit=0,La.OnDestroy=1,La.DoCheck=2,La.OnChanges=3,La.AfterContentInit=4,La.AfterContentChecked=5,La.AfterViewInit=6,La.AfterViewChecked=7,La[La.OnInit]="OnInit",La[La.OnDestroy]="OnDestroy",La[La.DoCheck]="DoCheck",La[La.OnChanges]="OnChanges",La[La.AfterContentInit]="AfterContentInit",La[La.AfterContentChecked]="AfterContentChecked",La[La.AfterViewInit]="AfterViewInit",La[La.AfterViewChecked]="AfterViewChecked";var Va=[La.OnInit,La.OnDestroy,La.DoCheck,La.OnChanges,La.AfterContentInit,La.AfterContentChecked,La.AfterViewInit,La.AfterViewChecked],Fa="*";t.Class=h,t.createPlatform=lt,t.assertPlatform=ht,t.destroyPlatform=ft,t.getPlatform=dt,t.PlatformRef=Zi,t.ApplicationRef=Ji,t.enableProdMode=ut,t.isDevMode=ct,t.createPlatformFactory=pt,t.NgProbeToken=Xi,t.APP_ID=pi,t.PACKAGE_ROOT_URL=yi,t.PLATFORM_INITIALIZER=fi,t.PLATFORM_ID=di,t.APP_BOOTSTRAP_LISTENER=mi,t.APP_INITIALIZER=ci,t.ApplicationInitStatus=li,t.DebugElement=Ss,t.DebugNode=Es,t.asNativeElements=wt,t.getDebugNode=St,t.Testability=Hi,t.TestabilityRegistry=qi,t.setTestabilityGetter=at,t.TRANSLATIONS=$s,t.TRANSLATIONS_FORMAT=Ks,t.LOCALE_ID=Ws,t.MissingTranslationStrategy=Qs,t.ApplicationModule=ja,t.wtfCreateScope=ji,t.wtfLeave=Li,t.wtfStartTimeRange=Vi,t.wtfEndTimeRange=Fi,t.Type=Qo,t.EventEmitter=Ui,t.ErrorHandler=Go,t.Sanitizer=Zs,t.SecurityContext=Xs,t.ANALYZE_FOR_ENTRY_COMPONENTS=ao,t.Attribute=uo,t.ContentChild=po,t.ContentChildren=lo,t.Query=co,t.ViewChild=fo,t.ViewChildren=ho,t.Component=go,t.Directive=vo,t.HostBinding=Co,t.HostListener=Eo,t.Input=bo,t.Output=wo,t.Pipe=_o,t.CUSTOM_ELEMENTS_SCHEMA=So,t.NO_ERRORS_SCHEMA=xo,t.NgModule=To,t.ViewEncapsulation=Po,t.Version=Oo,t.VERSION=Mo,t.forwardRef=g,t.resolveForwardRef=_,t.Injector=Uo,t.ReflectiveInjector=si,t.ResolvedReflectiveFactory=oi,t.ReflectiveKey=Wo,t.InjectionToken=Jn,t.OpaqueToken=Yn,t.Inject=Ro,t.Optional=ko,t.Injectable=Io,t.Self=No,t.SkipSelf=Do,t.Host=jo,t.NgZone=Bi,t.RenderComponentType=es,t.Renderer=ns,t.Renderer2=as,t.RendererFactory2=is,t.RendererStyleFlags2=ss,t.RootRenderer=os,t.COMPILER_OPTIONS=bi,t.Compiler=_i,t.CompilerFactory=wi,t.ModuleWithComponentFactories=gi,t.ComponentFactory=Ei,t.ComponentRef=Ci,t.ComponentFactoryResolver=Ti,t.ElementRef=us,t.NgModuleFactory=ki,t.NgModuleRef=Ri,t.NgModuleFactoryLoader=cs,t.getModuleFactory=gt,t.QueryList=ps,t.SystemJsNgModuleLoader=ys,t.SystemJsNgModuleLoaderConfig=ds,t.TemplateRef=vs,t.ViewContainerRef=gs,t.EmbeddedViewRef=ws,t.ViewRef=bs,t.ChangeDetectionStrategy=mo,t.ChangeDetectorRef=_s,t.DefaultIterableDiffer=Rs,t.IterableDiffers=Vs,t.KeyValueDiffers=Fs,t.SimpleChange=As,t.WrappedValue=Ts,t.platformCore=Gs,t.ɵALLOW_MULTIPLE_PLATFORMS=Qi,t.ɵAPP_ID_RANDOM_PROVIDER=hi,t.ɵValueUnwrapper=Ps,t.ɵdevModeEqual=Pt,t.ɵisListLikeIterable=At,t.ɵChangeDetectorStatus=yo,t.ɵisDefaultChangeDetectionStrategy=v,t.ɵConsole=vi,t.ɵERROR_COMPONENT_TYPE=Bo,t.ɵComponentFactory=Ei,t.ɵCodegenComponentFactoryResolver=Oi,t.ɵLIFECYCLE_HOOKS_VALUES=Va,t.ɵLifecycleHooks=La,t.ɵViewMetadata=Ao,t.ɵReflector=Jo,t.ɵreflector=ti,t.ɵReflectionCapabilities=Zo,t.ɵReflectorReader=Yo,t.ɵRenderDebugInfo=rs,t.ɵglobal=no,t.ɵlooseIdentical=u,t.ɵstringify=c,t.ɵmakeDecorator=f,t.ɵisObservable=X,t.ɵisPromise=Q,t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=xa,t.ɵNgModuleInjector=Ni,t.ɵregisterModuleFactory=vt,t.ɵEMPTY_ARRAY=aa,t.ɵEMPTY_MAP=ua,t.ɵand=Ce,t.ɵccf=qe,t.ɵcrt=Kt,t.ɵdid=Ze,t.ɵeld=Ee,t.ɵelementEventFullName=oe,t.ɵgetComponentViewDefinitionFactory=ze,t.ɵinlineInterpolate=be,t.ɵinterpolate=_e,t.ɵncd=Ne,t.ɵnov=Qe,t.ɵpid=Ye,t.ɵprd=Je,t.ɵpad=vr,t.ɵpod=gr,t.ɵppd=yr,t.ɵqud=Er,t.ɵted=Or,t.ɵunv=$t,t.ɵvid=Nr,t.AUTO_STYLE=Fa,t.trigger=qn,t.animate=zn,t.group=Gn,t.sequence=Wn,t.style=$n,t.state=Kn,t.keyframes=Qn,t.transition=Xn,t.ɵba=jn,t.ɵbb=Ln,t.ɵbf=Bn,t.ɵbc=Vn,t.ɵbe=Un,t.ɵbd=Fn,t.ɵbg=Hn,t.ɵz=Dn,t.ɵo=Nn,t.ɵl=Rn,t.ɵm=kn,t.ɵn=In,t.ɵf=ts,t.ɵg=Z,t.ɵh=Hs,t.ɵi=qs,t.ɵj=Os,t.ɵk=Ds,t.ɵc=ai,t.ɵd=ei,t.ɵe=B,t.ɵp=Di,t.ɵr=rt,t.ɵq=et,t.ɵu=it,t.ɵs=nt,t.ɵt=ot,t.ɵa=m,t.ɵb=y,t.ɵw=tr,t.ɵx=Ys,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":17,"rxjs/Subject":20,"rxjs/observable/merge":37,"rxjs/operator/share":53}],9:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core"),e("rxjs/observable/forkJoin"),e("rxjs/observable/fromPromise"),e("rxjs/operator/map"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/core","rxjs/observable/forkJoin","rxjs/observable/fromPromise","rxjs/operator/map","@angular/platform-browser"],i):i((o.ng=o.ng||{},o.ng.forms=o.ng.forms||{}),o.ng.core,o.Rx.Observable,o.Rx.Observable,o.Rx.Observable.prototype,o.ng.platformBrowser)}(this,function(t,e,r,n,o,i){"use strict";function s(t){return null==t||0===t.length}function a(t){return null!=t}function u(t){var r=e.ɵisPromise(t)?n.fromPromise(t):t;if(!e.ɵisObservable(r))throw new Error("Expected validator to return Promise or Observable.");return r}function c(t,e){return e.map(function(e){return e(t)})}function l(t,e){return e.map(function(e){return e(t)})}function p(t){var e=t.reduce(function(t,e){return null!=e?F({},t,e):t},{});return 0===Object.keys(e).length?null:e}function h(){var t=i.ɵgetDOM()?i.ɵgetDOM().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function f(t){return t.validate?function(e){return t.validate(e)}:t}function d(t){return t.validate?function(e){return t.validate(e)}:t}function m(){throw new Error("unimplemented")}function y(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function v(t){return t.split(":")[0]}function g(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function _(t){return t.split(":")[0]}function b(t,e){return e.path.concat([t])}function w(t,e){t||x(e,"Cannot find control with"),e.valueAccessor||x(e,"No value accessor for form control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(r){e.viewToModelUpdate(r),t.markAsDirty(),t.setValue(r,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,r){e.valueAccessor.writeValue(t),r&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function C(t,e){e.valueAccessor.registerOnChange(function(){return S(e)}),e.valueAccessor.registerOnTouched(function(){return S(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function E(t,e){null==t&&x(e,"Cannot find control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator])}function S(t){return x(t,"There is no FormControl instance attached to form control element with")}function x(t,e){var r;throw r=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+r)}function T(t){return null!=t?q.compose(t.map(f)):null}function P(t){return null!=t?q.composeAsync(t.map(d)):null}function A(t,r){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return n.isFirstChange()?!0:!e.ɵlooseIdentical(r,n.currentValue)}function O(t){return lt.some(function(e){return t.constructor===e})}function M(t,e){if(!e)return null;var r=void 0,n=void 0,o=void 0;return e.forEach(function(e){e.constructor===Q?r=e:O(e)?(n&&x(t,"More than one built-in value accessor matches form control with"),n=e):(o&&x(t,"More than one custom value accessor matches form control with"),o=e)}),o?o:n?n:r?r:(x(t,"No valid value accessor for form control with"),null)}function R(t,e,r){return null==e?null:(e instanceof Array||(e=e.split(r)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof Ct?t.controls[e]||null:t instanceof Et?t.at(e)||null:null},t))}function k(t){return Array.isArray(t)?T(t):t||null}function I(t){return Array.isArray(t)?P(t):t||null}function N(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)}function D(t){return!(t instanceof Ut||t instanceof Vt||t instanceof Ht)}var j=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},L=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return this.control?this.control.hasError(t,e):!1},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(L),F=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},U=new e.InjectionToken("NgValidators"),B=new e.InjectionToken("NgAsyncValidators"),H=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,q=function(){function t(){}return t.required=function(t){return s(t.value)?{required:!0}:null},t.requiredTrue=function(t){return t.value===!0?null:{required:!0}},t.email=function(t){return H.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(s(e.value))return null;var r=e.value?e.value.length:0;return t>r?{minlength:{requiredLength:t,actualLength:r}}:null}},t.maxLength=function(t){return function(e){var r=e.value?e.value.length:0;return r>t?{maxlength:{requiredLength:t,actualLength:r}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var r,n;return"string"==typeof e?(n="^"+e+"$",r=new RegExp(n)):(n=e.toString(),r=e),function(t){if(s(t.value))return null;var e=t.value;return r.test(e)?null:{pattern:{requiredPattern:n,actualValue:e}}}},t.nullValidator=function(){return null},t.compose=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){return p(c(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){var n=l(t,e).map(u);return o.map.call(r.forkJoin(n),p)}},t}(),z=new e.InjectionToken("NgValueAccessor"),G={provide:z,useExisting:e.forwardRef(function(){return W}),multi:!0},W=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();W.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[G]}]}],W.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var $={provide:z,useExisting:e.forwardRef(function(){return Q}),multi:!0},K=new e.InjectionToken("CompositionEventMode"),Q=function(){function t(t,e,r){this._renderer=t,this._elementRef=e,this._compositionMode=r,this.onChange=function(){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!h())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();Q.decorators=[{type:e.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[$]}]}],Q.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[K]}]}]};var X={provide:z,useExisting:e.forwardRef(function(){return Z}),multi:!0},Z=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},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.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();Z.decorators=[{type:e.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[X]}]}],Z.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var Y=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return j(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return m()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return m()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(){},e}(L),J={provide:z,useExisting:e.forwardRef(function(){return et}),multi:!0},tt=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(r){e._isSameGroup(r,t)&&r[1]!==t&&r[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:!1},t}();tt.decorators=[{type:e.Injectable}],tt.ctorParameters=function(){return[]};var et=function(){function t(t,e,r,n){this._renderer=t,this._elementRef=e,this._registry=r,this._injector=n,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Y),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.setElementProperty(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.setElementProperty(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: <input type="radio" formControlName="food" name="food">\n ')},t}();et.decorators=[{type:e.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[J]}]}],et.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:tt},{type:e.Injector}]},et.propDecorators={name:[{type:e.Input}],formControlName:[{type:e.Input}],value:[{type:e.Input}]};var rt={provide:z,useExisting:e.forwardRef(function(){return nt}),multi:!0},nt=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(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.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[rt]}]}],nt.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var ot={provide:z,useExisting:e.forwardRef(function(){return it}),multi:!0},it=function(){function t(t,r){this._renderer=t,this._elementRef=r,this._optionMap=new Map,this._idCounter=0,this.onChange=function(){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}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.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var r=y(e,t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",r)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(r){e.value=r,t(e._getOptionValue(r))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,r=Array.from(this._optionMap.keys());e<r.length;e++){var n=r[e];if(this._compareWith(this._optionMap.get(n),t))return n}return null},t.prototype._getOptionValue=function(t){var e=v(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}();it.decorators=[{type:e.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ot]}]}],it.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},it.propDecorators={compareWith:[{type:e.Input}]};var st=function(){function t(t,e,r){this._element=t,this._renderer=e,this._select=r,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(y(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.setElementProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap["delete"](this.id),this._select.writeValue(this._select.value))},t}();st.decorators=[{type:e.Directive,args:[{selector:"option"}]}],st.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:it,decorators:[{type:e.Optional},{type:e.Host}]}]},st.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var at={provide:z,useExisting:e.forwardRef(function(){return ut}),multi:!0},ut=function(){function t(t,r){this._renderer=t,this._elementRef=r,this._optionMap=new Map,this._idCounter=0,this.onChange=function(){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}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=this;this.value=t;var r;if(Array.isArray(t)){var n=t.map(function(t){return e._getOptionId(t)});r=function(t,e){t._setSelected(n.indexOf(e.toString())>-1)}}else r=function(t){t._setSelected(!1)};this._optionMap.forEach(r)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(r){var n=[];if(r.hasOwnProperty("selectedOptions"))for(var o=r.selectedOptions,i=0;i<o.length;i++){var s=o.item(i),a=e._getOptionValue(s.value);n.push(a)}else for(var o=r.options,i=0;i<o.length;i++){var s=o.item(i);if(s.selected){var a=e._getOptionValue(s.value);n.push(a)}}e.value=n,t(n)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,r=Array.from(this._optionMap.keys());e<r.length;e++){var n=r[e];if(this._compareWith(this._optionMap.get(n)._value,t))return n}return null},t.prototype._getOptionValue=function(t){var e=_(t); - -return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}();ut.decorators=[{type:e.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[at]}]}],ut.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},ut.propDecorators={compareWith:[{type:e.Input}]};var ct=function(){function t(t,e,r){this._element=t,this._renderer=e,this._select=r,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setElementProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap["delete"](this.id),this._select.writeValue(this._select.value))},t}();ct.decorators=[{type:e.Directive,args:[{selector:"option"}]}],ct.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:ut,decorators:[{type:e.Optional},{type:e.Host}]}]},ct.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var lt=[W,nt,Z,it,ut,et],pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(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 b(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 T(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(V),ht=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return this._cd.control?this._cd.control.untouched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return this._cd.control?this._cd.control.touched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return this._cd.control?this._cd.control.pristine:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return this._cd.control?this._cd.control.dirty:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return this._cd.control?this._cd.control.valid:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return this._cd.control?this._cd.control.invalid:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return this._cd.control?this._cd.control.pending:!1},enumerable:!0,configurable:!0}),t}(),ft={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},dt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e}(ht);dt.decorators=[{type:e.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:ft}]}],dt.ctorParameters=function(){return[{type:Y,decorators:[{type:e.Self}]}]};var mt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e}(ht);mt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ft}]}],mt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Self}]}]};var yt="VALID",vt="INVALID",gt="PENDING",_t="DISABLED",bt=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,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this._status===yt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this._status===vt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this._status==gt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._status===_t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._status!==_t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=k(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=I(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!0,this._parent&&!e&&this._parent.markAsTouched({onlySelf:e})},t.prototype.markAsUntouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype.markAsDirty=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!1,this._parent&&!e&&this._parent.markAsDirty({onlySelf:e})},t.prototype.markAsPristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype.markAsPending=function(t){var e=(void 0===t?{}:t).onlySelf;this._status=gt,this._parent&&!e&&this._parent.markAsPending({onlySelf:e})},t.prototype.disable=function(t){var e=void 0===t?{}:t,r=e.onlySelf,n=e.emitEvent;this._status=_t,this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),n!==!1&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!r),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){var e=void 0===t?{}:t,r=e.onlySelf,n=e.emitEvent;this._status=yt,this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n}),this._updateAncestors(!!r),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(){},t.prototype.patchValue=function(){},t.prototype.reset=function(){},t.prototype.updateValueAndValidity=function(t){var e=void 0===t?{}:t,r=e.onlySelf,n=e.emitEvent;this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),(this._status===yt||this._status===gt)&&this._runAsyncValidator(n)),n!==!1&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!r&&this._parent.updateValueAndValidity({onlySelf:r,emitEvent:n})},t.prototype._updateTreeValidity=function(t){var e=(void 0===t?{emitEvent:!0}:t).emitEvent;this._forEachChild(function(t){return t._updateTreeValidity({emitEvent:e})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e})},t.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?_t:yt},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this._status=gt;var r=u(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(function(r){return e.setErrors(r,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){var r=(void 0===e?{}:e).emitEvent;this._errors=t,this._updateControlsErrors(r!==!1)},t.prototype.get=function(t){return R(this,t,".")},t.prototype.getError=function(t,e){var r=e?this.get(e):this;return r&&r._errors?r._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 e.EventEmitter,this._statusChanges=new e.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?_t:this._errors?vt:this._anyControlsHaveStatus(gt)?gt:this._anyControlsHaveStatus(vt)?vt:yt},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(){},t.prototype._anyControls=function(){},t.prototype._allControlsDisabled=function(){},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){var e=(void 0===t?{}:t).onlySelf;this._pristine=!this._anyControlsDirty(),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype._updateTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=this._anyControlsTouched(),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},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}(),wt=function(t){function e(e,r,n){void 0===e&&(e=null);var o=t.call(this,k(r),I(n))||this;return o._onChange=[],o._applyFormState(e),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return j(e,t),e.prototype.setValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent,s=n.emitModelToViewChange,a=n.emitViewToModelChange;this._value=t,this._onChange.length&&s!==!1&&this._onChange.forEach(function(t){return t(r._value,a!==!1)}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},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);var r=void 0===e?{}:e,n=r.onlySelf,o=r.emitEvent;this._applyFormState(t),this.markAsPristine({onlySelf:n}),this.markAsUntouched({onlySelf:n}),this.setValue(this._value,{onlySelf:n,emitEvent:o})},e.prototype._updateValue=function(){},e.prototype._anyControls=function(){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(){},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t},e}(bt),Ct=function(t){function e(e,r,n){var o=t.call(this,r||null,n||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return j(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 r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent;this._checkAllValuesPresent(t),Object.keys(t).forEach(function(e){r._throwIfControlMissing(e),r.controls[e].setValue(t[e],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent;Object.keys(t).forEach(function(e){r.controls[e]&&r.controls[e].patchValue(t[e],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.reset=function(t,e){void 0===t&&(t={});var r=void 0===e?{}:e,n=r.onlySelf,o=r.emitEvent;this._forEachChild(function(e,r){e.reset(t[r],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:n,emitEvent:o}),this._updatePristine({onlySelf:n}),this._updateTouched({onlySelf:n})},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,r){return t[r]=e instanceof wt?e.value:e.getRawValue(),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(r){return t(e.controls[r],r)})},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,r=!1;return this._forEachChild(function(n,o){r=r||e.contains(o)&&t(n)}),r},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,r,n){return(r.enabled||t.disabled)&&(e[n]=r.value),e})},e.prototype._reduceChildren=function(t,e){var r=t;return this._forEachChild(function(t,n){r=e(r,t,n)}),r},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var r=e[t];if(this.controls[r].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,r){if(void 0===t[r])throw new Error("Must supply a value for form control with name: '"+r+"'.")})},e}(bt),Et=function(t){function e(e,r,n){var o=t.call(this,r||null,n||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return j(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(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},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 r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent;this._checkAllValuesPresent(t),t.forEach(function(t,e){r._throwIfControlMissing(e),r.at(e).setValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){var r=this,n=void 0===e?{}:e,o=n.onlySelf,i=n.emitEvent;t.forEach(function(t,e){r.at(e)&&r.at(e).patchValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.reset=function(t,e){void 0===t&&(t=[]);var r=void 0===e?{}:e,n=r.onlySelf,o=r.emitEvent;this._forEachChild(function(e,r){e.reset(t[r],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:n,emitEvent:o}),this._updatePristine({onlySelf:n}),this._updateTouched({onlySelf:n})},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof wt?t.value:t.getRawValue()})},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,r){t(e,r)})},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,r){if(void 0===t[r])throw new Error("Must supply a value for form control at index: "+r+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++){var r=e[t];if(r.enabled)return!1}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(bt),St={provide:V,useExisting:e.forwardRef(function(){return Tt})},xt=Promise.resolve(null),Tt=function(t){function r(r,n){var o=t.call(this)||this;return o._submitted=!1,o.ngSubmit=new e.EventEmitter,o.form=new Ct({},T(r),P(n)),o}return j(r,t),Object.defineProperty(r.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),r.prototype.addControl=function(t){var e=this;xt.then(function(){var r=e._findContainer(t.path);t._control=r.registerControl(t.name,t.control),w(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},r.prototype.getControl=function(t){return this.form.get(t.path)},r.prototype.removeControl=function(t){var e=this;xt.then(function(){var r=e._findContainer(t.path);r&&r.removeControl(t.name)})},r.prototype.addFormGroup=function(t){var e=this;xt.then(function(){var r=e._findContainer(t.path),n=new Ct({});E(n,t),r.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})},r.prototype.removeFormGroup=function(t){var e=this;xt.then(function(){var r=e._findContainer(t.path);r&&r.removeControl(t.name)})},r.prototype.getFormGroup=function(t){return this.form.get(t.path)},r.prototype.updateModel=function(t,e){var r=this;xt.then(function(){var n=r.form.get(t.path);n.setValue(e)})},r.prototype.setValue=function(t){this.control.setValue(t)},r.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},r.prototype.onReset=function(){this.resetForm()},r.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},r.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},r}(V);Tt.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[St],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],Tt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]};var Pt={formControlName:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ngModelWithFormGroup:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n '},At=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Pt.formControlName+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+Pt.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Pt.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Pt.ngModelGroup)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Pt.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Pt.ngModelGroup)},t}(),Ot={provide:V,useExisting:e.forwardRef(function(){return Mt})},Mt=function(t){function e(e,r,n){var o=t.call(this)||this;return o._parent=e,o._validators=r,o._asyncValidators=n,o}return j(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Tt||At.modelGroupParentException()},e}(pt);Mt.decorators=[{type:e.Directive,args:[{selector:"[ngModelGroup]",providers:[Ot],exportAs:"ngModelGroup"}]}],Mt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Mt.propDecorators={name:[{type:e.Input,args:["ngModelGroup"]}]};var Rt={provide:Y,useExisting:e.forwardRef(function(){return It})},kt=Promise.resolve(null),It=function(t){function r(r,n,o,i){var s=t.call(this)||this;return s._control=new wt,s._registered=!1,s.update=new e.EventEmitter,s._parent=r,s._rawValidators=n||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return j(r,t),r.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),A(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},r.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(r.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return this._parent?b(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),r.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},r.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},r.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},r.prototype._setUpStandalone=function(){w(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},r.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},r.prototype._checkParentType=function(){!(this._parent instanceof Mt)&&this._parent instanceof pt?At.formGroupNameException():this._parent instanceof Mt||this._parent instanceof Tt||At.modelParentException()},r.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||At.missingNameException()},r.prototype._updateValue=function(t){var e=this;kt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},r.prototype._updateDisabled=function(t){var e=this,r=t.isDisabled.currentValue,n=""===r||r&&"false"!==r;kt.then(function(){n&&!e.control.disabled?e.control.disable():!n&&e.control.disabled&&e.control.enable()})},r}(Y);It.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Rt],exportAs:"ngModel"}]}],It.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},It.propDecorators={name:[{type:e.Input}],isDisabled:[{type:e.Input,args:["disabled"]}],model:[{type:e.Input,args:["ngModel"]}],options:[{type:e.Input,args:["ngModelOptions"]}],update:[{type:e.Output,args:["ngModelChange"]}]};var Nt=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 "+Pt.formControlName)},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 '+Pt.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Pt.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Pt.formControlName)},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 "+Pt.formGroupName)},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 "+Pt.formArrayName)},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}(),Dt={provide:Y,useExisting:e.forwardRef(function(){return jt})},jt=function(t){function r(r,n,o){var i=t.call(this)||this;return i.update=new e.EventEmitter,i._rawValidators=r||[],i._rawAsyncValidators=n||[],i.valueAccessor=M(i,o),i} -return j(r,t),Object.defineProperty(r.prototype,"isDisabled",{set:function(){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),r.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(w(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),A(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(r.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),r.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},r.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},r}(Y);jt.decorators=[{type:e.Directive,args:[{selector:"[formControl]",providers:[Dt],exportAs:"ngForm"}]}],jt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},jt.propDecorators={form:[{type:e.Input,args:["formControl"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Lt={provide:V,useExisting:e.forwardRef(function(){return Vt})},Vt=function(t){function r(r,n){var o=t.call(this)||this;return o._validators=r,o._asyncValidators=n,o._submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new e.EventEmitter,o}return j(r,t),r.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(r.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),r.prototype.addControl=function(t){var e=this.form.get(t.path);return w(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},r.prototype.getControl=function(t){return this.form.get(t.path)},r.prototype.removeControl=function(t){N(this.directives,t)},r.prototype.addFormGroup=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},r.prototype.removeFormGroup=function(){},r.prototype.getFormGroup=function(t){return this.form.get(t.path)},r.prototype.addFormArray=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},r.prototype.removeFormArray=function(){},r.prototype.getFormArray=function(t){return this.form.get(t.path)},r.prototype.updateModel=function(t,e){var r=this.form.get(t.path);r.setValue(e)},r.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},r.prototype.onReset=function(){this.resetForm()},r.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},r.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var r=t.form.get(e.path);e._control!==r&&(C(e._control,e),r&&w(r,e),e._control=r)}),this.form._updateTreeValidity({emitEvent:!1})},r.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},r.prototype._updateValidators=function(){var t=T(this._validators);this.form.validator=q.compose([this.form.validator,t]);var e=P(this._asyncValidators);this.form.asyncValidator=q.composeAsync([this.form.asyncValidator,e])},r.prototype._checkFormPresent=function(){this.form||Nt.missingFormException()},r}(V);Vt.decorators=[{type:e.Directive,args:[{selector:"[formGroup]",providers:[Lt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Vt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Vt.propDecorators={form:[{type:e.Input,args:["formGroup"]}],ngSubmit:[{type:e.Output}]};var Ft={provide:V,useExisting:e.forwardRef(function(){return Ut})},Ut=function(t){function e(e,r,n){var o=t.call(this)||this;return o._parent=e,o._validators=r,o._asyncValidators=n,o}return j(e,t),e.prototype._checkParentType=function(){D(this._parent)&&Nt.groupParentException()},e}(pt);Ut.decorators=[{type:e.Directive,args:[{selector:"[formGroupName]",providers:[Ft]}]}],Ut.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Ut.propDecorators={name:[{type:e.Input,args:["formGroupName"]}]};var Bt={provide:V,useExisting:e.forwardRef(function(){return Ht})},Ht=function(t){function e(e,r,n){var o=t.call(this)||this;return o._parent=e,o._validators=r,o._asyncValidators=n,o}return j(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 b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return T(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){D(this._parent)&&Nt.arrayParentException()},e}(V);Ht.decorators=[{type:e.Directive,args:[{selector:"[formArrayName]",providers:[Bt]}]}],Ht.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Ht.propDecorators={name:[{type:e.Input,args:["formArrayName"]}]};var qt={provide:Y,useExisting:e.forwardRef(function(){return zt})},zt=function(t){function r(r,n,o,i){var s=t.call(this)||this;return s._added=!1,s.update=new e.EventEmitter,s._parent=r,s._rawValidators=n||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return j(r,t),Object.defineProperty(r.prototype,"isDisabled",{set:function(){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),r.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),A(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},r.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},r.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(r.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),r.prototype._checkParentType=function(){!(this._parent instanceof Ut)&&this._parent instanceof pt?Nt.ngModelGroupException():this._parent instanceof Ut||this._parent instanceof Vt||this._parent instanceof Ht||Nt.controlParentException()},r.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},r}(Y);zt.decorators=[{type:e.Directive,args:[{selector:"[formControlName]",providers:[qt]}]}],zt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},zt.propDecorators={name:[{type:e.Input,args:["formControlName"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Gt={provide:U,useExisting:e.forwardRef(function(){return $t}),multi:!0},Wt={provide:U,useExisting:e.forwardRef(function(){return Kt}),multi:!0},$t=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&t!==!1&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?q.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();$t.decorators=[{type:e.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Gt],host:{"[attr.required]":'required ? "" : null'}}]}],$t.ctorParameters=function(){return[]},$t.propDecorators={required:[{type:e.Input}]};var Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.validate=function(t){return this.required?q.requiredTrue(t):null},e}($t);Kt.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Wt],host:{"[attr.required]":'required ? "" : null'}}]}],Kt.ctorParameters=function(){return[]};var Qt={provide:U,useExisting:e.forwardRef(function(){return Xt}),multi:!0},Xt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||t===!0||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?q.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Xt.decorators=[{type:e.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Qt]}]}],Xt.ctorParameters=function(){return[]},Xt.propDecorators={email:[{type:e.Input}]};var Zt={provide:U,useExisting:e.forwardRef(function(){return Yt}),multi:!0},Yt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.minLength(parseInt(this.minlength,10))},t}();Yt.decorators=[{type:e.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Zt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Yt.ctorParameters=function(){return[]},Yt.propDecorators={minlength:[{type:e.Input}]};var Jt={provide:U,useExisting:e.forwardRef(function(){return te}),multi:!0},te=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=q.maxLength(parseInt(this.maxlength,10))},t}();te.decorators=[{type:e.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Jt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],te.ctorParameters=function(){return[]},te.propDecorators={maxlength:[{type:e.Input}]};var ee={provide:U,useExisting:e.forwardRef(function(){return re}),multi:!0},re=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.pattern(this.pattern)},t}();re.decorators=[{type:e.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ee],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],re.ctorParameters=function(){return[]},re.propDecorators={pattern:[{type:e.Input}]};var ne=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var r=this._reduceControls(t),n=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new Ct(r,n,o)},t.prototype.control=function(t,e,r){return new wt(t,e,r)},t.prototype.array=function(t,e,r){var n=this,o=t.map(function(t){return n._createControl(t)});return new Et(o,e,r)},t.prototype._reduceControls=function(t){var e=this,r={};return Object.keys(t).forEach(function(n){r[n]=e._createControl(t[n])}),r},t.prototype._createControl=function(t){if(t instanceof wt||t instanceof Ct||t instanceof Et)return t;if(Array.isArray(t)){var e=t[0],r=t.length>1?t[1]:null,n=t.length>2?t[2]:null;return this.control(e,r,n)}return this.control(t)},t}();ne.decorators=[{type:e.Injectable}],ne.ctorParameters=function(){return[]};var oe=new e.Version("4.1.0"),ie=function(){function t(){}return t}();ie.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],ie.ctorParameters=function(){return[]};var se=[ie,st,ct,Q,Z,nt,W,it,ut,et,dt,mt,$t,Yt,te,re,Kt,Xt],ae=[It,Mt,Tt],ue=[jt,Vt,zt,Ut,Ht],ce=function(){function t(){}return t}();ce.decorators=[{type:e.NgModule,args:[{declarations:se,exports:se}]}],ce.ctorParameters=function(){return[]};var le=function(){function t(){}return t}();le.decorators=[{type:e.NgModule,args:[{declarations:ae,providers:[tt],exports:[ce,ae]}]}],le.ctorParameters=function(){return[]};var pe=function(){function t(){}return t}();pe.decorators=[{type:e.NgModule,args:[{declarations:[ue],providers:[ne,tt],exports:[ce,ue]}]}],pe.ctorParameters=function(){return[]},t.AbstractControlDirective=L,t.AbstractFormGroupDirective=pt,t.CheckboxControlValueAccessor=W,t.ControlContainer=V,t.NG_VALUE_ACCESSOR=z,t.COMPOSITION_BUFFER_MODE=K,t.DefaultValueAccessor=Q,t.NgControl=Y,t.NgControlStatus=dt,t.NgControlStatusGroup=mt,t.NgForm=Tt,t.NgModel=It,t.NgModelGroup=Mt,t.RadioControlValueAccessor=et,t.FormControlDirective=jt,t.FormControlName=zt,t.FormGroupDirective=Vt,t.FormArrayName=Ht,t.FormGroupName=Ut,t.NgSelectOption=st,t.SelectControlValueAccessor=it,t.SelectMultipleControlValueAccessor=ut,t.CheckboxRequiredValidator=Kt,t.EmailValidator=Xt,t.MaxLengthValidator=te,t.MinLengthValidator=Yt,t.PatternValidator=re,t.RequiredValidator=$t,t.FormBuilder=ne,t.AbstractControl=bt,t.FormArray=Et,t.FormControl=wt,t.FormGroup=Ct,t.NG_ASYNC_VALIDATORS=B,t.NG_VALIDATORS=U,t.Validators=q,t.VERSION=oe,t.FormsModule=le,t.ReactiveFormsModule=pe,t.ɵba=ce,t.ɵz=ue,t.ɵx=se,t.ɵy=ae,t.ɵa=G,t.ɵb=$,t.ɵc=ht,t.ɵd=ft,t.ɵe=St,t.ɵf=Rt,t.ɵg=Ot,t.ɵbf=ie,t.ɵbb=X,t.ɵbc=Z,t.ɵh=J,t.ɵi=tt,t.ɵbd=rt,t.ɵbe=nt,t.ɵj=Dt,t.ɵk=qt,t.ɵl=Lt,t.ɵn=Bt,t.ɵm=Ft,t.ɵo=ot,t.ɵq=ct,t.ɵp=at,t.ɵs=Wt,t.ɵt=Qt,t.ɵv=Jt,t.ɵu=Zt,t.ɵw=ee,t.ɵr=Gt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8,"@angular/platform-browser":12,"rxjs/observable/forkJoin":34,"rxjs/observable/fromPromise":36,"rxjs/operator/map":46}],10:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core"),e("rxjs/Observable"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/core","rxjs/Observable","@angular/platform-browser"],i):i((o.ng=o.ng||{},o.ng.http=o.ng.http||{}),o.ng.core,o.Rx,o.ng.platformBrowser)}(this,function(t,e,r,n){"use strict";function o(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return v.Get;case"POST":return v.Post;case"PUT":return v.Put;case"DELETE":return v.Delete;case"OPTIONS":return v.Options;case"HEAD":return v.Head;case"PATCH":return v.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function i(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function s(t){for(var e=new Uint16Array(t.length),r=0,n=t.length;n>r;r++)e[r]=t.charCodeAt(r);return e.buffer}function a(t){void 0===t&&(t="");var e=new Map;if(t.length>0){var r=t.split("&");r.forEach(function(t){var r=t.indexOf("="),n=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)],o=n[0],i=n[1],s=e.get(o)||[];s.push(i),e.set(o,s)})}return e}function u(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,"/")}function c(){var t="object"==typeof window?window:{};return null===D&&(D=t[N]={}),D}function l(t,e){return t.createConnection(e).response}function p(t,e,r,n){var o=t;return o.merge(e?new $({method:e.method||r,url:e.url||n,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}):new $({method:r,url:n}))}function h(){return new G}function f(t,e){return new et(t,e)}function d(t,e){return new rt(t,e)}var m=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},y=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();y.decorators=[{type:e.Injectable}],y.ctorParameters=function(){return[]};var v={};v.Get=0,v.Post=1,v.Put=2,v.Delete=3,v.Options=4,v.Head=5,v.Patch=6,v[v.Get]="Get",v[v.Post]="Post",v[v.Put]="Put",v[v.Delete]="Delete",v[v.Options]="Options",v[v.Head]="Head",v[v.Patch]="Patch";var g={};g.Unsent=0,g.Open=1,g.HeadersReceived=2,g.Loading=3,g.Done=4,g.Cancelled=5,g[g.Unsent]="Unsent",g[g.Open]="Open",g[g.HeadersReceived]="HeadersReceived",g[g.Loading]="Loading",g[g.Done]="Done",g[g.Cancelled]="Cancelled";var _={};_.Basic=0,_.Cors=1,_.Default=2,_.Error=3,_.Opaque=4,_[_.Basic]="Basic",_[_.Cors]="Cors",_[_.Default]="Default",_[_.Error]="Error",_[_.Opaque]="Opaque";var b={};b.NONE=0,b.JSON=1,b.FORM=2,b.FORM_DATA=3,b.TEXT=4,b.BLOB=5,b.ARRAY_BUFFER=6,b[b.NONE]="NONE",b[b.JSON]="JSON",b[b.FORM]="FORM",b[b.FORM_DATA]="FORM_DATA",b[b.TEXT]="TEXT",b[b.BLOB]="BLOB",b[b.ARRAY_BUFFER]="ARRAY_BUFFER";var w={};w.Text=0,w.Json=1,w.ArrayBuffer=2,w.Blob=3,w[w.Text]="Text",w[w.Json]="Json",w[w.ArrayBuffer]="ArrayBuffer",w[w.Blob]="Blob";var C=function(){function t(e){var r=this;return this._headers=new Map,this._normalizedNames=new Map,e?e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return r.append(e,t)})}):void Object.keys(e).forEach(function(t){var n=Array.isArray(e[t])?e[t]:[e[t]];r["delete"](t),n.forEach(function(e){return r.append(t,e)})}):void 0}return t.fromResponseHeaderString=function(e){var r=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var n=t.slice(0,e),o=t.slice(e+1).trim();r.set(n,o)}}),r},t.prototype.append=function(t,e){var r=this.getAll(t);null===r?this.set(t,e):r.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(r,n){return t(r,e._normalizedNames.get(n),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(r,n){var o=[];r.forEach(function(t){return o.push.apply(o,t.split(","))}),e[t._normalizedNames.get(n)]=o}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase())||null: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}(),E=function(){function t(t){var e=void 0===t?{}:t,r=e.body,n=e.status,o=e.headers,i=e.statusText,s=e.type,a=e.url;this.body=null!=r?r:null,this.status=null!=n?n:null,this.headers=null!=o?o:null,this.statusText=null!=i?i:null,this.type=null!=s?s:null,this.url=null!=a?a: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}(),S=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:_.Default,headers:new C})||this}return m(e,t),e}(E);S.decorators=[{type:e.Injectable}],S.ctorParameters=function(){return[]};var x=function(){function t(){}return t.prototype.createConnection=function(){},t}(),T=function(){function t(){}return t}(),P=function(){function t(){}return t.prototype.configureRequest=function(){},t}(),A=function(t){return t>=200&&300>t},O=function(){function t(){}return t.prototype.encodeKey=function(t){return u(t)},t.prototype.encodeValue=function(t){return u(t)},t}(),M=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new O),this.rawParams=t,this.queryEncoder=e,this.paramsMap=a(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)return void this["delete"](t);var r=this.paramsMap.get(t)||[];r.length=0,r.push(e),this.paramsMap.set(t,r)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){var n=e.paramsMap.get(r)||[];n.length=0,n.push(t[0]),e.paramsMap.set(r,n)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var r=this.paramsMap.get(t)||[];r.push(e),this.paramsMap.set(t,r)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){for(var n=e.paramsMap.get(r)||[],o=0;o<t.length;++o)n.push(t[o]);e.paramsMap.set(r,n)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,r){var n=e.paramsMap.get(r)||[];n.length=0;for(var o=0;o<t.length;++o)n.push(t[o]);e.paramsMap.set(r,n)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(r,n){r.forEach(function(r){return e.push(t.queryEncoder.encodeKey(n)+"="+t.queryEncoder.encodeValue(r))})}),e.join("&")},t.prototype["delete"]=function(t){this.paramsMap["delete"](t)},t}(),R=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(){return this._body instanceof M?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:s(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),k=function(t){function e(e){var r=t.call(this)||this;return r._body=e.body,r.status=e.status,r.ok=r.status>=200&&r.status<=299,r.statusText=e.statusText,r.headers=e.headers,r.type=e.type,r.url=e.url,r}return m(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(R),I=0,N="__ng_jsonp__",D=null,j=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+I++},t.prototype.requestCallback=function(t){return N+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){var r=c();r[t]=e},t.prototype.removeConnection=function(t){var e=c();e[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();j.decorators=[{type:e.Injectable}],j.ctorParameters=function(){return[]};var L="JSONP injected script did not invoke callback.",V="JSONP requests must use GET request method.",F=function(){function t(){}return t.prototype.finished=function(){},t}(),U=function(t){function e(e,n,o){var i=t.call(this)||this;if(i._dom=n,i.baseResponseOptions=o,i._finished=!1,e.method!==v.Get)throw new TypeError(V);return i.request=e,i.response=new r.Observable(function(t){i.readyState=g.Loading;var r=i._id=n.nextRequestID();n.exposeConnection(r,i);var s=n.requestCallback(i._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+("="+s));var u=i._script=n.build(a),c=function(){if(i.readyState!==g.Cancelled){if(i.readyState=g.Done,n.cleanup(u),!i._finished){var e=new E({body:L,type:_.Error,url:a});return o&&(e=o.merge(e)),void t.error(new k(e))}var r=new E({body:i._responseData,url:a});i.baseResponseOptions&&(r=i.baseResponseOptions.merge(r)),t.next(new k(r)),t.complete()}},l=function(e){if(i.readyState!==g.Cancelled){i.readyState=g.Done,n.cleanup(u);var r=new E({body:e.message,type:_.Error});o&&(r=o.merge(r)),t.error(new k(r))}};return u.addEventListener("load",c),u.addEventListener("error",l),n.send(u),function(){i.readyState=g.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),i._dom.cleanup(u)}}),i}return m(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==g.Cancelled&&(this._responseData=t)},e}(F),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(x),H=function(t){function e(e,r){var n=t.call(this)||this;return n._browserJSONP=e,n._baseResponseOptions=r,n}return m(e,t),e.prototype.createConnection=function(t){return new U(t,this._browserJSONP,this._baseResponseOptions)},e}(B);H.decorators=[{type:e.Injectable}],H.ctorParameters=function(){return[{type:j},{type:E}]};var q=/^\)\]\}',?\n/,z=function(){function t(t,e,n){var o=this;this.request=t,this.response=new r.Observable(function(r){var s=e.build();s.open(v[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,o=null;204!==e&&(o="undefined"==typeof s.response?s.responseText:s.response,"string"==typeof o&&(o=o.replace(q,""))),0===e&&(e=o?200:0);var a=C.fromResponseHeaderString(s.getAllResponseHeaders()),u=i(s)||t.url,c=s.statusText||"OK",l=new E({body:o,status:e,headers:a,statusText:c,url:u});null!=n&&(l=n.merge(l));var p=new k(l);return p.ok=A(e),p.ok?(r.next(p),void r.complete()):void r.error(p)},u=function(t){var e=new E({body:t,type:_.Error,status:s.status,statusText:s.statusText});null!=n&&(e=n.merge(e)),r.error(new k(e))};if(o.setDetectedContentType(t,s),null==t.headers&&(t.headers=new C),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case w.ArrayBuffer:s.responseType="arraybuffer";break;case w.Json:s.responseType="json";break;case w.Text:s.responseType="text";break;case w.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(o.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case b.NONE:break;case b.JSON:e.setRequestHeader("content-type","application/json");break;case b.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case b.TEXT:e.setRequestHeader("content-type","text/plain");break;case b.BLOB:var r=t.blob();r.type&&e.setRequestHeader("content-type",r.type)}},t}(),G=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=n.ɵgetDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),W=function(){function t(t,e,r){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=r}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new z(t,this._browserXHR,this._baseResponseOptions)},t}();W.decorators=[{type:e.Injectable}],W.ctorParameters=function(){return[{type:y},{type:E},{type:P}]};var $=function(){function t(t){var e=void 0===t?{}:t,r=e.method,n=e.headers,i=e.body,s=e.url,a=e.search,u=e.params,c=e.withCredentials,l=e.responseType;this.method=null!=r?o(r):null,this.headers=null!=n?n:null,this.body=null!=i?i:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(u||a),this.withCredentials=null!=c?c: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 C(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 M?t.clone():"string"==typeof t?new M(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this; -void 0===t&&(t={});var r=new M;return Object.keys(t).forEach(function(n){var o=t[n];Array.isArray(o)?o.forEach(function(t){return e._appendParam(n,t,r)}):e._appendParam(n,o,r)}),r},t.prototype._appendParam=function(t,e,r){"string"!=typeof e&&(e=JSON.stringify(e)),r.append(t,e)},t}(),K=function(t){function e(){return t.call(this,{method:v.Get,headers:new C})||this}return m(e,t),e}($);K.decorators=[{type:e.Injectable}],K.ctorParameters=function(){return[]};var Q=function(t){function e(e){var r=t.call(this)||this,n=e.url;if(r.url=e.url,e.params){var i=e.params.toString();if(i.length>0){var s="?";-1!=r.url.indexOf("?")&&(s="&"==r.url[r.url.length-1]?"":"&"),r.url=n+s+i}}return r._body=e.body,r.method=o(e.method),r.headers=new C(e.headers),r.contentType=r.detectContentType(),r.withCredentials=e.withCredentials,r.responseType=e.responseType,r}return m(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return b.JSON;case"application/x-www-form-urlencoded":return b.FORM;case"multipart/form-data":return b.FORM_DATA;case"text/plain":case"text/html":return b.TEXT;case"application/octet-stream":return this._body instanceof tt?b.ARRAY_BUFFER:b.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?b.NONE:this._body instanceof M?b.FORM:this._body instanceof Y?b.FORM_DATA:this._body instanceof J?b.BLOB:this._body instanceof tt?b.ARRAY_BUFFER:this._body&&"object"==typeof this._body?b.JSON:b.TEXT},e.prototype.getBody=function(){switch(this.contentType){case b.JSON:return this.text();case b.FORM:return this.text();case b.FORM_DATA:return this._body;case b.TEXT:return this.text();case b.BLOB:return this.blob();case b.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(R),X=function(){},Z="object"==typeof window?window:X,Y=Z.FormData||X,J=Z.Blob||X,tt=Z.ArrayBuffer||X,et=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var r;if("string"==typeof t)r=l(this._backend,new Q(p(this._defaultOptions,e,v.Get,t)));else{if(!(t instanceof Q))throw new Error("First argument must be a url string or Request instance.");r=l(this._backend,t)}return r},t.prototype.get=function(t,e){return this.request(new Q(p(this._defaultOptions,e,v.Get,t)))},t.prototype.post=function(t,e,r){return this.request(new Q(p(this._defaultOptions.merge(new $({body:e})),r,v.Post,t)))},t.prototype.put=function(t,e,r){return this.request(new Q(p(this._defaultOptions.merge(new $({body:e})),r,v.Put,t)))},t.prototype["delete"]=function(t,e){return this.request(new Q(p(this._defaultOptions,e,v.Delete,t)))},t.prototype.patch=function(t,e,r){return this.request(new Q(p(this._defaultOptions.merge(new $({body:e})),r,v.Patch,t)))},t.prototype.head=function(t,e){return this.request(new Q(p(this._defaultOptions,e,v.Head,t)))},t.prototype.options=function(t,e){return this.request(new Q(p(this._defaultOptions,e,v.Options,t)))},t}();et.decorators=[{type:e.Injectable}],et.ctorParameters=function(){return[{type:x},{type:$}]};var rt=function(t){function e(e,r){return t.call(this,e,r)||this}return m(e,t),e.prototype.request=function(t,e){var r;if("string"==typeof t&&(t=new Q(p(this._defaultOptions,e,v.Get,t))),!(t instanceof Q))throw new Error("First argument must be a url string or Request instance.");if(t.method!==v.Get)throw new Error("JSONP requests must use GET request method.");return r=l(this._backend,t)},e}(et);rt.decorators=[{type:e.Injectable}],rt.ctorParameters=function(){return[{type:x},{type:$}]};var nt=function(){function t(){}return t}();nt.decorators=[{type:e.NgModule,args:[{providers:[{provide:et,useFactory:f,deps:[W,$]},y,{provide:$,useClass:K},{provide:E,useClass:S},W,{provide:P,useFactory:h}]}]}],nt.ctorParameters=function(){return[]};var ot=function(){function t(){}return t}();ot.decorators=[{type:e.NgModule,args:[{providers:[{provide:rt,useFactory:d,deps:[B,$]},j,{provide:$,useClass:K},{provide:E,useClass:S},{provide:B,useClass:H}]}]}],ot.ctorParameters=function(){return[]};var it=new e.Version("4.1.0");t.BrowserXhr=y,t.JSONPBackend=B,t.JSONPConnection=F,t.CookieXSRFStrategy=G,t.XHRBackend=W,t.XHRConnection=z,t.BaseRequestOptions=K,t.RequestOptions=$,t.BaseResponseOptions=S,t.ResponseOptions=E,t.ReadyState=g,t.RequestMethod=v,t.ResponseContentType=w,t.ResponseType=_,t.Headers=C,t.Http=et,t.Jsonp=rt,t.HttpModule=nt,t.JsonpModule=ot,t.Connection=T,t.ConnectionBackend=x,t.XSRFStrategy=P,t.Request=Q,t.Response=k,t.QueryEncoder=O,t.URLSearchParams=M,t.VERSION=it,t.ɵg=j,t.ɵa=H,t.ɵf=R,t.ɵb=h,t.ɵc=f,t.ɵd=d,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8,"@angular/platform-browser":12,"rxjs/Observable":17}],11:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/compiler"),e("@angular/core"),e("@angular/common"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/compiler","@angular/core","@angular/common","@angular/platform-browser"],i):i((o.ng=o.ng||{},o.ng.platformBrowserDynamic=o.ng.platformBrowserDynamic||{}),o.ng.compiler,o.ng.core,o.ng.common,o.ng.platformBrowser)}(this,function(t,e,r,n,o){"use strict";var i=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.get=function(t){var e,r,n=new Promise(function(t,n){e=t,r=n}),o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="text",o.onload=function(){var n=o.response||o.responseText,i=1223===o.status?204:o.status;0===i&&(i=n?200:0),i>=200&&300>=i?e(n):r("Failed to load "+t)},o.onerror=function(){r("Failed to load "+t)},o.send(),n},e}(e.ResourceLoader);s.decorators=[{type:r.Injectable}],s.ctorParameters=function(){return[]};var a=[o.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:r.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:s}]},multi:!0},{provide:r.PLATFORM_ID,useValue:n.ɵPLATFORM_BROWSER_ID}],u=function(t){function e(){var e=t.call(this)||this;if(e._cache=r.ɵglobal.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return i(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(e.ResourceLoader),c=new r.Version("4.1.0"),l=[{provide:e.ResourceLoader,useClass:u}],p=r.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",a);t.RESOURCE_CACHE_PROVIDER=l,t.platformBrowserDynamic=p,t.VERSION=c,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=a,t.ɵResourceLoaderImpl=s,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/compiler":7,"@angular/core":8,"@angular/platform-browser":12}],12:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/common"),e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core"],i):i((o.ng=o.ng||{},o.ng.platformBrowser=o.ng.platformBrowser||{}),o.ng.common,o.ng.core)}(this,function(t,e,r){"use strict";function n(){return L}function o(t){L||(L=t)}function i(){return W||(W=document.querySelector("base"))?W.getAttribute("href"):null}function s(t){return z||(z=document.createElement("a")),z.setAttribute("href",t),"/"===z.pathname.charAt(0)?z.pathname:"/"+z.pathname}function a(t,e){e=encodeURIComponent(e);for(var r=0,n=t.split(";");r<n.length;r++){var o=n[r],i=o.indexOf("="),s=-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t,e,r){for(var n=e.split("."),o=t;n.length>1;){var i=n.shift();o=o.hasOwnProperty(i)&&null!=o[i]?o[i]:o[i]={}}(void 0===o||null===o)&&(o={}),o[n.shift()]=r}function c(){return!!window.history.pushState}function l(t,e){var r=function(){var r=n(),o=Array.prototype.slice.apply(r.querySelectorAll(e,"style[ng-transition]"));o.filter(function(e){return r.getAttribute(e,"ng-transition")===t}).forEach(function(t){return r.remove(t)})};return r}function p(t){return r.getDebugNode(t)}function h(t,e){var r=(t||[]).concat(e||[]);return n().setGlobalVar(rt,p),n().setGlobalVar(nt,tt({},et,f(r||[]))),function(){return p}}function f(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return mt.replace(ht,t)}function m(t){return dt.replace(ht,t)}function y(t,e,r){for(var n=0;n<e.length;n++){var o=e[n];Array.isArray(o)?y(t,o,r):(o=o.replace(ht,t),r.push(o))}return r}function v(t){return function(e){var r=t(e);r===!1&&(e.preventDefault(),e.returnValue=!1)}}function g(t,e){if(t.charCodeAt(0)===gt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function _(t){return t=String(t),t.match(Ot)||t.match(Mt)?t:(r.isDevMode()&&n().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return t=String(t),t.split(",").map(function(t){return _(t.trim())}).join(", ")}function w(){if(Rt)return Rt;kt=n();var t=kt.createElement("template");if("content"in t)return t;var e=kt.createHtmlDocument();if(Rt=kt.querySelector(e,"body"),null==Rt){var r=kt.createElement("html",e);Rt=kt.createElement("body",e),kt.appendChild(r,Rt),kt.appendChild(e,r)}return Rt}function C(t){for(var e={},r=0,n=t.split(",");r<n.length;r++){var o=n[r];e[o]=!0}return e}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r={},n=0,o=t;n<o.length;n++){var i=o[n];for(var s in i)i.hasOwnProperty(s)&&(r[s]=!0)}return r}function S(t,e){if(e&&kt.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+kt.getOuterHTML(t));return e}function x(t){return t.replace(/&/g,"&").replace(Gt,function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(r-56320)+65536)+";"}).replace(Wt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function T(t){kt.attributeMap(t).forEach(function(e,r){("xmlns:ns1"===r||0===r.indexOf("ns1:"))&&kt.removeAttribute(t,r)});for(var e=0,r=kt.childNodesAsList(t);e<r.length;e++){var n=r[e];kt.isElementNode(n)&&T(n)}}function P(t,e){try{var n=w(),o=e?String(e):"",i=5,s=o;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,o=s,kt.setInnerHTML(n,o),t.documentMode&&T(n),s=kt.getInnerHTML(n)}while(o!==s);for(var a=new zt,u=a.sanitizeChildren(kt.getTemplateContent(n)||n),c=kt.getTemplateContent(n)||n,l=0,p=kt.childNodesAsList(c);l<p.length;l++){var h=p[l];kt.removeChild(c,h)}return r.isDevMode()&&a.sanitizedSomething&&kt.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}catch(f){throw Rt=null,f}}function A(t){for(var e=!0,r=!0,n=0;n<t.length;n++){var o=t.charAt(n);"'"===o&&r?e=!e:'"'===o&&e&&(r=!r)}return e&&r}function O(t){if(t=String(t).trim(),!t)return"";var e=t.match(te);return e&&_(e[1])===e[1]||t.match(Jt)&&A(t)?t:(r.isDevMode()&&n().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function M(){G.makeCurrent(),Y.init()}function R(){return new r.ErrorHandler}function k(){return document}function I(t){return n().setGlobalVar(ye,new me(t)),t}function N(){n().setGlobalVar(ye,null)}var D,j=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},L=null,V=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(){},t.prototype.setProperty=function(){},t.prototype.getProperty=function(){},t.prototype.invoke=function(){},t.prototype.logError=function(){},t.prototype.log=function(){},t.prototype.logGroup=function(){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(){},t.prototype.parse=function(){},t.prototype.querySelector=function(){},t.prototype.querySelectorAll=function(){},t.prototype.on=function(){},t.prototype.onAndCancel=function(){},t.prototype.dispatchEvent=function(){},t.prototype.createMouseEvent=function(){},t.prototype.createEvent=function(){},t.prototype.preventDefault=function(){},t.prototype.isPrevented=function(){},t.prototype.getInnerHTML=function(){},t.prototype.getTemplateContent=function(){},t.prototype.getOuterHTML=function(){},t.prototype.nodeName=function(){},t.prototype.nodeValue=function(){},t.prototype.type=function(){},t.prototype.content=function(){},t.prototype.firstChild=function(){},t.prototype.nextSibling=function(){},t.prototype.parentElement=function(){},t.prototype.childNodes=function(){},t.prototype.childNodesAsList=function(){},t.prototype.clearNodes=function(){},t.prototype.appendChild=function(){},t.prototype.removeChild=function(){},t.prototype.replaceChild=function(){},t.prototype.remove=function(){},t.prototype.insertBefore=function(){},t.prototype.insertAllBefore=function(){},t.prototype.insertAfter=function(){},t.prototype.setInnerHTML=function(){},t.prototype.getText=function(){},t.prototype.setText=function(){},t.prototype.getValue=function(){},t.prototype.setValue=function(){},t.prototype.getChecked=function(){},t.prototype.setChecked=function(){},t.prototype.createComment=function(){},t.prototype.createTemplate=function(){},t.prototype.createElement=function(){},t.prototype.createElementNS=function(){},t.prototype.createTextNode=function(){},t.prototype.createScriptTag=function(){},t.prototype.createStyleElement=function(){},t.prototype.createShadowRoot=function(){},t.prototype.getShadowRoot=function(){},t.prototype.getHost=function(){},t.prototype.getDistributedNodes=function(){},t.prototype.clone=function(){},t.prototype.getElementsByClassName=function(){},t.prototype.getElementsByTagName=function(){},t.prototype.classList=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.hasClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.getStyle=function(){},t.prototype.hasStyle=function(){},t.prototype.tagName=function(){},t.prototype.attributeMap=function(){},t.prototype.hasAttribute=function(){},t.prototype.hasAttributeNS=function(){},t.prototype.getAttribute=function(){},t.prototype.getAttributeNS=function(){},t.prototype.setAttribute=function(){},t.prototype.setAttributeNS=function(){},t.prototype.removeAttribute=function(){},t.prototype.removeAttributeNS=function(){},t.prototype.templateAwareRoot=function(){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(){},t.prototype.getTitle=function(){},t.prototype.setTitle=function(){},t.prototype.elementMatches=function(){},t.prototype.isTemplateElement=function(){},t.prototype.isTextNode=function(){},t.prototype.isCommentNode=function(){},t.prototype.isElementNode=function(){},t.prototype.hasShadowRoot=function(){},t.prototype.isShadowRoot=function(){},t.prototype.importIntoDoc=function(){},t.prototype.adoptNode=function(){},t.prototype.getHref=function(){},t.prototype.getEventKey=function(){},t.prototype.resolveAndSetHref=function(){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(){},t.prototype.getComputedStyle=function(){},t.prototype.getData=function(){},t.prototype.setGlobalVar=function(){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(){},t.prototype.setCookie=function(){},t}(),F=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var r=e.createElement("div",document);if(null!=e.getStyle(r,"animationName"))e._animationPrefix="";else for(var n=["Webkit","Moz","O","ms"],o=0;o<n.length;o++)if(null!=e.getStyle(r,n[o]+"AnimationName")){e._animationPrefix="-"+n[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(r,t)&&(e._transitionEnd=i[t])})}catch(s){e._animationPrefix=null,e._transitionEnd=null}return e}return j(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,r){t.href=null==r?e:e+"/../"+r},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(V),U={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},B=3,H={"\b":"Backspace"," ":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},q={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","Â":"NumLock"};r.ɵglobal.Node&&(D=r.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var z,G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.parse=function(){throw new Error("parse not implemented")},e.makeCurrent=function(){o(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,r){t[e]=r},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,r){t[e].apply(t,r)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return U},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return D.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,r){t.addEventListener(e,r,!1)},e.prototype.onAndCancel=function(t,e,r){return t.addEventListener(e,r,!1),function(){t.removeEventListener(e,r,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,r=new Array(e.length),n=0;n<e.length;n++)r[n]=e[n];return r},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,r){t.replaceChild(e,r)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,r){t.insertBefore(r,e)},e.prototype.insertAllBefore=function(t,e,r){r.forEach(function(r){return t.insertBefore(r,e)})},e.prototype.insertAfter=function(t,e,r){t.insertBefore(r,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,r){return void 0===r&&(r=document),r.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,r){void 0===r&&(r=document);var n=r.createElement("SCRIPT");return n.setAttribute(t,e),n},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var r=e.createElement("style");return this.appendChild(r,this.createTextNode(t)),r},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,r){t.style[e]=r},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,r){var n=this.getStyle(t,e)||"";return r?n==r:n.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,r=t.attributes,n=0;n<r.length;n++){var o=r[n];e.set(o.name,o.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,r){return t.hasAttributeNS(e,r)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,r){return t.getAttributeNS(e,r)},e.prototype.setAttribute=function(t,e,r){t.setAttribute(e,r)},e.prototype.setAttributeNS=function(t,e,r,n){t.setAttributeNS(e,r,n)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,r){t.removeAttributeNS(e,r)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(){return document.title},e.prototype.setTitle=function(t,e){document.title=e||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement?t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e):!1},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),t.location===B&&q.hasOwnProperty(e)&&(e=q[e]))}return H[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(){var t=i();return null==t?null:s(t)},e.prototype.resetBaseElement=function(){W=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,r){this.setAttribute(t,"data-"+e,r)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){u(r.ɵglobal,t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return a(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(F),W=null,$=new r.InjectionToken("DocumentToken"),K=function(t){function e(e){var r=t.call(this)||this;return r._doc=e,r._init(),r}return j(e,t),e.prototype._init=function(){this._location=n().getLocation(),this._history=n().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return n().getBaseHref(this._doc)},e.prototype.onPopState=function(t){n().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){n().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,r){c()?this._history.pushState(t,e,r):this._location.hash=r},e.prototype.replaceState=function(t,e,r){c()?this._history.replaceState(t,e,r):this._location.hash=r},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(e.PlatformLocation);K.decorators=[{type:r.Injectable}],K.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Q=function(){function t(t){this._doc=t,this._dom=n()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var r=this;return void 0===e&&(e=!1),t?t.reduce(function(t,n){return n&&t.push(r._getOrCreateElement(n,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var r=this.getTag(e);return r?this._setMetaElementAttributes(t,r):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var r=this._parseSelector(t),n=this.getTag(r);if(n&&this._containsAttributes(t,n))return n}var o=this._dom.createElement("meta");this._setMetaElementAttributes(t,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},t.prototype._setMetaElementAttributes=function(t,e){var r=this;return Object.keys(t).forEach(function(n){return r._dom.setAttribute(e,n,t[n])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var r=this;return Object.keys(t).every(function(n){return r._dom.getAttribute(e,n)===t[n]})},t}();Q.decorators=[{type:r.Injectable}],Q.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var X=new r.InjectionToken("TRANSITION_ID"),Z=[{provide:r.APP_INITIALIZER,useFactory:l,deps:[X,$],multi:!0}],Y=function(){function t(){}return t.init=function(){r.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){r.ɵglobal.getAngularTestability=function(e,r){void 0===r&&(r=!0);var n=t.findTestabilityInTree(e,r);if(null==n)throw new Error("Could not find testability for element.");return n},r.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},r.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=r.ɵglobal.getAllAngularTestabilities(),n=e.length,o=!1,i=function(e){o=o||e,n--,0==n&&t(o)};e.forEach(function(t){t.whenStable(i)})};r.ɵglobal.frameworkStabilizers||(r.ɵglobal.frameworkStabilizers=[]),r.ɵglobal.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,r){if(null==e)return null;var o=t.getTestability(e);return null!=o?o:r?n().isShadowRoot(e)?this.findTestabilityInTree(t,n().getHost(e),!0):this.findTestabilityInTree(t,n().parentElement(e),!0):null},t}(),J=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return n().getTitle(this._doc)},t.prototype.setTitle=function(t){n().setTitle(this._doc,t)},t}();J.decorators=[{type:r.Injectable}],J.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var tt=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},et={ApplicationRef:r.ApplicationRef,NgZone:r.NgZone},rt="ng.probe",nt="ng.coreTokens",ot=function(){function t(t,e){this.name=t,this.token=e}return t}(),it=[{provide:r.APP_INITIALIZER,useFactory:h,deps:[[ot,new r.Optional],[r.NgProbeToken,new r.Optional]],multi:!0}],st=new r.InjectionToken("EventManagerPlugins"),at=function(){function t(t,e){var r=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=r}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,r){var n=this._findPluginFor(e); - -return n.addEventListener(t,e,r)},t.prototype.addGlobalEventListener=function(t,e,r){var n=this._findPluginFor(e);return n.addGlobalEventListener(t,e,r)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var r=this._plugins,n=0;n<r.length;n++){var o=r[n];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t}();at.decorators=[{type:r.Injectable}],at.ctorParameters=function(){return[{type:Array,decorators:[{type:r.Inject,args:[st]}]},{type:r.NgZone}]};var ut=function(){function t(t){this._doc=t}return t.prototype.supports=function(){},t.prototype.addEventListener=function(){},t.prototype.addGlobalEventListener=function(t,e,r){var o=n().getGlobalEventTarget(this._doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+e);return this.addEventListener(o,e,r)},t}(),ct=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,r=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),r.add(t))}),this.onStylesAdded(r)},t.prototype.onStylesAdded=function(){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();ct.decorators=[{type:r.Injectable}],ct.ctorParameters=function(){return[]};var lt=function(t){function e(e){var r=t.call(this)||this;return r._doc=e,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(e.head),r}return j(e,t),e.prototype._addStylesToHost=function(t,e){var r=this;t.forEach(function(t){var n=r._doc.createElement("style");n.textContent=t,r._styleNodes.add(e.appendChild(n))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes["delete"](t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(r){return e._addStylesToHost(t,r)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return n().remove(t)})},e}(ct);lt.decorators=[{type:r.Injectable}],lt.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var pt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ht=/%COMP%/g,ft="%COMP%",dt="_nghost-"+ft,mt="_ngcontent-"+ft,yt=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new vt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new _t(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case r.ViewEncapsulation.Native:return new bt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var o=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t}();yt.decorators=[{type:r.Injectable}],yt.ctorParameters=function(){return[{type:at},{type:lt}]};var vt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(pt[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,r){t&&t.insertBefore(e,r)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,r,n){if(n){e=n+":"+e;var o=pt[n];o?t.setAttributeNS(o,e,r):t.setAttribute(e,r)}else t.setAttribute(e,r)},t.prototype.removeAttribute=function(t,e,r){if(r){var n=pt[r];n?t.removeAttributeNS(n,e):t.removeAttribute(r+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,o){o&r.RendererStyleFlags2.DashCase?t.style.setProperty(e,n,o&r.RendererStyleFlags2.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&r.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,r){g(e,"property"),t[e]=r},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,r){return g(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(r)):this.eventManager.addEventListener(t,e,v(r))},t}(),gt="@".charCodeAt(0),_t=function(t){function e(e,r,n){var o=t.call(this,e)||this;o.component=n;var i=y(n.id,n.styles,[]);return r.addStyles(i),o.contentAttr=d(n.id),o.hostAttr=m(n.id),o}return j(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,r){var n=t.prototype.createElement.call(this,e,r);return t.prototype.setAttribute.call(this,n,this.contentAttr,""),n},e}(vt),bt=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;i.sharedStylesHost=r,i.hostEl=n,i.component=o,i.shadowRoot=n.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=y(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return j(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,r){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),r)},e.prototype.insertBefore=function(e,r,n){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),r,n)},e.prototype.removeChild=function(e,r){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),r)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(vt),wt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.supports=function(){return!0},e.prototype.addEventListener=function(t,e,r){return t.addEventListener(e,r,!1),function(){return t.removeEventListener(e,r,!1)}},e}(ut);wt.decorators=[{type:r.Injectable}],wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Ct={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Et=new r.InjectionToken("HammerGestureConfig"),St=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var r in this.overrides)e.get(r).set(this.overrides[r]);return e},t}();St.decorators=[{type:r.Injectable}],St.ctorParameters=function(){return[]};var xt=function(t){function e(e,r){var n=t.call(this,e)||this;return n._config=r,n}return j(e,t),e.prototype.supports=function(t){if(!Ct.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,r){var n=this,o=this.manager.getZone();return e=e.toLowerCase(),o.runOutsideAngular(function(){var i=n._config.buildHammer(t),s=function(t){o.runGuarded(function(){r(t)})};return i.on(e,s),function(){return i.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(ut);xt.decorators=[{type:r.Injectable}],xt.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]},{type:St,decorators:[{type:r.Inject,args:[Et]}]}]};var Tt=["alt","control","meta","shift"],Pt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},At=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,r,o){var i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return n().onAndCancel(t,i.domEventName,s)})},e.parseEventName=function(t){var r=t.toLowerCase().split("."),n=r.shift();if(0===r.length||"keydown"!==n&&"keyup"!==n)return null;var o=e._normalizeKey(r.pop()),i="";if(Tt.forEach(function(t){var e=r.indexOf(t);e>-1&&(r.splice(e,1),i+=t+".")}),i+=o,0!=r.length||0===o.length)return null;var s={};return s.domEventName=n,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",r=n().getEventKey(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Tt.forEach(function(n){if(n!=r){var o=Pt[n];o(t)&&(e+=n+".")}}),e+=r},e.eventCallback=function(t,r,n){return function(o){e.getEventFullKey(o)===t&&n.runGuarded(function(){return r(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(ut);At.decorators=[{type:r.Injectable}],At.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var Ot=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Mt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Rt=null,kt=null,It=C("area,br,col,hr,img,wbr"),Nt=C("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Dt=C("rp,rt"),jt=E(Dt,Nt),Lt=E(Nt,C("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Vt=E(Dt,C("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ft=E(It,Lt,Vt,jt),Ut=C("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Bt=C("srcset"),Ht=C("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qt=E(Ut,Bt,Ht),zt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(kt.isElementNode(e)?this.startElement(e):kt.isTextNode(e)?this.chars(kt.nodeValue(e)):this.sanitizedSomething=!0,kt.firstChild(e))e=kt.firstChild(e);else for(;e;){kt.isElementNode(e)&&this.endElement(e);var r=S(e,kt.nextSibling(e));if(r){e=r;break}e=S(e,kt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,r=kt.nodeName(t).toLowerCase();return Ft.hasOwnProperty(r)?(this.buf.push("<"),this.buf.push(r),kt.attributeMap(t).forEach(function(t,r){var n=r.toLowerCase();return qt.hasOwnProperty(n)?(Ut[n]&&(t=_(t)),Bt[n]&&(t=b(t)),e.buf.push(" "),e.buf.push(r),e.buf.push('="'),e.buf.push(x(t)),void e.buf.push('"')):void(e.sanitizedSomething=!0)}),void this.buf.push(">")):void(this.sanitizedSomething=!0)},t.prototype.endElement=function(t){var e=kt.nodeName(t).toLowerCase();Ft.hasOwnProperty(e)&&!It.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),Gt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wt=/([^\#-~ |!])/g,$t="[-,.\"'%_!# a-zA-Z0-9]+",Kt="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",Qt="(?:rgb|hsl)a?",Xt="(?:repeating-)?(?:linear|radial)-gradient",Zt="(?:calc|attr)",Yt="\\([-0-9.%, #a-zA-Z]+\\)",Jt=new RegExp("^("+$t+"|"+("(?:"+Kt+"|"+Qt+"|"+Xt+"|"+Zt+")")+(Yt+")$"),"g"),te=/^url\(([^)]+)\)$/,ee=function(){function t(){}return t.prototype.sanitize=function(){},t.prototype.bypassSecurityTrustHtml=function(){},t.prototype.bypassSecurityTrustStyle=function(){},t.prototype.bypassSecurityTrustScript=function(){},t.prototype.bypassSecurityTrustUrl=function(){},t.prototype.bypassSecurityTrustResourceUrl=function(){},t}(),re=function(t){function e(e){var r=t.call(this)||this;return r._doc=e,r}return j(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case r.SecurityContext.NONE:return e;case r.SecurityContext.HTML:return e instanceof oe?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),P(this._doc,String(e)));case r.SecurityContext.STYLE:return e instanceof ie?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case r.SecurityContext.SCRIPT:if(e instanceof se)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case r.SecurityContext.URL:return e instanceof ue||e instanceof ae?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_(String(e)));case r.SecurityContext.RESOURCE_URL:if(e instanceof ue)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof ne)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new oe(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new ie(t)},e.prototype.bypassSecurityTrustScript=function(t){return new se(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new ae(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ue(t)},e}(ee);re.decorators=[{type:r.Injectable}],re.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[$]}]}]};var ne=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ne),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ne),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ne),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ne),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ne),ce=[{provide:r.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:r.PLATFORM_INITIALIZER,useValue:M,multi:!0},{provide:e.PlatformLocation,useClass:K},{provide:$,useFactory:k,deps:[]}],le=[{provide:r.Sanitizer,useExisting:ee},{provide:ee,useClass:re}],pe=r.createPlatformFactory(r.platformCore,"browser",ce),he=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:r.APP_ID,useValue:e.appId},{provide:X,useExisting:r.APP_ID},Z]}},t}();he.decorators=[{type:r.NgModule,args:[{providers:[le,{provide:r.ErrorHandler,useFactory:R,deps:[]},{provide:st,useClass:wt,multi:!0},{provide:st,useClass:At,multi:!0},{provide:st,useClass:xt,multi:!0},{provide:Et,useClass:St},yt,{provide:r.RendererFactory2,useExisting:yt},{provide:ct,useExisting:lt},lt,r.Testability,at,it,Q,J],exports:[e.CommonModule,r.ApplicationModule]}]}],he.ctorParameters=function(){return[{type:he,decorators:[{type:r.Optional},{type:r.SkipSelf}]}]};var fe="undefined"!=typeof window&&window||{},de=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),me=function(){function t(t){this.appRef=t.injector.get(r.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,r="Change Detection",o=null!=fe.console.profile;e&&o&&fe.console.profile(r);for(var i=n().performanceNow(),s=0;5>s||n().performanceNow()-i<500;)this.appRef.tick(),s++;var a=n().performanceNow();e&&o&&fe.console.profileEnd(r);var u=(a-i)/s;return fe.console.log("ran "+s+" change detection cycles"),fe.console.log(u.toFixed(2)+" ms per check"),new de(u,s)},t}(),ye="ng.profiler",ve=function(){function t(){}return t.all=function(){return function(){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement?n().elementMatches(e.nativeElement,t):!1}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),ge=new r.Version("4.1.0");t.BrowserModule=he,t.platformBrowser=pe,t.Meta=Q,t.Title=J,t.disableDebugTools=N,t.enableDebugTools=I,t.By=ve,t.NgProbeToken=ot,t.DOCUMENT=$,t.EVENT_MANAGER_PLUGINS=st,t.EventManager=at,t.HAMMER_GESTURE_CONFIG=Et,t.HammerGestureConfig=St,t.DomSanitizer=ee,t.VERSION=ge,t.ɵBROWSER_SANITIZATION_PROVIDERS=le,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=ce,t.ɵinitDomAdapter=M,t.ɵBrowserDomAdapter=G,t.ɵsetValueOnPath=u,t.ɵBrowserPlatformLocation=K,t.ɵTRANSITION_ID=X,t.ɵBrowserGetTestability=Y,t.ɵELEMENT_PROBE_PROVIDERS=it,t.ɵDomAdapter=V,t.ɵgetDOM=n,t.ɵsetRootDomAdapter=o,t.ɵDomRendererFactory2=yt,t.ɵNAMESPACE_URIS=pt,t.ɵflattenStyles=y,t.ɵshimContentAttribute=d,t.ɵshimHostAttribute=m,t.ɵDomEventsPlugin=wt,t.ɵHammerGesturesPlugin=xt,t.ɵKeyEventsPlugin=At,t.ɵDomSharedStylesHost=lt,t.ɵSharedStylesHost=ct,t.ɵb=k,t.ɵa=R,t.ɵh=F,t.ɵg=Z,t.ɵf=l,t.ɵc=h,t.ɵd=ut,t.ɵe=re,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/core":8}],13:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/common"),e("@angular/core"),e("rxjs/BehaviorSubject"),e("rxjs/Subject"),e("rxjs/observable/from"),e("rxjs/observable/of"),e("rxjs/operator/concatMap"),e("rxjs/operator/every"),e("rxjs/operator/first"),e("rxjs/operator/map"),e("rxjs/operator/mergeMap"),e("rxjs/operator/reduce"),e("rxjs/Observable"),e("rxjs/operator/catch"),e("rxjs/operator/concatAll"),e("rxjs/util/EmptyError"),e("rxjs/observable/fromPromise"),e("rxjs/operator/last"),e("rxjs/operator/mergeAll"),e("@angular/platform-browser"),e("rxjs/operator/filter")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core","rxjs/BehaviorSubject","rxjs/Subject","rxjs/observable/from","rxjs/observable/of","rxjs/operator/concatMap","rxjs/operator/every","rxjs/operator/first","rxjs/operator/map","rxjs/operator/mergeMap","rxjs/operator/reduce","rxjs/Observable","rxjs/operator/catch","rxjs/operator/concatAll","rxjs/util/EmptyError","rxjs/observable/fromPromise","rxjs/operator/last","rxjs/operator/mergeAll","@angular/platform-browser","rxjs/operator/filter"],i):i((o.ng=o.ng||{},o.ng.router=o.ng.router||{}),o.ng.common,o.ng.core,o.Rx,o.Rx,o.Rx.Observable,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.ng.platformBrowser,o.Rx.Observable.prototype)}(this,function(t,e,r,n,o,i,s,a,u,c,l,p,h,f,d,m,y,v,g,_,b,w){"use strict";function C(t){return new Le(t)}function E(t){var e=Error("NavigationCancelingError: "+t);return e[Ve]=!0,e}function S(t){return t[Ve]}function x(t,e,r){var n=r.path.split("/");if(n.length>t.length)return null;if("full"===r.pathMatch&&(e.hasChildren()||n.length<t.length))return null;for(var o={},i=0;i<n.length;i++){var s=n[i],a=t[i],u=s.startsWith(":");if(u)o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:o}}function T(t,e){void 0===e&&(e="");for(var r=0;r<t.length;r++){var n=t[r],o=A(e,n);P(n,o)}}function P(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==je)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){var r="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. "+r)}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&T(t.children,e)}function A(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function O(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!M(t[r],e[r]))return!1;return!0}function M(t,e){var r=Object.keys(t),n=Object.keys(e);if(r.length!=n.length)return!1;for(var o,i=0;i<r.length;i++)if(o=r[i],t[o]!==e[o])return!1;return!0}function R(t){return Array.prototype.concat.apply([],t)}function k(t){return t.length>0?t[t.length-1]:null}function I(t,e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}function N(t,e){if(0===Object.keys(t).length)return s.of({});var r=[],n=[],o={};I(t,function(t,i){var s=l.map.call(e(i,t),function(t){return o[i]=t});i===je?r.push(s):n.push(s)});var i=m.concatAll.call(s.of.apply(void 0,r.concat(n))),a=g.last.call(i);return l.map.call(a,function(){return o})}function D(t){var e=_.mergeAll.call(t);return u.every.call(e,function(t){return t===!0})}function j(t){return r.ɵisObservable(t)?t:r.ɵisPromise(t)?v.fromPromise(t):s.of(t)}function L(){return new Ue(new Be([],{}),{},null)}function V(t,e,r){return r?F(t.queryParams,e.queryParams)&&U(t.root,e.root):B(t.queryParams,e.queryParams)&&H(t.root,e.root)}function F(t,e){return M(t,e)}function U(t,e){if(!G(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var r in e.children){if(!t.children[r])return!1;if(!U(t.children[r],e.children[r]))return!1}return!0}function B(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(r){return e[r]===t[r]})}function H(t,e){return q(t,e,e.segments)}function q(t,e,r){if(t.segments.length>r.length){var n=t.segments.slice(0,r.length);return G(n,r)?e.hasChildren()?!1:!0:!1}if(t.segments.length===r.length){if(!G(t.segments,r))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!H(t.children[o],e.children[o]))return!1}return!0}var n=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return G(t.segments,n)&&t.children[je]?q(t.children[je],e,i):!1}function z(t,e){return G(t,e)&&t.every(function(t,r){return M(t.parameters,e[r].parameters)})}function G(t,e){return t.length!==e.length?!1:t.every(function(t,r){return t.path===e[r].path})}function W(t,e){var r=[];return I(t.children,function(t,n){n===je&&(r=r.concat(e(t,n)))}),I(t.children,function(t,n){n!==je&&(r=r.concat(e(t,n)))}),r}function $(t){return t.segments.map(function(t){return Z(t)}).join("/")}function K(t,e){if(!t.hasChildren())return $(t);if(e){var r=t.children[je]?K(t.children[je],!1):"",n=[];return I(t.children,function(t,e){e!==je&&n.push(e+":"+K(t,!1))}),n.length>0?r+"("+n.join("//")+")":r}var o=W(t,function(e,r){return r===je?[K(t.children[je],!1)]:[r+":"+K(e,!1)]});return $(t)+"/("+o.join("//")+")"}function Q(t){return encodeURIComponent(t)}function X(t){return decodeURIComponent(t)}function Z(t){return""+Q(t.path)+Y(t.parameters)}function Y(t){return Object.keys(t).map(function(e){return";"+Q(e)+"="+Q(t[e])}).join("")}function J(t){var e=Object.keys(t).map(function(e){var r=t[e];return Array.isArray(r)?r.map(function(t){return Q(e)+"="+Q(t)}).join("&"):Q(e)+"="+Q(r)});return e.length?"?"+e.join("&"):""}function tt(t){var e=t.match(We);return e?e[0]:""}function et(t){var e=t.match($e);return e?e[0]:""}function rt(t){var e=t.match(Ke);return e?e[0]:""}function nt(t){return new f.Observable(function(e){return e.error(new Ze(t))})}function ot(t){return new f.Observable(function(e){return e.error(new Ye(t))})}function it(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function st(t){return new f.Observable(function(e){return e.error(E("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function at(t,e,r,n,o){return new Je(t,e,r,n,o).apply()}function ut(t,e){var r=e.canLoad;if(!r||0===r.length)return s.of(!0);var n=l.map.call(i.from(r),function(r){var n=t.get(r);return j(n.canLoad?n.canLoad(e):n(e))});return D(n)}function ct(t,e,r){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=e.matcher||x,o=n(r,t,e);return o?{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,positionalParamSegments:o.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function lt(t,e,r,n){if(r.length>0&&dt(t,r,n)){var o=new Be(e,ft(n,new Be(r,t.children)));return{segmentGroup:pt(o),slicedSegments:[]}}if(0===r.length&&mt(t,r,n)){var o=new Be(t.segments,ht(t,r,n,t.children));return{segmentGroup:pt(o),slicedSegments:r}}return{segmentGroup:t,slicedSegments:r}}function pt(t){if(1===t.numberOfChildren&&t.children[je]){var e=t.children[je];return new Be(t.segments.concat(e.segments),e.children)}return t}function ht(t,e,r,n){for(var o={},i=0,s=r;i<s.length;i++){var a=s[i];yt(t,e,a)&&!n[vt(a)]&&(o[vt(a)]=new Be([],{}))}return Xe({},n,o)}function ft(t,e){var r={};r[je]=e;for(var n=0,o=t;n<o.length;n++){var i=o[n];""===i.path&&vt(i)!==je&&(r[vt(i)]=new Be([],{}))}return r}function dt(t,e,r){return r.some(function(r){return yt(t,e,r)&&vt(r)!==je})}function mt(t,e,r){return r.some(function(r){return yt(t,e,r)})}function yt(t,e,r){return(t.hasChildren()||e.length>0)&&"full"===r.pathMatch?!1:""===r.path&&void 0!==r.redirectTo}function vt(t){return t.outlet||je}function gt(t,e){if(t===e.value)return e;for(var r=0,n=e.children;r<n.length;r++){var o=n[r],i=gt(t,o);if(i)return i}return null}function _t(t,e,r){if(r.push(e),t===e.value)return r;for(var n=0,o=e.children;n<o.length;n++){var i=o[n],s=r.slice(0),a=_t(t,i,s);if(a.length>0)return a}return[]}function bt(t,e){var r=wt(t,e),o=new n.BehaviorSubject([new He("",{})]),i=new n.BehaviorSubject({}),s=new n.BehaviorSubject({}),a=new n.BehaviorSubject({}),u=new n.BehaviorSubject(""),c=new or(o,i,a,u,s,je,e,r.root);return c.snapshot=r.root,new nr(new er(c,[]),r)}function wt(t,e){var r={},n={},o={},i="",s=new ir([],r,o,i,n,je,e,null,t.root,-1,{});return new sr("",new er(s,[]))}function Ct(t){for(var e=t.pathFromRoot,r=e.length-1;r>=1;){var n=e[r],o=e[r-1];if(n.routeConfig&&""===n.routeConfig.path)r--;else{if(o.component)break;r--}}return e.slice(r).reduce(function(t,e){var r=rr({},t.params,e.params),n=rr({},t.data,e.data),o=rr({},t.resolve,e._resolvedData);return{params:r,data:n,resolve:o}},{params:{},data:{},resolve:{}})}function Et(t,e){e.value._routerState=t,e.children.forEach(function(e){return Et(t,e)})}function St(t){var e=t.children.length>0?" { "+t.children.map(St).join(", ")+" } ":"";return""+t.value+e}function xt(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,M(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),M(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),O(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),M(e.data,t._futureSnapshot.data)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Tt(t,e){var r=M(t.params,e.params)&&z(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Tt(t.parent,e.parent))}function Pt(t,e,r){var n=At(t,e._root,r?r._root:void 0);return new nr(n,e)}function At(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){var n=r.value;n._futureSnapshot=e.value;var o=Mt(t,e,r);return new er(n,o)}if(t.retrieve(e.value)){var i=t.retrieve(e.value).route;return Ot(e,i),i}var n=Rt(e.value),o=e.children.map(function(e){return At(t,e)});return new er(n,o)}function Ot(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var r=0;r<t.children.length;++r)Ot(t.children[r],e.children[r])}function Mt(t,e,r){return e.children.map(function(e){for(var n=0,o=r.children;n<o.length;n++){var i=o[n];if(t.shouldReuseRoute(i.value.snapshot,e.value))return At(t,e,i)}return At(t,e)})}function Rt(t){return new or(new n.BehaviorSubject(t.url),new n.BehaviorSubject(t.params),new n.BehaviorSubject(t.queryParams),new n.BehaviorSubject(t.fragment),new n.BehaviorSubject(t.data),t.outlet,t.component,t)}function kt(t,e,r,n,o){if(0===r.length)return Nt(e.root,e.root,e,n,o);var i=jt(r);if(i.toRoot())return Nt(e.root,new Be([],{}),e,n,o); - -var s=Lt(i,e,t),a=s.processChildren?Ht(s.segmentGroup,s.index,i.commands):Bt(s.segmentGroup,s.index,i.commands);return Nt(s.segmentGroup,a,e,n,o)}function It(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Nt(t,e,r,n,o){var i={};return n&&I(n,function(t,e){i[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),r.root===t?new Ue(e,i,o):new Ue(Dt(r.root,t,e),i,o)}function Dt(t,e,r){var n={};return I(t.children,function(t,o){n[o]=t===e?r:Dt(t,e,r)}),new Be(t.segments,n)}function jt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ar(!0,0,t);var e=0,r=!1,n=t.reduce(function(t,n,o){if("object"==typeof n&&null!=n){if(n.outlets){var i={};return I(n.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:i}])}if(n.segmentPath)return t.concat([n.segmentPath])}return"string"!=typeof n?t.concat([n]):0===o?(n.split("/").forEach(function(n,o){0==o&&"."===n||(0==o&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))}),t):t.concat([n])},[]);return new ar(r,e,n)}function Lt(t,e,r){if(t.isAbsolute)return new ur(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new ur(r.snapshot._urlSegment,!0,0);var n=It(t.commands[0])?0:1,o=r.snapshot._lastPathIndex+n;return Vt(r.snapshot._urlSegment,o,t.numberOfDoubleDots)}function Vt(t,e,r){for(var n=t,o=e,i=r;i>o;){if(i-=o,n=n.parent,!n)throw new Error("Invalid number of '../'");o=n.segments.length}return new ur(n,!1,o-i)}function Ft(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[je]:""+t}function Ut(t){return"object"!=typeof t[0]?(e={},e[je]=t,e):void 0===t[0].outlets?(r={},r[je]=t,r):t[0].outlets;var e,r}function Bt(t,e,r){if(t||(t=new Be([],{})),0===t.segments.length&&t.hasChildren())return Ht(t,e,r);var n=qt(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){var i=new Be(t.segments.slice(0,n.pathIndex),{});return i.children[je]=new Be(t.segments.slice(n.pathIndex),t.children),Ht(i,0,o)}return n.match&&0===o.length?new Be(t.segments,{}):n.match&&!t.hasChildren()?zt(t,e,r):n.match?Ht(t,0,o):zt(t,e,r)}function Ht(t,e,r){if(0===r.length)return new Be(t.segments,{});var n=Ut(r),o={};return I(n,function(r,n){null!==r&&(o[n]=Bt(t.children[n],e,r))}),I(t.children,function(t,e){void 0===n[e]&&(o[e]=t)}),new Be(t.segments,o)}function qt(t,e,r){for(var n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(n>=r.length)return i;var s=t.segments[o],a=Ft(r[n]),u=n<r.length-1?r[n+1]:null;if(o>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!$t(a,u,s))return i;n+=2}else{if(!$t(a,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function zt(t,e,r){for(var n=t.segments.slice(0,e),o=0;o<r.length;){if("object"==typeof r[o]&&void 0!==r[o].outlets){var i=Gt(r[o].outlets);return new Be(n,i)}if(0===o&&It(r[0])){var s=t.segments[e];n.push(new He(s.path,r[0])),o++}else{var a=Ft(r[o]),u=o<r.length-1?r[o+1]:null;a&&u&&It(u)?(n.push(new He(a,Wt(u))),o+=2):(n.push(new He(a,{})),o++)}}return new Be(n,{})}function Gt(t){var e={};return I(t,function(t,r){null!==t&&(e[r]=zt(new Be([],{}),0,t))}),e}function Wt(t){var e={};return I(t,function(t,r){return e[r]=""+t}),e}function $t(t,e,r){return t==r.path&&M(e,r.parameters)}function Kt(t,e,r,n){return new pr(t,e,r,n).recognize()}function Qt(t){t.sort(function(t,e){return t.value.outlet===je?-1:e.value.outlet===je?1:t.value.outlet.localeCompare(e.value.outlet)})}function Xt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Zt(t,e,r){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||r.length>0))throw new lr;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=e.matcher||x,o=n(r,t,e);if(!o)throw new lr;var i={};I(o.posParams,function(t,e){i[e]=t.path});var s=cr({},i,o.consumed[o.consumed.length-1].parameters);return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:s}}function Yt(t){var e={};t.forEach(function(t){var r=e[t.value.outlet];if(r){var n=r.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+n+"' and '"+o+"'.")}e[t.value.outlet]=t.value})}function Jt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function te(t){for(var e=t,r=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,r+=e._segmentIndexShift?e._segmentIndexShift:0;return r-1}function ee(t,e,r,n){if(r.length>0&&oe(t,r,n)){var o=new Be(e,ne(t,e,n,new Be(r,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===r.length&&ie(t,r,n)){var i=new Be(t.segments,re(t,r,n,t.children));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:r}}var s=new Be(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:r}}function re(t,e,r,n){for(var o={},i=0,s=r;i<s.length;i++){var a=s[i];if(se(t,e,a)&&!n[ae(a)]){var u=new Be([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,o[ae(a)]=u}}return cr({},n,o)}function ne(t,e,r,n){var o={};o[je]=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(var i=0,s=r;i<s.length;i++){var a=s[i];if(""===a.path&&ae(a)!==je){var u=new Be([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,o[ae(a)]=u}}return o}function oe(t,e,r){return r.some(function(r){return se(t,e,r)&&ae(r)!==je})}function ie(t,e,r){return r.some(function(r){return se(t,e,r)})}function se(t,e,r){return(t.hasChildren()||e.length>0)&&"full"===r.pathMatch?!1:""===r.path&&void 0===r.redirectTo}function ae(t){return t.outlet||je}function ue(t){return t.data||{}}function ce(t){return t.resolve||{}}function le(t){throw t}function pe(){return s.of(null)}function he(t){xt(t.value),t.children.forEach(he)}function fe(t){for(var e=t.parent;e;e=e.parent){var r=e._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;if(r&&r.component)return null}return null}function de(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var r=e._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}function me(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function ye(t,e){var r=t._outlets[e.outlet];if(!r){var n=e.component.name;throw new Error(e.outlet===je?"Cannot find primary outlet to load '"+n+"'":"Cannot find the outlet "+e.outlet+" to load '"+n+"'")}return r}function ve(t){for(var e=0;e<t.length;e++){var r=t[e];if(null==r)throw new Error("The requested path contains "+r+" segment at index "+e)}}function ge(t){return""===t||!!t}function _e(){return new r.NgProbeToken("Router",_r)}function be(t,r,n){return void 0===n&&(n={}),n.useHash?new e.HashLocationStrategy(t,r):new e.PathLocationStrategy(t,r)}function we(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ce(t){return[{provide:r.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:hr,multi:!0,useValue:t}]}function Ee(t,e,r,n,o,i,s,a,u,c,l){void 0===u&&(u={});var p=new _r(null,e,r,n,o,i,s,R(a));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),u.errorHandler&&(p.errorHandler=u.errorHandler),u.enableTracing){var h=b.ɵgetDOM();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return p}function Se(t){return t.routerState.root}function xe(t){return t.appInitializer.bind(t)}function Te(t){return t.bootstrapListener.bind(t)}function Pe(){return[Fr,{provide:r.APP_INITIALIZER,multi:!0,useFactory:xe,deps:[Fr]},{provide:Ur,useFactory:Te,deps:[Fr]},{provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Ur}]}var Ae=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Oe=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),Me=function(){function t(t,e,r){this.id=t,this.url=e,this.urlAfterRedirects=r}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Re=function(){function t(t,e,r){this.id=t,this.url=e,this.reason=r}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),ke=function(){function t(t,e,r){this.id=t,this.url=e,this.error=r}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),Ie=function(){function t(t,e,r,n){this.id=t,this.url=e,this.urlAfterRedirects=r,this.state=n}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ne=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),De=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),je="primary",Le=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}(),Ve="ngNavigationCancelingError",Fe=function(){function t(t,e){this.routes=t,this.module=e}return t}(),Ue=function(){function t(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ge.serialize(this)},t}(),Be=function(){function t(t,e){var r=this;this.segments=t,this.children=e,this.parent=null,I(e,function(t){return t.parent=r})}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 $(this)},t}(),He=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=C(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Z(this)},t}(),qe=function(){function t(){}return t.prototype.parse=function(){},t.prototype.serialize=function(){},t}(),ze=function(){function t(){}return t.prototype.parse=function(t){var e=new Qe(t);return new Ue(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e="/"+K(t.root,!0),r=J(t.queryParams),n="string"==typeof t.fragment?"#"+encodeURI(t.fragment):"";return""+e+r+n},t}(),Ge=new ze,We=/^[^\/()?;=&#]+/,$e=/^[^=?&#]+/,Ke=/^[^?&#]+/,Qe=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 Be([],{}):new Be([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[je]=new Be(t,e)),r},t.prototype.parseSegment=function(){var t=tt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new He(X(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=tt(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=tt(this.remaining);n&&(r=n,this.capture(r))}t[X(e)]=X(r)}},t.prototype.parseQueryParam=function(t){var e=et(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=rt(this.remaining);n&&(r=n,this.capture(r))}var o=X(e),i=X(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var r=tt(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=je);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[je]:new Be([],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):!1},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Xe=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Ze=function(){function t(t){this.segmentGroup=t||null}return t}(),Ye=function(){function t(t){this.urlTree=t}return t}(),Je=function(){function t(t,e,n,o,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(r.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,je),r=l.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(r,function(e){if(e instanceof Ye)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Ze)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,r=this.expandSegmentGroup(this.ngModule,this.config,t.root,je),n=l.map.call(r,function(r){return e.createUrlTree(r,t.queryParams,t.fragment)});return d._catch.call(n,function(t){if(t instanceof Ze)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,r){var n=t.segments.length>0?new Be([],(o={},o[je]=t,o)):t;return new Ue(n,e,r);var o},t.prototype.expandSegmentGroup=function(t,e,r,n){return 0===r.segments.length&&r.hasChildren()?l.map.call(this.expandChildren(t,e,r),function(t){return new Be([],t)}):this.expandSegment(t,r,e,r.segments,n,!0)},t.prototype.expandChildren=function(t,e,r){var n=this;return N(r.children,function(r,o){return n.expandSegmentGroup(t,e,o,r)})},t.prototype.expandSegment=function(t,e,r,n,o,i){var a=this,u=s.of.apply(void 0,r),p=l.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,r,u,n,o,i);return d._catch.call(c,function(t){if(t instanceof Ze)return s.of(null);throw t})}),h=m.concatAll.call(p),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t){if(t instanceof y.EmptyError){if(a.noLeftoversInUrl(e,n,o))return s.of(new Be([],{}));throw new Ze(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.expandSegmentAgainstRoute=function(t,e,r,n,o,i,s){return vt(n)!==i?nt(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i):nt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,r,n){var o=this,i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?ot(i):p.mergeMap.call(this.lineralizeSegments(r,i),function(r){var i=new Be(r,{});return o.expandSegment(t,i,e,r,n,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){var s=this,a=ct(e,n,o),u=a.matched,c=a.consumedSegments,l=a.lastChild,h=a.positionalParamSegments;if(!u)return nt(e);var f=this.applyRedirectCommands(c,n.redirectTo,h);return n.redirectTo.startsWith("/")?ot(f):p.mergeMap.call(this.lineralizeSegments(n,f),function(n){return s.expandSegment(t,e,r,n.concat(o.slice(l)),i,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,r,n){var o=this;if("**"===r.path)return r.loadChildren?l.map.call(this.configLoader.load(t.injector,r),function(t){return r._loadedConfig=t,new Be(n,{})}):s.of(new Be(n,{}));var i=ct(e,r,n),a=i.matched,u=i.consumedSegments,c=i.lastChild;if(!a)return nt(e);var h=n.slice(c),f=this.getChildConfig(t,r);return p.mergeMap.call(f,function(t){var r=t.module,n=t.routes,i=lt(e,u,h,n),a=i.segmentGroup,c=i.slicedSegments;if(0===c.length&&a.hasChildren()){var p=o.expandChildren(r,n,a);return l.map.call(p,function(t){return new Be(u,t)})}if(0===n.length&&0===c.length)return s.of(new Be(u,{}));var f=o.expandSegment(r,a,n,c,je,!0);return l.map.call(f,function(t){return new Be(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var r=this;return e.children?s.of(new Fe(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?s.of(e._loadedConfig):p.mergeMap.call(ut(t.injector,e),function(n){return n?l.map.call(r.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):st(e)}):s.of(new Fe([],t))},t.prototype.lineralizeSegments=function(t,e){for(var r=[],n=e.root;;){if(r=r.concat(n.segments),0===n.numberOfChildren)return s.of(r);if(n.numberOfChildren>1||!n.children[je])return it(t.redirectTo);n=n.children[je]}},t.prototype.applyRedirectCommands=function(t,e,r){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,r)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,r,n){var o=this.createSegmentGroup(t,e.root,r,n);return new Ue(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var r={};return I(t,function(t,n){r[n]=t.startsWith(":")?e[t.substring(1)]:t}),r},t.prototype.createSegmentGroup=function(t,e,r,n){var o=this,i=this.createSegments(t,e.segments,r,n),s={};return I(e.children,function(e,i){s[i]=o.createSegmentGroup(t,e,r,n)}),new Be(i,s)},t.prototype.createSegments=function(t,e,r,n){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,n):o.findOrReturn(e,r)})},t.prototype.findPosParam=function(t,e,r){var n=r[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return n},t.prototype.findOrReturn=function(t,e){for(var r=0,n=0,o=e;n<o.length;n++){var i=o[n];if(i.path===t.path)return e.splice(r),i;r++}return t},t}(),tr=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=gt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=gt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=_t(t,this._root,[]);if(e.length<2)return[];var r=e[e.length-2].children.map(function(t){return t.value});return r.filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return _t(t,this._root,[]).map(function(t){return t.value})},t}(),er=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),rr=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},nr=function(t){function e(e,r){var n=t.call(this,e)||this;return n.snapshot=r,Et(n,e),n}return Ae(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(tr),or=function(){function t(t,e,r,n,o,i,s,a){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=s,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=l.map.call(this.params,function(t){return C(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=l.map.call(this.queryParams,function(t){return C(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),ir=function(){function t(t,e,r,n,o,i,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._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=C(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+t+"', path:'"+e+"')"},t}(),sr=function(t){function e(e,r){var n=t.call(this,r)||this;return n.url=e,Et(n,r),n}return Ae(e,t),e.prototype.toString=function(){return St(this._root)},e}(tr),ar=function(){function t(t,e,r){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=r,t&&r.length>0&&It(r[0]))throw new Error("Root segment cannot have matrix parameters");var n=r.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(n&&n!==k(r))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}(),ur=function(){function t(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r}return t}(),cr=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},lr=function(){function t(){}return t}(),pr=function(){function t(t,e,r,n){this.rootComponentType=t,this.config=e,this.urlTree=r,this.url=n}return t.prototype.recognize=function(){try{var t=ee(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,je),r=new ir([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},je,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new er(r,e),o=new sr(this.url,n);return this.inheriteParamsAndData(o._root),s.of(o)}catch(i){return new f.Observable(function(t){return t.error(i)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,r=t.value,n=Ct(r);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach(function(t){return e.inheriteParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,r)},t.prototype.processChildren=function(t,e){var r=this,n=W(e,function(e,n){return r.processSegmentGroup(t,e,n)});return Yt(n),Qt(n),n},t.prototype.processSegment=function(t,e,r,n){for(var o=0,i=t;o<i.length;o++){var s=i[o];try{return this.processSegmentAgainstRoute(s,e,r,n)}catch(a){if(!(a instanceof lr))throw a}}if(this.noLeftoversInUrl(e,r,n))return[];throw new lr},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.processSegmentAgainstRoute=function(t,e,r,n){if(t.redirectTo)throw new lr;if((t.outlet||je)!==n)throw new lr;if("**"===t.path){var o=r.length>0?k(r).parameters:{},i=new ir(r,o,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),n,t.component,t,Jt(e),te(e)+r.length,ce(t));return[new er(i,[])]}var s=Zt(e,t,r),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=r.slice(c),p=Xt(t),h=ee(e,a,l,p),f=h.segmentGroup,d=h.slicedSegments,m=new ir(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),n,t.component,t,Jt(e),te(e)+a.length,ce(t));if(0===d.length&&f.hasChildren()){var y=this.processChildren(p,f);return[new er(m,y)]}if(0===p.length&&0===d.length)return[new er(m,[])];var v=this.processSegment(p,f,d,je);return[new er(m,v)]},t}(),hr=new r.InjectionToken("ROUTES"),fr=function(){function t(t,e,r,n){this.loader=t,this.compiler=e,this.onLoadStartListener=r,this.onLoadEndListener=n}return t.prototype.load=function(t,e){var r=this;this.onLoadStartListener&&this.onLoadStartListener(e);var n=this.loadModuleFactory(e.loadChildren);return l.map.call(n,function(n){r.onLoadEndListener&&r.onLoadEndListener(e);var o=n.create(t);return new Fe(R(o.injector.get(hr)),o)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?v.fromPromise(this.loader.load(t)):p.mergeMap.call(j(t()),function(t){return t instanceof r.NgModuleFactory?s.of(t):v.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),dr=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),mr=function(){function t(){}return t.prototype.shouldProcessUrl=function(){},t.prototype.extract=function(){},t.prototype.merge=function(){},t}(),yr=function(){function t(){}return t.prototype.shouldProcessUrl=function(){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t){return t},t}(),vr=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},gr=function(){function t(){}return t.prototype.shouldDetach=function(){return!1},t.prototype.store=function(){},t.prototype.shouldAttach=function(){return!1},t.prototype.retrieve=function(){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),_r=function(){function t(t,e,i,s,a,u,c,l){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.outletMap=i,this.location=s,this.config=l,this.navigations=new n.BehaviorSubject(null),this.routerEvents=new o.Subject,this.navigationId=0,this.errorHandler=le,this.navigated=!1,this.hooks={beforePreactivation:pe,afterPreactivation:pe},this.urlHandlingStrategy=new yr,this.routeReuseStrategy=new gr;var h=function(t){return p.triggerEvent(new Ne(t))},f=function(t){return p.triggerEvent(new De(t))};this.ngModule=a.get(r.NgModuleRef),this.resetConfig(l),this.currentUrlTree=L(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new fr(u,c,h,f),this.currentRouterState=bt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.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(Zone.current.wrap(function(e){var r=t.urlSerializer.parse(e.url),n="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(r,n,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){T(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var n=void 0===e?{}:e,o=n.relativeTo,i=n.queryParams,s=n.fragment,a=n.preserveQueryParams,u=n.queryParamsHandling,c=n.preserveFragment;r.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=o||this.routerState.root,p=c?this.currentUrlTree.fragment:s,h=null;if(u)switch(u){case"merge":h=vr({},this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=a?this.currentUrlTree.queryParams:i||null;return kt(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var r=t instanceof Ue?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),ve(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){ -return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof Ue)return V(this.currentUrlTree,t,e);var r=this.urlSerializer.parse(t);return V(this.currentUrlTree,r,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,r){var n=t[r];return null!==n&&void 0!==n&&(e[r]=n),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise["catch"](function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,r){var n=this.navigations.value;if(n&&"imperative"!==e&&"imperative"===n.source&&n.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(n&&"hashchange"==e&&"popstate"===n.source&&n.rawUrl.toString()===t.toString())return Promise.resolve(!0);var o=null,i=null,s=new Promise(function(t,e){o=t,i=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:r,resolve:o,reject:i,promise:s}),s["catch"](function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,r=t.id,n=t.rawUrl,o=t.extras,i=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(n),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(n)?(this.routerEvents.next(new Oe(r,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,n,!!o.skipLocationChange,!!o.replaceUrl,r,null)}).then(i,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Oe(r,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,n,!1,!1,r,bt(a,e.rootComponentType).snapshot)}).then(i,s)):(this.rawUrlTree=n,i(null))},t.prototype.runNavigate=function(t,e,r,n,o,i){var a=this;return o!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Re(o,this.serializeUrl(t),"Navigation ID "+o+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(i)h=s.of({appliedUrl:t,snapshot:i});else{var f=a.ngModule.injector,d=at(f,a.configLoader,a.urlSerializer,t,a.config);h=p.mergeMap.call(d,function(e){return l.map.call(Kt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(r){return a.routerEvents.next(new Ie(o,a.serializeUrl(t),a.serializeUrl(e),r)),{appliedUrl:e,snapshot:r}})})}var m,y,v=p.mergeMap.call(h,function(t){return l.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),g=l.map.call(v,function(t){var e=t.appliedUrl,r=t.snapshot,n=a.ngModule.injector;return m=new Cr(r,a.currentRouterState.snapshot,n),m.traverse(a.outletMap),{appliedUrl:e,snapshot:r}}),_=p.mergeMap.call(g,function(t){var e=t.appliedUrl,r=t.snapshot;return a.navigationId!==o?s.of(!1):l.map.call(m.checkGuards(),function(t){return{appliedUrl:e,snapshot:r,shouldActivate:t}})}),b=p.mergeMap.call(_,function(t){return a.navigationId!==o?s.of(!1):t.shouldActivate?l.map.call(m.resolveData(),function(){return t}):s.of(t)}),w=p.mergeMap.call(b,function(t){return l.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),C=l.map.call(w,function(t){var e=t.appliedUrl,r=t.snapshot,n=t.shouldActivate;if(n){var o=Pt(a.routeReuseStrategy,r,a.currentRouterState);return{appliedUrl:e,state:o,shouldActivate:n}}return{appliedUrl:e,state:null,shouldActivate:n}}),E=a.currentRouterState,x=a.currentUrlTree;C.forEach(function(t){var i=t.appliedUrl,s=t.state,u=t.shouldActivate;if(!u||o!==a.navigationId)return void(y=!1);if(a.currentUrlTree=i,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!r){var c=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(c)||n?a.location.replaceState(c):a.location.go(c)}new Er(a.routeReuseStrategy,s,E).activate(a.outletMap),y=!0}).then(function(){y?(a.navigated=!0,a.routerEvents.next(new Me(o,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Re(o,a.serializeUrl(t),"")),u(!1))},function(r){if(S(r))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Re(o,a.serializeUrl(t),r.message)),u(!1);else{a.routerEvents.next(new ke(o,a.serializeUrl(t),r));try{u(a.errorHandler(r))}catch(n){c(n)}}a.currentRouterState=E,a.currentUrlTree=x,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),br=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),wr=function(){function t(t,e){this.component=t,this.route=e}return t}(),Cr=function(){function t(t,e,r){this.future=t,this.curr=e,this.moduleInjector=r,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.traverse=function(t){var e=this.future._root,r=this.curr?this.curr._root:null;this.traverseChildRoutes(e,r,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.canDeactivateChecks.length&&0===this.canActivateChecks.length)return s.of(!0);var e=this.runCanDeactivateChecks();return p.mergeMap.call(e,function(e){return e?t.runCanActivateChecks():s.of(!1)})},t.prototype.resolveData=function(){var t=this;if(0===this.canActivateChecks.length)return s.of(null);var e=i.from(this.canActivateChecks),r=a.concatMap.call(e,function(e){return t.runResolve(e.route)});return h.reduce.call(r,function(t){return t})},t.prototype.traverseChildRoutes=function(t,e,r,n){var o=this,i=me(e);t.children.forEach(function(t){o.traverseRoutes(t,i[t.value.outlet],r,n.concat([t.value])),delete i[t.value.outlet]}),I(i,function(t,e){return o.deactiveRouteAndItsChildren(t,r._outlets[e])})},t.prototype.traverseRoutes=function(t,e,r,n){var o=t.value,i=e?e.value:null,s=r?r._outlets[t.value.outlet]:null;i&&o._routeConfig===i._routeConfig?(this.shouldRunGuardsAndResolvers(i,o,o._routeConfig.runGuardsAndResolvers)?(this.canActivateChecks.push(new br(n)),this.canDeactivateChecks.push(new wr(s.component,i))):(o.data=i.data,o._resolvedData=i._resolvedData),o.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,n):this.traverseChildRoutes(t,e,r,n)):(i&&this.deactiveRouteAndItsChildren(e,s),this.canActivateChecks.push(new br(n)),o.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,n):this.traverseChildRoutes(t,null,r,n))},t.prototype.shouldRunGuardsAndResolvers=function(t,e,r){switch(r){case"always":return!0;case"paramsOrQueryParamsChange":return!Tt(t,e)||!M(t.queryParams,e.queryParams);case"paramsChange":default:return!Tt(t,e)}},t.prototype.deactiveRouteAndItsChildren=function(t,e){var r=this,n=me(t),o=t.value;I(n,function(t,n){o.component?e?r.deactiveRouteAndItsChildren(t,e.outletMap._outlets[n]):r.deactiveRouteAndItsChildren(t,null):r.deactiveRouteAndItsChildren(t,e)}),this.canDeactivateChecks.push(o.component?e&&e.isActivated?new wr(e.component,o):new wr(null,o):new wr(null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=i.from(this.canDeactivateChecks),r=p.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return u.every.call(r,function(t){return t===!0})},t.prototype.runCanActivateChecks=function(){var t=this,e=i.from(this.canActivateChecks),r=p.mergeMap.call(e,function(e){return D(i.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return u.every.call(r,function(t){return t===!0})},t.prototype.runCanActivate=function(t){var e=this,r=t._routeConfig?t._routeConfig.canActivate:null;if(!r||0===r.length)return s.of(!0);var n=l.map.call(i.from(r),function(r){var n,o=e.getToken(r,t);return n=j(o.canActivate?o.canActivate(t,e.future):o(t,e.future)),c.first.call(n)});return D(n)},t.prototype.runCanActivateChild=function(t){var e=this,r=t[t.length-1],n=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return D(l.map.call(i.from(n),function(t){var n=l.map.call(i.from(t.guards),function(n){var o,i=e.getToken(n,t.node);return o=j(i.canActivateChild?i.canActivateChild(r,e.future):i(r,e.future)),c.first.call(o)});return D(n)}))},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 r=this,n=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!n||0===n.length)return s.of(!0);var o=p.mergeMap.call(i.from(n),function(n){var o,i=r.getToken(n,e);return o=j(i.canDeactivate?i.canDeactivate(t,e,r.curr,r.future):i(t,e,r.curr,r.future)),c.first.call(o)});return u.every.call(o,function(t){return t===!0})},t.prototype.runResolve=function(t){var e=t._resolve;return l.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=vr({},t.data,Ct(t).resolve),null})},t.prototype.resolveNode=function(t,e){var r=this;return N(t,function(t,n){var o=r.getToken(n,e);return j(o.resolve?o.resolve(e,r.future):o(e,r.future))})},t.prototype.getToken=function(t,e){var r=de(e),n=r?r.module.injector:this.moduleInjector;return n.get(t)},t}(),Er=function(){function t(t,e,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=r}return t.prototype.activate=function(t){var e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,t),xt(this.futureState.root),this.activateChildRoutes(e,r,t)},t.prototype.deactivateChildRoutes=function(t,e,r){var n=this,o=me(e);t.children.forEach(function(t){n.deactivateRoutes(t,o[t.value.outlet],r),delete o[t.value.outlet]}),I(o,function(t){return n.deactiveRouteAndItsChildren(t,r)})},t.prototype.activateChildRoutes=function(t,e,r){var n=this,o=me(e);t.children.forEach(function(t){n.activateRoutes(t,o[t.value.outlet],r)})},t.prototype.deactivateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(n===o)if(n.component){var i=ye(r,n);this.deactivateChildRoutes(t,e,i.outletMap)}else this.deactivateChildRoutes(t,e,r);else o&&this.deactiveRouteAndItsChildren(e,r)},t.prototype.activateRoutes=function(t,e,r){var n=t.value,o=e?e.value:null;if(n===o)if(xt(n),n.component){var i=ye(r,n);this.activateChildRoutes(t,e,i.outletMap)}else this.activateChildRoutes(t,e,r);else if(n.component){xt(n);var i=ye(r,t.value);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){var s=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),i.attach(s.componentRef,s.route.value),he(s.route)}else{var a=new dr;this.placeComponentIntoOutlet(a,n,i),this.activateChildRoutes(t,null,a)}}else xt(n),this.activateChildRoutes(t,null,r)},t.prototype.placeComponentIntoOutlet=function(t,e,r){var n=fe(e.snapshot),o=n?n.module.componentFactoryResolver:null;r.activateWith(e,o,t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var r=ye(e,t.value),n=r.detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:n,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var r=this,n=me(t),o=null;try{o=ye(e,t.value)}catch(i){return}var s=o.outletMap;I(n,function(n){t.value.component?r.deactiveRouteAndItsChildren(n,s):r.deactiveRouteAndItsChildren(n,e)}),o&&o.isActivated&&o.deactivate()},t}(),Sr=function(){function t(t,e,r,n,o){this.router=t,this.route=e,this.commands=[],null==r&&n.setElementAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Sr.decorators=[{type:r.Directive,args:[{selector:":not(a)[routerLink]"}]}],Sr.ctorParameters=function(){return[{type:_r},{type:or},{type:void 0,decorators:[{type:r.Attribute,args:["tabindex"]}]},{type:r.Renderer},{type:r.ElementRef}]},Sr.propDecorators={queryParams:[{type:r.Input}],fragment:[{type:r.Input}],queryParamsHandling:[{type:r.Input}],preserveFragment:[{type:r.Input}],skipLocationChange:[{type:r.Input}],replaceUrl:[{type:r.Input}],routerLink:[{type:r.Input}],preserveQueryParams:[{type:r.Input}],onClick:[{type:r.HostListener,args:["click"]}]};var xr=function(){function t(t,e,r){var n=this;this.router=t,this.route=e,this.locationStrategy=r,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Me&&n.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){r.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,r){if(0!==t||e||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var n={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,n),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();xr.decorators=[{type:r.Directive,args:[{selector:"a[routerLink]"}]}],xr.ctorParameters=function(){return[{type:_r},{type:or},{type:e.LocationStrategy}]},xr.propDecorators={target:[{type:r.HostBinding,args:["attr.target"]},{type:r.Input}],queryParams:[{type:r.Input}],fragment:[{type:r.Input}],queryParamsHandling:[{type:r.Input}],preserveFragment:[{type:r.Input}],skipLocationChange:[{type:r.Input}],replaceUrl:[{type:r.Input}],href:[{type:r.HostBinding}],routerLink:[{type:r.Input}],preserveQueryParams:[{type:r.Input}],onClick:[{type:r.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]};var Tr=function(){function t(t,e,r,n){var o=this;this.router=t,this.element=e,this.renderer=r,this.cdr=n,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Me&&o.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(){return t.update()}),this.linksWithHrefs.changes.subscribe(function(){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.classes.forEach(function(r){return t.renderer.setElementClass(t.element.nativeElement,r,e)}),Promise.resolve(e).then(function(e){return t.active=e}))}},t.prototype.isLinkActive=function(t){var e=this;return function(r){return t.isActive(r.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();Tr.decorators=[{type:r.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Tr.ctorParameters=function(){return[{type:_r},{type:r.ElementRef},{type:r.Renderer},{type:r.ChangeDetectorRef}]},Tr.propDecorators={links:[{type:r.ContentChildren,args:[Sr,{descendants:!0}]}],linksWithHrefs:[{type:r.ContentChildren,args:[xr,{descendants:!0}]}],routerLinkActiveOptions:[{type:r.Input}],routerLinkActive:[{type:r.Input}]};var Pr=function(){function t(t,e,n,o){this.parentOutletMap=t,this.location=e,this.resolver=n,this.name=o,this.activateEvents=new r.EventEmitter,this.deactivateEvents=new r.EventEmitter,t.registerOutlet(o?o:je,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:je)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,n,o,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=i,this._activatedRoute=t;var s=t._futureSnapshot,a=s._routeConfig.component,u=e.resolveComponentFactory(a),c=r.ReflectiveInjector.fromResolvedProviders(o,n);this.activated=this.location.createComponent(u,this.location.length,c,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.prototype.activateWith=function(t,e,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=r,this._activatedRoute=t;var n=t._futureSnapshot,o=n._routeConfig.component;e=e||this.resolver;var i=e.resolveComponentFactory(o),s=new Ar(t,r,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t}();Pr.decorators=[{type:r.Directive,args:[{selector:"router-outlet"}]}],Pr.ctorParameters=function(){return[{type:dr},{type:r.ViewContainerRef},{type:r.ComponentFactoryResolver},{type:void 0,decorators:[{type:r.Attribute,args:["name"]}]}]},Pr.propDecorators={activateEvents:[{type:r.Output,args:["activate"]}],deactivateEvents:[{type:r.Output,args:["deactivate"]}]};var Ar=function(){function t(t,e,r){this.route=t,this.map=e,this.parent=r}return t.prototype.get=function(t,e){return t===or?this.route:t===dr?this.map:this.parent.get(t,e)},t}(),Or=function(){function t(){}return t.prototype.shouldDetach=function(){},t.prototype.store=function(){},t.prototype.shouldAttach=function(){},t.prototype.retrieve=function(){},t.prototype.shouldReuseRoute=function(){},t}(),Mr=function(){function t(){}return t.prototype.preload=function(){},t}(),Rr=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),kr=function(){function t(){}return t.prototype.preload=function(){return s.of(null)},t}(),Ir=function(){function t(t,e,r,n,o){this.router=t,this.injector=n,this.preloadingStrategy=o;var i=function(e){return t.triggerEvent(new Ne(e))},s=function(e){return t.triggerEvent(new De(e))};this.loader=new fr(e,r,i,s)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof Me});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(r.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var r=[],n=0,o=e;n<o.length;n++){var s=o[n];if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;r.push(this.processRoutes(a.module,a.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(t,s)):s.children&&r.push(this.processRoutes(t,s.children))}return _.mergeAll.call(i.from(r))},t.prototype.preloadConfig=function(t,e){var r=this;return this.preloadingStrategy.preload(e,function(){var n=r.loader.load(t.injector,e);return p.mergeMap.call(n,function(t){return e._loadedConfig=t,r.processRoutes(t.module,t.routes)})})},t}();Ir.decorators=[{type:r.Injectable}],Ir.ctorParameters=function(){return[{type:_r},{type:r.NgModuleFactoryLoader},{type:r.Compiler},{type:r.Injector},{type:Mr}]};var Nr=[Pr,Sr,xr,Tr],Dr=new r.InjectionToken("ROUTER_CONFIGURATION"),jr=new r.InjectionToken("ROUTER_FORROOT_GUARD"),Lr=[e.Location,{provide:qe,useClass:ze},{provide:_r,useFactory:Ee,deps:[r.ApplicationRef,qe,dr,e.Location,r.Injector,r.NgModuleFactoryLoader,r.Compiler,hr,Dr,[mr,new r.Optional],[Or,new r.Optional]]},dr,{provide:or,useFactory:Se,deps:[_r]},{provide:r.NgModuleFactoryLoader,useClass:r.SystemJsNgModuleLoader},Ir,kr,Rr,{provide:Dr,useValue:{enableTracing:!1}}],Vr=function(){function t(){}return t.forRoot=function(n,o){return{ngModule:t,providers:[Lr,Ce(n),{provide:jr,useFactory:we,deps:[[_r,new r.Optional,new r.SkipSelf]]},{provide:Dr,useValue:o?o:{}},{provide:e.LocationStrategy,useFactory:be,deps:[e.PlatformLocation,[new r.Inject(e.APP_BASE_HREF),new r.Optional],Dr]},{provide:Mr,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:kr},{provide:r.NgProbeToken,multi:!0,useFactory:_e},Pe()]}},t.forChild=function(e){return{ngModule:t,providers:[Ce(e)]}},t}();Vr.decorators=[{type:r.NgModule,args:[{declarations:Nr,exports:Nr}]}],Vr.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[jr]}]},{type:_r,decorators:[{type:r.Optional}]}]};var Fr=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new o.Subject}return t.prototype.appInitializer=function(){var t=this,r=this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null));return r.then(function(){var e=null,r=new Promise(function(t){return e=t}),n=t.injector.get(_r),o=t.injector.get(Dr);if(t.isLegacyDisabled(o)||t.isLegacyEnabled(o))e(!0);else if("disabled"===o.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '"+o.initialNavigation+"'");n.hooks.afterPreactivation=function(){return t.initNavigation?s.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},n.initialNavigation()}return r})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Dr),n=this.injector.get(Ir),o=this.injector.get(_r),i=this.injector.get(r.ApplicationRef);t===i.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),n.setUpPreloading(),o.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||t.initialNavigation===!0||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||t.initialNavigation===!1},t}();Fr.decorators=[{type:r.Injectable}],Fr.ctorParameters=function(){return[{type:r.Injector}]};var Ur=new r.InjectionToken("Router Initializer"),Br=new r.Version("4.1.0");t.RouterLink=Sr,t.RouterLinkWithHref=xr,t.RouterLinkActive=Tr,t.RouterOutlet=Pr,t.NavigationCancel=Re,t.NavigationEnd=Me,t.NavigationError=ke,t.NavigationStart=Oe,t.RouteConfigLoadEnd=De,t.RouteConfigLoadStart=Ne,t.RoutesRecognized=Ie,t.RouteReuseStrategy=Or,t.Router=_r,t.ROUTES=hr,t.ROUTER_CONFIGURATION=Dr,t.ROUTER_INITIALIZER=Ur,t.RouterModule=Vr,t.provideRoutes=Ce,t.RouterOutletMap=dr,t.NoPreloading=kr,t.PreloadAllModules=Rr,t.PreloadingStrategy=Mr,t.RouterPreloader=Ir,t.ActivatedRoute=or,t.ActivatedRouteSnapshot=ir,t.RouterState=nr,t.RouterStateSnapshot=sr,t.PRIMARY_OUTLET=je,t.convertToParamMap=C,t.UrlHandlingStrategy=mr,t.DefaultUrlSerializer=ze,t.UrlSegment=He,t.UrlSegmentGroup=Be,t.UrlSerializer=qe,t.UrlTree=Ue,t.VERSION=Br,t.ɵROUTER_PROVIDERS=Lr,t.ɵflatten=R,t.ɵa=jr,t.ɵg=Fr,t.ɵh=xe,t.ɵi=Te,t.ɵd=we,t.ɵc=be,t.ɵj=Pe,t.ɵf=Se,t.ɵb=_e,t.ɵe=Ee,t.ɵk=tr,t.ɵl=er,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/core":8,"@angular/platform-browser":12,"rxjs/BehaviorSubject":14,"rxjs/Observable":17,"rxjs/Subject":20,"rxjs/observable/from":35,"rxjs/observable/fromPromise":36,"rxjs/observable/of":38,"rxjs/operator/catch":39,"rxjs/operator/concatAll":40,"rxjs/operator/concatMap":41,"rxjs/operator/every":42,"rxjs/operator/filter":43,"rxjs/operator/first":44,"rxjs/operator/last":45,"rxjs/operator/map":46,"rxjs/operator/mergeAll":48,"rxjs/operator/mergeMap":49,"rxjs/operator/reduce":52,"rxjs/util/EmptyError":57}],14:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Subject"),i=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.Subject);r.BehaviorSubject=s},{"./Subject":20,"./util/ObjectUnsubscribedError":58}],15:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Subscriber"),i=function(t){function e(e,r,n){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=n,this.index=0}return n(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(o.Subscriber);r.InnerSubscriber=i},{"./Subscriber":22}],16:[function(t,e,r){"use strict";var n=t("./Observable"),o=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype["do"]=function(t,e,r){var n=this.kind;switch(n){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this["do"](t,e,r)},t.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return n.Observable.of(this.value);case"E":return n.Observable["throw"](this.error);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();r.Notification=o},{"./Observable":17}],17:[function(t,e,r){"use strict";var n=t("./util/root"),o=t("./util/toSubscriber"),i=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=o.toSubscriber(t,e,r);if(n?n.call(i,this.source):i.add(this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var o=r.subscribe(function(e){if(o)try{t(e)}catch(r){n(r),o.unsubscribe()}else t(e)},n,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();r.Observable=s},{"./symbol/observable":55,"./util/root":67,"./util/toSubscriber":69}],18:[function(t,e,r){"use strict";r.empty={closed:!0,next:function(){},error:function(t){throw t},complete:function(){}}},{}],19:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Subscriber"),i=function(t){function e(){t.apply(this,arguments)}return n(e,t),e.prototype.notifyNext=function(t,e){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(o.Subscriber);r.OuterSubscriber=i},{"./Subscriber":22}],20:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Observable"),i=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),l=function(t){function e(e){t.call(this,e),this.destination=e}return n(e,t),e}(i.Subscriber);r.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(e,t),e.prototype[c.$$rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),o=0;r>o;o++)n[o].next(t); - -},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),o=0;r>o;o++)n[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;e>n;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new o.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(o.Observable);r.Subject=p;var h=function(t){function e(e,r){t.call(this),this.destination=e,this.source=r}return n(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){var e=this.source;return e?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);r.AnonymousSubject=h},{"./Observable":17,"./SubjectSubscription":21,"./Subscriber":22,"./Subscription":23,"./symbol/rxSubscriber":56,"./util/ObjectUnsubscribedError":58}],21:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./Subscription"),i=function(t){function e(e,r){t.call(this),this.subject=e,this.subscriber=r,this.closed=!1}return n(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 r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(o.Subscription);r.SubjectSubscription=i},{"./Subscription":23}],22:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("./util/isFunction"),i=t("./Subscription"),s=t("./Observer"),a=t("./symbol/rxSubscriber"),u=function(t){function e(r,n,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!r){this.destination=s.empty;break}if("object"==typeof r){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,r,n,o)}}return n(e,t),e.prototype[a.$$rxSubscriber]=function(){return this},e.create=function(t,r,n){var o=new e(t,r,n);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,r=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=r,this},e}(i.Subscription);r.Subscriber=u;var c=function(t){function e(e,r,n,i){t.call(this),this._parentSubscriber=e;var s,a=this;o.isFunction(r)?s=r:r&&(a=r,s=r.next,n=r.error,i=r.complete,o.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=n,this._complete=i}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(r){throw this.unsubscribe(),r}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(n){return t.syncErrorValue=n,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},{"./Observer":18,"./Subscription":23,"./symbol/rxSubscriber":56,"./util/isFunction":63}],23:[function(t,e,r){"use strict";function n(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var o=t("./util/isArray"),i=t("./util/isObject"),s=t("./util/isFunction"),a=t("./util/tryCatch"),u=t("./util/errorObject"),c=t("./util/UnsubscriptionError"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var r=this,l=r._parent,p=r._parents,h=r._unsubscribe,f=r._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,m=p?p.length:0;l;)l.remove(this),l=++d<m&&p[d]||null;if(s.isFunction(h)){var y=a.tryCatch(h).call(this);y===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?n(u.errorObject.e.errors):[u.errorObject.e]))}if(o.isArray(f))for(d=-1,m=f.length;++d<m;){var v=f[d];if(i.isObject(v)){var y=a.tryCatch(v.unsubscribe).call(v);if(y===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(n(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(typeof e){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var n=r;r=new t,r._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=this._subscriptions||(this._subscriptions=[]);return o.push(r),r._addParent(this),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.prototype._addParent=function(t){var e=this,r=e._parent,n=e._parents;r&&r!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();r.Subscription=l},{"./util/UnsubscriptionError":59,"./util/errorObject":60,"./util/isArray":61,"./util/isFunction":63,"./util/isObject":64,"./util/tryCatch":70}],24:[function(t){"use strict";var e=t("../../Observable"),r=t("../../operator/map");e.Observable.prototype.map=r.map},{"../../Observable":17,"../../operator/map":46}],25:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,r){t.call(this),this.arrayLike=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){var n=t.length;return 0===n?new s.EmptyObservable:1===n?new i.ScalarObservable(t[0],r):new e(t,r)},e.dispatch=function(t){var e=t.arrayLike,r=t.index,n=t.length,o=t.subscriber;if(!o.closed){if(r>=n)return void o.complete();o.next(e[r]),t.index=r+1,this.schedule(t)}},e.prototype._subscribe=function(t){var r=0,n=this,o=n.arrayLike,i=n.scheduler,s=o.length;if(i)return i.schedule(e.dispatch,0,{arrayLike:o,index:r,length:s,subscriber:t});for(var a=0;s>a&&!t.closed;a++)t.next(o[a]);t.complete()},e}(o.Observable);r.ArrayLikeObservable=a},{"../Observable":17,"./EmptyObservable":28,"./ScalarObservable":33}],26:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return n(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=t[t.length-1];a.isScheduler(n)?t.pop():n=null;var o=t.length;return o>1?new e(t,n):1===o?new i.ScalarObservable(t[0],n):new s.EmptyObservable(n)},e.dispatch=function(t){var e=t.array,r=t.index,n=t.count,o=t.subscriber;return r>=n?void o.complete():(o.next(e[r]),void(o.closed||(t.index=r+1,this.schedule(t))))},e.prototype._subscribe=function(t){var r=0,n=this.array,o=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:r,count:o,subscriber:t});for(var s=0;o>s&&!t.closed;s++)t.next(n[s]);t.complete()},e}(o.Observable);r.ArrayObservable=u},{"../Observable":17,"../util/isScheduler":66,"./EmptyObservable":28,"./ScalarObservable":33}],27:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Subject"),i=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,r){t.call(this),this.source=e,this.subjectFactory=r,this._refCount=0}return n(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||(t=this._connection=new a.Subscription,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(i.Observable);r.ConnectableObservable=u,r.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){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}(o.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new p(t,r),o=e.subscribe(n);return n.closed||(n.connection=r.connect()),o},t}(),p=function(t){function e(e,r){t.call(this,e),this.connectable=r}return n(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(0>=e)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()},e}(s.Subscriber)},{"../Observable":17,"../Subject":20,"../Subscriber":22,"../Subscription":23}],28:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=function(t){function e(e){t.call(this),this.scheduler=e}return n(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){var e=t.subscriber;e.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;return r?r.schedule(e.dispatch,0,{subscriber:t}):void t.complete()},e}(o.Observable);r.EmptyObservable=i},{"../Observable":17}],29:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=t("./EmptyObservable"),s=t("../util/isArray"),a=t("../util/subscribeToResult"),u=t("../OuterSubscriber"),c=function(t){function e(e,r){t.call(this),this.sources=e,this.resultSelector=r}return n(e,t),e.create=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];if(null===t||0===arguments.length)return new i.EmptyObservable;var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new i.EmptyObservable:new e(t,n)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(o.Observable);r.ForkJoinObservable=c;var l=function(t){function e(e,r,n){t.call(this,e),this.sources=r,this.resultSelector=n,this.completed=0,this.haveValues=0;var o=r.length;this.total=o,this.values=new Array(o);for(var i=0;o>i;i++){var s=r[i],u=a.subscribeToResult(this,s,null,i);u&&(u.outerIndex=i,this.add(u))}}return n(e,t),e.prototype.notifyNext=function(t,e,r,n,o){this.values[r]=e,o._hasValue||(o._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,r=this,n=r.haveValues,o=r.resultSelector,i=r.values,s=i.length;if(!t._hasValue)return void e.complete();if(this.completed++,this.completed===s){if(n===s){var a=o?o.apply(this,i):i;e.next(a)}e.complete()}},e}(u.OuterSubscriber)},{"../Observable":17,"../OuterSubscriber":19,"../util/isArray":61,"../util/subscribeToResult":68,"./EmptyObservable":28}],30:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../util/isArray"),i=t("../util/isArrayLike"),s=t("../util/isPromise"),a=t("./PromiseObservable"),u=t("./IteratorObservable"),c=t("./ArrayObservable"),l=t("./ArrayLikeObservable"),p=t("../symbol/iterator"),h=t("../Observable"),f=t("../operator/observeOn"),d=t("../symbol/observable"),m=function(t){function e(e,r){t.call(this,null),this.ish=e,this.scheduler=r}return n(e,t),e.create=function(t,r){if(null!=t){if("function"==typeof t[d.$$observable])return t instanceof h.Observable&&!r?t:new e(t,r);if(o.isArray(t))return new c.ArrayObservable(t,r);if(s.isPromise(t))return new a.PromiseObservable(t,r);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,r);if(i.isArrayLike(t))return new l.ArrayLikeObservable(t,r)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,r=this.scheduler;return e[d.$$observable]().subscribe(null==r?t:new f.ObserveOnSubscriber(t,r,0))},e}(h.Observable);r.FromObservable=m},{"../Observable":17,"../operator/observeOn":51,"../symbol/iterator":54,"../symbol/observable":55,"../util/isArray":61,"../util/isArrayLike":62,"../util/isPromise":65,"./ArrayLikeObservable":25,"./ArrayObservable":26,"./IteratorObservable":31,"./PromiseObservable":32}],31:[function(t,e,r){"use strict";function n(t){var e=t[l.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[l.$$iterator]()}function o(t){var e=+t.length;return isNaN(e)?0:0!==e&&i(e)?(e=s(e)*Math.floor(Math.abs(e)),0>=e?0:e>d?d:e):e}function i(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:0>e?-1:1}var a=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=t("../util/root"),c=t("../Observable"),l=t("../symbol/iterator"),p=function(t){function e(e,r){if(t.call(this),this.scheduler=r,null==e)throw new Error("iterator cannot be null.");this.iterator=n(e)}return a(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.index,r=t.hasError,n=t.iterator,o=t.subscriber;if(r)return void o.error(t.error);var i=n.next();return i.done?void o.complete():(o.next(i.value),t.index=e+1,o.closed?void("function"==typeof n["return"]&&n["return"]()):void this.schedule(t))},e.prototype._subscribe=function(t){var r=0,n=this,o=n.iterator,i=n.scheduler;if(i)return i.schedule(e.dispatch,0,{index:r,iterator:o,subscriber:t});for(;;){var s=o.next();if(s.done){t.complete();break}if(t.next(s.value),t.closed){"function"==typeof o["return"]&&o["return"]();break}}},e}(c.Observable);r.IteratorObservable=p;var h=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=t.length),this.str=t,this.idx=e,this.len=r}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,r){void 0===e&&(e=0),void 0===r&&(r=o(t)),this.arr=t,this.idx=e,this.len=r}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},{"../Observable":17,"../symbol/iterator":54,"../util/root":67}],32:[function(t,e,r){"use strict";function n(t){var e=t.value,r=t.subscriber;r.closed||(r.next(e),r.complete())}function o(t){var e=t.err,r=t.subscriber;r.closed||r.error(e)}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},s=t("../util/root"),a=t("../Observable"),u=function(t){function e(e,r){t.call(this),this.promise=e,this.scheduler=r}return i(e,t),e.create=function(t,r){return new e(t,r)},e.prototype._subscribe=function(t){var e=this,r=this.promise,i=this.scheduler;if(null==i)this._isScalar?t.closed||(t.next(this.value),t.complete()):r.then(function(r){e.value=r,e._isScalar=!0,t.closed||(t.next(r),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return i.schedule(n,0,{value:this.value,subscriber:t})}else r.then(function(r){e.value=r,e._isScalar=!0,t.closed||t.add(i.schedule(n,0,{value:r,subscriber:t}))},function(e){t.closed||t.add(i.schedule(o,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);r.PromiseObservable=u},{"../Observable":17,"../util/root":67}],33:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("../Observable"),i=function(t){function e(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.done,r=t.value,n=t.subscriber;return e?void n.complete():(n.next(r),void(n.closed||(t.done=!0,this.schedule(t))))},e.prototype._subscribe=function(t){var r=this.value,n=this.scheduler;return n?n.schedule(e.dispatch,0,{done:!1,value:r,subscriber:t}):(t.next(r),void(t.closed||t.complete()))},e}(o.Observable);r.ScalarObservable=i},{"../Observable":17}],34:[function(t,e,r){"use strict";var n=t("./ForkJoinObservable");r.forkJoin=n.ForkJoinObservable.create},{"./ForkJoinObservable":29}],35:[function(t,e,r){"use strict";var n=t("./FromObservable");r.from=n.FromObservable.create},{"./FromObservable":30}],36:[function(t,e,r){"use strict";var n=t("./PromiseObservable");r.fromPromise=n.PromiseObservable.create},{"./PromiseObservable":32}],37:[function(t,e,r){"use strict";var n=t("../operator/merge");r.merge=n.mergeStatic},{"../operator/merge":47}],38:[function(t,e,r){"use strict";var n=t("./ArrayObservable");r.of=n.ArrayObservable.of},{"./ArrayObservable":26}],39:[function(t,e,r){"use strict";function n(t){var e=new a(t),r=this.lift(e);return e.caught=r}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r._catch=n;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,r,n){t.call(this,e),this.selector=r,this.caught=n}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=void 0;try{r=this.selector(e,this.caught)}catch(n){return void t.prototype.error.call(this,n)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,r))}},e}(i.OuterSubscriber)},{"../OuterSubscriber":19,"../util/subscribeToResult":68}],40:[function(t,e,r){"use strict";function n(){return this.lift(new o.MergeAllOperator(1))}var o=t("./mergeAll");r.concatAll=n},{"./mergeAll":48}],41:[function(t,e,r){"use strict";function n(t,e){return this.lift(new o.MergeMapOperator(t,e,1))}var o=t("./mergeMap");r.concatMap=n},{"./mergeMap":49}],42:[function(t,e,r){"use strict";function n(t,e){return this.lift(new s(t,e,this))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.every=n;var s=function(){function t(t,e,r){this.predicate=t,this.thisArg=e,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,r,n,o){t.call(this,e),this.predicate=r,this.thisArg=n,this.source=o,this.index=0,this.thisArg=n||this}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(r){return void this.destination.error(r)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(i.Subscriber)},{"../Subscriber":22}],43:[function(t,e,r){"use strict";function n(t,e){return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.filter=n;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,r,n){t.call(this,e),this.predicate=r,this.thisArg=n,this.count=0,this.predicate=r}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}e&&this.destination.next(t)},e}(i.Subscriber)},{"../Subscriber":22}],44:[function(t,e,r){"use strict";function n(t,e,r){return this.lift(new a(t,e,r,this))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),s=t("../util/EmptyError");r.first=n;var a=function(){function t(t,e,r,n){this.predicate=t,this.resultSelector=e,this.defaultValue=r,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,r,n,o,i){t.call(this,e),this.predicate=r,this.resultSelector=n,this.defaultValue=o,this.source=i,this.index=0,this.hasCompleted=!1,this._emitted=!1}return o(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var r;try{r=this.predicate(t,e,this.source)}catch(n){return void this.destination.error(n)}r&&this._emit(t,e)},e.prototype._emit=function(t,e){return this.resultSelector?void this._tryResultSelector(t,e):void this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var r;try{r=this.resultSelector(t,e)}catch(n){return void this.destination.error(n)}this._emitFinal(r)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(i.Subscriber)},{"../Subscriber":22,"../util/EmptyError":57}],45:[function(t,e,r){"use strict";function n(t,e,r){return this.lift(new a(t,e,r,this))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),s=t("../util/EmptyError");r.last=n;var a=function(){function t(t,e,r,n){this.predicate=t,this.resultSelector=e,this.defaultValue=r,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,r,n,o,i){t.call(this,e),this.predicate=r,this.resultSelector=n,this.defaultValue=o,this.source=i,this.hasValue=!1,this.index=0,"undefined"!=typeof o&&(this.lastValue=o,this.hasValue=!0)}return o(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var r;try{r=this.predicate(t,e,this.source)}catch(n){return void this.destination.error(n)}if(r){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var r;try{r=this.resultSelector(t,e)}catch(n){return void this.destination.error(n)}this.lastValue=r,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(i.Subscriber)},{"../Subscriber":22,"../util/EmptyError":57}],46:[function(t,e,r){"use strict";function n(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.map=n;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();r.MapOperator=s;var a=function(t){function e(e,r,n){t.call(this,e),this.project=r,this.count=0,this.thisArg=n||this}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(e)},e}(i.Subscriber)},{"../Subscriber":22}],47:[function(t,e,r){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(o.apply(void 0,[this].concat(t)))}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,o=t[t.length-1];return u.isScheduler(o)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof i.Observable?t[0]:new s.ArrayObservable(t,n).lift(new a.MergeAllOperator(r))}var i=t("../Observable"),s=t("../observable/ArrayObservable"),a=t("./mergeAll"),u=t("../util/isScheduler");r.merge=n,r.mergeStatic=o},{"../Observable":17,"../observable/ArrayObservable":26,"../util/isScheduler":66,"./mergeAll":48}],48:[function(t,e,r){"use strict";function n(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../OuterSubscriber"),s=t("../util/subscribeToResult");r.mergeAll=n;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();r.MergeAllOperator=a;var u=function(t){function e(e,r){t.call(this,e),this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);r.MergeAllSubscriber=u},{"../OuterSubscriber":19,"../util/subscribeToResult":68}],49:[function(t,e,r){"use strict";function n(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof e&&(r=e,e=null),this.lift(new a(t,e,r))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../util/subscribeToResult"),s=t("../OuterSubscriber");r.mergeMap=n;var a=function(){function t(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();r.MergeMapOperator=a;var u=function(t){function e(e,r,n,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=r,this.resultSelector=n,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(n){return void this.destination.error(n)}this.active++,this._innerSub(e,t,r)},e.prototype._innerSub=function(t,e,r){this.add(i.subscribeToResult(this,t,e,r))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,n){this.resultSelector?this._notifyResultSelector(t,e,r,n):this.destination.next(e); - -},e.prototype._notifyResultSelector=function(t,e,r,n){var o;try{o=this.resultSelector(t,e,r,n)}catch(i){return void this.destination.error(i)}this.destination.next(o)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);r.MergeMapSubscriber=u},{"../OuterSubscriber":19,"../util/subscribeToResult":68}],50:[function(t,e,r){"use strict";function n(t,e){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new i(r,e));var n=Object.create(this,o.connectableObservableDescriptor);return n.source=this,n.subjectFactory=r,n}var o=t("../observable/ConnectableObservable");r.multicast=n;var i=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),o=r(n).subscribe(t);return o.add(e.subscribe(n)),o},t}();r.MulticastOperator=i},{"../observable/ConnectableObservable":27}],51:[function(t,e,r){"use strict";function n(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber"),s=t("../Notification");r.observeOn=n;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();r.ObserveOnOperator=a;var u=function(t){function e(e,r,n){void 0===n&&(n=0),t.call(this,e),this.scheduler=r,this.delay=n}return o(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(i.Subscriber);r.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();r.ObserveOnMessage=c},{"../Notification":16,"../Subscriber":22}],52:[function(t,e,r){"use strict";function n(t,e){var r=!1;return arguments.length>=2&&(r=!0),this.lift(new s(t,e,r))}var o=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},i=t("../Subscriber");r.reduce=n;var s=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}();r.ReduceOperator=s;var a=function(t){function e(e,r,n,o){t.call(this,e),this.accumulator=r,this.hasSeed=o,this.index=0,this.hasValue=!1,this.acc=n,this.hasSeed||this.index++}return o(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t,this.index++)}catch(r){return void this.destination.error(r)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(i.Subscriber);r.ReduceSubscriber=a},{"../Subscriber":22}],53:[function(t,e,r){"use strict";function n(){return new s.Subject}function o(){return i.multicast.call(this,n).refCount()}var i=t("./multicast"),s=t("../Subject");r.share=o},{"../Subject":20,"./multicast":50}],54:[function(t,e,r){"use strict";function n(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var r=t.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var n=t.Map;if(n)for(var o=Object.getOwnPropertyNames(n.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&n.prototype[s]===n.prototype.entries)return s}return"@@iterator"}var o=t("../util/root");r.symbolIteratorPonyfill=n,r.$$iterator=n(o.root)},{"../util/root":67}],55:[function(t,e,r){"use strict";function n(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}var o=t("../util/root");r.getSymbolObservable=n,r.$$observable=n(o.root)},{"../util/root":67}],56:[function(t,e,r){"use strict";var n=t("../util/root"),o=n.root.Symbol;r.$$rxSubscriber="function"==typeof o&&"function"==typeof o["for"]?o["for"]("rxSubscriber"):"@@rxSubscriber"},{"../util/root":67}],57:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);r.EmptyError=o},{}],58:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return n(e,t),e}(Error);r.ObjectUnsubscribedError=o},{}],59:[function(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return n(e,t),e}(Error);r.UnsubscriptionError=o},{}],60:[function(t,e,r){"use strict";r.errorObject={e:{}}},{}],61:[function(t,e,r){"use strict";r.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],62:[function(t,e,r){"use strict";r.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],63:[function(t,e,r){"use strict";function n(t){return"function"==typeof t}r.isFunction=n},{}],64:[function(t,e,r){"use strict";function n(t){return null!=t&&"object"==typeof t}r.isObject=n},{}],65:[function(t,e,r){"use strict";function n(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}r.isPromise=n},{}],66:[function(t,e,r){"use strict";function n(t){return t&&"function"==typeof t.schedule}r.isScheduler=n},{}],67:[function(t,e,r){(function(t){"use strict";if(r.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t,!r.root)throw new Error("RxJS could not find any global context (window, self, global)")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],68:[function(t,e,r){"use strict";function n(t,e,r,n){var h=new l.InnerSubscriber(t,r,n);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(i.isArrayLike(e)){for(var f=0,d=e.length;d>f&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){o.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.$$iterator])for(var m=e[c.$$iterator]();;){var y=m.next();if(y.done){h.complete();break}if(h.next(y.value),h.closed)break}else if(e&&"function"==typeof e[p.$$observable]){var v=e[p.$$observable]();if("function"==typeof v.subscribe)return v.subscribe(new l.InnerSubscriber(t,r,n));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g=a.isObject(e)?"an invalid object":"'"+e+"'",_="You provided "+g+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(_))}}return null}var o=t("./root"),i=t("./isArrayLike"),s=t("./isPromise"),a=t("./isObject"),u=t("../Observable"),c=t("../symbol/iterator"),l=t("../InnerSubscriber"),p=t("../symbol/observable");r.subscribeToResult=n},{"../InnerSubscriber":15,"../Observable":17,"../symbol/iterator":54,"../symbol/observable":55,"./isArrayLike":62,"./isObject":64,"./isPromise":65,"./root":67}],69:[function(t,e,r){"use strict";function n(t,e,r){if(t){if(t instanceof o.Subscriber)return t;if(t[i.$$rxSubscriber])return t[i.$$rxSubscriber]()}return t||e||r?new o.Subscriber(t,e,r):new o.Subscriber(s.empty)}var o=t("../Subscriber"),i=t("../symbol/rxSubscriber"),s=t("../Observer");r.toSubscriber=n},{"../Observer":18,"../Subscriber":22,"../symbol/rxSubscriber":56}],70:[function(t,e,r){"use strict";function n(){try{return i.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function o(t){return i=t,n}var i,s=t("./errorObject");r.tryCatch=o},{"./errorObject":60}]},{},[5])(5)}); \ No newline at end of file +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).main=t()}}(function(){return function t(e,n,r){function o(s,a){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};e[s][0].call(l.exports,function(t){var n=e[s][1][t];return o(n||t)},l,l.exports,t,e,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),i=function(){function t(){}return t}();i=r([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"})],i),n.AppComponent=i},{"@angular/core":8}],2:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),i=t("@angular/platform-browser"),s=t("@angular/router"),a=t("@angular/http"),u=t("@angular/forms"),c=t("./app.component"),l=t("./profile.component"),p=t("./signature-book.component"),h=function(){function t(){}return t}();h=r([o.NgModule({imports:[i.BrowserModule,u.FormsModule,s.RouterModule.forRoot([{path:"profile",component:l.ProfileComponent},{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),a.HttpModule],declarations:[c.AppComponent,l.ProfileComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]})],h),n.AppModule=h},{"./app.component":1,"./profile.component":3,"./signature-book.component":4,"@angular/core":8,"@angular/forms":9,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13}],3:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t,e){var n=this;this.http=t,this.zone=e,this.user={lang:{}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.resultInfo="",this.loading=!1,window.angularProfileComponent={componentAfterUpload:function(t){return n.processAfterUpload(t)}}}return t.prototype.prepareProfile=function(){if($j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove(),Prototype.BrowserFeatures.ElementExtensions){var t=["collapse","dropdown","modal","tooltip","popover","tab"];disablePrototypeJS("show",t),disablePrototypeJS("hide",t)}tinymce.baseURL="../../node_modules/tinymce",tinymce.suffix=".min",tinymce.init({selector:"textarea#emailSignature",statusbar:!1,language:"fr_FR",language_url:"tools/tinymce/langs/fr_FR.js",height:"200",plugins:["textcolor"],external_plugins:{bdesk_photo:"../../apps/maarch_entreprise/tools/tinymce/bdesk_photo/plugin.min.js"},menubar:!1,toolbar:"undo | bold italic underline | alignleft aligncenter alignright | bdesk_photo | forecolor",theme_buttons1_add:"fontselect,fontsizeselect",theme_buttons2_add_before:"cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",theme_buttons2_add:"separator,insertdate,inserttime,preview,separator,forecolor,backcolor",theme_buttons3_add_before:"tablecontrols,separator",theme_buttons3_add:"separator,print,separator,ltr,rtl,separator,fullscreen,separator,insertlayer,moveforward,movebackward,absolut",theme_toolbar_align:"left",theme_advanced_toolbar_location:"top",theme_styles:"Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"})},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Profil")},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/user/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.loading=!1})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",this.resultInfo="Taille maximum de fichier dépassée (2 MB)",$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},t.prototype.displayPassword=function(){this.showPassword=!this.showPassword},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularProfileComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.changeEmailSignature=function(){var t=$j("#emailSignaturesSelect").prop("selectedIndex");this.mailSignatureModel.selected=t,t>0?(tinymce.get("emailSignature").setContent(this.user.emailSignatures[t-1].html_body),this.mailSignatureModel.title=this.user.emailSignatures[t-1].title):(tinymce.get("emailSignature").setContent(""),this.mailSignatureModel.title="")},t.prototype.getAbsenceInfos=function(){var t=this;this.http.get(this.coreUrl+"rest/currentUser/baskets/absence").map(function(t){return t.json()}).subscribe(function(e){t.loading=!1})},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.submitEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent(),this.http.post(this.coreUrl+"rest/currentUser/emailSignature",this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent();var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.put(this.coreUrl+"rest/currentUser/emailSignature/"+e,this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures[t.mailSignatureModel.selected-1].title=e.emailSignature.title,t.user.emailSignatures[t.mailSignatureModel.selected-1].html_body=e.emailSignature.html_body,t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteEmailSignature=function(){var t=this;if(confirm("Voulez-vous vraiment supprimer la signature de mail ?")){var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.delete(this.coreUrl+"rest/currentUser/emailSignature/"+e).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})}},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/currentUser/signature",this.signatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/currentUser/signature/"+e,{label:this.selectedSignatureLabel}).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteSignature=function(t){var e=this;confirm("Voulez-vous vraiment supprimer la signature ?")&&this.http.delete(this.coreUrl+"rest/currentUser/signature/"+t).map(function(t){return t.json()}).subscribe(function(t){t.errors?(e.resultInfo=t.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(e.user.signatures=t.signatures,e.resultInfo=t.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.onSubmit=function(){var t=this;this.http.put(this.coreUrl+"rest/user/profile",this.user).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},function(t){alert(t.statusText)})},t.prototype.absenceModal=function(){createModal(this.user.absence,"modal_redirect","auto","950px"),autocomplete(this.user.countBasketsForAbsence,"index.php?display=true&module=basket&page=autocomplete_users_list")},t}();a=r([i.Component({templateUrl:angularGlobals.profileView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","js/angular/app/Css/profile.component.css"]}),o("design:paramtypes",[s.Http,i.NgZone])],a),n.ProfileComponent=a},{"@angular/core":8,"@angular/http":10,"rxjs/add/operator/map":24}],4:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=r([i.Pipe({name:"safeUrl"}),o("design:paramtypes",[a.DomSanitizer])],c),n.SafeUrlPipe=c;var l=function(){function t(t,e,n,r){var o=this;this.http=t,this.route=e,this.router=n,this.zone=r,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[],resListIndex:0,lang:{}},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentPanel=!1,this.showSignaturesPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",this.attachmentsViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return o.processAfterAttach(t)},componentAfterAction:function(){return o.processAfterAction()},componentAfterNotes:function(){return o.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){if(e.error)return location.hash="",void(location.search="");t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&page=show_history_tab&resId="+t.resId+"&collId=letterbox_coll",t.linksViewerLink="index.php?display=true&page=show_links_tab&id="+t.resId,t.attachmentsViewerLink="index.php?display=true&module=attachments&page=frame_list_attachments&resId="+t.resId+"&noModification=true&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder",t.leftContentWidth="44%",t.rightContentWidth="44%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink,"outgoing"==t.signatureBook.documents[0].category_id&&(t.headerTab=3)),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.displayPanel("RESLEFT"),t.loading=!1,setTimeout(function(){$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j(".pjSign").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),0==$j(".tooltipstered").length&&$j("#obsVersion").tooltipster({interactive:!0})},0)})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,n=this.signatureBook.resList.length,r=0;r<n;r++)this.signatureBook.resList[r].res_id==this.resId&&(this.signatureBook.resList[r+1]?e=this.signatureBook.resList[r+1].res_id:r>0&&(e=this.signatureBook.resList[r-1].res_id));unlockDocument(this.resId),e>=0?($j("#send").removeAttr("disabled"),$j("#send").css("opacity","1"),this.zone.run(function(){return t.changeLocation(e,"action")})):this.zone.run(function(){return t.backToBasket()})},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){this.showAttachmentPanel=!1,this.rightViewerLink=this.signatureBook.attachments[t].viewerLink,this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){var e=this;"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%",0==this.signatureBook.resList.length&&this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.resList=t.resList,e.signatureBook.resList.forEach(function(t,n){t.res_id==e.resId&&(e.signatureBook.resListIndex=n)}),setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42)},0)})):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.displayAttachmentPanel=function(){this.showAttachmentPanel=!this.showAttachmentPanel,this.rightSelectedThumbnail=0,this.signatureBook.attachments[0]&&(this.rightViewerLink=this.signatureBook.attachments[0].viewerLink)},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(n){var r=0;if("add"==t){var o=!1;n.forEach(function(t,n){o||e.signatureBook.attachments[n]&&t.res_id==e.signatureBook.attachments[n].res_id||(r=n,o=!0)})}else if("edit"==t){var i=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;n.forEach(function(t,e){t.res_id==i&&(r=e)})}e.signatureBook.attachments=n,"add"==t||"edit"==t?e.changeRightViewer(r):"del"==t&&e.changeRightViewer(0)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){if(t.canModify&&"SIGN"!=t.status){var e;0==t.res_id?e=t.res_id_version:0==t.res_id_version&&(e=t.res_id),modifyAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&id="+e+"&relation="+t.relation+"&docId="+this.resId,"98%","auto")}},t.prototype.delAttachment=function(t){var e=this;if(t.canDelete){if(this.signatureBook.attachments.length<=1)n=confirm("Attention, ceci est votre dernière pièce jointe pour ce courrier, voulez-vous vraiment la supprimer ?");else var n=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(n){var r;0==t.res_id?r=t.res_id_version:0==t.res_id_version&&(r=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+r+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.signFile=function(t,e){var n=this;if(!this.loadingSign&&this.signatureBook.canSign){this.loadingSign=!0;var r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&signatureId="+e.id;0==t.res_id?"outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?r+="&isVersion&isOutgoing&id="+t.res_id_version:r+="&isVersion&id="+t.res_id_version:0==t.res_id_version&&("outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?r+="&isOutgoing&id="+t.res_id:r+="&id="+t.res_id),this.http.get(r,e).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){n.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+n.resId+"&id="+t.new_id+"&isVersion=false",n.signatureBook.attachments[n.rightSelectedThumbnail].viewerLink=n.rightViewerLink,n.signatureBook.attachments[n.rightSelectedThumbnail].status="SIGN",n.signatureBook.attachments[n.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;n.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),n.signatureBook.resList.length>0&&(n.signatureBook.resList[n.signatureBook.resListIndex].allSigned=e)}else alert(t.error);n.showSignaturesPanel=!1,n.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,n,r,o=this;0==t.res_id?(n=t.res_id_version,e="res_version_attachments",r="true"):0==t.res_id_version&&(n=t.res_id,e="res_attachments",r="false"),this.http.put(this.coreUrl+"rest/"+e+"/"+n+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(e){"OK"==e.status?(o.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+o.resId+"&id="+t.viewerNoSignId+"&isVersion="+r,o.signatureBook.attachments[o.rightSelectedThumbnail].viewerLink=o.rightViewerLink,o.signatureBook.attachments[o.rightSelectedThumbnail].status="A_TRA",o.signatureBook.attachments[o.rightSelectedThumbnail].idToDl=n,o.signatureBook.resList.length>0&&(o.signatureBook.resList[o.signatureBook.resListIndex].allSigned=!1)):alert(e.error)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var n=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").map(function(t){return t.json()}).subscribe(function(r){if(r.lock)"view"==e?alert("Courrier verouillé par "+r.lockBy):"action"==e&&(alert("Courrier suivant verouillé par "+r.lockBy),n.backToBasket());else{var o="/"+n.basketId+"/signatureBook/"+t;n.router.navigate([o])}})},t.prototype.validForm=function(){var t=this;""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),0==this.signatureBook.resList.length&&this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.resList=e.resList,valid_action_form("empty","index.php?display=true&page=manage_action&module=core",t.signatureBook.currentAction.id,t.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])})):alert("Aucune action choisie")},t}();l=r([i.Component({templateUrl:angularGlobals["signature-bookView"]}),o("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,i.NgZone])],l),n.SignatureBookComponent=l},{"@angular/core":8,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13,"rxjs/add/operator/map":24}],5:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("@angular/platform-browser-dynamic"),o=t("@angular/core"),i=t("./app/app.module");o.enableProdMode(),r.platformBrowserDynamic().bootstrapModule(i.AppModule)},{"./app/app.module":2,"@angular/core":8,"@angular/platform-browser-dynamic":11}],6:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/core")):o((r.ng=r.ng||{},r.ng.common=r.ng.common||{}),r.ng.core)}(this,function(t,e){"use strict";function n(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function r(t){return t.replace(/\/index.html$/,"")}function o(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function i(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(n)),i=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?H.One:H.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?H.One:H.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===n?H.One:H.Other;case"ar":return 0===n?H.Zero:1===n?H.One:2===n?H.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?H.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?H.Many:H.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?H.One:H.Other;case"be":return n%10==1&&n%100!=11?H.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?H.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?H.Many:H.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?H.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?H.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?H.Few:0!==n&&n%1e6==0?H.Many:H.Other;case"bs":case"hr":case"sr":return 0===i&&o%10==1&&o%100!=11||s%10==1&&s%100!=11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?H.Few:H.Other;case"cs":case"sk":return 1===o&&0===i?H.One:o===Math.floor(o)&&o>=2&&o<=4&&0===i?H.Few:0!==i?H.Many:H.Other;case"cy":return 0===n?H.Zero:1===n?H.One:2===n?H.Two:3===n?H.Few:6===n?H.Many:H.Other;case"da":return 1===n||0!==a&&(0===o||1===o)?H.One:H.Other;case"dsb":case"hsb":return 0===i&&o%100==1||s%100==1?H.One:0===i&&o%100==2||s%100==2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?H.Few:H.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?H.One:H.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!=4&&o%10!=6&&o%10!=9||0!==i&&s%10!=4&&s%10!=6&&s%10!=9?H.One:H.Other;case"ga":return 1===n?H.One:2===n?H.Two:n===Math.floor(n)&&n>=3&&n<=6?H.Few:n===Math.floor(n)&&n>=7&&n<=10?H.Many:H.Other;case"gd":return 1===n||11===n?H.One:2===n||12===n?H.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?H.Few:H.Other;case"gv":return 0===i&&o%10==1?H.One:0===i&&o%10==2?H.Two:0!==i||o%100!=0&&o%100!=20&&o%100!=40&&o%100!=60&&o%100!=80?0!==i?H.Many:H.Other:H.Few;case"he":return 1===o&&0===i?H.One:2===o&&0===i?H.Two:0!==i||n>=0&&n<=10||n%10!=0?H.Other:H.Many;case"is":return 0===a&&o%10==1&&o%100!=11||0!==a?H.One:H.Other;case"ksh":return 0===n?H.Zero:1===n?H.One:H.Other;case"kw":case"naq":case"se":case"smn":return 1===n?H.One:2===n?H.Two:H.Other;case"lag":return 0===n?H.Zero:0!==o&&1!==o||0===n?H.Other:H.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?H.Few:0!==s?H.Many:H.Other:H.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?H.Zero:n%10==1&&n%100!=11||2===i&&s%10==1&&s%100!=11||2!==i&&s%10==1?H.One:H.Other;case"mk":return 0===i&&o%10==1||s%10==1?H.One:H.Other;case"mt":return 1===n?H.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?H.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?H.Many:H.Other;case"pl":return 1===o&&0===i?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?H.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&o%10<=1||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&o%100<=14?H.Many:H.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?H.One:H.Other;case"ro":return 1===o&&0===i?H.One:0!==i||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?H.Few:H.Other;case"ru":case"uk":return 0===i&&o%10==1&&o%100!=11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?H.Few:0===i&&o%10==0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&o%100<=14?H.Many:H.Other;case"shi":return 0===o||1===n?H.One:n===Math.floor(n)&&n>=2&&n<=10?H.Few:H.Other;case"si":return 0===n||1===n||0===o&&1===s?H.One:H.Other;case"sl":return 0===i&&o%100==1?H.One:0===i&&o%100==2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||0!==i?H.Few:H.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?H.One:H.Other;default:return H.Other}}function s(t){return t.name||typeof t}function a(t,n){return Error("InvalidPipeArgument: '"+n+"' for pipe '"+e.ɵstringify(t)+"'")}function u(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function c(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function l(t){return function(e,n){return t(e,n).split(" ")[0]}}function p(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function h(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=p(t,n,e);return r?r.substring(3):""}}function f(t,e){return t.hour12=e,t}function d(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function y(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function m(t){return Object.assign.apply(Object,[{}].concat(t))}function v(t){return function(e,n){return p(e,n,t)}}function g(t,e,n){var r=yt[t];if(r)return r(e,n);var o=t,i=vt.get(o);if(!i){i=[];var s=void 0;dt.exec(t);for(var a=t;a;)(s=dt.exec(a))?a=(i=i.concat(s.slice(1))).pop():(i.push(a),a=null);vt.set(o,i)}return i.reduce(function(t,r){var o=mt[r];return t+(o?o(e,n):_(r))},"")}function _(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function b(t,e,n,r,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&C(n)?+n:n))throw a(t,n);var u=void 0,c=void 0,l=void 0;if(r!==ht.Currency&&(u=1,c=0,l=3),o){var p=o.match(_t);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(u=w(p[1])),null!=p[3]&&(c=w(p[3])),null!=p[5]&&(l=w(p[5]))}return ft.format(n,e,r,{minimumIntegerDigits:u,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function w(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function C(t){return!isNaN(t-parseFloat(t))}function E(t){return null==t||""===t}function S(t){return t instanceof Date&&!isNaN(t.valueOf())}function x(t){var e=new Date(0),n=0,r=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=T(t[9]+t[10]),r=T(t[9]+t[11])),o.call(e,T(t[1]),T(t[2])-1,T(t[3]));var s=T(t[4]||"0")-n,a=T(t[5]||"0")-r,u=T(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function T(t){return parseInt(t,10)}function P(t){return t===kt}function A(t){return t===It}function O(t){return t===Nt}function M(t){return t===Dt}var R=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},k=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(t){},t.prototype.onHashChange=function(t){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(t,e,n){},t.prototype.pushState=function(t,e,n){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),I=new e.InjectionToken("Location Initialized"),N=function(){function t(){}return t.prototype.path=function(t){},t.prototype.prepareExternalUrl=function(t){},t.prototype.pushState=function(t,e,n,r){},t.prototype.replaceState=function(t,e,n,r){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(t){},t.prototype.getBaseHref=function(){},t}(),D=new e.InjectionToken("appBaseHref"),j=function(){function t(n){var o=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(r(i)),this._platformStrategy.onPopState(function(t){o._subject.emit({url:o.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(n(this._baseHref,r(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();j.decorators=[{type:e.Injectable}],j.ctorParameters=function(){return[{type:N}]};var L=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return R(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=j.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+j.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+j.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}(N);L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[D]}]}]};var V=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 R(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 j.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+j.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+j.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+j.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(N);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[D]}]}]};var F=function(){function t(){}return t.prototype.getPluralCategory=function(t){},t}(),U=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return R(e,t),e.prototype.getPluralCategory=function(t){switch(i(this.locale,t)){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}},e}(F);U.decorators=[{type:e.Injectable}],U.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var H={};H.Zero=0,H.One=1,H.Two=2,H.Few=3,H.Many=4,H.Other=5,H[H.Zero]="Zero",H[H.One]="One",H[H.Two]="Two",H[H.Few]="Few",H[H.Many]="Many",H[H.Other]="Other";var B=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._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(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._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},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 n=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));n._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return n._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,!!e)})},t}();B.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],B.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},B.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var q=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var r=n.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(r.injector)}else this._moduleRef=null;var o=(this._moduleRef?this._moduleRef.componentFactoryResolver:n.get(e.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(o,this._viewContainerRef.length,n,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();q.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],q.ctorParameters=function(){return[{type:e.ViewContainerRef}]},q.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var z=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}(),G=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){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(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 '"+s(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},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 z(null,e.ngForOf,-1,-1),o),s=new W(t,i);n.push(s)}else if(null==o)e._viewContainer.remove(r);else{i=e._viewContainer.get(r);e._viewContainer.move(i,o);s=new W(t,i);n.push(s)}});for(r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();G.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],G.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},G.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var W=function(){function t(t,e){this.record=t,this.view=e}return t}(),$=G,K=function(){function t(t,e){this._viewContainer=t,this._context=new Q,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();K.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],K.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},K.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var Q=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),X=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Z=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,++this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}},t}();Z.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],Z.ctorParameters=function(){return[]},Z.propDecorators={ngSwitch:[{type:e.Input}]};var Y=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new X(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();Y.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],Y.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Z,decorators:[{type:e.Host}]}]},Y.propDecorators={ngSwitchCase:[{type:e.Input}]};var J=function(){function t(t,e,n){n._addDefault(new X(t,e))}return t}();J.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],J.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Z,decorators:[{type:e.Host}]}]};var tt=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],tt.ctorParameters=function(){return[{type:F}]},tt.propDecorators={ngPlural:[{type:e.Input}]};var et=function(){function t(t,e,n,r){this.value=t;var o=!isNaN(Number(t));r.addCase(o?"="+t:t,new X(n,e))}return t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:tt,decorators:[{type:e.Host}]}]};var nt=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],o=n[1];e=null!=e&&o?""+e+o:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],nt.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},nt.propDecorators={ngStyle:[{type:e.Input}]};var rt=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();rt.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],rt.ctorParameters=function(){return[{type:e.ViewContainerRef}]},rt.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}],ngOutletContext:[{type:e.Input}]};var ot=[B,q,G,K,rt,nt,Z,Y,J,tt,et],it=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),st=new(function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),at=new it,ut=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(n){if(e.ɵisPromise(n))return st;if(e.ɵisObservable(n))return at;throw a(t,n)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();ut.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],ut.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var ct=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toLowerCase()},t}();ct.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],ct.ctorParameters=function(){return[]};var lt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.split(/\b/g).map(function(t){return u(t)}).join("")},t}();lt.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],lt.ctorParameters=function(){return[]};var pt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toUpperCase()},t}();pt.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],pt.ctorParameters=function(){return[]};var ht={};ht.Decimal=0,ht.Percent=1,ht.Currency=2,ht[ht.Decimal]="Decimal",ht[ht.Percent]="Percent",ht[ht.Currency]="Currency";var ft=function(){function t(){}return t.format=function(t,e,n,r){var o=void 0===r?{}:r,i=o.minimumIntegerDigits,s=o.minimumFractionDigits,a=o.maximumFractionDigits,u=o.currency,c=o.currencyAsSymbol,l=void 0!==c&&c,p={minimumIntegerDigits:i,minimumFractionDigits:s,maximumFractionDigits:a,style:ht[n].toLowerCase()};return n==ht.Currency&&(p.currency="string"==typeof u?u:void 0,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),dt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,yt={yMMMdjms:v(m([d("year",1),y("month",3),d("day",1),d("hour",1),d("minute",1),d("second",1)])),yMdjm:v(m([d("year",1),d("month",1),d("day",1),d("hour",1),d("minute",1)])),yMMMMEEEEd:v(m([d("year",1),y("month",4),y("weekday",4),d("day",1)])),yMMMMd:v(m([d("year",1),y("month",4),d("day",1)])),yMMMd:v(m([d("year",1),y("month",3),d("day",1)])),yMd:v(m([d("year",1),d("month",1),d("day",1)])),jms:v(m([d("hour",1),d("second",1),d("minute",1)])),jm:v(m([d("hour",1),d("minute",1)]))},mt={yyyy:v(d("year",4)),yy:v(d("year",2)),y:v(d("year",1)),MMMM:v(y("month",4)),MMM:v(y("month",3)),MM:v(d("month",2)),M:v(d("month",1)),LLLL:v(y("month",4)),L:v(y("month",1)),dd:v(d("day",2)),d:v(d("day",1)),HH:c(l(v(f(d("hour",2),!1)))),H:l(v(f(d("hour",1),!1))),hh:c(l(v(f(d("hour",2),!0)))),h:l(v(f(d("hour",1),!0))),jj:v(d("hour",2)),j:v(d("hour",1)),mm:c(v(d("minute",2))),m:v(d("minute",1)),ss:c(v(d("second",2))),s:v(d("second",1)),sss:v(d("second",3)),EEEE:v(y("weekday",4)),EEE:v(y("weekday",3)),EE:v(y("weekday",2)),E:v(y("weekday",1)),a:function(t){return function(e,n){return t(e,n).split(" ")[1]}}(v(f(d("hour",1),!0))),Z:h("short"),z:h("long"),ww:v({}),w:v({}),G:v(y("era",1)),GG:v(y("era",2)),GGG:v(y("era",3)),GGGG:v(y("era",4))},vt=new Map,gt=function(){function t(){}return t.format=function(t,e,n){return g(n,t,e)},t}(),_t=/^(\d+)?\.((\d+)(-(\d+))?)?$/,bt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return b(t,this._locale,e,ht.Decimal,n)},t}();bt.decorators=[{type:e.Pipe,args:[{name:"number"}]}],bt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var wt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return b(t,this._locale,e,ht.Percent,n)},t}();wt.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,o){return void 0===n&&(n="USD"),void 0===r&&(r=!1),b(t,this._locale,e,ht.Currency,o,n,r)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Et=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){void 0===n&&(n="mediumDate");var r;if(E(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),S(e))r=e;else if(C(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=e.split("-").map(function(t){return parseInt(t,10)}),i=o[0],s=o[1],u=o[2];r=new Date(i,s-1,u)}else r=new Date(e);if(!S(r)){var c=void 0;if("string"!=typeof e||!(c=e.match(Et)))throw a(t,e);r=x(c)}return gt.format(r,this._locale,t._ALIASES[n]||n)},t}();St._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},St.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var xt=/#/g,Tt=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||null===n)throw a(t,n);return n[o(e,Object.keys(n),this._localization)].replace(xt,e.toString())},t}();Tt.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],Tt.ctorParameters=function(){return[{type:F}]};var Pt=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw a(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t}();Pt.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Pt.ctorParameters=function(){return[]};var At=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();At.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],At.ctorParameters=function(){return[]};var Ot=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw a(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Ot.ctorParameters=function(){return[]};var Mt=[ut,pt,ct,At,Ot,bt,wt,lt,Ct,St,Tt,Pt],Rt=function(){function t(){}return t}();Rt.decorators=[{type:e.NgModule,args:[{declarations:[ot,Mt],exports:[ot,Mt],providers:[{provide:F,useClass:U}]}]}],Rt.ctorParameters=function(){return[]};var kt="browser",It="server",Nt="browserWorkerApp",Dt="browserWorkerUi",jt=new e.Version("4.1.3");t.NgLocaleLocalization=U,t.NgLocalization=F,t.CommonModule=Rt,t.NgClass=B,t.NgFor=$,t.NgForOf=G,t.NgForOfContext=z,t.NgIf=K,t.NgIfContext=Q,t.NgPlural=tt,t.NgPluralCase=et,t.NgStyle=nt,t.NgSwitch=Z,t.NgSwitchCase=Y,t.NgSwitchDefault=J,t.NgTemplateOutlet=rt,t.NgComponentOutlet=q,t.AsyncPipe=ut,t.DatePipe=St,t.I18nPluralPipe=Tt,t.I18nSelectPipe=Pt,t.JsonPipe=At,t.LowerCasePipe=ct,t.CurrencyPipe=Ct,t.DecimalPipe=bt,t.PercentPipe=wt,t.SlicePipe=Ot,t.UpperCasePipe=pt,t.TitleCasePipe=lt,t.ɵPLATFORM_BROWSER_ID=kt,t.ɵPLATFORM_SERVER_ID=It,t.ɵPLATFORM_WORKER_APP_ID=Nt,t.ɵPLATFORM_WORKER_UI_ID=Dt,t.isPlatformBrowser=P,t.isPlatformServer=A,t.isPlatformWorkerApp=O,t.isPlatformWorkerUi=M,t.VERSION=jt,t.PlatformLocation=k,t.LOCATION_INITIALIZED=I,t.LocationStrategy=N,t.APP_BASE_HREF=D,t.HashLocationStrategy=L,t.PathLocationStrategy=V,t.Location=j,t.ɵa=ot,t.ɵb=Mt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],7:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/core")):o((r.ng=r.ng||{},r.ng.compiler=r.ng.compiler||{}),r.ng.core)}(this,function(t,e){"use strict";function n(t,e,n){void 0===n&&(n=null);var r=[],o=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=o(t);e&&r.push(e)}),r}function r(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function o(t){return"ng-container"===r(t)[1]}function i(t){return"ng-content"===r(t)[1]}function s(t){return"ng-template"===r(t)[1]}function a(t){return null===t?null:r(t)[0]}function u(t,e){return t?":"+t+":"+e:e}function c(t){return _o[t.toLowerCase()]||bo}function l(t){return t.replace(Po,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function p(t,e){return f(t,":",e)}function h(t,e){return f(t,".",e)}function f(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function d(t,e,n){return Array.isArray(t)?e.visitArray(t,n):b(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function y(t){return null!==t&&void 0!==t}function m(t){return void 0===t?null:t}function v(t){var e=Error(t);return e[Mo]=!0,e}function g(t){return t[Mo]}function _(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function b(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===Ro}function w(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){var o=t.charCodeAt(n+1);o>=56320&&o<=57343&&(n++,r=(r-55296<<10)+o-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function C(t){return t.replace(/\W/g,"_")}function E(t){if(!t||!t.reference)return null;var n=t.reference;if(n instanceof fo)return n.name;if(n.__anonymousType)return n.__anonymousType;var r=e.ɵstringify(n);return r.indexOf("(")>=0?(r="anonymous_"+zo++,n.__anonymousType=r):r=C(r),r}function S(t){var n=t.reference;return n instanceof fo?n.filePath:e.ɵreflector.importUri(n)}function x(t,e){return"View_"+E({reference:t})+"_"+e}function T(t){return"RenderType_"+E({reference:t})}function P(t){return"HostView_"+E({reference:t})}function A(t){return"Wrapper_"+E({reference:t})}function O(t){return E({reference:t})+"NgFactory"}function M(t){return null!=t.value?C(t.value):E(t.identifier)}function R(t){return null!=t.identifier?t.identifier.reference:t.value}function k(t,n,r){var o=Co.parse(n.selector)[0].getMatchingElementTemplate();return Ko.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new $o({encapsulation:e.ViewEncapsulation.None,template:o,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:r,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function I(t){return t||[]}function N(t){return t.reduce(function(t,e){var n=Array.isArray(e)?N(e):e;return t.concat(n)},[])}function D(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function j(t,e,n){var r;return r=n.isInline?e.type.reference instanceof fo?e.type.reference.filePath+"."+e.type.reference.name+".html":E(t)+"/"+E(e.type)+".html":n.templateUrl,D(r)}function L(t,e){var n=t.moduleUrl.split(/\/\\/g);return D("css/"+e+n[n.length-1]+".ngstyle.js")}function V(t){return D(E(t.type)+"/module.ngfactory.js")}function F(t,e){return D(E(t)+"/"+E(e.type)+".ngfactory.js")}function U(t){return t>=Ai&&t<=Ii||t==is}function H(t){return qi<=t&&t<=zi}function B(t){return t>=Xi&&t<=rs||t>=Gi&&t<=Ki}function q(t){return t>=Xi&&t<=Yi||t>=Gi&&t<=$i||H(t)}function z(){return function(t){return t}}function G(t,n){if(e.isDevMode()&&null!=n){if(!Array.isArray(n))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r<n.length;r+=1)if("string"!=typeof n[r])throw new Error("Expected '"+t+"' to be an array of strings.")}}function W(t,n){if(!(null==n||Array.isArray(n)&&2==n.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=n){var r=n[0],o=n[1];as.forEach(function(t){if(t.test(r)||t.test(o))throw new Error("['"+r+"', '"+o+"'] contains unusable interpolation symbol.")})}}function $(t,e){return new fs(t,ls.Character,e,String.fromCharCode(e))}function K(t,e){return new fs(t,ls.Identifier,0,e)}function Q(t,e){return new fs(t,ls.Keyword,0,e)}function X(t,e){return new fs(t,ls.Operator,0,e)}function Z(t,e){return new fs(t,ls.String,0,e)}function Y(t,e){return new fs(t,ls.Number,e,"")}function J(t,e){return new fs(t,ls.Error,0,e)}function tt(t){return Xi<=t&&t<=rs||Gi<=t&&t<=Ki||t==Qi||t==Di}function et(t){if(0==t.length)return!1;var e=new ys(t);if(!tt(e.peek))return!1;for(e.advance();e.peek!==Pi;){if(!nt(e.peek))return!1;e.advance()}return!0}function nt(t){return B(t)||H(t)||t==Qi||t==Di}function rt(t){return t==Zi||t==Wi}function ot(t){return t==Vi||t==Li}function it(t){return t===ji||t===Ni||t===ss}function st(t){switch(t){case Ji:return Oi;case Yi:return Ri;case ts:return ki;case es:return Ai;case ns:return Mi;default:return t}}function at(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function ut(t){var e=_(t.start)+"([\\s\\S]*?)"+_(t.end);return new RegExp(e,"g")}function ct(t,e){var n=S(e),r=null!=n?"in "+t+" "+E(e)+" in "+n:"in "+t+" "+E(e),o=new Cs("",r);return new Es(new ws(o,-1,-1,-1),new ws(o,-1,-1,-1))}function lt(t,e,n){void 0===n&&(n=null);var r=[],o=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=o(t);e&&r.push(e)}),r}function pt(t,e,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=cs),new Vs(new Cs(t,e),n,r,o).tokenize()}function ht(t){return'Unexpected character "'+(t===Pi?"EOF":String.fromCharCode(t))+'"'}function ft(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function dt(t){return!U(t)||t===Pi}function yt(t){return U(t)||t===Bi||t===Fi||t===ji||t===Ni||t===Hi}function mt(t){return(t<Xi||rs<t)&&(t<Gi||Ki<t)&&(t<qi||t>zi)}function vt(t){return t==Ui||t==Pi||!q(t)}function gt(t){return t==Ui||t==Pi||!B(t)}function _t(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==os&&!r}function bt(t){return t===Hi||B(t)}function wt(t,e){return Ct(t)==Ct(e)}function Ct(t){return t>=Xi&&t<=rs?t-Xi+Gi:t}function Et(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var o=t[r];n&&n.type==ks.TEXT&&o.type==ks.TEXT?(n.parts[0]+=o.parts[0],n.sourceSpan.end=o.sourceSpan.end):(n=o,e.push(n))}return e}function St(t,e){return t.length>0&&t[t.length-1]===e}function xt(t){var e=new ea(ta,t);return function(t,n,r,o){return e.toI18nMessage(t,n,r,o)}}function Tt(t){return t.split(na)[2]}function Pt(t,e,n,r){return new la(n,r).extract(t,e)}function At(t,e,n,r,o){return new la(r,o).merge(t,e,n)}function Ot(t){return!!(t instanceof Rs&&t.value&&t.value.startsWith("i18n"))}function Mt(t){return!!(t instanceof Rs&&t.value&&"/i18n"===t.value)}function Rt(t){return t.attrs.find(function(t){return t.name===oa})||null}function kt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(aa),n=t.indexOf(sa),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],o=r[0],i=r[1],s=n>-1?[o.slice(0,n),o.slice(n+1)]:["",o];return{meaning:s[0],description:s[1],id:i}}function It(t){return pa}function Nt(t){return t.id||Lt(jt(t.nodes).join("")+"["+t.meaning+"]")}function Dt(t){if(t.id)return t.id;var e=new ya;return Ut(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}function jt(t){return t.map(function(t){return t.visit(da,null)})}function Lt(t){var e=w(t),n=Qt(e,ma.Big),r=8*e.length,o=new Array(80),i=[1732584193,4023233417,2562383102,271733878,3285377520],s=i[0],a=i[1],u=i[2],c=i[3],l=i[4];n[r>>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(var p=0;p<n.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],y=h[2],m=h[3],v=h[4],g=0;g<80;g++){o[g]=g<16?n[p+g]:$t(o[g-3]^o[g-8]^o[g-14]^o[g-16],1);var _=Vt(g,a,u,c),b=_[0],C=_[1],E=[$t(s,5),b,l,C,o[g]].reduce(qt);l=(S=[c,u,$t(a,30),s,E])[0],c=S[1],u=S[2],a=S[3],s=S[4]}s=(x=[qt(s,f),qt(a,d),qt(u,y),qt(c,m),qt(l,v)])[0],a=x[1],u=x[2],c=x[3],l=x[4]}return te(Yt([s,a,u,c,l]));var S,x}function Vt(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function Ft(t){var e=w(t),n=[Ht(e,0),Ht(e,102072)],r=n[0],o=n[1];return 0!=r||0!=o&&1!=o||(r^=319790063,o^=-1801410264),[r,o]}function Ut(t,e){var n=Ft(t),r=n[0],o=n[1];if(e){var i=Ft(e),s=i[0],a=i[1];r=(u=Gt(Kt([r,o],1),[s,a]))[0],o=u[1]}return ee(Yt([2147483647&r,o]));var u}function Ht(t,e){var n,r=[2654435769,2654435769],o=r[0],i=r[1],s=t.length;for(n=0;n+12<=s;n+=12)o=(a=Bt([o=qt(o,Zt(t,n,ma.Little)),i=qt(i,Zt(t,n+4,ma.Little)),e=qt(e,Zt(t,n+8,ma.Little))]))[0],i=a[1],e=a[2];return o=qt(o,Zt(t,n,ma.Little)),i=qt(i,Zt(t,n+4,ma.Little)),e=qt(e,s),e=qt(e,Zt(t,n+8,ma.Little)<<8),Bt([o,i,e])[2];var a}function Bt(t){var e=t[0],n=t[1],r=t[2];return e=Wt(e,n),e=Wt(e,r),e^=r>>>13,n=Wt(n,r),n=Wt(n,e),n^=e<<8,r=Wt(r,e),r=Wt(r,n),r^=n>>>13,e=Wt(e,n),e=Wt(e,r),e^=r>>>12,n=Wt(n,r),n=Wt(n,e),n^=e<<16,r=Wt(r,e),r=Wt(r,n),r^=n>>>5,e=Wt(e,n),e=Wt(e,r),e^=r>>>3,n=Wt(n,r),n=Wt(n,e),n^=e<<10,r=Wt(r,e),r=Wt(r,n),r^=n>>>15,[e,n,r]}function qt(t,e){return zt(t,e)[1]}function zt(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Gt(t,e){var n=t[0],r=t[1],o=e[0],i=zt(r,e[1]),s=i[0],a=i[1];return[qt(qt(n,o),s),a]}function Wt(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function $t(t,e){return t<<e|t>>>32-e}function Kt(t,e){var n=t[0],r=t[1];return[n<<e|r>>>32-e,r<<e|n>>>32-e]}function Qt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Zt(t,4*r,e);return n}function Xt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Zt(t,e,n){var r=0;if(n===ma.Big)for(o=0;o<4;o++)r+=Xt(t,e+o)<<24-8*o;else for(var o=0;o<4;o++)r+=Xt(t,e+o)<<8*o;return r}function Yt(t){return t.reduce(function(t,e){return t+Jt(e)},"")}function Jt(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function te(t){for(var e="",n=0;n<t.length;n++){var r=Xt(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function ee(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=ne(e,re(Xt(t,r),n)),n=re(256,n);return e.split("").reverse().join("")}function ne(t,e){for(var n="",r=Math.max(t.length,e.length),o=0,i=0;o<r||i;o++){var s=i+ +(t[o]||0)+ +(e[o]||0);s>=10?(i=1,n+=s-10):(i=0,n+=s)}return n}function re(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=ne(n,r)),r=ne(r,r);return n}function oe(t){return t.map(function(t){return t.visit(_a)}).join("")}function ie(t){return xa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function se(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function ae(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function ue(t){return Dt(t)}function ce(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function le(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}function pe(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Na;case"xtb":return new La;case"xliff2":case"xlf2":return new Ma;case"xliff":case"xlf":default:return new Ta}}function he(t){var n=t.name;return e.ɵreflector.resolveIdentifier(n,t.moduleUrl,null,t.runtime)}function fe(t){return{reference:he(t)}}function de(t){return{identifier:t}}function ye(t){return de(fe(t))}function me(t){var e=new Qa;return new $a(lt(e,t),e.isExpanded,e.errors)}function ve(t,e){var n=t.cases.map(function(t){-1!=Wa.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Ka(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Wa.join(", ")));var n=me(t.expression);return e.push.apply(e,n.errors),new Ms("ng-template",[new Os("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Os("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Ms("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ge(t,e){var n=t.cases.map(function(t){var n=me(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Ms("ng-template",[new Os("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Ms("ng-template",[new Os("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Os("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Ms("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function _e(t,e){var n=e.useExisting,r=e.useValue,o=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:o,multi:t.multi}}function be(t,e){var n=e.eager,r=e.providers;return new co(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function we(t,e,n){var r=new Map;return t.forEach(function(t){Ce([{token:{identifier:t.type},useClass:t.type}],t.isComponent?lo.Component:lo.Directive,!0,e,n,r)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){Ce(t.providers,lo.PublicService,!1,e,n,r),Ce(t.viewProviders,lo.PrivateService,!1,e,n,r)}),r}function Ce(t,e,n,r,o,i){t.forEach(function(t){var s=i.get(R(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Xa("Mixing multi and non multi provider is not possible for token "+M(s.token),r)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new co(t.token,!!t.multi,n||u,[t],e,a,r),i.set(R(t.token),s)}})}function Ee(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return xe(n,{meta:t,queryId:e++})}),n}function Se(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return xe(r,{meta:t,queryId:n++})})}),r}function xe(t,e){e.meta.selectors.forEach(function(n){var r=t.get(R(n));r||(r=[],t.set(R(n),r)),r.push(e)})}function Te(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(ou);return null===e||"package"==e[1]||"asset"==e[1]}function Pe(t,e,n){var r=[],o=n.replace(ru,"").replace(nu,function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n[1]||n[2];return Te(i)?(r.push(t.resolve(e,i)),""):n[0]});return new eu(o,r)}function Ae(t){return"@"==t[0]}function Oe(t,n,r,o){var i=[];return Co.parse(n).forEach(function(e){var n=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=n.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,r,o)}))}),0===i.length?[e.SecurityContext.NONE]:Array.from(new Set(i)).sort()}function Me(t){var e=null,n=null,r=null,o=!1,s=null;t.attrs.forEach(function(t){var i=t.name.toLowerCase();i==cu?e=t.value:i==hu?n=t.value:i==pu?r=t.value:t.name==mu?o=!0:t.name==vu&&t.value.length>0&&(s=t.value)}),e=Re(e);var a=t.name.toLowerCase(),u=gu.OTHER;return i(a)?u=gu.NG_CONTENT:a==du?u=gu.STYLE:a==yu?u=gu.SCRIPT:a==lu&&r==fu&&(u=gu.STYLESHEET),new _u(u,e,n,o,s)}function Re(t){return null===t||0===t.length?"*":t}function ke(t){return function(e){return-1===t.indexOf(e.msg)||(xu[e.msg]=(xu[e.msg]||0)+1,xu[e.msg]<=1)}}function Ie(t){return t.trim().split(/\s+/g)}function Ne(t,e){var n=new Co,o=r(t)[1];n.setElement(o);for(var i=0;i<e.length;i++){var s=e[i][0],a=r(s)[1],u=e[i][1];n.addAttribute(a,u),s.toLowerCase()==Cu&&Ie(u).forEach(function(t){return n.addClassName(t)})}return n}function De(t){return t instanceof Ts&&0==t.value.trim().length}function je(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function Le(t){return t instanceof Ei&&(t=t.ast),t instanceof oi}function Ve(t,e,n){if(s(t.name))return!0;var o=r(t.name)[1];return!(o.toLowerCase()!==wu||!e||o.toLowerCase()!==wu)&&(n(Su,t.sourceSpan),!0)}function Fe(){return new Vu}function Ue(){return new Vu(".")}function He(t){var e=qe(t);return e&&e[Uu.Scheme]||""}function Be(t,e,n,r,o,i,s){var a=[];return null!=t&&a.push(t+":"),null!=n&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(n),null!=r&&a.push(":"+r)),null!=o&&a.push(o),null!=i&&a.push("?"+i),null!=s&&a.push("#"+s),a.join("")}function qe(t){return t.match(Fu)}function ze(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),o=[],i=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":o.length>0?o.pop():i++;break;default:o.push(a)}}if(""==e){for(;i-- >0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+n}function Ge(t){var e=t[Uu.Path];return e=null==e?"":ze(e),t[Uu.Path]=e,Be(t[Uu.Scheme],t[Uu.UserInfo],t[Uu.Domain],t[Uu.Port],e,t[Uu.QueryData],t[Uu.Fragment])}function We(t,e){var n=qe(encodeURI(e)),r=qe(t);if(null!=n[Uu.Scheme])return Ge(n);n[Uu.Scheme]=r[Uu.Scheme];for(var o=Uu.Scheme;o<=Uu.Port;o++)null==n[o]&&(n[o]=r[o]);if("/"==n[Uu.Path][0])return Ge(n);var i=r[Uu.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+n[Uu.Path],n[Uu.Path]=i,Ge(n)}function $e(t){return t instanceof e.Directive}function Ke(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function Qe(t){var e=Ye(t);return e[0]+".ngfactory"+e[1]}function Xe(t){return t.replace(Wu,".")}function Ze(t){return Wu.test(t)}function Ye(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function Je(t){return t.replace(Gu,"")+".ngsummary.json"}function tn(t,n){return e.ɵreflector.hasLifecycleHook(n,en(t))}function en(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function nn(t){return t instanceof e.NgModule}function rn(t){return t instanceof e.Pipe}function on(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var o=e.resolveForwardRef(t[r]);Array.isArray(o)?on(o,n):n.push(o)}return n}function sn(t){return t?Array.from(new Set(t)):[]}function an(t){return sn(on(t))}function un(t){return t instanceof fo||t instanceof e.Type}function cn(t,e,n){if(e instanceof fo)return t.resourceUri(e);var r=n.moduleId;if("string"==typeof r)return He(r)?r:"package:"+r+To;if(null!==r&&void 0!==r)throw v('moduleId should be a string in "'+pn(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return t.importUri(e)}function ln(t,e){d(t,new Yu,e)}function pn(t){return t instanceof fo?t.name+" in "+t.filePath:e.ɵstringify(t)}function hn(t){var n=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return n[e.ɵERROR_COMPONENT_TYPE]=t,n}function fn(t){var e=new Jc;return e.visitAllStatements(t,null),e.varNames}function dn(t,e){if(!e)return t;var n=new tl(e);return t.visitStatement(n,null)}function yn(t,e){if(!e)return t;var n=new tl(e);return t.visitExpression(n,null)}function mn(t,e,n){return new hc(t,e,n)}function vn(t,e,n){return void 0===e&&(e=null),new wc(t,null,e,n)}function gn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),null!=t?_n(vn(t,e,null),n):null}function _n(t,e){return void 0===e&&(e=null),null!=t?new rc(t,e):null}function bn(t,e,n){return new Mc(t,e,n)}function wn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),new kc(t.map(function(t){return new Rc(t[0],t[1],n)}),e,null)}function Cn(t,e){return new Ec(t,e)}function En(t,e,n,r){return new Tc(t,e,n,r)}function Sn(t,e,n){return new bc(t,e,n)}function xn(t){var e=t.parentArgs||[],n=t.parent?[Dc.callFn(e).toStmt()]:[],r=Tn(Array.isArray(t.builders)?t.builders:[t.builders]),o=new Wc(null,t.ctorParams||[],n.concat(r.ctorStmts));return new Kc(t.name,t.parent||null,r.fields,r.getters,o,r.methods,t.modifiers||[],t.sourceSpan)}function Tn(t){return{fields:[].concat.apply([],t.map(function(t){return t.fields||[]})),methods:[].concat.apply([],t.map(function(t){return t.methods||[]})),getters:[].concat.apply([],t.map(function(t){return t.getters||[]})),ctorStmts:[].concat.apply([],t.map(function(t){return t.ctorStmts||[]}))}}function Pn(t,e){return void 0===e&&(e=null),d(t,new el,e)}function An(t){return null!=t.value?Sn(t.value):vn(t.identifier)}function On(t){var e="";t=w(t);for(var n=0;n<t.length;){var r=t.charCodeAt(n++),o=t.charCodeAt(n++),i=t.charCodeAt(n++);e+=Rn(r>>2),e+=Rn((3&r)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":Rn((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":Rn(63&i)}return e}function Mn(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;(t>>=5)>0&&(n|=32),e+=Rn(n)}while(t>0);return e}function Rn(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return cl[t]}function kn(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(ll,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]});return n||!pl.test(r)?"'"+r+"'":r}function In(t){for(var e="",n=0;n<t;n++)e+=hl;return e}function Nn(t){var e=new bl(gl,{fileNameToModuleName:function(t,e){return t},getImportAs:function(t){return null},getTypeArity:function(t){return null}}),n=ml.createRoot([]);return(Array.isArray(t)?t:[t]).forEach(function(t){if(t instanceof Fc)t.visitStatement(e,n);else if(t instanceof lc)t.visitExpression(e,n);else{if(!(t instanceof tc))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function Dn(t,e){for(var n=0,r=e;n<r.length;n++){var o=r[n];wl[o.toLowerCase()]=t}}function jn(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function Ln(t){return t.replace($l,"")}function Vn(t){var e=t.match(Kl);return e?e[0]:""}function Fn(t,e){var n=Un(t),r=0;return n.escapedString.replace(Ql,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+Jl)&&(s=n.blocks[r++],a=a.substring(Jl.length+1),u="{");var c=e(new tp(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Un(t){for(var e=t.split(Xl),n=[],r=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==Yl&&o--,o>0?i.push(a):(i.length>0&&(r.push(i.join("")),n.push(Jl),i=[]),n.push(a)),a==Zl&&o++}return i.length>0&&(r.push(i.join("")),n.push(Jl)),new ep(n.join(""),r)}function Hn(t){var e="styles";return t&&(e+="_"+E(t.type)),e}function Bn(t,e,n,r){t||(t=new hp);var o=qn({createLiteralArrayConverter:function(t){return function(t){return bn(t)}},createLiteralMapConverter:function(t){return function(e){return wn(t.map(function(t,n){return[t,e[n]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),i=new pp(t,e,r),s=[];Yn(o.visit(i,cp.Statement),s),Kn(i.temporaryCount,r,s);var a=s.length-1,u=null;if(a>=0){var c=er(s[a]);c&&(u=tr(r),s[a]=u.set(c.cast(sc).notIdentical(Sn(!1))).toDeclStmt(null,[Vc.Final]))}return new ap(s,u)}function qn(t,e){return Gn(t,e)}function zn(t,e,n,r){t||(t=new hp);var o=Jn(r),i=[],s=new pp(t,e,r),a=n.visit(s,cp.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push($n(r,u));return i.push(o.set(a).toDeclStmt(null,[Vc.Final])),new up(i,o)}function Gn(t,e){var n=new lp(t);return e.visit(n)}function Wn(t,e){return"tmp_"+t+"_"+e}function $n(t,e){return new Uc(Wn(t,e),jc)}function Kn(t,e,n){for(var r=t-1;r>=0;r--)n.unshift($n(e,r))}function Qn(t,e){if(t!==cp.Statement)throw new Error("Expected a statement, but saw "+e)}function Xn(t,e){if(t!==cp.Expression)throw new Error("Expected an expression, but saw "+e)}function Zn(t,e){return t===cp.Statement?e.toStmt():e}function Yn(t,e){Array.isArray(t)?t.forEach(function(t){return Yn(t,e)}):e.push(t)}function Jn(t){return mn("currVal_"+t)}function tr(t){return mn("pd_"+t)}function er(t){return t instanceof Bc?t.expr:t instanceof qc?t.value:null}function nr(t){return t.multiProvider?rr(t.providers):or(t.providerType,t.providers[0])}function rr(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return r.push(new xc(i,sc)),n.push(sr(e)),mn(i)})}var n=[],r=[],o=t.map(function(t,n){var r;if(t.useClass){o=e(n,t.deps||t.useClass.diDeps);r=vn(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(n,t.deps||t.useFactory.diDeps);r=vn(t.useFactory).callFn(o)}else r=t.useExisting?(o=e(n,[{token:t.useExisting}]))[0]:Pn(t.useValue);return r});return{providerExpr:En(r,[new qc(bn(o))],ac),flags:1024,depsExpr:bn(n)}}function or(t,e){var n,r,o;return t===lo.Directive||t===lo.Component?(n=vn(e.useClass),r=16384,o=e.deps||e.useClass.diDeps):e.useClass?(n=vn(e.useClass),r=512,o=e.deps||e.useClass.diDeps):e.useFactory?(n=vn(e.useFactory),r=1024,o=e.deps||e.useFactory.diDeps):e.useExisting?(n=jc,r=2048,o=[{token:e.useExisting}]):(n=Pn(e.useValue),r=256,o=[]),{providerExpr:n,flags:r,depsExpr:bn(o.map(function(t){return sr(t)}))}}function ir(t){return t.identifier?vn(t.identifier):Sn(t.value)}function sr(t){var e=t.isValue?Pn(t.value):ir(t.token),n=0;return t.isSkipSelf&&(n|=1),t.isOptional&&(n|=2),t.isValue&&(n|=8),0===n?e:bn([Sn(n),e])}function ar(t){var e=t[t.length-1];return e instanceof so?e.hasViewContainer:e instanceof io?o(e.name)&&e.children.length?ar(e.children):e.hasViewContainer:e instanceof po}function ur(t){var n=0;switch(t){case e.ɵLifecycleHooks.AfterContentChecked:n=2097152;break;case e.ɵLifecycleHooks.AfterContentInit:n=1048576;break;case e.ɵLifecycleHooks.AfterViewChecked:n=8388608;break;case e.ɵLifecycleHooks.AfterViewInit:n=4194304;break;case e.ɵLifecycleHooks.DoCheck:n=262144;break;case e.ɵLifecycleHooks.OnChanges:n=524288;break;case e.ɵLifecycleHooks.OnDestroy:n=131072;break;case e.ɵLifecycleHooks.OnInit:n=65536}return n}function cr(t,e){switch(t.type){case ho.Attribute:return bn([Sn(1),Sn(t.name),Sn(t.securityContext)]);case ho.Property:return bn([Sn(8),Sn(t.name),Sn(t.securityContext)]);case ho.Animation:return bn([Sn(8|(e&&e.directive.isComponent?32:16)),Sn("@"+t.name),Sn(t.securityContext)]);case ho.Class:return bn([Sn(2),Sn(t.name),jc]);case ho.Style:return bn([Sn(4),Sn(t.name),Sn(t.unit)])}}function lr(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],o=e[n];e[n]=null!=o?pr(n,o,r):r})}),bn(Object.keys(e).sort().map(function(t){return bn([Sn(t),Sn(e[t])])}))}function pr(t,e,n){return t==dp||t==yp?e+" "+n:n}function hr(t,e){return e.length>10?bp.callFn([_p,Sn(t),Sn(1),bn(e)]):bp.callFn([_p,Sn(t),Sn(0)].concat(e))}function fr(t,e,n){return vn(fe(Ga.unwrapValue)).callFn([_p,Sn(t),Sn(e),n])}function dr(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n=new Set,r=new Set,o=void 0;t instanceof io?(dr(t.children,e),t.children.forEach(function(t){var o=e.get(t);o.staticQueryIds.forEach(function(t){return n.add(t)}),o.dynamicQueryIds.forEach(function(t){return r.add(t)})}),o=t.queryMatches):t instanceof so&&(dr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return r.add(t)})}),o=t.queryMatches),o&&o.forEach(function(t){return n.add(t.queryId)}),r.forEach(function(t){return n.delete(t)}),e.set(t,{staticQueryIds:n,dynamicQueryIds:r})}),e}function yr(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e.delete(t)}),{staticQueryIds:e,dynamicQueryIds:n}}function mr(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=e.directive.entryComponents.map(function(t){return vn({reference:t.componentFactory})}),r=ye(Ga.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:bn(n)},{token:r,isSkipSelf:!0,isOptional:!0},{token:ye(Ga.NgModuleRef)}],lifecycleHooks:[],reference:he(Ga.CodegenComponentFactoryResolver)};return new co(r,!1,!0,[{token:r,multi:!1,useClass:o}],lo.PrivateService,[],e.sourceSpan)}return null}function vr(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function gr(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=536870912:r|=268435456,r}function _r(t,e,n,r){var o=new Tp(e,t);n.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var i=0;i<o.symbols.length;i++){var s=o.symbols[i];if(t.isLibraryFile(s.filePath)){var a=t.resolveSummary(s);if(!a){var u=e.resolveSymbol(s);u&&(a={symbol:u.symbol,metadata:u.metadata})}a&&o.addOrMergeSummary(a)}}return r.forEach(function(e){if(o.addOrMergeSummary({symbol:e.type.reference,metadata:null,type:e}),e.summaryKind===Go.NgModule){var n=e;n.exportedDirectives.concat(n.exportedPipes).forEach(function(e){var n=e.reference;if(t.isLibraryFile(n.filePath)){var r=t.resolveSummary(n);r&&o.addOrMergeSummary(r)}})}}),o.serialize()}function br(t,e){return new Pp(t).deserialize(e)}function wr(t,e,n){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(Cr(e.moduleUrl,e.isShimmed,n),e.name)}),e.statements}function Cr(t,e,n){return t+(e?".shim":"")+".ngstyle"+n}function Er(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function Sr(t,e,n){var r=Ar(t,e,n);return Tr(t,r.ngModules,r.symbolsMissingModule,n)}function xr(t,e,n){var r=Sr(t,e,n);if(r.symbolsMissingModule&&r.symbolsMissingModule.length)throw v(r.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."}).join("\n"));return r}function Tr(t,e,n,r){var o=new Map;e.forEach(function(t){return o.set(t.type.reference,t)});var i=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),r.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var n=e.reference.filePath;l.add(n),a.set(n,(a.get(n)||[]).concat(e.reference)),i.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var n=e.reference.filePath;l.add(n),u.set(n,(u.get(n)||[]).concat(e.reference)),i.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],n=u.get(t)||[],r=s.get(t)||[],o=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:n,ngModules:r,injectables:o})}),{ngModuleByPipeOrDirective:i,files:p,ngModules:e,symbolsMissingModule:n}}function Pr(t,e,n){var r=[];return e.filter(function(t){return n.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var n=t.resolveSymbol(e),o=n.metadata;o&&"error"!=o.__symbolic&&r.push(n.symbol)})}),r}function Ar(t,e,n){var r=new Map,o=[],i=new Set,s=function(t){if(r.has(t)||!e.isSourceFile(t.filePath))return!1;var o=n.getNgModuleMetadata(t,!1);return o&&(r.set(o.type.reference,o),o.declaredDirectives.forEach(function(t){return i.add(t.reference)}),o.declaredPipes.forEach(function(t){return i.add(t.reference)}),o.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!o};t.forEach(function(t){s(t)||!n.isDirective(t)&&!n.isPipe(t)||o.push(t)});var a=o.filter(function(t){return!i.has(t)});return{ngModules:Array.from(r.values()),symbolsMissingModule:a}}function Or(t){return"object"==typeof t&&t.name&&t.filePath}function Mr(t){return t&&"ignore"==t.__symbolic}function Rr(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":return(t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F")+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function kr(t){return"Error encountered resolving symbol values statically. "+Rr(t)}function Ir(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var o=e(t[r],r);Mr(o)||(Rp.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:o}):n[r]=o)}),n}function Nr(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Dr(t,e,n,r){var o=new Error(t);return o.fileName=e,o.line=n,o.column=r,o}function jr(t){return t.startsWith("___")?t.substr(1):t}function Lr(t,n){var r=n.translations||"",o=Ue(),i=new yo,s=new Vp(t,i),a=new Lp(t,i,s),u=new Ip(s,a);Op.install(u);var c=new e.ɵConsole,l=new qa(new Ua,r,n.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new Jo({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:!1!==n.enableLegacyTemplate}),h=new Hu({get:function(e){return t.loadResource(e)}},o,l,p),f=new gs(new hs),d=new Al,y=new Ou(p,f,d,l,c,[]),m=new Zu(p,new $u(u),new zu(u),new Ku(u),s,d,h,c,i,u),v={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,n){return t.fileNameToModuleName(e,n)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new vp(p,d);return{compiler:new Ap(p,t,m,y,new ip(o),g,new ol,new _l(v),s,n.locale||null,n.i18nFormat||null,n.genFilePreamble||null,a),reflector:u}}function Vr(t,e){var n=t.concat([new qc(bn(e.map(function(t){return mn(t)})))]),r=new Fp(null,null,null,new Map),o=(new Hp).visitAllStatements(n,r);return null!=o?o.value:null}function Fr(t,e,n,r,o){for(var i=r.createChildWihtLocalVars(),s=0;s<t.length;s++)i.vars.set(t[s],e[s]);var a=o.visitAllStatements(n,i);return a?a.value:null}function Ur(t,e,n){var r={};t.getters.forEach(function(o){r[o.name]={configurable:!1,get:function(){var r=new Fp(e,this,t.name,e.vars);return Fr([],[],o.body,r,n)}}}),t.methods.forEach(function(o){var i=o.params.map(function(t){return t.name});r[o.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new Fp(e,this,t.name,e.vars);return Fr(i,r,o.body,a,n)}}});var o=t.constructorMethod.params.map(function(t){return t.name}),i=function(){for(var r=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new Fp(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Fr(o,i,t.constructorMethod.body,a,n)},s=t.parent?t.parent.visitExpression(n,e):Object;return i.prototype=Object.create(s.prototype,r),i}function Hr(t,e,n,r){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Fr(t,o,e,n,r)}}function Br(t,n,r){var o=n.toSource()+"\n//# sourceURL="+t,i=[],s=[];for(var a in r)i.push(a),s.push(r[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(i.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;o+="\n"+n.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(i.concat(o))))).apply(void 0,s)}function qr(t,e,n){var r=new zp,o=ml.createRoot(n),i=new qc(bn(n.map(function(t){return mn(t)})));return r.visitAllStatements(e.concat([i]),o),Br(t,o,r.getArgs())}function zr(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function Gr(t,e,n,r,o){return new qa(t,e,n,r.missingTranslation,o)}function Wr(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function $r(t){return{useJit:Kr(t.map(function(t){return t.useJit})),defaultEncapsulation:Kr(t.map(function(t){return t.defaultEncapsulation})),providers:Qr(t.map(function(t){return t.providers})),missingTranslation:Kr(t.map(function(t){return t.missingTranslation}))}}function Kr(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}function Qr(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Xr=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Zr=new e.Version("4.1.3"),Yr=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Jr=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),to=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),eo=function(){function t(t,e,n,r,o,i){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===ho.Animation},enumerable:!0,configurable:!0}),t}(),no=function(){function t(t,e,n,r,o){this.name=t,this.target=e,this.phase=n,this.handler=r,this.sourceSpan=o}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),ro=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),oo=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),io=function(){function t(t,e,n,r,o,i,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=o,this.directives=i,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),so=function(){function t(t,e,n,r,o,i,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=o,this.providers=i,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),ao=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),uo=function(){function t(t,e,n,r,o,i){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),co=function(){function t(t,e,n,r,o,i,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=o,this.lifecycleHooks=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}(),lo={};lo.PublicService=0,lo.PrivateService=1,lo.Component=2,lo.Directive=3,lo.Builtin=4,lo[lo.PublicService]="PublicService",lo[lo.PrivateService]="PrivateService",lo[lo.Component]="Component",lo[lo.Directive]="Directive",lo[lo.Builtin]="Builtin";var po=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),ho={};ho.Property=0,ho.Attribute=1,ho.Class=2,ho.Style=3,ho.Animation=4,ho[ho.Property]="Property",ho[ho.Attribute]="Attribute",ho[ho.Class]="Class",ho[ho.Style]="Style",ho[ho.Animation]="Animation";var fo=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),yo=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){var r='"'+t+'".'+e+((n=n||[]).length?"."+n.join("."):""),o=this.cache.get(r);return o||(o=new fo(t,e,n),this.cache.set(r,o)),o},t}(),mo={};mo.RAW_TEXT=0,mo.ESCAPABLE_RAW_TEXT=1,mo.PARSABLE_DATA=2,mo[mo.RAW_TEXT]="RAW_TEXT",mo[mo.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",mo[mo.PARSABLE_DATA]="PARSABLE_DATA";var vo={Aacute:"Ã",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à ",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Ã…",aring:"Ã¥",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Î’",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"Æ’",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"â„",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Ã",iacute:"Ã",Icirc:"ÃŽ",icirc:"î",iexcl:"¡",Igrave:"ÃŒ",igrave:"ì",image:"â„‘",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ã",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"â†",lArr:"â‡",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"â—Š",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Îœ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Î",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Å’",oelig:"Å“",Ograve:"Ã’",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Î ",pi:"Ï€",piv:"Ï–",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"âˆ",prop:"âˆ",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"â€",real:"â„œ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"Ï",rlm:"â€",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Å ",scaron:"Å¡",sdot:"â‹…",sect:"§",shy:"Â",Sigma:"Σ",sigma:"σ",sigmaf:"Ï‚",sim:"∼",spades:"â™ ",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"Ï„",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"Ï‘",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"Ëœ",times:"×",trade:"â„¢",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"Ï’",Upsilon:"Î¥",upsilon:"Ï…",Uuml:"Ãœ",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ã",yacute:"ý",yen:"Â¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"â€",zwnj:"‌"},go=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?mo.PARSABLE_DATA:i,a=e.closedByParent,u=void 0!==a&&a,c=e.isVoid,l=void 0!==c&&c,p=e.ignoreFirstLf,h=void 0!==p&&p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),_o={base:new go({isVoid:!0}),meta:new go({isVoid:!0}),area:new go({isVoid:!0}),embed:new go({isVoid:!0}),link:new go({isVoid:!0}),img:new go({isVoid:!0}),input:new go({isVoid:!0}),param:new go({isVoid:!0}),hr:new go({isVoid:!0}),br:new go({isVoid:!0}),source:new go({isVoid:!0}),track:new go({isVoid:!0}),wbr:new go({isVoid:!0}),p:new go({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new go({closedByChildren:["tbody","tfoot"]}),tbody:new go({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new go({closedByChildren:["tbody"],closedByParent:!0}),tr:new go({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new go({closedByChildren:["td","th"],closedByParent:!0}),th:new go({closedByChildren:["td","th"],closedByParent:!0}),col:new go({requiredParents:["colgroup"],isVoid:!0}),svg:new go({implicitNamespacePrefix:"svg"}),math:new go({implicitNamespacePrefix:"math"}),li:new go({closedByChildren:["li"],closedByParent:!0}),dt:new go({closedByChildren:["dt","dd"]}),dd:new go({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new go({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new go({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new go({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new go({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new go({closedByChildren:["optgroup"],closedByParent:!0}),option:new go({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new go({ignoreFirstLf:!0}),listing:new go({ignoreFirstLf:!0}),style:new go({contentType:mo.RAW_TEXT}),script:new go({contentType:mo.RAW_TEXT}),title:new go({contentType:mo.ESCAPABLE_RAW_TEXT}),textarea:new go({contentType:mo.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},bo=new go,wo=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Co=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],o=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},i=new t,s=i,a=!1;for(wo.lastIndex=0;n=wo.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,i.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=i),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");o(r,i),i=s=new t}}return o(r,i),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2)n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"");return c(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e],r=this.attrs[e+1];t+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),Eo=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new So(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,o=t.element,i=t.classNames,s=t.attrs,a=new xo(t,e,n);if(o&&((u=0===s.length&&0===i.length)?this._addTerminal(r._elementMap,o,a):r=this._addPartial(r._elementPartialMap,o)),i)for(l=0;l<i.length;l++){var u=0===s.length&&l===i.length-1,c=i[l];u?this._addTerminal(r._classMap,c,a):r=this._addPartial(r._classPartialMap,c)}if(s)for(var l=0;l<s.length;l+=2){var u=l===s.length-2,p=s[l],h=s[l+1];if(u){var f=r._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var y=r._attrValuePartialMap,m=y.get(p);m||(m=new Map,y.set(p,m)),r=this._addPartial(m,h)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||(r=[],t.set(e,r)),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,o=t.classNames,i=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,o)for(s=0;s<o.length;s++){var a=o[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(i)for(s=0;s<i.length;s+=2){var u=i[s],c=i[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var o=t.get(e)||[],i=t.get("*");if(i&&(o=o.concat(i)),0===o.length)return!1;for(var s=!1,a=0;a<o.length;a++)s=o[a].finalize(n,r)||s;return s},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var o=t.get(e);return!!o&&o.match(n,r)},t}(),So=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),xo=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!Eo.createNotMatcher(this.notSelectors).match(t,null)),!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),To="",Po=/-+([a-z0-9])/g,Ao=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return d(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(o){r[o]=d(t[o],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),Oo=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),Mo="ngSyntaxError",Ro=Object.getPrototypeOf({}),ko=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,Io=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),No=function(){function t(){}return t}(),Do=function(t){function e(e,n){var r=t.call(this)||this;return r.stateNameExpr=e,r.styles=n,r}return Xr(e,t),e}(No),jo=function(t){function e(e,n){var r=t.call(this)||this;return r.stateChangeExpr=e,r.steps=n,r}return Xr(e,t),e}(No),Lo=function(){function t(){}return t}(),Vo=function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.steps=e,n}return Xr(e,t),e}(Lo),Fo=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this)||this;return r.offset=e,r.styles=n,r}return Xr(e,t),e}(Lo),Uo=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null);var r=t.call(this)||this;return r.timings=e,r.styles=n,r}return Xr(e,t),e}(Lo),Ho=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n.steps=e,n}return Xr(e,t),e}(Lo),Bo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Xr(e,t),e}(Ho),qo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Xr(e,t),e}(Ho),zo=0,Go={};Go.Pipe=0,Go.Directive=1,Go.NgModule=2,Go.Injectable=3,Go[Go.Pipe]="Pipe",Go[Go.Directive]="Directive",Go[Go.NgModule]="NgModule",Go[Go.Injectable]="Injectable";var Wo=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,o=e.styleUrls;this.moduleUrl=n||null,this.styles=I(r),this.styleUrls=I(o)}return t}(),$o=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,o=t.styles,i=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.styles=I(o),this.styleUrls=I(i),this.externalStylesheets=I(s),this.animations=a?N(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Ko=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,o=t.selector,i=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,y=t.viewQueries,m=t.entryComponents,v=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=o,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=I(h),this.viewProviders=I(f),this.queries=I(d),this.viewQueries=I(y),this.entryComponents=I(m),this.template=v,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var n=e.isHost,r=e.type,o=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,h=e.providers,f=e.viewProviders,d=e.queries,y=e.viewQueries,m=e.entryComponents,v=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},C={},E={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],n=t.match(ko);null===n?E[t]=e:null!=n[1]?C[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=p(t,[t,t]);S[e[0]]=e[1]});var x={};return null!=c&&c.forEach(function(t){var e=p(t,[t,t]);x[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!o,selector:i,exportAs:s,changeDetection:a,inputs:S,outputs:x,hostListeners:w,hostProperties:C,hostAttributes:E,providers:h,viewProviders:f,queries:d,viewQueries:y,entryComponents:m,template:v,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:Go.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Qo=function(){function t(t){var e=t.type,n=t.name,r=t.pure;this.type=e,this.name=n,this.pure=!!r}return t.prototype.toSummary=function(){return{summaryKind:Go.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Xo=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,o=t.exportedDirectives,i=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=I(r),this.exportedDirectives=I(o),this.declaredPipes=I(i),this.exportedPipes=I(s),this.providers=I(n),this.entryComponents=I(a),this.bootstrapComponents=I(u),this.importedModules=I(c),this.exportedModules=I(l),this.schemas=I(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Go.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Zo=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Yo=function(){function t(t,e){var n=e.useClass,r=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=o,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}return t}(),Jo=function(){function t(t){var n=void 0===t?{}:t,r=n.defaultEncapsulation,o=void 0===r?e.ViewEncapsulation.Emulated:r,i=n.useJit,s=void 0===i||i,a=n.missingTranslation,u=n.enableLegacyTemplate;this.defaultEncapsulation=o,this.useJit=!!s,this.missingTranslation=a||null,this.enableLegacyTemplate=!1!==u}return t}(),ti=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),ei=function(){function t(t,e){this.start=t,this.end=e}return t}(),ni=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),ri=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.prefix=n,i.uninterpretedExpression=r,i.location=o,i}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(ni),oi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xr(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(ni),ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(ni),si=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(ni),ai=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.condition=n,i.trueExp=r,i.falseExp=o,i}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(ni),ui=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(ni),ci=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.value=o,i}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(ni),li=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(ni),pi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(ni),hi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i.value=o,i}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(ni),fi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.exp=n,i.name=r,i.args=o,i}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(ni),di=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(ni),yi=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(ni),mi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keys=n,o.values=r,o}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(ni),vi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.strings=n,o.expressions=r,o}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(ni),gi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.operation=n,i.left=r,i.right=o,i}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(ni),_i=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(ni),bi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.args=o,i}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(ni),wi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.args=o,i}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(ni),Ci=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.target=n,o.args=r,o}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(ni),Ei=function(t){function e(e,n,r,o){var i=t.call(this,new ei(0,null==n?0:n.length))||this;return i.ast=e,i.source=n,i.location=r,i.errors=o,i}return Xr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(ni),Si=function(){function t(t,e,n,r,o){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=o}return t}(),xi=function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}(),Ti=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new vi(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new di(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new ui(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new ci(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new li(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new bi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new wi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new Ci(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new yi(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new mi(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new gi(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new _i(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new ai(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new fi(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new pi(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new hi(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t,e){return new si(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new ri(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),Pi=0,Ai=9,Oi=10,Mi=11,Ri=12,ki=13,Ii=32,Ni=34,Di=36,ji=39,Li=43,Vi=45,Fi=47,Ui=59,Hi=61,Bi=62,qi=48,zi=57,Gi=65,Wi=69,$i=70,Ki=90,Qi=95,Xi=97,Zi=101,Yi=102,Ji=110,ts=114,es=116,ns=118,rs=122,os=123,is=160,ss=96,as=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],us=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(W("interpolation",e),new t(e[0],e[1])):cs},t}(),cs=new us("{{","}}"),ls={};ls.Character=0,ls.Identifier=1,ls.Keyword=2,ls.String=3,ls.Operator=4,ls.Number=5,ls.Error=6,ls[ls.Character]="Character",ls[ls.Identifier]="Identifier",ls[ls.Keyword]="Keyword",ls[ls.String]="String",ls[ls.Operator]="Operator",ls[ls.Number]="Number",ls[ls.Error]="Error";var ps=["var","let","as","null","undefined","true","false","if","else","this"],hs=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new ys(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();hs.decorators=[{type:z}],hs.ctorParameters=function(){return[]};var fs=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==ls.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==ls.Number},t.prototype.isString=function(){return this.type==ls.String},t.prototype.isOperator=function(t){return this.type==ls.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==ls.Identifier},t.prototype.isKeyword=function(){return this.type==ls.Keyword},t.prototype.isKeywordLet=function(){return this.type==ls.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==ls.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==ls.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==ls.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==ls.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==ls.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==ls.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==ls.Error},t.prototype.toNumber=function(){return this.type==ls.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case ls.Character:case ls.Identifier:case ls.Keyword:case ls.Operator:case ls.String:case ls.Error:return this.strValue;case ls.Number:return this.numValue.toString();default:return null}},t}(),ds=new fs(-1,ls.Character,0,""),ys=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?Pi:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=Ii;){if(++r>=e){n=Pi;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(tt(n))return this.scanIdentifier();if(H(n))return this.scanNumber(r);var o=r;switch(n){case 46:return this.advance(),H(this.peek)?this.scanNumber(o):$(o,46);case 40:case 41:case os:case 125:case 91:case 93:case 44:case 58:case Ui:return this.scanCharacter(o,n);case ji:case Ni:return this.scanString();case 35:case Li:case Vi:case 42:case Fi:case 37:case 94:return this.scanOperator(o,String.fromCharCode(n));case 63:return this.scanComplexOperator(o,"?",46,".");case 60:case Bi:return this.scanComplexOperator(o,String.fromCharCode(n),Hi,"=");case 33:case Hi:return this.scanComplexOperator(o,String.fromCharCode(n),Hi,"=",Hi,"=");case 38:return this.scanComplexOperator(o,"&",38,"&");case 124:return this.scanComplexOperator(o,"|",124,"|");case is:for(;U(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),$(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),X(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,o,i){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=o&&this.peek==o&&(this.advance(),s+=i),X(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();nt(this.peek);)this.advance();var e=this.input.substring(t,this.index);return ps.indexOf(e)>-1?Q(t,e):K(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(H(this.peek));else if(46==this.peek)e=!1;else{if(!rt(this.peek))break;if(this.advance(),ot(this.peek)&&this.advance(),!H(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index);return Y(t,e?at(n):parseFloat(n))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,o=this.input;this.peek!=e;)if(92==this.peek){n+=o.substring(r,this.index),this.advance();var i=void 0;if(this.peek=this.peek,117==this.peek){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else i=st(this.peek),this.advance();n+=String.fromCharCode(i),r=this.index}else{if(this.peek==Pi)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(r,this.index);return this.advance(),Z(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return J(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),ms=function(){function t(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}return t}(),vs=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),gs=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=cs),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new _s(t,e,o,r.length,!0,this.errors,t.length-r.length).parseChain();return new Ei(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=cs);var r=this._parseBindingAst(t,e,n);return new Ei(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=cs);var r=this._parseBindingAst(t,e,n),o=bs.check(r);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new Ei(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new ti(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var o=this._stripComments(t),i=this._lexer.tokenize(o);return new _s(t,e,i,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!et(r))return null;var o=t.substring(n+1);return new ri(new ei(0,t.length),r,o,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var o=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,o)}return new _s(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=cs);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var o=[],i=0;i<r.expressions.length;++i){var s=r.expressions[i],a=this._stripComments(s),u=this._lexer.tokenize(this._stripComments(r.expressions[i])),c=new _s(t,e,u,a.length,!1,this.errors,r.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new Ei(new vi(new ei(0,null==t?0:t.length),r.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=cs);var r=ut(n),o=t.split(r);if(o.length<=1)return null;for(var i=[],s=[],a=[],u=0,c=0;c<o.length;c++){var l=o[c];c%2==0?(i.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(o,c,n)+" in",e),s.push("$implict"),a.push(u))}return new ms(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new Ei(new di(new ei(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n<t.length-1;n++){var r=t.charCodeAt(n),o=t.charCodeAt(n+1);if(r===Fi&&o==Fi&&null==e)return n;e===r?e=null:null==e&&it(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=ut(n),o=t.split(r);o.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",o=0;o<e;o++)r+=o%2==0?t[o]:""+n.start+t[o]+n.end;return r.length},t}();gs.decorators=[{type:z}],gs.ctorParameters=function(){return[{type:hs}]};var _s=function(){function t(t,e,n,r,o,i,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=o,this.errors=i,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:ds},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new ei(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(Ui))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Ui););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new oi(this.span(e)):1==t.length?t[0]:new si(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());t=new fi(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var o=this.inputIndex,i=this.input.substring(t,o);this.error("Conditional expression "+i+" requires all 3 expressions"),r=new oi(this.span(t))}return new ai(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new gi(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new gi(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==ls.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new gi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==ls.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new gi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==ls.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new gi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==ls.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new gi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==ls.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new gi(this.span(t),e,new di(new ei(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new _i(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new hi(this.span(t.span.start),t,e,n)}else t=new pi(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(40))return t;this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new Ci(this.span(t.span.start),t,r)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new di(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new di(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new di(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new di(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new ii(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new yi(this.span(t),n)}if(this.next.isCharacter(os))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new ii(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new di(this.span(t),r)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new di(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new oi(this.span(t))):(this.error("Unexpected token "+this.next),new oi(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(os),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.expectIdentifierOrKeywordOrString();t.push(r),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new mi(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var i=this.span(n);return e?new wi(i,t,r,o):new bi(i,t,r,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new oi(this.span(n))):new li(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new oi(this.span(n));var s=this.parseConditional();return new ci(this.span(n),t,r,s)}return new ui(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index<this.tokens.length;){var r=this.inputIndex,o=this.peekKeywordLet();o&&this.advance();var i=this.expectTemplateBindingKey(),s=i;o||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(58);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){h=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==ds&&!this.peekKeywordLet()){var c=this.inputIndex,l=this.parsePipe(),p=this.input.substring(c-this.offset,this.inputIndex-this.offset);u=new Ei(l,p,this.location,this.errors)}if(t.push(new Si(this.span(r),s,o,a,u)),this.peekKeywordAs()&&!o){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new Si(this.span(h),f,!0,s,null))}this.optionalCharacter(Ui)||this.optionalCharacter(44)}return new vs(t,n,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new ti(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(Ui)&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93));)this.next.isError()&&this.errors.push(new ti(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),bs=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),ws=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,o=this.offset,i=this.line,s=this.col;o>0&&e<0;)if(o--,e++,(u=n.charCodeAt(o))==Oi){i--;var a=n.substr(0,o-1).lastIndexOf(String.fromCharCode(Oi));s=a>0?o-a:o}else s--;for(;o<r&&e>0;){var u=n.charCodeAt(o);o++,e--,u==Oi?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var o=r,i=0,s=0;i<t&&r>0&&(r--,i++,"\n"!=n[r]||++s!=e););for(i=0,s=0;i<t&&o<n.length-1&&(o++,i++,"\n"!=n[o]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,o+1)}}return null},t}(),Cs=function(){function t(t,e){this.content=t,this.url=e}return t}(),Es=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Ss={};Ss.WARNING=0,Ss.ERROR=1,Ss[Ss.WARNING]="WARNING",Ss[Ss.ERROR]="ERROR";var xs=function(){function t(t,e,n){void 0===n&&(n=Ss.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"["+Ss[this.level]+" ->]"+t.after+'")':"",n=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+n},t}(),Ts=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Ps=function(){function t(t,e,n,r,o){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),As=function(){function t(t,e,n,r,o){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Os=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Ms=function(){function t(t,e,n,r,o,i){void 0===o&&(o=null),void 0===i&&(i=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=o,this.endSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Rs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),ks={};ks.TAG_OPEN_START=0,ks.TAG_OPEN_END=1,ks.TAG_OPEN_END_VOID=2,ks.TAG_CLOSE=3,ks.TEXT=4,ks.ESCAPABLE_RAW_TEXT=5,ks.RAW_TEXT=6,ks.COMMENT_START=7,ks.COMMENT_END=8,ks.CDATA_START=9,ks.CDATA_END=10,ks.ATTR_NAME=11,ks.ATTR_VALUE=12,ks.DOC_TYPE=13,ks.EXPANSION_FORM_START=14,ks.EXPANSION_CASE_VALUE=15,ks.EXPANSION_CASE_EXP_START=16,ks.EXPANSION_CASE_EXP_END=17,ks.EXPANSION_FORM_END=18,ks.EOF=19,ks[ks.TAG_OPEN_START]="TAG_OPEN_START",ks[ks.TAG_OPEN_END]="TAG_OPEN_END",ks[ks.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",ks[ks.TAG_CLOSE]="TAG_CLOSE",ks[ks.TEXT]="TEXT",ks[ks.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ks[ks.RAW_TEXT]="RAW_TEXT",ks[ks.COMMENT_START]="COMMENT_START",ks[ks.COMMENT_END]="COMMENT_END",ks[ks.CDATA_START]="CDATA_START",ks[ks.CDATA_END]="CDATA_END",ks[ks.ATTR_NAME]="ATTR_NAME",ks[ks.ATTR_VALUE]="ATTR_VALUE",ks[ks.DOC_TYPE]="DOC_TYPE",ks[ks.EXPANSION_FORM_START]="EXPANSION_FORM_START",ks[ks.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",ks[ks.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",ks[ks.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",ks[ks.EXPANSION_FORM_END]="EXPANSION_FORM_END",ks[ks.EOF]="EOF";var Is=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),Ns=function(t){function e(e,n,r){var o=t.call(this,r,e)||this;return o.tokenType=n,o}return Xr(e,t),e}(xs),Ds=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),js=/\r\n?/g,Ls=function(){function t(t){this.error=t}return t}(),Vs=function(){function t(t,e,n,r){void 0===r&&(r=cs),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(js,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Pi;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Vi)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Fi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Ls))throw t;this.errors.push(t.error)}}return this._beginToken(ks.EOF),this._endToken([]),new Ds(Et(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(_t(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(bt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new ws(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Es(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Is(this._currentTokenType,t,new Es(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Ns(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Ls(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(ht(Pi),this._getSpan());this._peek===Oi?(this._line++,this._column=0):this._peek!==Oi&&this._peek!==ki&&this._column++,this._index++,this._peek=this._index>=this._length?Pi:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Pi:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!wt(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(ht(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;r<e;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(ht(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(ht(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&38===this._peek)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(gt),this._peek!=Ui)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=vo[n];if(!r)throw this._createError(ft(n),this._getSpan(t));return r}var o=this._attemptCharCode(120)||this._attemptCharCode(88),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(vt),this._peek!=Ui)throw this._createError(ht(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(e){var u=this._input.substring(t.offset+1,this._index-1);throw this._createError(ft(u),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,o=this._getLocation();this._beginToken(t?ks.ESCAPABLE_RAW_TEXT:ks.RAW_TEXT,o);for(var i=[];;){if(r=this._getLocation(),this._attemptCharCode(e)&&n())break;for(this._index>r.offset&&i.push(this._input.substring(r.offset,this._index));this._peek!==e;)i.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(i.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(ks.COMMENT_START,t),this._requireCharCode(Vi),this._endToken([]);var n=this._consumeRawText(!1,Vi,function(){return e._attemptStr("->")});this._beginToken(ks.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(ks.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(ks.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(ks.DOC_TYPE,t),this._attemptUntilChar(Bi),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;58!==this._peek&&!mt(this._peek);)this._advance();var n;return 58===this._peek?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(yt,this._index===n?1:0),[e,this._input.substring(n,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!B(this._peek))throw this._createError(ht(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),n=(e=this._input.substring(o,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(dt);this._peek!==Fi&&this._peek!==Bi;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(dt),this._attemptCharCode(Hi)&&(this._attemptCharCodeUntilFn(dt),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(dt);this._consumeTagOpenEnd()}catch(e){if(e instanceof Ls)return this._restorePosition(r),this._beginToken(ks.TEXT,t),void this._endToken(["<"]);throw e}var i=this._getTagDefinition(e).contentType;i===mo.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):i===mo.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(Fi)&&(n._attemptCharCodeUntilFn(dt),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(dt),n._attemptCharCode(Bi)))});this._beginToken(ks.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(ks.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(ks.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(ks.ATTR_VALUE);var t;if(this._peek===ji||this._peek===Ni){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(yt,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Fi)?ks.TAG_OPEN_END_VOID:ks.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Bi),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(ks.TAG_CLOSE,t),this._attemptCharCodeUntilFn(dt);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(dt),this._requireCharCode(Bi),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(ks.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(os),this._endToken([]),this._expansionCaseStack.push(ks.EXPANSION_FORM_START),this._beginToken(ks.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(dt),this._beginToken(ks.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(dt)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(ks.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(os).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._beginToken(ks.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(os),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.push(ks.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(ks.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(ks.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(ks.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Pi)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(_t(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ks.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ks.EXPANSION_FORM_START},t}(),Fs=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.elementName=e,o}return Xr(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(xs),Us=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),Hs=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=cs);var o=pt(t,e,this.getTagDefinition,n,r),i=new Bs(o.tokens,this.getTagDefinition).build();return new Us(i.rootNodes,o.errors.concat(i.errors))},t}(),Bs=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==ks.EOF;)this._peek.type===ks.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ks.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===ks.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ks.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ks.TEXT||this._peek.type===ks.RAW_TEXT||this._peek.type===ks.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ks.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Us(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(t){this._consumeText(this._advance()),this._advanceIf(ks.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(ks.RAW_TEXT);this._advanceIf(ks.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new Rs(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===ks.EXPANSION_CASE_VALUE;){var o=this._parseExpansionCase();if(!o)return;r.push(o)}if(this._peek.type!==ks.EXPANSION_FORM_END)return void this._errors.push(Fs.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var i=new Es(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Ps(e.parts[0],n.parts[0],r,i,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==ks.EXPANSION_CASE_EXP_START)return this._errors.push(Fs.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var o=this._advance();r.push(new Is(ks.EOF,[],o.sourceSpan));var i=new t(r,this.getTagDefinition).build();if(i.errors.length>0)return this._errors=this._errors.concat(i.errors),null;var s=new Es(e.sourceSpan.start,o.sourceSpan.end),a=new Es(n.sourceSpan.start,o.sourceSpan.end);return new As(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[ks.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==ks.EXPANSION_FORM_START&&this._peek.type!==ks.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===ks.EXPANSION_CASE_EXP_END){if(!St(n,ks.EXPANSION_CASE_EXP_START))return this._errors.push(Fs.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===ks.EXPANSION_FORM_END){if(!St(n,ks.EXPANSION_FORM_START))return this._errors.push(Fs.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===ks.EOF)return this._errors.push(Fs.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Ts(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===ks.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var o=this._getElementFullName(e,n,this._getParentElement()),i=!1;if(this._peek.type===ks.TAG_OPEN_END_VOID){this._advance(),i=!0;var s=this.getTagDefinition(o);s.canSelfClose||null!==a(o)||s.isVoid||this._errors.push(Fs.create(o,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===ks.TAG_OPEN_END&&(this._advance(),i=!1);var u=this._peek.sourceSpan.start,c=new Es(t.sourceSpan.start,u),l=new Ms(o,r,[],c,c,void 0);this._pushElement(l),i&&(this._popElement(o),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),o=r.parent,i=r.container;if(o&&n.requireExtraParent(o.name)){var s=new Ms(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(o,i,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(Fs.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(Fs.create(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=u(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",o=void 0;if(this._peek.type===ks.ATTR_VALUE){var i=this._advance();r=i.parts[0],n=i.sourceSpan.end,o=i.sourceSpan}return new Os(e,r,new Es(t.sourceSpan.start,n),o)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!o(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=a(n.name)),u(t,e)},t}(),qs=function(){function t(t,e,n,r,o,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=o,this.id=i,t.length?this.sources=[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:this.sources=[]}return t}(),zs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Gs=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),Ws=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),$s=function(){function t(t,e,n,r,o,i,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=o,this.isVoid=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),Ks=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),Qs=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),Xs=function(){function t(){}return t.prototype.visitText=function(t,e){return new zs(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new Gs(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(o){return r[o]=t.cases[o].visit(n,e)});var o=new Ws(t.expression,t.type,r,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new $s(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new Ks(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new Qs(t.value,t.name,t.sourceSpan)},t}(),Zs=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),Ys={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},Js=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var o=t.toUpperCase(),i=Ys[o]||"TAG_"+o,s=this._generateUniqueName(n?i:"START_"+i);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=Ys[n]||"TAG_"+n,o=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=o,o},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var o=this._generateUniqueName(n);return this._signatureToName[r]=o,o},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":"></"+t+">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),ta=new gs(new hs),ea=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof Ps,this._icuDepth=0,this._placeholderRegistry=new Js,this._placeholderToContent={},this._placeholderToMessage={};var o=lt(this,t,{});return new qs(o,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=lt(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var o=c(t.name).isVoid,i=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,o);this._placeholderToContent[i]=t.sourceSpan.toString();var s="";return o||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]="</"+t.name+">"),new $s(t.name,r,i,s,n,o,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var o={},i=new Ws(e.switchValue,e.type,o,e.sourceSpan);if(e.cases.forEach(function(t){o[t.value]=new Gs(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return i.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,i}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new Qs(i,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new zs(t,e);for(var r=[],o=new Gs(r,e),i=this._interpolationConfig,s=i.start,a=i.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=Tt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new zs(n.strings[u],e)),r.push(new Ks(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new zs(n.strings[h],e)),o},t}(),na=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,ra=function(t){function e(e,n){return t.call(this,e,n)||this}return Xr(e,t),e}(xs),oa="i18n",ia=/^i18n:?/,sa="|",aa="@@",ua=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),ca={};ca.Extract=0,ca.Merge=1,ca[ca.Extract]="Extract",ca[ca.Merge]="Merge";var la=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(ca.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ua(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(ca.Merge,n),this._translations=e;var r=new Ms("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Us(r.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=lt(this,t.expression,e);if(this._mode===ca.Merge)return new As(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=lt(this,t.cases,e);return this._mode===ca.Merge&&(t=new Ps(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n=Ot(t);if(n&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var r=Mt(t);if(r&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var o=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return lt(this,this._translateMessage(t,o))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else n&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(ia,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,o=this._inImplicitNode,i=[],s=void 0,a=Rt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==ca.Extract&<(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);s=this._translateMessage(t,p)}if(this._mode==ca.Extract){var h=a||l;h&&this._openTranslatableSection(t),lt(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===ca.Merge&&(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(i=i.concat(r))}),this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=o,this._mode===ca.Merge){var f=this._translateAttributes(t);return new Ms(t.name,f,i,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=xt(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Os&&!t[0].value)return null;var n=kt(e),r=n.meaning,o=n.description,i=n.id,s=this._createI18nMessage(t,r,o,i);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===ca.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith("i18n-")&&(r[t.name.slice("i18n-".length)]=kt(t.value))});var o=[];return n.forEach(function(n){if(n.name!==oa&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var i=r[n.name],s=i.meaning,a=i.description,u=i.id,c=e._createI18nMessage([n],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)o.push(new Os(n.name,"",n.sourceSpan));else if(l[0]instanceof Ts){var p=l[0].value;o.push(new Os(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")')}else o.push(n)}),o},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof Rs?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var o=this._messages[r].nodes;if(!(1==o.length&&o[0]instanceof zs)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),pa=new(function(){function t(){this.closedByParent=!1,this.contentType=mo.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}()),ha=function(t){function e(){return t.call(this,It)||this}return Xr(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(Hs),fa=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(n)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t,e){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t,e){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),da=new fa,ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xr(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(fa),ma={};ma.Little=0,ma.Big=1,ma[ma.Little]="Little",ma[ma.Big]="Big";var va=function(){function t(){}return t.prototype.write=function(t,e){},t.prototype.load=function(t,e){},t.prototype.digest=function(t){},t.prototype.createNameMapper=function(t){return null},t}(),ga=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return Xr(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(Zs),_a=new(function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}()),ba=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=ie(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),wa=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Ca=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=ie(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ea=function(){function t(t){this.value=ie(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Sa=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Xr(e,t),e}(Ea),xa=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]],Ta=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xr(e,t),e.prototype.write=function(t,e){var n=new Pa,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new Ca("context-group",{purpose:"location"});n.children.push(new Sa(10),new Ca("context",{"context-type":"sourcefile"},[new Ea(t.filePath)]),new Sa(10),new Ca("context",{"context-type":"linenumber"},[new Ea(""+t.startLine)]),new Sa(8)),e.push(new Sa(8),n)});var o=new Ca("trans-unit",{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new Sa(8),new Ca("source",{},n.serialize(t.nodes)),new Sa(8),new Ca("target")].concat(e)),t.description&&o.children.push(new Sa(8),new Ca("note",{priority:"1",from:"description"},[new Ea(t.description)])),t.meaning&&o.children.push(new Sa(8),new Ca("note",{priority:"1",from:"meaning"},[new Ea(t.meaning)])),o.children.push(new Sa(6)),r.push(new Sa(6),o);var i});var o=new Ca("body",{},r.concat([new Sa(4)])),i=new Ca("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new Sa(4),o,new Sa(2)]),s=new Ca("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new Sa(2),i,new Sa]);return oe([new ba({version:"1.0",encoding:"UTF-8"}),new Sa,s,new Sa])},e.prototype.load=function(t,e){var n=(new Aa).parse(t,e),r=n.locale,o=n.msgIdToHtml,i=n.errors,s={},a=new Oa;if(Object.keys(o).forEach(function(t){var n=a.convert(o[t],e),r=n.i18nNodes,u=n.errors;i.push.apply(i,u),s[t]=r}),i.length)throw new Error("xliff parse errors:\n"+i.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return Nt(t)},e}(va),Pa=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ea(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ea("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ea(e+" {")].concat(t.cases[e].visit(n),[new Ea("} ")]))}),r.push(new Ea("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=se(t.tag),r=new Ca("x",{id:t.startName,ctype:n});if(t.isVoid)return[r];var o=new Ca("x",{id:t.closeName,ctype:n});return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){return[new Ca("x",{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Ca("x",{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Aa=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new ha).parse(t,e,!1);return this._errors=n.errors,lt(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<trans-unit> misses the "id" attribute');break;case"source":break;case"target":var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(o,i);this._unitMlString=s;break;case"file":var a=t.attrs.find(function(t){return"target-language"===t.name});a&&(this._locale=a.value),lt(this,t.children,null);break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),Oa=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new ha).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:lt(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new zs(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});if(n)return new Ks("",n.value,t.sourceSpan);this._addError(t,'<x> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t,e){var n={};return lt(this,t.cases).forEach(function(e){n[e.value]=new Gs(e.nodes,t.sourceSpan)}),new Ws(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),Ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xr(e,t),e.prototype.write=function(t,e){var n=new Ra,r=[];t.forEach(function(t){var e=new Ca("unit",{id:t.id});if(t.description||t.meaning){var o=new Ca("notes");t.description&&o.children.push(new Sa(8),new Ca("note",{category:"description"},[new Ea(t.description)])),t.meaning&&o.children.push(new Sa(8),new Ca("note",{category:"meaning"},[new Ea(t.meaning)])),o.children.push(new Sa(6)),e.children.push(new Sa(6),o)}var i=new Ca("segment");i.children.push(new Sa(8),new Ca("source",{},n.serialize(t.nodes)),new Sa(6)),e.children.push(new Sa(6),i,new Sa(4)),r.push(new Sa(4),e)});var o=new Ca("file",{original:"ng.template",id:"ngi18n"},r.concat([new Sa(2)])),i=new Ca("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new Sa(2),o,new Sa]);return oe([new ba({version:"1.0",encoding:"UTF-8"}),new Sa,i,new Sa])},e.prototype.load=function(t,e){var n=(new ka).parse(t,e),r=n.locale,o=n.msgIdToHtml,i=n.errors,s={},a=new Ia;if(Object.keys(o).forEach(function(t){var n=a.convert(o[t],e),r=n.i18nNodes,u=n.errors;i.push.apply(i,u),s[t]=r}),i.length)throw new Error("xliff2 parse errors:\n"+i.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return Dt(t)},e}(va),Ra=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ea(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ea("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ea(e+" {")].concat(t.cases[e].visit(n),[new Ea("} ")]))}),r.push(new Ea("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=ae(t.tag);if(t.isVoid)return[new Ca("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})];var o=new Ca("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),i=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return i.length?i.forEach(function(t){return o.children.push(t)}):o.children.push(new Ea("")),[o]},t.prototype.visitPlaceholder=function(t,e){return[new Ca("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Ca("ph",{id:(this._nextPlaceholderId++).toString()})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),ka=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new ha).parse(t,e,!1);return this._errors=n.errors,lt(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<unit> misses the "id" attribute');break;case"source":break;case"target":var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(o,i);this._unitMlString=s;break;case"xliff":var a=t.attrs.find(function(t){return"trgLang"===t.name});a&&(this._locale=a.value);var u=t.attrs.find(function(t){return"version"===t.name});if(u){var c=u.value;"2.0"!==c?this._addError(t,"The XLIFF file version "+c+" is not compatible with XLIFF 2.0 serializer"):lt(this,t.children,null)}break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),Ia=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new ha).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],lt(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new zs(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new Ks("",r.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":var o=t.attrs.find(function(t){return"equivStart"===t.name}),i=t.attrs.find(function(t){return"equivEnd"===t.name});if(o){if(i){var s=o.value,a=i.value,u=[];return u.concat.apply(u,[new Ks("",s,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new Ks("",a,t.sourceSpan)]))}this._addError(t,'<ph> misses the "equivEnd" attribute')}else this._addError(t,'<ph> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return lt(this,t.cases).forEach(function(e){n[e.value]=new Gs(e.nodes,t.sourceSpan)}),new Ws(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],lt(this,t.expression))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),Na=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xr(e,t),e.prototype.write=function(t,e){var n=new ja,r=new Da,o=new Ca("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new Ca("source",{},[new Ea(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),o.children.push(new Sa(2),new Ca("msg",e,n.concat(r.serialize(t.nodes))))}),o.children.push(new Sa),oe([new ba({version:"1.0",encoding:"UTF-8"}),new Sa,new wa("messagebundle",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new Sa,n.addDefaultExamples(o),new Sa])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new ga(t,ce)},e}(va),Da=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ea(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ea("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ea(e+" {")].concat(t.cases[e].visit(n),[new Ea("} ")]))}),r.push(new Ea("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Ca("ex",{},[new Ea("<"+t.tag+">")]),r=new Ca("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var o=new Ca("ex",{},[new Ea("</"+t.tag+">")]),i=new Ca("ph",{name:t.closeName},[o]);return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new Ca("ph",{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Ca("ph",{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),ja=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new Ea(t.attrs.name||"...");t.children=[new Ca("ex",{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}(),La=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xr(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=(new Va).parse(t,e),r=n.locale,o=n.msgIdToHtml,i=n.errors,s={},a=new Fa;if(Object.keys(o).forEach(function(t){le(s,t,function(){var n=a.convert(o[t],e),r=n.i18nNodes,i=n.errors;if(i.length)throw new Error("xtb parse errors:\n"+i.join("\n"));return r})}),i.length)throw new Error("xtb parse errors:\n"+i.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new ga(t,ce)},e}(va),Va=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new ha).parse(t,e,!1);return this._errors=n.errors,lt(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":++this._bundleDepth>1&&this._addError(t,"<translationbundle> elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),lt(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var o=r.value;if(this._msgIdToHtml.hasOwnProperty(o))this._addError(t,"Duplicated translations for msg "+o);else{var i=t.startSourceSpan.end.offset,s=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content.slice(i,s);this._msgIdToHtml[o]=a}}else this._addError(t,'<translation> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),Fa=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new ha).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:lt(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new zs(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return lt(this,t.cases).forEach(function(e){n[e.value]=new Gs(e.nodes,t.sourceSpan)}),new Ws(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new Ks("",n.value,t.sourceSpan);this._addError(t,'<ph> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),Ua=function(t){function e(){return t.call(this,c)||this}return Xr(e,t),e.prototype.parse=function(e,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=cs),t.prototype.parse.call(this,e,n,r,o)},e}(Hs);Ua.decorators=[{type:z}],Ua.ctorParameters=function(){return[]};var Ha=function(){function t(t,n,r,o,i,s){void 0===t&&(t={}),void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=r,this.mapperFactory=o,this._i18nToHtml=new Ba(t,n,r,o,i,s)}return t.load=function(e,n,r,o,i){var s=r.load(e,n),a=s.locale;return new t(s.i18nNodesByMsgId,a,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},o,i)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),Ba=function(){function t(t,e,n,r,o,i){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=o,this._console=i,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new Ua).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,o=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+o+"/>":"<"+r+" "+o+">"+t.children.map(function(t){return t.visit(n)}).join("")+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var n,r=this,o=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(o))n=this._i18nNodesByMsgId[o],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+o+'"'+s)}else if(this._console&&this._missingTranslationStrategy===e.MissingTranslationStrategy.Warning){var s=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+o+'"'+s)}n=t.nodes,this._mapper=function(t){return t}}var a=n.map(function(t){return t.visit(r)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new ra(t.sourceSpan,e))},t}(),qa=function(){function t(t,n,r,o,i){if(void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._htmlParser=t,n){var s=pe(r);this._translationBundle=Ha.load(n,"i18n",s,o,i)}}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=cs);var o=this._htmlParser.parse(t,e,n,r);return this._translationBundle?o.errors.length?new Us(o.rootNodes,o.errors):At(o.rootNodes,this._translationBundle,r,[],{}):o},t}(),za=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+n+"/"+e}("core"),Ga=function(){function t(){}return t}();Ga.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:za,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},Ga.ElementRef={name:"ElementRef",moduleUrl:za,runtime:e.ElementRef},Ga.NgModuleRef={name:"NgModuleRef",moduleUrl:za,runtime:e.NgModuleRef},Ga.ViewContainerRef={name:"ViewContainerRef",moduleUrl:za,runtime:e.ViewContainerRef},Ga.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:za,runtime:e.ChangeDetectorRef},Ga.QueryList={name:"QueryList",moduleUrl:za,runtime:e.QueryList},Ga.TemplateRef={name:"TemplateRef",moduleUrl:za,runtime:e.TemplateRef},Ga.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:za,runtime:e.ɵCodegenComponentFactoryResolver},Ga.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:za,runtime:e.ComponentFactoryResolver},Ga.ComponentFactory={name:"ComponentFactory",moduleUrl:za,runtime:e.ComponentFactory},Ga.ComponentRef={name:"ComponentRef",moduleUrl:za,runtime:e.ComponentRef},Ga.NgModuleFactory={name:"NgModuleFactory",moduleUrl:za,runtime:e.NgModuleFactory},Ga.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:za,runtime:e.ɵNgModuleInjector},Ga.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:za,runtime:e.ɵregisterModuleFactory},Ga.Injector={name:"Injector",moduleUrl:za,runtime:e.Injector},Ga.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:za,runtime:e.ViewEncapsulation},Ga.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:za,runtime:e.ChangeDetectionStrategy},Ga.SecurityContext={name:"SecurityContext",moduleUrl:za,runtime:e.SecurityContext},Ga.LOCALE_ID={name:"LOCALE_ID",moduleUrl:za,runtime:e.LOCALE_ID},Ga.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:za,runtime:e.TRANSLATIONS_FORMAT},Ga.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:za,runtime:e.ɵinlineInterpolate},Ga.interpolate={name:"ɵinterpolate",moduleUrl:za,runtime:e.ɵinterpolate},Ga.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:za,runtime:e.ɵEMPTY_ARRAY},Ga.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:za,runtime:e.ɵEMPTY_MAP},Ga.Renderer={name:"Renderer",moduleUrl:za,runtime:e.Renderer},Ga.viewDef={name:"ɵvid",moduleUrl:za,runtime:e.ɵvid},Ga.elementDef={name:"ɵeld",moduleUrl:za,runtime:e.ɵeld},Ga.anchorDef={name:"ɵand",moduleUrl:za,runtime:e.ɵand},Ga.textDef={name:"ɵted",moduleUrl:za,runtime:e.ɵted},Ga.directiveDef={name:"ɵdid",moduleUrl:za,runtime:e.ɵdid},Ga.providerDef={name:"ɵprd",moduleUrl:za,runtime:e.ɵprd},Ga.queryDef={name:"ɵqud",moduleUrl:za,runtime:e.ɵqud},Ga.pureArrayDef={name:"ɵpad",moduleUrl:za,runtime:e.ɵpad},Ga.pureObjectDef={name:"ɵpod",moduleUrl:za,runtime:e.ɵpod},Ga.purePipeDef={name:"ɵppd",moduleUrl:za,runtime:e.ɵppd},Ga.pipeDef={name:"ɵpid",moduleUrl:za,runtime:e.ɵpid},Ga.nodeValue={name:"ɵnov",moduleUrl:za,runtime:e.ɵnov},Ga.ngContentDef={name:"ɵncd",moduleUrl:za,runtime:e.ɵncd},Ga.unwrapValue={name:"ɵunv",moduleUrl:za,runtime:e.ɵunv},Ga.createRendererType2={name:"ɵcrt",moduleUrl:za,runtime:e.ɵcrt},Ga.RendererType2={name:"RendererType2",moduleUrl:za,runtime:null},Ga.ViewDefinition={name:"ɵViewDefinition",moduleUrl:za,runtime:null},Ga.createComponentFactory={name:"ɵccf",moduleUrl:za,runtime:e.ɵccf};var Wa=["zero","one","two","few","many","other"],$a=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Ka=function(t){function e(e,n){return t.call(this,e,n)||this}return Xr(e,t),e}(xs),Qa=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Ms(t.name,t.attrs,lt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?ve(t,this.errors):ge(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Xa=function(t){function e(e,n){return t.call(this,n,e)||this}return Xr(e,t),e}(xs),Za=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=Ee(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(R(t.token))&&e.viewProviders.set(R(t.token),!0)})}return t}(),Ya=function(){function t(t,e,n,r,o,i,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},o.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=we(l,u,t.errors),this._contentQueries=Se(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=ye(Ga.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||ye(Ga.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(he(Ga.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get(R(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,o=R(r),i=n.get(o);i||(i=[],n.set(o,i)),i.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,o=0;null!==r;)(e=r._contentQueries.get(R(t)))&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||o<=1})),r._directiveAsts.length>0&&o++,r=r._parent;return(e=this.viewContext.viewQueries.get(R(t)))&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,o=this._allProviders.get(R(e));if(!o||(t===lo.Directive||t===lo.PublicService)&&o.providerType===lo.PrivateService||(t===lo.PrivateService||t===lo.PublicService)&&o.providerType===lo.Builtin)return null;var i=this._transformedProviders.get(R(e));if(i)return i;if(null!=this._seenProviders.get(R(e)))return this.viewContext.errors.push(new Xa("Cannot instantiate cyclic dependency! "+M(e),this._sourceSpan)),null;this._seenProviders.set(R(e),!0);var s=o.providers.map(function(t){var e=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(o.providerType,{token:t.useExisting},n);null!=a.token?i=a.token:(i=null,e=a.value)}else if(t.useFactory)s=(u=t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(o.providerType,t,n)});else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(o.providerType,t,n)})}return _e(t,{useExisting:i,useValue:e,deps:s})});return i=be(o,{eager:n,providers:s}),this._transformedProviders.set(R(e),i),i},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===lo.Directive||t===lo.Component){if(R(e.token)===he(Ga.Renderer)||R(e.token)===he(Ga.ElementRef)||R(e.token)===he(Ga.ChangeDetectorRef)||R(e.token)===he(Ga.TemplateRef))return e;R(e.token)===he(Ga.ViewContainerRef)&&(this._hasViewContainer=!0)}if(R(e.token)===he(Ga.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,o=n,i=null;if(e.isSkipSelf||(i=this._getLocalDependency(t,e,n)),e.isSelf)!i&&e.isOptional&&(i={isValue:!0,value:null});else{for(;!i&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(o=!1),i=r._getLocalDependency(lo.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===R(e.token)||null!=this.viewContext.viewProviders.get(R(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Xa("No provider for "+M(e.token),this._sourceSpan)),i},t}(),Ja=function(){function t(t,e,n){var r=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){Ce([{token:{identifier:t},useClass:t}],lo.PublicService,!0,n,r._errors,r._allProviders)}),Ce(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),lo.PublicService,!1,n,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(R(t));if(!r)return null;var o=this._transformedProviders.get(R(t));if(o)return o;if(null!=this._seenProviders.get(R(t)))return this._errors.push(new Xa("Cannot instantiate cyclic dependency! "+M(t),r.sourceSpan)),null;this._seenProviders.set(R(t),!0);var i=r.providers.map(function(t){var o=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?i=a.token:(i=null,o=a.value)}else if(t.useFactory)s=(u=t.deps||t.useFactory.diDeps).map(function(t){return n._getDependency(t,e,r.sourceSpan)});else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return _e(t,{useExisting:i,useValue:o,deps:s})});return o=be(r,{eager:e,providers:i}),this._transformedProviders.set(R(t),o),o},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(R(t.token)===he(Ga.Injector)||R(t.token)===he(Ga.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var o=t;return t.isSelf&&!r&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Xa("No provider for "+M(t.token),n))),o},t}(),tu=function(){function t(){}return t.prototype.hasProperty=function(t,e,n){},t.prototype.hasElement=function(t,e){},t.prototype.securityContext=function(t,e,n){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(t){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(t){},t.prototype.validateAttribute=function(t){},t.prototype.normalizeAnimationStyleProperty=function(t){},t.prototype.normalizeAnimationStyleValue=function(t,e,n){},t}(),eu=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),nu=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,ru=/\/\*.+?\*\//g,ou=/^([^:/?#]+):/,iu={};iu.DEFAULT=0,iu.LITERAL_ATTR=1,iu.ANIMATION=2,iu[iu.DEFAULT]="DEFAULT",iu[iu.LITERAL_ATTR]="LITERAL_ATTR",iu[iu.ANIMATION]="ANIMATION";var su=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===iu.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===iu.ANIMATION},enumerable:!0,configurable:!0}),t}(),au=function(){function t(t,e,n,r,o){var i=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=o,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return i.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var o=[];return Object.keys(t.hostProperties).forEach(function(e){var i=t.hostProperties[e];"string"==typeof i?r.parsePropertyBinding(e,i,!0,n,[],o):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",n)}),o.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(o){var i=t.hostListeners[o];"string"==typeof i?n.parseEvent(o,i,e,[],r):n._reportError('Value of the host listener "'+o+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,o,i){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?i.push(new oo(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,o):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,o))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,o=n.start.toString();try{var i=this._exprParser.parseTemplateBindings(t,e,o);return this._reportExpressionParserErrors(i.errors,n),i.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),i.warnings.forEach(function(t){r._reportError(t,n,Ss.WARNING)}),i.templateBindings}catch(t){return this._reportError(""+t,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,o){Ae(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,Ss.ERROR),this._parseAnimation(t,e,n,r,o)):o.push(new su(t,this._exprParser.wrapLiteralPrimitive(e,""),iu.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,o,i){var s=!1;t.startsWith("animate-")?(s=!0,t=t.substring("animate-".length)):Ae(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,o,i):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,o,i)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,o){var i=this.parseInterpolation(e,n);return!!i&&(this._parsePropertyAst(t,i,n,r,o),!0)},t.prototype._parsePropertyAst=function(t,e,n,r,o){r.push([t,e.source]),o.push(new su(t,e,iu.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,o){var i=this._parseBinding(e||"null",!1,n);r.push([t,i.source]),o.push(new su(t,i,iu.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var o=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,n),this._checkPipes(o,n),o}catch(t){return this._reportError(""+t,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,n){if(n.isAnimation)return new eo(n.name,ho.Animation,e.SecurityContext.NONE,n.expression,null,n.sourceSpan);var r=null,o=void 0,i=null,s=n.name.split("."),a=void 0;if(s.length>1)if("attr"==s[0]){i=s[1],this._validatePropertyOrAttributeName(i,n.sourceSpan,!0),a=Oe(this._schemaRegistry,t,i,!0);var c=i.indexOf(":");c>-1&&(i=u(i.substring(0,c),i.substring(c+1))),o=ho.Attribute}else"class"==s[0]?(i=s[1],o=ho.Class,a=[e.SecurityContext.NONE]):"style"==s[0]&&(r=s.length>2?s[2]:null,i=s[1],o=ho.Style,a=[e.SecurityContext.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(n.name),a=Oe(this._schemaRegistry,t,i,!1),o=ho.Property,this._validatePropertyOrAttributeName(i,n.sourceSpan,!1)),new eo(i,o,a[0],n.expression,r,n.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,o){Ae(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,o)):this._parseEvent(t,e,n,r,o)},t.prototype._parseAnimationEvent=function(t,e,n,r){var o=h(t,[t,""]),i=o[0],s=o[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new no(i,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+i+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+i+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,o){var i=p(t,[null,t]),s=i[0],a=i[1],u=this._parseAction(e,n);r.push([t,u.source]),o.push(new no(a,s,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof oi?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Ss.ERROR),this._targetErrors.push(new xs(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var o=r[n];this._reportError(o.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new uu;t.visit(r),r.pipes.forEach(function(t,r){var o=n.pipesByName.get(r);o?n._usedPipes.set(r,o):n._reportError("The pipe '"+r+"' could not be found",new Es(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,Ss.ERROR)},t}(),uu=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return Xr(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(xi),cu="select",lu="link",pu="rel",hu="href",fu="stylesheet",du="style",yu="script",mu="ngNonBindable",vu="ngProjectAs",gu={};gu.NG_CONTENT=0,gu.STYLE=1,gu.STYLESHEET=2,gu.SCRIPT=3,gu.OTHER=4,gu[gu.NG_CONTENT]="NG_CONTENT",gu[gu.STYLE]="STYLE",gu[gu.STYLESHEET]="STYLESHEET",gu[gu.SCRIPT]="SCRIPT",gu[gu.OTHER]="OTHER";var _u=function(){function t(t,e,n,r,o){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=o}return t}(),bu=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,wu="template",Cu="class",Eu=Co.parse("*")[0],Su="The <template> element is deprecated. Use <ng-template> instead",xu={},Tu=new e.InjectionToken("TemplateTransforms"),Pu=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return Xr(e,t),e}(xs),Au=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),Ou=function(){function t(t,e,n,r,o,i){this._config=t,this._exprParser=e,this._schemaRegistry=n,this._htmlParser=r,this._console=o,this.transforms=i}return t.prototype.parse=function(t,e,n,r,o,i){var s=this.tryParse(t,e,n,r,o,i),a=s.errors.filter(function(t){return t.level===Ss.WARNING}).filter(ke(["The template attribute is deprecated. Use an ng-template element instead.",Su])),u=s.errors.filter(function(t){return t.level===Ss.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0)throw v("Template parse errors:\n"+u.join("\n"));return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,n,r,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,n,r,o)},t.prototype.tryParseHtml=function(t,e,r,o,i){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=je(r),l=je(o),p=new Za(e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new au(this._exprParser,h,this._schemaRegistry,l,a),d=new Mu(this._config,p,c,f,this._schemaRegistry,i,a);s=lt(d,t.rootNodes,Nu),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Au(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=n(t,s)}),new Au(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=me(t.rootNodes);n.push.apply(n,r.errors),t=new Us(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return us.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var o=new Pu('Reference "#'+r+'" is defined several times',t.sourceSpan,Ss.ERROR);e.push(o)}})})},t}();Ou.decorators=[{type:z}],Ou.ctorParameters=function(){return[{type:Jo},{type:gs},{type:tu},{type:qa},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[Tu]}]}]};var Mu=function(){function t(t,e,n,r,o,i,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=r,this._schemaRegistry=o,this._schemas=i,this._targetErrors=s,this.selectorMatcher=new Eo,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,n.forEach(function(t,e){var n=Co.parse(t.selector);a.selectorMatcher.addSelectables(n,t),a.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Eu),r=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return r?new Jr(r,n,t.sourceSpan):new Yr(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new to(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,o=t.name,i=Me(t);if(i.type===gu.SCRIPT||i.type===gu.STYLE)return null;if(i.type===gu.STYLESHEET&&Te(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,y=[],m=Ve(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,Ss.WARNING)});t.attrs.forEach(function(t){var e,r,o=n._parseAttr(m,t,s,a,l,u,c),i=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==i?(n._reportError("The template attribute is deprecated. Use an ng-template element instead.",t.sourceSpan,Ss.WARNING),e=t.value):i.startsWith("*")&&(e=t.value,r=i.substring("*".length)+":");var v=null!=e;v&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),o||v||(y.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var v=Ne(o,s),g=this._parseDirectives(this.selectorMatcher,v),_=g.directives,b=g.matchElement,w=[],C=new Set,E=this._createDirectiveAsts(m,t.name,_,a,u,t.sourceSpan,w,C),S=this._createElementPropertyAsts(t.name,a,C),x=e.isTemplateElement||d,T=new Ya(this.providerViewContext,e.providerContext,x,E,y,w,m,r,t.sourceSpan),P=lt(i.nonBindable?Du:this,t.children,Iu.create(m,E,m?e.providerContext:T));T.afterElement();var A,O=null!=i.projectAs?Co.parse(i.projectAs)[0]:v,M=e.findNgContentIndex(O);if(i.type===gu.NG_CONTENT)t.children&&!t.children.every(De)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new po(this.ngContentCount++,d?null:M,t.sourceSpan);else if(m)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,S,t.sourceSpan),A=new so(y,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(E,t.sourceSpan);var R=d?null:e.findNgContentIndex(O);A=new io(o,y,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:R,t.sourceSpan,t.endSourceSpan||null)}if(d){var k=this.contentQueryStartId,I=Ne(wu,h),N=this._parseDirectives(this.selectorMatcher,I).directives,D=new Set,j=this._createDirectiveAsts(!0,t.name,N,p,[],t.sourceSpan,[],D),L=this._createElementPropertyAsts(t.name,p,D);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,t.sourceSpan);var V=new Ya(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],!0,k,t.sourceSpan);V.afterElement(),A=new so([],[],[],f,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,V.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,n,r,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(bu),p=!1;if(null!==l)if(p=!0,null!=l[1])this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r);else if(l[2])if(t){h=l[7];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[3]){var h=l[7];this._parseReference(h,u,c,i)}else l[4]?this._bindingParser.parseEvent(l[7],u,c,n,o):l[5]?(this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r),this._parseAssignmentEvent(l[7],u,c,n,o)):l[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[8]?(this._bindingParser.parsePropertyBinding(l[8],u,!1,c,n,r),this._parseAssignmentEvent(l[8],u,c,n,o)):l[9]?this._bindingParser.parsePropertyBinding(l[9],u,!1,c,n,r):l[10]&&this._bindingParser.parseEvent(l[10],u,c,n,o);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new oo(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new ku(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,o){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,o)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),o=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,o=o||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:o}},t.prototype._createDirectiveAsts=function(t,e,n,r,o,i,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Es(i.start,i.end,"Directive "+E(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),o.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new ro(e.name,de(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new uo(t,p,h,f,d,n)});return o.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=ye(Ga.TemplateRef)),s.push(new ro(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var o=new Map;e.forEach(function(t){var e=o.get(t.name);e&&!e.isLiteral||o.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],s=o.get(i);s&&(r.add(s.name),Le(s.expression)||n.push(new ao(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,o=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||o.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,o)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return E(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,o=this._findComponentDirectiveNames(t);o.length>0&&this._reportError("Components on an embedded template: "+o.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===ho.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!Le(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Ss.ERROR),this._targetErrors.push(new xs(e,t,n))},t}(),Ru=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Me(t);if(n.type===gu.SCRIPT||n.type===gu.STYLE||n.type===gu.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),o=Ne(t.name,r),i=e.findNgContentIndex(o),s=lt(this,t.children,Nu);return new io(t.name,lt(this,t.attrs),[],[],[],[],[],!1,[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new to(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Eu);return new Yr(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),ku=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}(),Iu=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var o=new Eo,i=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++)"*"===a[u]?i=u:o.addSelectables(Co.parse(a[u]),u);return new t(e,o,i,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Nu=new Iu(!0,new Eo,null,null),Du=new Ru,ju=function(){function t(){}return t.prototype.get=function(t){return null},t}(),Lu={provide:e.PACKAGE_ROOT_URL,useValue:"/"},Vu=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=We(t,n));var r=qe(n),o=this._packagePrefix;if(null!=o&&null!=r&&"package"==r[Uu.Scheme]){var i=r[Uu.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return n},t}();Vu.decorators=[{type:z}],Vu.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var Fu=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Uu={};Uu.Scheme=1,Uu.UserInfo=2,Uu.Domain=3,Uu.Port=4,Uu.Path=5,Uu.QueryData=6,Uu.Fragment=7,Uu[Uu.Scheme]="Scheme",Uu[Uu.UserInfo]="UserInfo",Uu[Uu.Domain]="Domain",Uu[Uu.Port]="Port",Uu[Uu.Path]="Path",Uu[Uu.QueryData]="QueryData",Uu[Uu.Fragment]="Fragment";var Hu=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var n=this,r=null,o=void 0;if(y(t.template)){if(y(t.templateUrl))throw v("'"+e.ɵstringify(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw v("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string");r=this.normalizeTemplateSync(t),o=Promise.resolve(r)}else{if(!y(t.templateUrl))throw v("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw v("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string");o=this.normalizeTemplateAsync(t)}return r&&0===r.styleUrls.length?new Oo(r):new Oo(null,o.then(function(t){return n.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(n).then(function(r){return e.normalizeLoadedTemplate(t,r,n)})},t.prototype.normalizeLoadedTemplate=function(t,n,r){var o=!!t.template,i=us.fromArray(t.interpolation),s=this._htmlParser.parse(n,j({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:o,templateUrl:r}),!0,i);if(s.errors.length>0)throw v("Template parse errors:\n"+s.errors.join("\n"));var a=this.normalizeStylesheet(new Wo({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),u=new Bu;lt(u,s.rootNodes);var c=this.normalizeStylesheet(new Wo({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:r})),l=t.encapsulation;null==l&&(l=this._config.defaultEncapsulation);var p=a.styles.concat(c.styles),h=a.styleUrls.concat(c.styleUrls);return l===e.ViewEncapsulation.Emulated&&0===p.length&&0===h.length&&(l=e.ViewEncapsulation.None),new $o({encapsulation:l,template:n,templateUrl:r,styles:p,styleUrls:h,ngContentSelectors:u.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:o,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new $o({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return n._fetch(t).then(function(r){var o=n.normalizeStylesheet(new Wo({styles:[r],moduleUrl:t}));return e.set(t,o),n._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(t){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(Te).map(function(t){return e._urlResolver.resolve(n,t)}),o=t.styles.map(function(t){var o=Pe(e._urlResolver,n,t);return r.push.apply(r,o.styleUrls),o.style});return new Wo({styles:o,styleUrls:r,moduleUrl:n})},t}();Hu.decorators=[{type:z}],Hu.ctorParameters=function(){return[{type:ju},{type:Vu},{type:Ua},{type:Jo}]};var Bu=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=Me(t);switch(n.type){case gu.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case gu.STYLE:var r="";t.children.forEach(function(t){t instanceof Ts&&(r+=t.value)}),this.styles.push(r);break;case gu.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,lt(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){lt(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){lt(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),qu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},zu=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isDirective=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some($e)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var o=Ke(r,$e);if(o){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(o,i,t)}}if(n)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,n,r){var o=[],i=[],s={},a={};return Object.keys(n).forEach(function(t){var r=Ke(n[t],function(t){return t instanceof e.Input});r&&(r.bindingPropertyName?o.push(t+": "+r.bindingPropertyName):o.push(t));var u=Ke(n[t],function(t){return t instanceof e.Output});u&&(u.bindingPropertyName?i.push(t+": "+u.bindingPropertyName):i.push(t)),n[t].filter(function(t){return t&&t instanceof e.HostBinding}).forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t}),n[t].filter(function(t){return t&&t instanceof e.HostListener}).forEach(function(e){var n=e.args||[];s["("+e.eventName+")"]=t+"("+n.join(",")+")"});var c=Ke(n[t],function(t){return t instanceof e.Query});c&&(a[t]=c)}),this._merge(t,o,i,s,a,r)},t.prototype._extractPublicName=function(t){return p(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var o=t[r],i=this._extractPublicName(o);e.has(i)||(e.add(i),n.push(o))}return n.reverse()},t.prototype._merge=function(t,n,r,o,i,s){var a=this._dedupeBindings(t.inputs?t.inputs.concat(n):n),u=this._dedupeBindings(t.outputs?t.outputs.concat(r):r),c=t.host?qu({},t.host,o):o,l=t.queries?qu({},t.queries,i):i;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:a,outputs:u,host:c,exportAs:t.exportAs,moduleId:t.moduleId,queries:l,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:a,outputs:u,host:c,exportAs:t.exportAs,queries:l,providers:t.providers})},t}();zu.decorators=[{type:z}],zu.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Gu=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Wu=/\.ngfactory\./,$u=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(nn)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=Ke(this._reflector.annotations(t),nn);if(r)return r;if(n)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();$u.decorators=[{type:z}],$u.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Ku=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isPipe=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(rn)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var o=Ke(r,rn);if(o)return o}if(n)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();Ku.decorators=[{type:z}],Ku.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Qu=function(){function t(){}return t.prototype.isLibraryFile=function(t){return!1},t.prototype.getLibraryFileName=function(t){return null},t.prototype.resolveSummary=function(t){return null},t.prototype.getSymbolsOf=function(t){return[]},t.prototype.getImportAs=function(t){return t},t}();Qu.decorators=[{type:z}],Qu.ctorParameters=function(){return[]};var Xu=new e.InjectionToken("ErrorCollector"),Zu=function(){function t(t,n,r,o,i,s,a,u,c,l,p){void 0===l&&(l=e.ɵreflector),this._config=t,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=o,this._summaryResolver=i,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,n){var r=null,o=function(){if(!r)throw new Error("Illegal state: Class "+n+" for type "+e.ɵstringify(t)+" is not compiled yet!");return r.apply(this,arguments)};return o.setDelegate=function(t){r=t,o.prototype=t.prototype},o.overriddenName=n,o},t.prototype.getGeneratedClass=function(t,e){return t instanceof fo?this._staticSymbolCache.get(Qe(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,x(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,P(t))},t.prototype.getHostComponentType=function(t){var e=E({reference:t})+"_Host";if(t instanceof fo)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof fo?this._staticSymbolCache.get(Qe(t.filePath),T(t)):{}},t.prototype.getComponentFactory=function(t,n,r,o){if(n instanceof fo)return this._staticSymbolCache.get(Qe(n.filePath),O(n));var i=this.getHostComponentViewClass(n);return e.ɵccf(t,n,i,r,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof fo||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n||null)}return n&&n.summaryKind===e?n:null},t.prototype._loadDirectiveMetadata=function(t,n,r){var o=this;if(this._directiveCache.has(n))return null;n=e.resolveForwardRef(n);var i=this.getNonNormalizedDirectiveMetadata(n),s=i.annotation,a=i.metadata,u=function(t){var e=new Ko({isHost:!1,type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(n,e),o._summaryCache.set(n,e.toSummary()),e};if(a.isComponent){var c=a.template,l=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:n,moduleUrl:cn(this._reflector,n,s),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation});return l.syncResult?(u(l.syncResult),null):r?(this._reportError(hn(n),n),null):l.asyncResult.then(u)}return u(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var n=this;if(!(t=e.resolveForwardRef(t)))return null;var r=this._nonNormalizedDirectiveCache.get(t);if(r)return r;var o=this._directiveResolver.resolve(t,!1);if(!o)return null;var i=void 0;if(o instanceof e.Component){G("styles",o.styles),G("styleUrls",o.styleUrls),W("interpolation",o.interpolation);var s=o.animations;i=new $o({encapsulation:m(o.encapsulation),template:m(o.template),templateUrl:m(o.templateUrl),styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:m(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[]})}var a=null,u=[],c=[],l=o.selector;o instanceof e.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+pn(t)+'"',[],t)),o.entryComponents&&(c=an(o.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(v("Directive "+pn(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+pn(t)+'"',[],t));var h=[],f=[];null!=o.queries&&(h=this._getQueriesMetadata(o.queries,!1,t),f=this._getQueriesMetadata(o.queries,!0,t));var d=Ko.create({isHost:!1,selector:l,exportAs:m(o.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs||[],outputs:o.outputs||[],host:o.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),r={metadata:d,annotation:o},this._nonNormalizedDirectiveCache.set(t,r),r},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(v("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+pn(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Go.Directive);return e||this._reportError(v("Illegal state: Could not load the summary for directive "+pn(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Go.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);(e=n?n.toSummary():null)&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=this.getNgModuleMetadata(t,n),i=[];return o&&(o.declaredDirectives.forEach(function(n){var o=r._loadDirectiveMetadata(t,n.reference,e);o&&i.push(o)}),o.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(i)},t.prototype.getNgModuleMetadata=function(t,n){var r=this;void 0===n&&(n=!0),t=e.resolveForwardRef(t);var o=this._ngModuleCache.get(t);if(o)return o;var i=this._ngModuleResolver.resolve(t,n);if(!i)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[];i.imports&&an(i.imports).forEach(function(e){var n=void 0;if(un(e))n=e;else if(e&&e.ngModule){var o=e;n=o.ngModule,o.providers&&p.push.apply(p,r._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+pn(n)+"'",[],e))}if(!n)return void r._reportError(v("Unexpected value '"+pn(e)+"' imported by the module '"+pn(t)+"'"),t);if(!r._checkSelfImport(t,n)){var i=r.getNgModuleSummary(n);if(!i)return void r._reportError(v("Unexpected "+r._getTypeDescriptor(e)+" '"+pn(e)+"' imported by the module '"+pn(t)+"'. Please add a @NgModule annotation."),t);c.push(i)}}),i.exports&&an(i.exports).forEach(function(e){if(!un(e))return void r._reportError(v("Unexpected value '"+pn(e)+"' exported by the module '"+pn(t)+"'"),t);var n=r.getNgModuleSummary(e);n?l.push(n):a.push(r._getIdentifierMetadata(e))});var y=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&an(i.declarations).forEach(function(e){if(!un(e))return void r._reportError(v("Unexpected value '"+pn(e)+"' declared by the module '"+pn(t)+"'"),t);var n=r._getIdentifierMetadata(e);if(r._directiveResolver.isDirective(e))y.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r._pipeResolver.isPipe(e))return void r._reportError(v("Unexpected "+r._getTypeDescriptor(e)+" '"+pn(e)+"' declared by the module '"+pn(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);y.addPipe(n),y.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}});var m=[],g=[];return a.forEach(function(e){if(y.directivesSet.has(e.reference))m.push(e),y.addExportedDirective(e);else{if(!y.pipesSet.has(e.reference))return void r._reportError(v("Can't export "+r._getTypeDescriptor(e.reference)+" "+pn(e.reference)+" from "+pn(t)+" as it was neither declared nor imported!"),t);g.push(e),y.addExportedPipe(e)}}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+pn(t)+"'",[],t)),i.entryComponents&&h.push.apply(h,an(i.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)})),i.bootstrap&&an(i.bootstrap).forEach(function(e){if(!un(e))return void r._reportError(v("Unexpected value '"+pn(e)+"' used in the bootstrap property of module '"+pn(t)+"'"),t);f.push(r._getIdentifierMetadata(e))}),h.push.apply(h,f.map(function(t){return r._getEntryComponentMetadata(t.reference)})),i.schemas&&d.push.apply(d,an(i.schemas)),o=new Xo({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:m,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:y,id:i.id||null}),h.forEach(function(t){return y.addEntryComponent(t)}),p.forEach(function(t){return y.addProvider(t,o.type)}),y.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(v("'"+pn(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);if(n&&n!==e)return void this._reportError(v("Type "+pn(t)+" is part of the declarations of 2 modules: "+pn(n)+" and "+pn(e)+"! Please consider moving "+pn(t)+" to a higher module that imports "+pn(n)+" and "+pn(e)+". You can also create a new NgModule that exports and includes "+pn(t)+" then import that NgModule in "+pn(n)+" and "+pn(e)+"."),e);this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Zo,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var o=R(t.provider.token),i=r.get(o);i||(i=new Set,r.set(o,i));var s=t.module.reference;!e.has(o)&&i.has(s)||(i.add(s),e.add(o),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Go.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Go.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,n,r){void 0===n&&(n=null),void 0===r&&(r=!0);var o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,n,r),lifecycleHooks:e.ɵLIFECYCLE_HOOKS_VALUES.filter(function(t){return tn(t,o.reference)})}},t.prototype._getFactoryMetadata=function(t,n){return void 0===n&&(n=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,n)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(v("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+pn(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Go.Pipe);return e||this._reportError(v("Illegal state: Could not load the summary for pipe "+pn(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var n=this._pipeResolver.resolve(t),r=new Qo({type:this._getTypeMetadata(t),name:n.name,pure:!!n.pure});return this._pipeCache.set(t,r),this._summaryCache.set(t,r.toSummary()),r},t.prototype._getDependenciesMetadata=function(t,n,r){var o=this;void 0===r&&(r=!0);var i=!1,s=(n||this._reflector.parameters(t)||[]).map(function(t){var n=!1,r=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?r=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(n=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:un(t)&&null==c&&(c=t)}):c=t,null==c?(i=!0,null):{isAttribute:n,isHost:r,isSelf:s,isSkipSelf:a,isOptional:u,token:o._getTokenMetadata(c)}});if(i){var a=s.map(function(t){return t?pn(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+pn(t)+": ("+a+").";r?this._reportError(v(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v5.x")}return s},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=e.resolveForwardRef(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,n,r,o,i){var s=this;return void 0===o&&(o=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,n,r,o);else{var c=void 0;if((a=e.resolveForwardRef(a))&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Yo(a.provide,a);else{if(!un(a)){if(void 0===a)return void s._reportError(v("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,n){return n<u?t.push(""+pn(e)):n==u?t.push("?"+pn(e)+"?"):n==u+1&&t.push("..."),t},[]).join(", ");return void s._reportError(v("Invalid "+(r||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c=new Yo(a,{useClass:a})}c.token===he(Ga.ANALYZE_FOR_ENTRY_COMPONENTS)?n.push.apply(n,s._getEntryComponentsFromProvider(c,i)):o.push(s.getProviderMetadata(c))}}),o},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(v("Invalid provider for "+pn(t.provide)+". useClass cannot be "+t.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],o=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(ln(t.useValue,o),o.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Go.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw v(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,o=this._getTokenMetadata(t.token);return t.useClass?(e=(n=this._getInjectableMetadata(t.useClass,t.dependencies)).diDeps,t.token===t.useClass&&(o={identifier:n})):t.useFactory&&(e=(r=this._getFactoryMetadata(t.useFactory,t.dependencies)).diDeps),{token:o,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,o=[];return Object.keys(t).forEach(function(i){var s=t[i];s.isViewQuery===e&&o.push(r._getQueryMetadata(s,i,n))}),o},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,o=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return o._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(v("Can't construct a query for the property \""+e+'" of "'+pn(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}();Zu.decorators=[{type:z}],Zu.ctorParameters=function(){return[{type:Jo},{type:$u},{type:zu},{type:Ku},{type:Qu},{type:tu},{type:Hu},{type:e.ɵConsole},{type:yo,decorators:[{type:e.Optional}]},{type:e.ɵReflectorReader},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Xu]}]}]};var Yu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xr(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Ao),Ju={};Ju.Const=0,Ju[Ju.Const]="Const";var tc=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),ec={};ec.Dynamic=0,ec.Bool=1,ec.String=2,ec.Int=3,ec.Number=4,ec.Function=5,ec.Inferred=6,ec[ec.Dynamic]="Dynamic",ec[ec.Bool]="Bool",ec[ec.String]="String",ec[ec.Int]="Int",ec[ec.Number]="Number",ec[ec.Function]="Function",ec[ec.Inferred]="Inferred";var nc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return Xr(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(tc),rc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.value=e,r}return Xr(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(tc),oc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}return Xr(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(tc),ic=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e||null,r}return Xr(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(tc),sc=new nc(ec.Dynamic),ac=new nc(ec.Inferred),uc=new nc(ec.Bool),cc=(new nc(ec.Int),new nc(ec.Number),new nc(ec.String),new nc(ec.Function),{});cc.Equals=0,cc.NotEquals=1,cc.Identical=2,cc.NotIdentical=3,cc.Minus=4,cc.Plus=5,cc.Divide=6,cc.Multiply=7,cc.Modulo=8,cc.And=9,cc.Or=10,cc.Lower=11,cc.LowerEquals=12,cc.Bigger=13,cc.BiggerEquals=14,cc[cc.Equals]="Equals",cc[cc.NotEquals]="NotEquals",cc[cc.Identical]="Identical",cc[cc.NotIdentical]="NotIdentical",cc[cc.Minus]="Minus",cc[cc.Plus]="Plus",cc[cc.Divide]="Divide",cc[cc.Multiply]="Multiply",cc[cc.Modulo]="Modulo",cc[cc.And]="And",cc[cc.Or]="Or",cc[cc.Lower]="Lower",cc[cc.LowerEquals]="LowerEquals",cc[cc.Bigger]="Bigger",cc[cc.BiggerEquals]="BiggerEquals";var lc=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.visitExpression=function(t,e){},t.prototype.prop=function(t,e){return new Ac(this,t,null,e)},t.prototype.key=function(t,e,n){return new Oc(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new vc(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new gc(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new _c(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new Cc(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Pc(cc.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Pc(cc.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Pc(cc.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Pc(cc.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Pc(cc.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Pc(cc.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Pc(cc.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Pc(cc.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Pc(cc.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Pc(cc.And,this,t,null,e)},t.prototype.or=function(t,e){return new Pc(cc.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Pc(cc.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Pc(cc.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Pc(cc.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Pc(cc.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(Lc,t)},t.prototype.cast=function(t,e){return new Sc(this,t,e)},t.prototype.toStmt=function(){return new Bc(this,null)},t}(),pc={};pc.This=0,pc.Super=1,pc.CatchError=2,pc.CatchStack=3,pc[pc.This]="This",pc[pc.Super]="Super",pc[pc.CatchError]="CatchError",pc[pc.CatchStack]="CatchStack";var hc=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return"string"==typeof e?(o.name=e,o.builtin=null):(o.name=null,o.builtin=e),o}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new fc(this.name,t,null,this.sourceSpan)},e}(lc),fc=function(t){function e(e,n,r,o){var i=t.call(this,r||n.type,o)||this;return i.name=e,i.value=n,i}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new Uc(this.name,this.value,t,e,this.sourceSpan)},e}(lc),dc=function(t){function e(e,n,r,o,i){var s=t.call(this,o||r.type,i)||this;return s.receiver=e,s.index=n,s.value=r,s}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(lc),yc=function(t){function e(e,n,r,o,i){var s=t.call(this,o||r.type,i)||this;return s.receiver=e,s.name=n,s.value=r,s}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(lc),mc={};mc.ConcatArray=0,mc.SubscribeObservable=1,mc.Bind=2,mc[mc.ConcatArray]="ConcatArray",mc[mc.SubscribeObservable]="SubscribeObservable",mc[mc.Bind]="Bind";var vc=function(t){function e(e,n,r,o,i){var s=t.call(this,o,i)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(lc),gc=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.fn=e,i.args=n,i}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(lc),_c=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.classExpr=e,i.args=n,i}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(lc),bc=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.value=e,o}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(lc),wc=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,n,o)||this;return i.value=e,i.typeParams=r,i}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(lc),Cc=function(t){function e(e,n,r,o,i){void 0===r&&(r=null);var s=t.call(this,o||n.type,i)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(lc),Ec=function(t){function e(e,n){var r=t.call(this,uc,n)||this;return r.condition=e,r}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(lc),Sc=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.value=e,o}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(lc),xc=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),Tc=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.params=e,i.statements=n,i}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new Hc(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(lc),Pc=function(t){function e(e,n,r,o,i){var s=t.call(this,o||n.type,i)||this;return s.operator=e,s.rhs=r,s.lhs=n,s}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(lc),Ac=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.receiver=e,i.name=n,i}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new yc(this.receiver,this.name,t,null,this.sourceSpan)},e}(lc),Oc=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.receiver=e,i.index=n,i}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new dc(this.receiver,this.index,t,null,this.sourceSpan)},e}(lc),Mc=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.entries=e,o}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(lc),Rc=function(){function t(t,e,n){void 0===n&&(n=!1),this.key=t,this.value=e,this.quoted=n}return t}(),kc=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.entries=e,o.valueType=null,n&&(o.valueType=n.valueType),o}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(lc),Ic=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return Xr(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(lc),Nc=new hc(pc.This,null,null),Dc=new hc(pc.Super,null,null),jc=(new hc(pc.CatchError,null,null),new hc(pc.CatchStack,null,null),new bc(null,null,null)),Lc=new bc(null,ac,null),Vc={};Vc.Final=0,Vc.Private=1,Vc[Vc.Final]="Final",Vc[Vc.Private]="Private";var Fc=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.visitStatement=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Uc=function(t){function e(e,n,r,o,i){void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.name=e,s.value=n,s.type=r||n.type,s}return Xr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(Fc),Hc=function(t){function e(e,n,r,o,i,s){void 0===i&&(i=null);var a=t.call(this,i,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=o||null,a}return Xr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(Fc),Bc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return Xr(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(Fc),qc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return Xr(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(Fc),zc=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Gc=function(t){function e(e,n,r){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.name=e,o}return Xr(e,t),e}(zc),Wc=function(t){function e(e,n,r,o,i){void 0===i&&(i=null);var s=t.call(this,o,i)||this;return s.name=e,s.params=n,s.body=r,s}return Xr(e,t),e}(zc),$c=function(t){function e(e,n,r,o){void 0===o&&(o=null);var i=t.call(this,r,o)||this;return i.name=e,i.body=n,i}return Xr(e,t),e}(zc),Kc=function(t){function e(e,n,r,o,i,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=o,c.constructorMethod=i,c.methods=s,c}return Xr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(Fc),Qc=function(t){function e(e,n,r,o){void 0===r&&(r=[]);var i=t.call(this,null,o)||this;return i.condition=e,i.trueCase=n,i.falseCase=r,i}return Xr(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(Fc),Xc=function(t){function e(e,n,r){var o=t.call(this,null,r)||this;return o.bodyStmts=e,o.catchStmts=n,o}return Xr(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(Fc),Zc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return Xr(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(Fc),Yc=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new fc(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new dc(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new yc(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new vc(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new gc(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new _c(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new Cc(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new Ec(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Sc(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new Tc(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Pc(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Ac(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Oc(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new Mc(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new Rc(t.key,t.value.visitExpression(n,e),t.quoted)}),o=new ic(t.valueType,null);return this.transformExpr(new kc(r,o,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Ic(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new Uc(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new Hc(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new Bc(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new qc(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),o=t.getters.map(function(t){return new $c(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),i=t.constructorMethod&&new Wc(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new Wc(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new Kc(t.name,r,t.fields,o,i,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new Qc(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new Xc(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new Zc(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),Jc=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return Xr(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return t.name&&this.varNames.add(t.name),null},e}(function(){function t(){}return t.prototype.visitReadVarExpr=function(t,e){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t,e){return t},t.prototype.visitExternalExpr=function(t,e){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}()),tl=function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}return Xr(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e}(Yc),el=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return bn(t.map(function(t){return d(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],o=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){r.push(new Rc(e,d(t[e],n,null),o.has(e)))}),new kc(r,e)},t.prototype.visitPrimitive=function(t,e){return Sn(t,e)},t.prototype.visitOther=function(t,e){return t instanceof lc?t:vn({reference:t})},t}(),nl=function(){function t(t){this.compType=t}return t}(),rl=function(){function t(t,e,n){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=n}return t}(),ol=function(){function t(){}return t.prototype.compile=function(t,e){var n=ct("NgModule",t.type),r=[],o=[],i=t.transitiveModule.entryComponents.map(function(e){return t.bootstrapComponents.some(function(t){return t.reference===e.componentType})&&o.push({reference:e.componentFactory}),r.push(new nl(e.componentType)),{reference:e.componentFactory}}),s=new il(t,i,o,n);new Ja(t,e,n).parse().forEach(function(t){return s.addProvider(t)});var a=s.build(),u=E(t.type)+"NgFactory",c=[a,mn(u).set(vn(fe(Ga.NgModuleFactory)).instantiate([mn(a.name),vn(t.type)],gn(fe(Ga.NgModuleFactory),[gn(t.type)],[Ju.Const]))).toDeclStmt(null,[Vc.Final])];if(t.id){var l=vn(fe(Ga.RegisterModuleFactoryFn)).callFn([Sn(t.id),mn(u)]).toStmt();c.push(l)}return new rl(c,u,r)},t}();ol.decorators=[{type:z}],ol.ctorParameters=function(){return[]};var il=function(){function t(t,e,n,r){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=n,this._sourceSpan=r,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._lazyProps=new Map,this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var n=this,r=t.providers.map(function(t){return n._getProviderValue(t)}),o="_"+M(t.token)+"_"+this._instances.size,i=this._createProviderProperty(o,t,r,t.multiProvider,t.eager);if(-1!==t.lifecycleHooks.indexOf(e.ɵLifecycleHooks.OnDestroy)){var s=i.callMethod("ngOnDestroy",[]);t.eager||(s=this._lazyProps.get(i.name).and(s)),this._destroyStmts.push(s.toStmt())}this._tokens.push(t.token),this._instances.set(R(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var n=t._instances.get(R(e));return new Qc(al.token.identical(An(e)),[new qc(n)])}),n=[new Wc("createInternal",[],this._createStmts.concat(new qc(this._instances.get(this._ngModuleMeta.type.reference))),gn(this._ngModuleMeta.type)),new Wc("getInternal",[new xc(al.token.name,sc),new xc(al.notFoundResult.name,sc)],e.concat([new qc(al.notFoundResult)]),sc),new Wc("destroyInternal",[],this._destroyStmts)],r=[mn(sl.parent.name),bn(this._entryComponentFactories.map(function(t){return vn(t)})),bn(this._bootstrapComponentFactories.map(function(t){return vn(t)}))];return xn({name:E(this._ngModuleMeta.type)+"Injector",ctorParams:[new xc(sl.parent.name,gn(fe(Ga.Injector)))],parent:vn(fe(Ga.NgModuleInjector),[gn(this._ngModuleMeta.type)]),parentArgs:r,builders:[{methods:n},this]})},t.prototype._getProviderValue=function(t){var e,n=this;if(null!=t.useExisting)e=this._getDependency({token:t.useExisting});else if(null!=t.useFactory){o=(r=t.deps||t.useFactory.diDeps).map(function(t){return n._getDependency(t)});e=vn(t.useFactory).callFn(o)}else if(null!=t.useClass){var r=t.deps||t.useClass.diDeps,o=r.map(function(t){return n._getDependency(t)});e=vn(t.useClass).instantiate(o,gn(t.useClass))}else e=Pn(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,n,r,o){var i,s;if(r?(i=bn(n),s=new oc(sc)):(i=n[0],s=n[0].type),s||(s=sc),o)this.fields.push(new Gc(t,s)),this._createStmts.push(Nc.prop(t).set(i).toStmt());else{var a=Nc.prop("_"+t);this.fields.push(new Gc(a.name,s));var u=[new Qc(a.isBlank(),[a.set(i).toStmt()]),new qc(a)];this.getters.push(new $c(t,u,s)),this._lazyProps.set(t,a)}return Nc.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=Sn(t.value)),t.isSkipSelf||(t.token&&(R(t.token)===he(Ga.Injector)?e=Nc:R(t.token)===he(Ga.ComponentFactoryResolver)&&(e=Nc.prop("componentFactoryResolver"))),e||(e=this._instances.get(R(t.token)))),!e){var n=[An(t.token)];t.isOptional&&n.push(jc),e=sl.parent.callMethod("get",n)}return e},t}(),sl=function(){function t(){}return t}();sl.parent=Nc.prop("parent");var al=function(){function t(){}return t}();al.token=mn("token"),al.notFoundResult=mn("notFoundResult");var ul=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(o,i){e.set(o,i),n.push(o),r.push(t.sourcesContent.get(o)||null)});var o="",i=0,s=0,a=0,u=0;return this.lines.forEach(function(t){i=0,o+=t.map(function(t){var n=Mn(t.col0-i);return i=t.col0,null!=t.sourceUrl&&(n+=Mn(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=Mn(t.sourceLine0-a),a=t.sourceLine0,n+=Mn(t.sourceCol0-u),u=t.sourceCol0),n}).join(","),o+=";"}),o=o.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:o}},t.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+On(JSON.stringify(this,null,0)):""},t}(),cl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ll=/'|\\|\n|\r|\$/g,pl=/^[$A-Z_][0-9A-Z_$]*$/i,hl=" ",fl=mn("error",null,null),dl=mn("stack",null,null),yl=function(){function t(t){this.indent=t,this.parts=[],this.srcSpans=[]}return t}(),ml=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new yl(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new yl(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?In(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,n){void 0===n&&(n=0);for(var r=new ul(e),o=!1,i=function(){o||(r.addSource(t," ").addMapping(0,t,0,0),o=!0)},s=0;s<n;s++)r.addLine(),i();return this.sourceLines.forEach(function(t,e){r.addLine();for(var n=t.srcSpans,s=t.parts,a=t.indent*hl.length,u=0;u<n.length&&!n[u];)a+=s[u].length,u++;for(u<n.length&&0===e&&0===a?o=!0:i();u<n.length;){var c=n[u],l=c.start.file,p=c.start.line,h=c.start.col;for(r.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<n.length&&(c===n[u]||!n[u]);)a+=s[u].length,u++}}),r},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),vl=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(t,e){},t.prototype.visitDeclareClassStmt=function(t,e){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(t,e){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitDeclareVarStmt=function(t,e){},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(t){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case pc.Super:n="super";break;case pc.This:n="this";break;case pc.CatchError:n=fl.name;break;case pc.CatchStack:n=dl.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,kn(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitExternalExpr=function(t,e){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(t,e){},t.prototype.visitDeclareFunctionStmt=function(t,e){},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case cc.Equals:n="==";break;case cc.Identical:n="===";break;case cc.NotEquals:n="!=";break;case cc.NotIdentical:n="!==";break;case cc.And:n="&&";break;case cc.Or:n="||";break;case cc.Plus:n="+";break;case cc.Minus:n="-";break;case cc.Divide:n="/";break;case cc.Multiply:n="*";break;case cc.Modulo:n="%";break;case cc.Lower:n="<";break;case cc.LowerEquals:n="<=";break;case cc.Bigger:n=">";break;case cc.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var n=t.entries.length>1;return e.print(t,"[",n),e.incIndent(),this.visitAllExpressions(t.entries,e,",",n),e.decIndent(),e.print(t,"]",n),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.length>1;return e.print(t,"{",r),e.incIndent(),this.visitAllObjects(function(r){e.print(t,kn(r.key,n._escapeDollarInStrings,r.quoted)+": "),r.value.visitExpression(n,e)},t.entries,e,",",r),e.decIndent(),e.print(t,"}",r),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n,r){var o=this;void 0===r&&(r=!1),this.visitAllObjects(function(t){return t.visitExpression(o,e)},t,e,n,r)},t.prototype.visitAllObjects=function(t,e,n,r,o){void 0===o&&(o=!1);for(var i=0;i<e.length;i++)i>0&&n.print(null,r,o),t(e[i]);o&&n.println()},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),gl="/debug/lib",_l=function(){function t(t){this._importResolver=t}return t.prototype.emitStatements=function(t,e,n,r,o){var i=this;void 0===o&&(o="");var s=new bl(e,this._importResolver),a=ml.createRoot(r);s.visitAllStatements(n,a);var u=o?o.split("\n"):[];s.reexports.forEach(function(t,n){var r=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+r+"} from '"+i._importResolver.fileNameToModuleName(n,e)+"';")}),s.importsWithPrefixes.forEach(function(t,n){u.push("import * as "+t+" from '"+i._importResolver.fileNameToModuleName(n,e)+"';")});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")},t}(),bl=function(t){function e(e,n){var r=t.call(this,!1)||this;return r._genFilePath=e,r._importResolver=n,r.typeExpression=0,r.importsWithPrefixes=new Map,r.reexports=new Map,r}return Xr(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=ac?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof wc&&!t.type){var n=this._resolveStaticSymbol(t.value.value),r=n.name,o=n.filePath;if(0===n.members.length&&o!==this._genFilePath){var i=this.reexports.get(o);return i||(i=[],this.reexports.set(o,i)),i.push({name:r,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(Vc.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(Vc.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(Vc.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(Vc.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+fl.name+") {"),e.incIndent();var n=[dl.set(fl.prop("stack",null)).toDeclStmt(null,[Vc.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case ec.Bool:n="boolean";break;case ec.Dynamic:n="any";break;case ec.Function:n="Function";break;case ec.Number:case ec.Int:n="number";break;case ec.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case mc.ConcatArray:e="concat";break;case mc.SubscribeObservable:e="subscribe";break;case mc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof fo))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var n=this._importResolver.getTypeArity(e)||void 0,r=this._importResolver.getImportAs(e)||e;return{name:r.name,filePath:r.filePath,members:r.members,arity:n}},e.prototype._visitIdentifier=function(t,e,n){var r=this,o=this._resolveStaticSymbol(t),i=o.name,s=o.filePath,a=o.members,u=o.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),n.print(null,c+".")}if(a.length?(n.print(null,i),n.print(null,"."),n.print(null,a.join("."))):n.print(null,i),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(n.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),p>0)for(var h=0;h<p;h++)(h>0||l>0)&&n.print(null,","),n.print(null,"any");n.print(null,">")}}},e.prototype._printColonType=function(t,e,n){t!==ac&&(e.print(null,":"),this.visitType(t,e,n))},e}(vl),wl={};Dn(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Dn(e.SecurityContext.STYLE,["*|style"]),Dn(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Dn(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var Cl="boolean",El="number",Sl="string",xl="object",Tl=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Pl={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Al=function(t){function n(){var e=t.call(this)||this;return e._schema={},Tl.forEach(function(t){var n={},r=t.split("|"),o=r[0],i=r[1].split(","),s=o.split("^"),a=s[0],u=s[1];a.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var c=u&&e._schema[u.toLowerCase()];c&&Object.keys(c).forEach(function(t){n[t]=c[t]}),i.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=Cl;break;case"#":n[t.substring(1)]=El;break;case"%":n[t.substring(1)]=xl;break;default:n[t]=Sl}})}),e}return Xr(n,t),n.prototype.hasProperty=function(t,n,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!1;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[n]},n.prototype.hasElement=function(t,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!0;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},n.prototype.securityContext=function(t,n,r){r&&(n=this.getMappedPropName(n)),t=t.toLowerCase(),n=n.toLowerCase();var o=wl[t+"|"+n];return o||((o=wl["*|"+n])||e.SecurityContext.NONE)},n.prototype.getMappedPropName=function(t){return Pl[t]||t},n.prototype.getDefaultComponentElementName=function(){return"ng-component"},n.prototype.validateProperty=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=...\nIf '"+t+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},n.prototype.validateAttribute=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}:{error:!1}},n.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},n.prototype.normalizeAnimationStyleProperty=function(t){return l(t)},n.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",o=n.toString().trim(),i=null;if(jn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(i="Please provide a CSS unit value for "+e+":"+n)}return{error:i,value:o+r}},n}(tu);Al.decorators=[{type:z}],Al.ctorParameters=function(){return[]};var Ol=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=Vn(t);return t=Ln(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Rl,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(kl,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0].replace(t[1],"").replace(t[2],"");return t[4]+n})},t.prototype._scopeCssText=function(t,e,n){var r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),(t=t+"\n"+r).trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,n="";for(Il.lastIndex=0;null!==(e=Il.exec(t));)n+=e[0].replace(e[2],"").replace(e[1],e[4])+"\n\n";return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,Ll,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,Vl,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var r=t[2].split(","),o=[],i=0;i<r.length;i++){var s=r[i].trim();if(!s)break;o.push(n(Fl,s,t[3]))}return o.join(",")}return Fl+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf(Nl)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(Nl,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return Hl.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return Fn(t,function(t){var o=t.selector,i=t.content;return"@"!=t.selector[0]?o=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=r._scopeSelectors(t.content,e,n)),new tp(o,i)})},t.prototype._scopeSelector=function(t,e,n,r){var o=this;return t.split(",").map(function(t){return t.trim().split(Bl)}).map(function(t){var i=t[0],s=t.slice(1);return[function(t){return o._selectorNeedsScoping(t,e)?r?o._applyStrictSelectorScope(t,e,n):o._applySelectorScope(t,e,n):t}(i)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=t.replace(e,"\\[").replace(n,"\\]"),new RegExp("^("+t+")"+ql,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(zl.lastIndex=0,zl.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(Ul,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,o){return e+r+n+o})}).replace(zl,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){for(var r,o=this,i=/\[is=([^\]]*)\]/g,s="["+(e=e.replace(i,function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e[0]}))+"]",a=function(t){var r=t.trim();if(!r)return"";if(t.indexOf(Fl)>-1)r=o._applySimpleSelectorScope(t,e,n);else{var i=t.replace(zl,"");if(i.length>0){var a=i.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+s+a[2]+a[3])}}return r},u=new Ml(t),c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=(t=u.content()).indexOf(Fl);null!==(r=p.exec(t));){var f=r[1],d=t.slice(l,r.index).trim();c+=(l>=h?a(d):d)+" "+f+" ",l=p.lastIndex}return c+=a(t.substring(l)),u.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(Wl,Dl).replace(Gl,Nl)},t}(),Ml=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var o="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+o})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),Rl=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,kl=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Il=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Nl="-shadowcsshost",Dl="-shadowcsscontext",jl=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Ll=new RegExp("("+Nl+jl,"gim"),Vl=new RegExp("("+Dl+jl,"gim"),Fl=Nl+"-no-combinator",Ul=/-shadowcsshost-no-combinator([^\s]*)/,Hl=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Bl=/(?:>>>)|(?:\/deep\/)/g,ql="([>\\s~+[.,{:][\\s\\S]*)?$",zl=/-shadowcsshost/gim,Gl=/:host/gim,Wl=/:host-context/gim,$l=/\/\*\s*[\s\S]*?\*\//g,Kl=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,Ql=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Xl=/([{}])/g,Zl="{",Yl="}",Jl="%BLOCK%",tp=function(){function t(t,e){this.selector=t,this.content=e}return t}(),ep=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),np=function(){function t(t,e,n,r){this.name=t,this.moduleUrl=e,this.isShimmed=n,this.valuePlaceholder=r}return t}(),rp=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),op=function(){function t(t,e,n,r,o){this.statements=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=o}return t}(),ip=function(){function t(t){this._urlResolver=t,this._shadowCss=new Ol}return t.prototype.compileComponent=function(t){var e=this,n=t.template,r=[],o=this._compileStyles(t,new Wo({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:S(t.type)}),!0);return n.externalStylesheets.forEach(function(n){var o=e._compileStyles(t,n,!1);r.push(o)}),new rp(o,r)},t.prototype._compileStyles=function(t,n,r){for(var o=this,i=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=n.styles.map(function(t){return Sn(o._shimIfNeeded(t,i))}),a=[],u=0;u<n.styleUrls.length;u++){var c={reference:null};a.push(new np(Hn(null),n.styleUrls[u],i,c)),s.push(new wc(c))}var l=Hn(r?t:null),p=mn(l).set(bn(s,new oc(sc,[Ju.Const]))).toDeclStmt(null,[Vc.Final]);return new op([p],l,a,i,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}();ip.decorators=[{type:z}],ip.ctorParameters=function(){return[{type:Vu}]};var sp=function(){function t(){}return t}();sp.event=mn("$event");var ap=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),up=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),cp={};cp.Statement=0,cp.Expression=1,cp[cp.Statement]="Statement",cp[cp.Expression]="Expression";var lp=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return Xr(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=[t.exp].concat(t.args).map(function(t){return t.visit(n,e)});return new fp(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new fp(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new fp(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(Ti),pp=function(){function t(t,e,n){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=cc.Plus;break;case"-":n=cc.Minus;break;case"*":n=cc.Multiply;break;case"/":n=cc.Divide;break;case"%":n=cc.Modulo;break;case"&&":n=cc.And;break;case"||":n=cc.Or;break;case"==":n=cc.Equals;break;case"!=":n=cc.NotEquals;break;case"===":n=cc.Identical;break;case"!==":n=cc.NotIdentical;break;case"<":n=cc.Lower;break;case">":n=cc.Bigger;break;case"<=":n=cc.LowerEquals;break;case">=":n=cc.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Zn(e,new Pc(n,this.visit(t.left,cp.Expression),this.visit(t.right,cp.Expression)))},t.prototype.visitChain=function(t,e){return Qn(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return Zn(e,this.visit(t.condition,cp.Expression).conditional(this.visit(t.trueExp,cp.Expression),this.visit(t.falseExp,cp.Expression)))},t.prototype.visitPipe=function(t,e){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,cp.Expression);return n=t instanceof fp?t.converter(r):this.visit(t.target,cp.Expression).callFn(r),Zn(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return Xn(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Xn(e,t);for(var n=[Sn(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(Sn(t.strings[r])),n.push(this.visit(t.expressions[r],cp.Expression));return n.push(Sn(t.strings[t.strings.length-1])),t.expressions.length<=9?vn(fe(Ga.inlineInterpolate)).callFn(n):vn(fe(Ga.interpolate)).callFn([n[0],bn(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):Zn(e,this.visit(t.obj,cp.Expression).key(this.visit(t.key,cp.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this.visit(t.obj,cp.Expression),r=this.visit(t.key,cp.Expression),o=this.visit(t.value,cp.Expression);return Zn(e,n.key(r).set(o))},t.prototype.visitLiteralArray=function(t,e){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(t,e){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return Zn(e,Sn(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,cp.Expression),o=null,i=this.visit(t.receiver,cp.Expression);if(i===this._implicitReceiver){var s=this._getLocal(t.name);s&&(o=s.callFn(r))}return null==o&&(o=i.callMethod(t.name,r)),Zn(e,o)},t.prototype.visitPrefixNot=function(t,e){return Zn(e,Cn(this.visit(t.expression,cp.Expression)))},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,o=this.visit(t.receiver,cp.Expression);return o===this._implicitReceiver&&(r=this._getLocal(t.name)),null==r&&(r=o.prop(t.name)),Zn(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this.visit(t.receiver,cp.Expression);if(n===this._implicitReceiver&&this._getLocal(t.name))throw new Error("Cannot assign to a reference or variable!");return Zn(e,n.prop(t.name).set(this.visit(t.value,cp.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var n=this;return t.map(function(t){return n.visit(t,e)})},t.prototype.visitQuote=function(t,e){throw new Error("Quotes are not supported for evaluation!\n Statement: "+t.uninterpretedExpression+" located at "+t.location)},t.prototype.visit=function(t,e){var n=this._resultMap.get(t);return n||(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,n){var r=this.visit(e.receiver,cp.Expression),o=void 0;this.needsTemporary(e.receiver)&&(r=(o=this.allocateTemporary()).set(r),this._resultMap.set(e.receiver,o));var i=r.isBlank();e instanceof wi?this._nodeMap.set(e,new bi(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new ui(e.span,e.receiver,e.name));var s=this.visit(t,cp.Expression);return this._nodeMap.delete(e),o&&this.releaseTemporary(o),Zn(n,i.conditional(Sn(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,n=function(t,n){return(e._nodeMap.get(n)||n).visit(t)};return t.visit({visitBinary:function(t){return null},visitChain:function(t){return null},visitConditional:function(t){return null},visitFunctionCall:function(t){return null},visitImplicitReceiver:function(t){return null},visitInterpolation:function(t){return null},visitKeyedRead:function(t){return n(this,t.obj)},visitKeyedWrite:function(t){return null},visitLiteralArray:function(t){return null},visitLiteralMap:function(t){return null},visitLiteralPrimitive:function(t){return null},visitMethodCall:function(t){return n(this,t.receiver)},visitPipe:function(t){return null},visitPrefixNot:function(t){return null},visitPropertyRead:function(t){return n(this,t.receiver)},visitPropertyWrite:function(t){return null},visitQuote:function(t){return null},visitSafeMethodCall:function(t){return n(this,t.receiver)||t},visitSafePropertyRead:function(t){return n(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,n=function(t,n){return n&&(e._nodeMap.get(n)||n).visit(t)},r=function(t,e){return e.some(function(e){return n(t,e)})};return t.visit({visitBinary:function(t){return n(this,t.left)||n(this,t.right)},visitChain:function(t){return!1},visitConditional:function(t){return n(this,t.condition)||n(this,t.trueExp)||n(this,t.falseExp)},visitFunctionCall:function(t){return!0},visitImplicitReceiver:function(t){return!1},visitInterpolation:function(t){return r(this,t.expressions)},visitKeyedRead:function(t){return!1},visitKeyedWrite:function(t){return!1},visitLiteralArray:function(t){return!0},visitLiteralMap:function(t){return!0},visitLiteralPrimitive:function(t){return!1},visitMethodCall:function(t){return!0},visitPipe:function(t){return!0},visitPrefixNot:function(t){return n(this,t.expression)},visitPropertyRead:function(t){return!1},visitPropertyWrite:function(t){return!1},visitQuote:function(t){return!1},visitSafeMethodCall:function(t){return!0},visitSafePropertyRead:function(t){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new hc(Wn(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Wn(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),hp=function(){function t(){}return t.prototype.getLocal=function(t){return t===sp.event.name?sp.event:null},t}(),fp=function(t){function e(e,n,r){var o=t.call(this,e,null,n)||this;return o.args=n,o.converter=r,o}return Xr(e,t),e}(Ci),dp="class",yp="style",mp=function(){function t(t,e,n){this.statements=t,this.viewClassVar=e,this.rendererTypeVar=n}return t}(),vp=function(){function t(t,e){this._genConfigNext=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,n,r){var o=0,i=dr(e),s=[],a=void 0;if(!t.isHost){var u=t.template,c=[];u.animations&&u.animations.length&&c.push(new Rc("animation",Pn(u.animations),!0));var l=mn(T(t.type.reference));a=l.name,s.push(l.set(vn(fe(Ga.createRendererType2)).callFn([new kc([new Rc("encapsulation",Sn(u.encapsulation)),new Rc("styles",n),new Rc("data",new kc(c))])])).toDeclStmt(gn(fe(Ga.RendererType2)),[Vc.Final]))}var p=function(e){var n=o++;return new Sp(e,t,n,r,i,p)},h=p(null);return h.visitAll([],e),s.push.apply(s,h.build()),new mp(s,h.viewName,a)},t}();vp.decorators=[{type:z}],vp.ctorParameters=function(){return[{type:Jo},{type:tu}]};var gp=mn("l"),_p=mn("v"),bp=mn("ck"),wp=mn("co"),Cp=mn("en"),Ep=mn("ad"),Sp=function(){function t(t,e,n,r,o,i){this.parent=t,this.component=e,this.embeddedViewIndex=n,this.usedPipes=r,this.staticQueryIds=o,this.viewBuilderFactory=i,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?sc:gn(this.component.type)}return Object.defineProperty(t.prototype,"viewName",{get:function(){return x(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var r=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(r.purePipeNodeIndices[t.name]=r._createPipe(null,t))}),!this.parent){var o=yr(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var n=e+1,i=t.first?0:1,s=134217728|gr(o,n,t.first);r.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:vn(fe(Ga.queryDef)).callFn([Sn(s),Sn(n),new kc([new Rc(t.propertyName,Sn(i))])])}})})}n(this,e),this.parent&&(0===e.length||ar(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:vn(fe(Ga.anchorDef)).callFn([Sn(0),jc,jc,Sn(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var n=this._createNodeExpressions(),r=n.updateRendererStmts,o=n.updateDirectivesStmts,i=n.nodeDefExprs,s=this._createUpdateFn(r),a=this._createUpdateFn(o),u=0;this.parent||this.component.changeDetection!==e.ChangeDetectionStrategy.OnPush||(u|=2);var c=new Hc(this.viewName,[new xc(gp.name)],[new qc(vn(fe(Ga.viewDef)).callFn([Sn(u),bn(i),a,s]))],gn(fe(Ga.ViewDefinition)));return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&fn(t).has(wp.name)&&n.push(wp.set(_p.prop("component")).toDeclStmt(this.compType)),e=En([new xc(bp.name,ac),new xc(_p.name,ac)],n.concat(t),ac)}else e=jc;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:vn(fe(Ga.ngContentDef)).callFn([Sn(t.ngContentIndex),Sn(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:vn(fe(Ga.textDef)).callFn([Sn(t.ngContentIndex),bn([Sn(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var o=t.value.ast,i=o.expressions.map(function(e,o){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:o,sourceSpan:t.sourceSpan,context:wp,value:e})});this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:vn(fe(Ga.textDef)).callFn([Sn(t.ngContentIndex),bn(o.strings.map(function(t){return Sn(t)}))]),updateRenderer:i}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var o=this._visitElementOrTemplate(r,t),i=o.flags,s=o.queryMatchesExpr,a=o.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(t.variables,t.children);var c=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|i,nodeDef:vn(fe(Ga.anchorDef)).callFn([Sn(i),s,Sn(t.ngContentIndex),Sn(c),n._createElementHandleEventFn(r,a),mn(u.viewName)])}}},t.prototype.visitElement=function(t,e){var r=this,i=this.nodes.length;this.nodes.push(null);var s=o(t.name)?null:t.name,a=this._visitElementOrTemplate(i,t),u=a.flags,c=a.usedEvents,l=a.queryMatchesExpr,p=a.hostBindings,h=a.hostEvents,f=[],d=[],y=[];if(s){var m=t.inputs.map(function(t){return{context:wp,inputAst:t,dirAst:null}}).concat(p);m.length&&(d=m.map(function(t,e){return r._preprocessUpdateExpression({context:t.context,nodeIndex:i,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),f=m.map(function(t){return cr(t.inputAst,t.dirAst)})),y=c.map(function(t){var e=t[0],n=t[1];return bn([Sn(e),Sn(n)])})}n(this,t.children);var v=this.nodes.length-i-1,g=t.directives.find(function(t){return t.directive.isComponent}),_=jc,b=jc;g&&(b=vn({reference:g.directive.componentViewType}),_=vn({reference:g.directive.rendererType})),this.nodes[i]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|u,nodeDef:vn(fe(Ga.elementDef)).callFn([Sn(u),l,Sn(t.ngContentIndex),Sn(v),Sn(s),s?lr(t):jc,f.length?bn(f):jc,y.length?bn(y):jc,r._createElementHandleEventFn(i,h),b,_]),updateRenderer:d}}},t.prototype._visitElementOrTemplate=function(t,n){var r=this,o=0;n.hasViewContainer&&(o|=16777216);var i=new Map;n.outputs.forEach(function(t){var n=vr(t,null),r=n.name,o=n.target;i.set(e.ɵelementEventFullName(o,r),[o,r])}),n.directives.forEach(function(t){t.hostEvents.forEach(function(n){var r=vr(n,t),o=r.name,s=r.target;i.set(e.ɵelementEventFullName(s,o),[s,o])})});var s=[],a=[],u=mr(n.directives);u&&this._visitProvider(u,n.queryMatches),n.providers.forEach(function(e,o){var u=void 0,c=void 0;if(n.directives.forEach(function(t,n){t.directive.type.reference===R(e.token)&&(u=t,c=n)}),u){var l=r._visitDirective(e,u,c,t,n.references,n.queryMatches,i,r.staticQueryIds.get(n)),p=l.hostBindings,h=l.hostEvents;s.push.apply(s,p),a.push.apply(a,h)}else r._visitProvider(e,n.queryMatches)});var c=[];return n.queryMatches.forEach(function(t){var e=void 0;R(t.value)===he(Ga.ElementRef)?e=0:R(t.value)===he(Ga.ViewContainerRef)?e=3:R(t.value)===he(Ga.TemplateRef)&&(e=2),null!=e&&c.push(bn([Sn(t.queryId),Sn(e)]))}),n.references.forEach(function(e){var n=void 0;e.value?R(e.value)===he(Ga.TemplateRef)&&(n=2):n=1,null!=n&&(r.refNodeIndices[e.name]=t,c.push(bn([Sn(e.name),Sn(n)])))}),n.outputs.forEach(function(t){a.push({context:wp,eventAst:t,dirAst:null})}),{flags:o,usedEvents:Array.from(i.values()),queryMatchesExpr:c.length?bn(c):jc,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,n,r,o,i,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,o=67108864|gr(a,r,t.first),i=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:o,nodeDef:vn(fe(Ga.queryDef)).callFn([Sn(o),Sn(r),new kc([new Rc(t.propertyName,Sn(i))])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,i),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,y=p.depsExpr;o.forEach(function(e){e.value&&R(e.value)===R(t.token)&&(u.refNodeIndices[e.name]=c,f.push(bn([Sn(e.name),Sn(4)])))}),e.directive.isComponent&&(h|=32768);var m=e.inputs.map(function(t,e){var n=bn([Sn(e),Sn(t.directiveName)]);return new Rc(t.directiveName,n,!1)}),v=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&v.push(new Rc(t,Sn(e),!1))});var _=[];(e.inputs.length||(327680&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:wp,value:t.value})}));var b=vn(fe(Ga.nodeValue)).callFn([_p,Sn(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),C=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:16384|h,nodeDef:vn(fe(Ga.directiveDef)).callFn([Sn(h),f.length?bn(f):jc,Sn(l),d,y,m.length?new kc(m):jc,v.length?new kc(v):jc]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:C}},t.prototype._visitProvider=function(t,e){var n=this.nodes.length;this.nodes.push(null);var r=this._visitProviderOrDirective(t,e),o=r.flags,i=r.queryMatchExprs,s=r.providerExpr,a=r.depsExpr;this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:o,nodeDef:vn(fe(Ga.providerDef)).callFn([Sn(o),i.length?bn(i):jc,ir(t.token),s,a])}}},t.prototype._visitProviderOrDirective=function(t,n){var r=0;t.eager||(r|=4096),t.providerType===lo.PrivateService&&(r|=8192),t.lifecycleHooks.forEach(function(n){n!==e.ɵLifecycleHooks.OnDestroy&&t.providerType!==lo.Directive&&t.providerType!==lo.Component||(r|=ur(n))});var o=[];n.forEach(function(e){R(e.value)===R(t.token)&&o.push(bn([Sn(e.queryId),Sn(4)]))});var i=nr(t),s=i.providerExpr,a=i.depsExpr,u=i.flags;return{flags:r|u,queryMatchExprs:o,providerExpr:s,depsExpr:a}},t.prototype.getLocal=function(t){if(t==sp.event.name)return sp.event;for(var e=_p,n=this;n;n=n.parent,e=e.prop("parent").cast(sc)){var r=n.refNodeIndices[t];if(null!=r)return vn(fe(Ga.nodeValue)).callFn([e,Sn(r)]);var o=n.variables.find(function(e){return e.name===t});if(o){var i=o.value||"$implicit";return e.prop("context").prop(i)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var n=vn(fe(Ga.EMPTY_ARRAY));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:vn(fe(Ga.pureArrayDef)).callFn([Sn(e)])}}),function(t){return hr(r,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var n=vn(fe(Ga.EMPTY_MAP));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:64,nodeDef:vn(fe(Ga.pureObjectDef)).callFn([bn(e.map(function(t){return Sn(t)}))])}}),function(t){return hr(r,t)}},t.prototype.createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var o=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:vn(fe(Ga.purePipeDef)).callFn([Sn(n)])}});for(var i=_p,s=this;s.parent;)s=s.parent,i=i.prop("parent").cast(sc);var a=s.purePipeNodeIndices[e],u=vn(fe(Ga.nodeValue)).callFn([i,Sn(a)]);return function(e){return fr(t.nodeIndex,t.bindingIndex,hr(o,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,r),l=vn(fe(Ga.nodeValue)).callFn([_p,Sn(c)]);return function(e){return fr(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,n){var r=this.nodes.length,o=0;n.type.lifecycleHooks.forEach(function(t){t===e.ɵLifecycleHooks.OnDestroy&&(o|=ur(t))});var i=n.type.diDeps.map(sr);return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:vn(fe(Ga.pipeDef)).callFn([Sn(o),vn(n.type),bn(i)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:qn({createLiteralArrayConverter:function(n){return e.createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e.createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e.createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,o,i){var s=[],a=o.map(function(t){var r=t.sourceSpan,o=t.context,i=t.value,a=""+n++,u=zn(o===wp?e:null,o,i,a),c=u.stmts,l=u.currValExpr;return s.push.apply(s,c.map(function(t){return dn(t,r)})),yn(l,r)});return(o.length||i)&&s.push(dn(hr(t,a).toStmt(),r)),s}var e=this,n=0,r=[],o=[],i=this.nodes.map(function(e,n){var i=e(),s=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,c=i.updateRenderer,l=i.sourceSpan;return c&&r.push.apply(r,t(n,l,c,!1)),u&&o.push.apply(o,t(n,l,u,(327680&a)>0)),yn(3&a?new Ic([gp.callFn([]).callFn([]),s]):s,l)});return{updateRendererStmts:r,updateDirectivesStmts:o,nodeDefExprs:i}},t.prototype._createElementHandleEventFn=function(t,n){var r=this,o=[],i=0;n.forEach(function(t){var n=t.context,s=t.eventAst,a=t.dirAst,u=""+i++,c=Bn(n===wp?r:null,n,s.handler,u),l=c.stmts,p=c.allowDefault,h=l;p&&h.push(Ep.set(p.and(Ep)).toStmt());var f=vr(s,a),d=f.target,y=f.name,m=e.ɵelementEventFullName(d,y);o.push(dn(new Qc(Sn(m).identical(Cp),h),s.sourceSpan))});var s;if(o.length>0){var a=[Ep.set(Sn(!0)).toDeclStmt(uc)];!this.component.isHost&&fn(o).has(wp.name)&&a.push(wp.set(_p.prop("component")).toDeclStmt(this.compType)),s=En([new xc(_p.name,ac),new xc(Cp.name,ac),new xc(sp.event.name,ac)],a.concat(o,[new qc(Ep)]),ac)}else s=jc;return s},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),xp=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,this.source=n}return t}(),Tp=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolResolver=e,r.summaryResolver=n,r.symbols=[],r.indexBySymbol=new Map,r.processedSummaryBySymbol=new Map,r.processedSummaries=[],r}return Xr(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;if(e&&"class"===e.__symbolic){var n={};Object.keys(e).forEach(function(t){"decorators"!==t&&(n[t]=e[t])}),e=n}var r=this.processedSummaryBySymbol.get(t.symbol);r||(r=this.processValue({symbol:t.symbol}),this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),null==r.metadata&&null!=e&&(r.metadata=this.processValue(e)),null==r.type&&null!=t.type&&(r.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var o=void 0;return t.summaryResolver.isLibraryFile(n.filePath)&&(o=n.name+"_"+r,e.push({symbol:n,exportAs:o})),{__symbol:r,name:n.name,filePath:t.summaryResolver.getLibraryFileName(n.filePath),importAs:o}})}),exportAs:e}},e.prototype.processValue=function(t){return d(t,this,null)},e.prototype.visitOther=function(t,e){if(t instanceof fo){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name),r=this.indexBySymbol.get(n);return null==r&&(r=this.indexBySymbol.size,this.indexBySymbol.set(n,r),this.symbols.push(n)),{__symbol:r,members:t.members}}},e}(Ao),Pp=function(t){function e(e){var n=t.call(this)||this;return n.symbolCache=e,n}return Xr(e,t),e.prototype.deserialize=function(t){var e=this,n=JSON.parse(t),r=[];return this.symbols=[],n.symbols.forEach(function(t){var n=e.symbolCache.get(t.filePath,t.name);e.symbols.push(n),t.importAs&&r.push({symbol:n,importAs:t.importAs})}),{summaries:d(n.summaries,this,null),importAs:r}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],o=e.members;return o.length?this.symbolCache.get(r.filePath,r.name,o):r}return t.prototype.visitStringMap.call(this,e,n)},e}(Ao),Ap=function(){function t(t,e,n,r,o,i,s,a,u,c,l,p,h){this._config=t,this._host=e,this._metadataResolver=n,this._templateParser=r,this._styleCompiler=o,this._viewCompiler=i,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._genFilePreamble=p,this._symbolResolver=h}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,n=xr(Pr(this._symbolResolver,t,this._host),this._host,this._metadataResolver),r=n.ngModuleByPipeOrDirective,o=n.files,i=n.ngModules;return Promise.all(i.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){return N(o.map(function(t){return e._compileSrcFile(t.srcUrl,r,t.directives,t.pipes,t.ngModules,t.injectables)}))})},t.prototype._compileSrcFile=function(t,e,n,r,o,i){var s=this,a=Ye(t)[1],u=[],c=[],l=[];if(l.push(this._createSummary(t,n,r,o,i,u,c)),c.push.apply(c,o.map(function(t){return s._compileModule(t,u)})),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(!r.isComponent)return Promise.resolve(null);var o=e.get(n);if(!o)throw new Error("Internal Error: cannot determine the module for component "+E(r.type)+"!");Er(r);var i=s._styleCompiler.compileComponent(r);i.externalStylesheets.forEach(function(e){l.push(s._codgenStyles(t,e,a))});var p=s._compileComponent(r,o,o.transitiveModule.directives,i.componentStylesheet,a,u);c.push(s._compileComponentFactory(r,o,a,u),p.viewClassVar,p.compRenderTypeVar)}),u.length>0){var p=this._codegenSourceModule(t,Qe(t),u,c);l.unshift(p)}return l},t.prototype._createSummary=function(t,e,n,r,o,i,s){var a=this,u=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=r.map(function(t){return a._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return a._metadataResolver.getDirectiveSummary(t)}),n.map(function(t){return a._metadataResolver.getPipeSummary(t)}),o.map(function(t){return a._metadataResolver.getInjectableSummary(t)})),l=_r(this._summaryResolver,this._symbolResolver,u,c),p=l.json;return l.exportAs.forEach(function(t){i.push(mn(t.exportAs).set(vn({reference:t.symbol})).toDeclStmt()),s.push(t.exportAs)}),new xp(t,Je(t),p)},t.prototype._compileModule=function(t,e){var n=this._metadataResolver.getNgModuleMetadata(t),r=[];this._localeId&&r.push({token:ye(Ga.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&r.push({token:ye(Ga.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(n,r);return e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileComponentFactory=function(t,e,n,r){var o=this._metadataResolver.getHostComponentType(t.type.reference),i=k(o,t,this._metadataResolver.getHostComponentViewClass(o)),s=this._compileComponent(i,e,[t.type],null,n,r).viewClassVar,a=O(t.type.reference),u=[];for(var c in t.inputs){p=t.inputs[c];u.push(new Rc(c,Sn(p),!1))}var l=[];for(var c in t.outputs){var p=t.outputs[c];l.push(new Rc(c,Sn(p),!1))}return r.push(mn(a).set(vn(fe(Ga.createComponentFactory)).callFn([Sn(t.selector),vn(t.type),mn(s),new kc(u),new kc(l),bn(t.template.ngContentSelectors.map(function(t){return Sn(t)}))])).toDeclStmt(gn(fe(Ga.ComponentFactory),[gn(t.type)],[Ju.Const]),[Vc.Final])),a},t.prototype._compileComponent=function(t,e,n,r,o,i){var s=this,a=n.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(t,t.template.template,a,u,e.schemas,j(e.type,t,t.template)),l=c.template,p=c.pipes,h=r?mn(r.stylesVar):bn([]),f=this._viewCompiler.compileComponent(t,l,h,p);return r&&i.push.apply(i,wr(this._symbolResolver,r,o)),i.push.apply(i,f.statements),{viewClassVar:f.viewClassVar,compRenderTypeVar:f.rendererTypeVar}},t.prototype._codgenStyles=function(t,e,n){return wr(this._symbolResolver,e,n),this._codegenSourceModule(t,Cr(e.meta.moduleUrl,e.isShimmed,n),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,n,r){return new xp(t,e,this._outputEmitter.emitStatements(D(t),e,n,r,this._genFilePreamble))},t}(),Op=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new e.ɵReflectionCapabilities}return t.install=function(n){e.ɵreflector.updateCapabilities(new t(n))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return Or(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return Or(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return Or(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return Or(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resourceUri=function(t){return this.staticDelegate.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.staticDelegate.resolveIdentifier(t,e,n)},t.prototype.resolveEnum=function(t,e){return Or(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),Mp="@angular/core",Rp=/^\$.*\$$/,kp={__symbolic:"ignore"},Ip=function(){function t(t,n,r,o,i){void 0===r&&(r=[]),void 0===o&&(o=[]);var s=this;this.summaryResolver=t,this.symbolResolver=n,this.errorRecorder=i,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.annotationNames=new Map,this.initializeConversionMap(),r.forEach(function(t){return s._registerDecoratorOrConstructor(s.getStaticSymbol(t.filePath,t.name),t.ctor)}),o.forEach(function(t){return s._registerFunction(s.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Go.Directive,[e.Directive,e.Component]),this.annotationForParentClassWithSummaryKind.set(Go.Pipe,[e.Pipe]),this.annotationForParentClassWithSummaryKind.set(Go.NgModule,[e.NgModule]),this.annotationForParentClassWithSummaryKind.set(Go.Injectable,[e.Injectable,e.Pipe,e.Directive,e.Component,e.NgModule]),this.annotationNames.set(e.Directive,"Directive"),this.annotationNames.set(e.Component,"Component"),this.annotationNames.set(e.Pipe,"Pipe"),this.annotationNames.set(e.NgModule,"NgModule"),this.annotationNames.set(e.Injectable,"Injectable")}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resourceUri=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveIdentifier=function(t,e,n){var r=this.getStaticSymbol(e,t),o=this.findDeclaration(e,t);return r!=o&&this.symbolResolver.recordImportAs(o,r),n&&n.length?this.getStaticSymbol(o.filePath,o.name,n):o},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof fo?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var n=t,r=(n.members||[]).concat(e);return this.getStaticSymbol(n.filePath,n.name,r)},t.prototype.annotations=function(t){var e=this,n=this.annotationCache.get(t);if(!n){n=[];var r=this.getTypeMetadata(t),o=this.findParentType(t,r);if(o){var i=this.annotations(o);n.push.apply(n,i)}var s=[];if(r.decorators&&(s=this.simplify(t,r.decorators),n.push.apply(n,s)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var a=this.summaryResolver.resolveSummary(o);if(a&&a.type){var u=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind);u.some(function(t){return s.some(function(e){return e instanceof t})})||this.reportError(v("Class "+t.name+" in "+t.filePath+" extends from a "+Go[a.type.summaryKind]+" in another compilation unit without duplicating the decorator. Please add a "+u.map(function(t){return e.annotationNames.get(t)}).join(" or ")+" decorator to the class."),t)}}this.annotationCache.set(t,n.filter(function(t){return!!t}))}return n},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var o=this.findParentType(t,r);if(o){var i=this.propMetadata(o);Object.keys(i).forEach(function(t){n[t]=i[t]})}var s=r.members||{};Object.keys(s).forEach(function(r){var o=s[r].find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),i=[];n[r]&&i.push.apply(i,n[r]),n[r]=i,o&&o.decorators&&i.push.apply(i,e.simplify(t,o.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){if(!(t instanceof fo))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var n=this.getTypeMetadata(t),r=this.findParentType(t,n),o=n?n.members:null,i=o?o.__ctor__:null;if(i){var s=i.find(function(t){return"constructor"==t.__symbolic}),a=this.simplify(t,s.parameters||[]),u=this.simplify(t,s.parameterDecorators||[]);e=[],a.forEach(function(t,n){var r=[];t&&r.push(t);var o=u?u[n]:null;o&&r.push.apply(r,o),e.push(r)})}else r&&(e=this.parameters(r));e||(e=[]),this.parameterCache.set(t,e)}return e}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);e={};var r=this.findParentType(t,n);if(r){var o=this._methodNames(r);Object.keys(o).forEach(function(t){e[t]=o[t]})}var i=n.members||{};Object.keys(i).forEach(function(t){var n=i[t].some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof fo)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof fo||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(Mp,"InjectionToken"),this.opaqueToken=this.findDeclaration(Mp,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Mp,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(Mp,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(Mp,"state"),e.state),this._registerFunction(this.findDeclaration(Mp,"transition"),e.transition),this._registerFunction(this.findDeclaration(Mp,"style"),e.style),this._registerFunction(this.findDeclaration(Mp,"animate"),e.animate),this._registerFunction(this.findDeclaration(Mp,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(Mp,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(Mp,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(t,e){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e){function n(t,e,r){function a(t){var e=o.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,o,a){if(o&&"function"==o.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=o.value;if(u&&(0!=r||"error"!=u.__symbolic)){var l=o.parameters,p=o.defaults;a=a.map(function(e){return n(t,e,r+1)}).map(function(t){return Mr(t)?void 0:t}),p&&p.length>a.length&&a.push.apply(a,p.slice(a.length).map(function(t){return c(t)}));for(var h=Np.build(),f=0;f<l.length;f++)h.define(l[f],a[f]);var d,y=i;try{i=h.done(),d=n(e,u,r+1)}finally{i=y}return d}}finally{s.delete(e)}}return 0===r?kp:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Nr(e))return e;if(e instanceof Array){for(var s=[],l=0,p=e;l<p.length;l++){var h=p[l];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,y=f;d<y.length;d++){var m=y[d];s.push(m)}continue}}var v=c(h);Mr(v)||s.push(v)}return s}if(e instanceof fo)return e===o.injectionToken||e===o.opaqueToken||o.conversionMap.has(e)?e:(A=a(g=e))?n(g,A,r+1):g;if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var _=c(e.left);if(Mr(_))return _;var b=c(e.right);if(Mr(b))return b;switch(e.operator){case"&&":return _&&b;case"||":return _||b;case"|":return _|b;case"^":return _^b;case"&":return _&b;case"==":return _==b;case"!=":return _!=b;case"===":return _===b;case"!==":return _!==b;case"<":return _<b;case">":return _>b;case"<=":return _<=b;case">=":return _>=b;case"<<":return _<<b;case">>":return _>>b;case"+":return _+b;case"-":return _-b;case"*":return _*b;case"/":return _/b;case"%":return _%b}return null;case"if":return c(c(e.condition)?e.thenExpression:e.elseExpression);case"pre":var w=c(e.operand);if(Mr(w))return w;switch(e.operator){case"+":return w;case"-":return-w;case"!":return!w;case"~":return~w}return null;case"index":var C=c(e.expression),E=c(e.index);return C&&Nr(E)?C[E]:null;case"select":var S=e.member,x=t,T=c(e.expression);if(T instanceof fo){var P=T.members.concat(S),A=a(x=o.getStaticSymbol(T.filePath,T.name,P));return A?n(x,A,r+1):x}return T&&Nr(S)?n(x,T[S],r+1):null;case"reference":var O=e.name,M=i.resolve(O);if(M!=Np.missing)return M;break;case"class":case"function":return t;case"new":case"call":if((g=n(t,e.expression,r+1))instanceof fo){if(g===o.injectionToken||g===o.opaqueToken)return t;var R=e.arguments||[],k=o.conversionMap.get(g);if(k){var I=R.map(function(e){return n(t,e,r+1)}).map(function(t){return Mr(t)?void 0:t});return k(t,I)}return u(g,a(g),R)}return kp;case"error":var N=kr(e);return e.line?(N=N+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",o.reportError(Dr(N,t.filePath,e.line,e.character),t)):o.reportError(new Error(N),t),kp;case"ignore":return e}return null}return Ir(e,function(t,e){return c(t)})}return kp}try{return c(e)}catch(e){var l=t.members.length?"."+t.members.join("."):"",p=e.message+", resolving symbol "+t.name+l+" in "+t.filePath;if(e.fileName)throw Dr(p,e.fileName,e.line,e.column);throw v(p)}}var r=this,o=this,i=Np.empty,s=new Map,a=this.errorRecorder?function(t,e,o){try{return n(t,e,o)}catch(e){r.reportError(e,t)}}(t,e,0):n(t,e,0);if(!Mr(a))return a},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),Np=function(){function t(){}return t.prototype.resolve=function(t){},t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Dp(e):t.empty}}},t}();Np.missing={},Np.empty={resolve:function(t){return Np.missing}};var Dp=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return Xr(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Np.missing},e}(Np),jp=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Lp=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e||((e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t)))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),n=this.getImportAs(e);return n?this.getStaticSymbol(n.filePath,n.name,t.members):null}var r=this.summaryResolver.getImportAs(t);return r||(r=this.importAs.get(t)),r},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Ze(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof fo;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile.delete(t);for(var n=0,r=e;n<r.length;n++){var o=r[n];this.resolvedSymbols.delete(o),this.importAs.delete(o),this.symbolResourcePaths.delete(o)}}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=n.metadata;if(r instanceof fo)return new jp(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var o=r,i=0;i<e.length&&o;i++)o=o[e[i]];return new jp(t,o)}return r.statics&&1===e.length?new jp(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new jp(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(n){n.symbol.filePath===t&&e.add(n.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var n=[],r=this.getModuleMetadata(t);if(r.metadata){var o=new Set(Object.keys(r.metadata).map(jr)),i=r.origins||{};Object.keys(r.metadata).forEach(function(s){var a=r.metadata[s],u=jr(s),c=e.getStaticSymbol(t,u),l=void 0;r.importAs&&(l=e.getStaticSymbol(r.importAs,u),e.recordImportAs(c,l));var p=i.hasOwnProperty(s)&&i[s];if(p){var h=e.resolveModule(p,t);h?e.symbolResourcePaths.set(c,h):e.reportError(new Error("Couldn't resolve original symbol for "+p+" from "+t))}n.push(e.createResolvedSymbol(c,t,o,a))})}if(r.exports)for(var s=this,a=0,u=r.exports;a<u.length;a++)!function(r){if(r.export)r.export.forEach(function(o){var i,s=i=jr(i="string"==typeof o?o:o.as);"string"!=typeof o&&(s=jr(o.name));var a=e.resolveModule(r.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,i);n.push(e.createExport(c,u))}});else{var o=s.resolveModule(r.from,t);o&&s.getSymbolsOf(o).forEach(function(r){var o=e.getStaticSymbol(t,r.name);n.push(e.createExport(o,r))})}}(u[a]);n.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,n.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,n,r){if(this.summaryResolver.isLibraryFile(t.filePath)&&r&&"class"===r.__symbolic){var o={__symbolic:"class",arity:r.arity};return new jp(t,o)}var i=this,s=d(r,new(function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return Xr(o,r),o.prototype.visitStringMap=function(o,s){var a=o.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,o.parameters||[]);var c=r.prototype.visitStringMap.call(this,o,s);return s.length=u,c}if("reference"!==a)return r.prototype.visitStringMap.call(this,o,s);var l=o.module,p=o.name?jr(o.name):o.name;if(!p)return null;var h=void 0;return l?(h=i.resolveModule(l,t.filePath),h?i.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):s.indexOf(p)>=0?{__symbolic:"reference",name:p}:n.has(p)?i.getStaticSymbol(e,p):void 0},o}(Ao)),[]);return s instanceof fo?this.createExport(t,s):new jp(t,s)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new jp(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:3,module:t,metadata:{}}),3!=e.version){var o=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 3";this.reportError(new Error(o))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to $ {\n containingFile\n } ":""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,void 0,e)}return null},t}(),Vp=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Xe(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var n=Je(t),r=void 0;try{r=this.host.loadSummary(n)}catch(t){throw console.error("Error loading summary file "+n),t}if(r){var o=br(this.staticSymbolCache,r),i=o.summaries,s=o.importAs;i.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),s.forEach(function(n){e.importAs.set(n.symbol,e.staticSymbolCache.get(Qe(t),n.importAs))})}}},t}(),Fp=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),Up=function(){function t(t){this.value=t}return t}(),Hp=function(){function t(){}return t.prototype.debugAst=function(t){return Nn(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case pc.Super:return e.instance.__proto__;case pc.This:return e.instance;case pc.CatchError:n=Bp;break;case pc.CatchStack:n=qp;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),o=t.value.visitExpression(this,e);return n[r]=o,o},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case mc.ConcatArray:n=r.concat.apply(r,o);break;case mc.SubscribeObservable:n=r.subscribe({next:o[0]});break;case mc.Bind:n=r.bind.apply(r,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,o);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;return r instanceof hc&&r.builtin===pc.Super?(e.instance.constructor.prototype.constructor.apply(e.instance,n),null):t.fn.visitExpression(this,e).apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new Up(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=Ur(t,e,this);return e.vars.set(t.name,n),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e)?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(Bp,r),n.vars.set(qp,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(t,e){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t,e){return t.value},t.prototype.visitExternalExpr=function(t,e){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){return Hr(t.params.map(function(t){return t.name}),t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,Hr(n,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},o=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case cc.Equals:return r()==o();case cc.Identical:return r()===o();case cc.NotEquals:return r()!=o();case cc.NotIdentical:return r()!==o();case cc.And:return r()&&o();case cc.Or:return r()||o();case cc.Plus:return r()+o();case cc.Minus:return r()-o();case cc.Divide:return r()/o();case cc.Multiply:return r()*o();case cc.Modulo:return r()%o();case cc.Lower:return r()<o();case cc.LowerEquals:return r()<=o();case cc.Bigger:return r()>o();case cc.BiggerEquals:return r()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.name]},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n].visitStatement(this,e);if(r instanceof Up)return r}return null},t}(),Bp="error",qp="stack",zp=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e}return Xr(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var n=t.value.reference,r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var o=E(t.value)||"val";this._evalArgNames.push("jit_"+o+r)}return e.print(t,this._evalArgNames[r]),null},e}(function(t){function e(){return t.call(this,!1)||this}return Xr(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===pc.This)n.print(e,"self");else{if(e.builtin===pc.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof hc&&r.builtin===pc.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+fl.name+") {"),e.incIndent();var n=[dl.set(fl.prop("stack")).toDeclStmt(null,[Vc.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case mc.ConcatArray:e="concat";break;case mc.SubscribeObservable:e="subscribe";break;case mc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(vl)),Gp=function(){function t(t,e,n,r,o,i,s,a){this._injector=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=o,this._ngModuleCompiler=i,this._compilerConfig=s,this._console=a,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var n=this._compiledTemplateCache.get(t);if(!n)throw new Error("The component "+e.ɵstringify(t)+" is not yet compiled!");return n.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var n=this,r=this._loadModules(t,e),o=function(){return n._compileComponents(t,null),n._compileModule(t)};return e?new Oo(o()):new Oo(null,r.then(o))},t.prototype._compileModuleAndAllComponents=function(t,n){var r=this,o=this._loadModules(t,n),i=function(){var n=[];return r._compileComponents(t,n),new e.ModuleWithComponentFactories(r._compileModule(t),n)};return n?new Oo(i()):new Oo(null,o.then(i))},t.prototype._loadModules=function(t,e){var n=this,r=[];return this._metadataResolver.getNgModuleMetadata(t).transitiveModule.modules.forEach(function(t){r.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(r)},t.prototype._compileModule=function(t){var n=this,r=this._compiledNgModuleCache.get(t);if(!r){var o=this._metadataResolver.getNgModuleMetadata(t),i=[this._metadataResolver.getProviderMetadata(new Yo(e.Compiler,{useFactory:function(){return new $p(n,o.type.reference)}}))],s=this._ngModuleCompiler.compile(o,i);r=this._compilerConfig.useJit?qr(V(o),s.statements,[s.ngModuleFactoryVar])[0]:Vr(s.statements,[s.ngModuleFactoryVar])[0],this._compiledNgModuleCache.set(o.type.reference,r)}return r},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),o=new Map,i=new Set;r.transitiveModule.modules.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t.reference);r.declaredDirectives.forEach(function(t){o.set(t.reference,r);var s=n._metadataResolver.getDirectiveMetadata(t.reference);if(s.isComponent&&(i.add(n._createCompiledTemplate(s,r)),e)){var a=n._createCompiledHostTemplate(s.type.reference,r);i.add(a),e.push(s.componentFactory)}})}),r.transitiveModule.modules.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(n._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(n._createCompiledHostTemplate(t.componentType,e))})}),i.forEach(function(t){return n._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache.delete(t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache.delete(t),this._compiledTemplateCache.get(t)&&this._compiledTemplateCache.delete(t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,n){if(!n)throw new Error("Component "+e.ɵstringify(t)+" is not part of any NgModule or the module has not been imported into your module.");var r=this._compiledHostTemplateCache.get(t);if(!r){var o=this._metadataResolver.getDirectiveMetadata(t);zr(o);var i=o.componentFactory,s=k(this._metadataResolver.getHostComponentType(t),o,e.ɵgetComponentViewDefinitionFactory(i));r=new Wp(!0,o.type,s,n,[o.type]),this._compiledHostTemplateCache.set(t,r)}return r},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(zr(t),n=new Wp(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,r=new Map,o=this._styleCompiler.compileComponent(n);o.externalStylesheets.forEach(function(t){r.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(o.componentStylesheet,r);var i,s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(n,n.template.template,a,u,t.ngModule.schemas,j(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(n,l,mn(o.componentStylesheet.stylesVar),p),f=o.componentStylesheet.statements.concat(h.statements),d=n.isHost?[h.viewClassVar]:[h.viewClassVar,h.rendererTypeVar];this._compilerConfig.useJit?(i=(m=qr(F(t.ngModule.type,t.compMeta),f,d))[0],s=m[1]):(i=(y=Vr(f,d))[0],s=y[1]),t.compiled(i,s);var y,m}},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t,r){var o=e.get(t.moduleUrl),i=n._resolveAndEvalStylesCompileResult(o,e);t.valuePlaceholder.reference=i})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?qr(L(t.meta,this._sharedStylesheetCount++),t.statements,[t.stylesVar])[0]:Vr(t.statements,[t.stylesVar])[0]},t}();Gp.decorators=[{type:z}],Gp.ctorParameters=function(){return[{type:e.Injector},{type:Zu},{type:Ou},{type:ip},{type:vp},{type:ol},{type:Jo},{type:e.ɵConsole}]};var Wp=function(){function t(t,e,n,r,o){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=r,this.directives=o,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var n in e)this.compMeta.rendererType[n]=e[n];this.isCompiled=!0},t}(),$p=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),Kp=function(){function t(t,e,n,r){void 0===r&&(r=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._locale=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var o=Pt(r.rootNodes,n,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((i=this._messages).push.apply(i,o.messages),[]);var i},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var n={},r=new Qp;this._messages.forEach(function(e){var r=t.digest(e);n.hasOwnProperty(r)?(o=n[r].sources).push.apply(o,e.sources):n[r]=e;var o});var o=Object.keys(n).map(function(o){var i=t.createNameMapper(n[o]),s=n[o],a=i?r.convert(s.nodes,i):s.nodes,u=new qs(a,{},{},s.meaning,s.description,o);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(o,this._locale)},t}(),Qp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xr(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),o=t.closeName?e.toPublicName(t.closeName):t.closeName,i=t.children.map(function(t){return t.visit(n,e)});return new $s(t.tag,t.attrs,r,o,i,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new Ks(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new Qs(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(Xs),Xp=function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}return t.prototype.extract=function(t){var e=this,n=xr(Pr(this.staticSymbolResolver,t,this.host),this.host,this.metadataResolver),r=n.files,o=n.ngModules;return Promise.all(o.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(r.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var o=r.template.template,i=us.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(o,n.srcUrl,i))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(n,r){var o=new qa(new Ua),i=Ue(),s=new yo,a=new Vp(n,s),u=new Lp(n,s,a),c=new Ip(a,u);Op.install(c);var l=new Jo({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1}),p=new Hu({get:function(t){return n.loadResource(t)}},i,o,l),h=new Al,f=new Zu(l,new $u(c),new zu(c),new Ku(c),a,h,p,new e.ɵConsole,s,c),d=new Kp(o,[],{},r);return{extractor:new t(n,u,d,f),staticReflector:c}},t}(),Zp={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},Yp=new e.InjectionToken("HtmlParser"),Jp=[{provide:e.ɵReflector,useValue:e.ɵreflector},{provide:e.ɵReflectorReader,useExisting:e.ɵReflector},{provide:ju,useValue:Zp},Qu,e.ɵConsole,hs,gs,{provide:Yp,useClass:Ua},{provide:qa,useFactory:Gr,deps:[Yp,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)],[Jo],[e.ɵConsole]]},{provide:Ua,useExisting:qa},Ou,Hu,Zu,Lu,ip,vp,ol,{provide:Jo,useValue:new Jo},Gp,{provide:e.Compiler,useExisting:Gp},Al,{provide:tu,useExisting:Al},Vu,zu,Ku,$u],th=function(){function t(t){var n={useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,missingTranslation:e.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[n].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var n=$r(this._defaultOptions.concat(t));return e.ReflectiveInjector.resolveAndCreate([Jp,{provide:Jo,useFactory:function(){return new Jo({useJit:n.useJit,defaultEncapsulation:n.defaultEncapsulation,missingTranslation:n.missingTranslation,enableLegacyTemplate:n.enableLegacyTemplate})},deps:[]},n.providers]).get(e.Compiler)},t}();th.decorators=[{type:z}],th.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]};var eh=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:th},{provide:e.PLATFORM_INITIALIZER,useValue:Wr,multi:!0}]),nh=function(){function t(){}return t.prototype.fileNameToModuleName=function(t,e){},t.prototype.getImportAs=function(t){},t.prototype.getTypeArity=function(t){},t}();t.VERSION=Zr,t.TEMPLATE_TRANSFORMS=Tu,t.CompilerConfig=Jo,t.JitCompiler=Gp,t.DirectiveResolver=zu,t.PipeResolver=Ku,t.NgModuleResolver=$u,t.DEFAULT_INTERPOLATION_CONFIG=cs,t.InterpolationConfig=us,t.NgModuleCompiler=ol,t.ViewCompiler=vp,t.isSyntaxError=g,t.syntaxError=v,t.TextAst=Yr,t.BoundTextAst=Jr,t.AttrAst=to,t.BoundElementPropertyAst=eo,t.BoundEventAst=no,t.ReferenceAst=ro,t.VariableAst=oo,t.ElementAst=io,t.EmbeddedTemplateAst=so,t.BoundDirectivePropertyAst=ao,t.DirectiveAst=uo,t.ProviderAst=co,t.ProviderAstType=lo,t.NgContentAst=po,t.PropertyBindingType=ho,t.templateVisitAll=n,t.CompileAnimationEntryMetadata=Io,t.CompileAnimationStateMetadata=No,t.CompileAnimationStateDeclarationMetadata=Do,t.CompileAnimationStateTransitionMetadata=jo,t.CompileAnimationMetadata=Lo,t.CompileAnimationKeyframesSequenceMetadata=Vo,t.CompileAnimationStyleMetadata=Fo,t.CompileAnimationAnimateMetadata=Uo,t.CompileAnimationWithStepsMetadata=Ho,t.CompileAnimationSequenceMetadata=Bo,t.CompileAnimationGroupMetadata=qo,t.identifierName=E,t.identifierModuleUrl=S,t.viewClassName=x,t.rendererTypeName=T,t.hostViewClassName=P,t.dirWrapperClassName=A,t.componentFactoryName=O,t.CompileSummaryKind=Go,t.tokenName=M,t.tokenReference=R,t.CompileStylesheetMetadata=Wo,t.CompileTemplateMetadata=$o,t.CompileDirectiveMetadata=Ko,t.createHostComponentMeta=k,t.CompilePipeMetadata=Qo,t.CompileNgModuleMetadata=Xo,t.TransitiveCompileNgModuleMetadata=Zo,t.ProviderMeta=Yo,t.flatten=N,t.sourceUrl=D,t.templateSourceUrl=j,t.sharedStylesheetJitUrl=L,t.ngModuleJitUrl=V,t.templateJitUrl=F,t.createAotCompiler=Lr,t.AotCompiler=Ap,t.analyzeNgModules=Sr,t.analyzeAndValidateNgModules=xr,t.extractProgramSymbols=Pr,t.GeneratedFile=xp,t.StaticReflector=Ip,t.StaticAndDynamicReflectionCapabilities=Op,t.StaticSymbol=fo,t.StaticSymbolCache=yo,t.ResolvedStaticSymbol=jp,t.StaticSymbolResolver=Lp,t.unescapeIdentifier=jr,t.AotSummaryResolver=Vp,t.SummaryResolver=Qu,t.i18nHtmlParserFactory=Gr,t.COMPILER_PROVIDERS=Jp,t.JitCompilerFactory=th,t.platformCoreDynamic=eh,t.createUrlResolverWithoutPackagePrefix=Fe,t.createOfflineCompileUrlResolver=Ue,t.DEFAULT_PACKAGE_URL_PROVIDER=Lu,t.UrlResolver=Vu,t.getUrlScheme=He,t.ResourceLoader=ju,t.ElementSchemaRegistry=tu,t.Extractor=Xp,t.I18NHtmlParser=qa,t.MessageBundle=Kp,t.Serializer=va,t.Xliff=Ta,t.Xliff2=Ma,t.Xmb=Na,t.Xtb=La,t.DirectiveNormalizer=Hu,t.ParserError=ti,t.ParseSpan=ei,t.AST=ni,t.Quote=ri,t.EmptyExpr=oi,t.ImplicitReceiver=ii,t.Chain=si,t.Conditional=ai,t.PropertyRead=ui,t.PropertyWrite=ci,t.SafePropertyRead=li,t.KeyedRead=pi,t.KeyedWrite=hi,t.BindingPipe=fi,t.LiteralPrimitive=di,t.LiteralArray=yi,t.LiteralMap=mi,t.Interpolation=vi,t.Binary=gi,t.PrefixNot=_i,t.MethodCall=bi,t.SafeMethodCall=wi,t.FunctionCall=Ci,t.ASTWithSource=Ei,t.TemplateBinding=Si,t.RecursiveAstVisitor=xi,t.AstTransformer=Ti,t.TokenType=ls,t.Lexer=hs,t.Token=fs,t.EOF=ds,t.isIdentifier=et,t.isQuote=it,t.SplitInterpolation=ms,t.TemplateBindingParseResult=vs,t.Parser=gs,t._ParseAST=_s,t.ERROR_COLLECTOR_TOKEN=Xu,t.CompileMetadataResolver=Zu,t.componentModuleUrl=cn,t.Text=Ts,t.Expansion=Ps,t.ExpansionCase=As,t.Attribute=Os,t.Element=Ms,t.Comment=Rs,t.visitAll=lt,t.ParseTreeResult=Us,t.TreeError=Fs,t.HtmlParser=Ua,t.HtmlTagDefinition=go,t.getHtmlTagDefinition=c,t.TagContentType=mo,t.splitNsName=r,t.isNgContainer=o,t.isNgContent=i,t.isNgTemplate=s,t.getNsPrefix=a,t.mergeNsAndName=u,t.NAMED_ENTITIES=vo,t.ImportResolver=nh,t.debugOutputAstAsTypeScript=Nn,t.TypeScriptEmitter=_l,t.ParseLocation=ws,t.ParseSourceFile=Cs,t.ParseSourceSpan=Es,t.ParseErrorLevel=Ss,t.ParseError=xs,t.typeSourceSpan=ct,t.DomElementSchemaRegistry=Al,t.CssSelector=Co,t.SelectorMatcher=Eo,t.SelectorListContext=So,t.SelectorContext=xo,t.StylesCompileDependency=np,t.StylesCompileResult=rp,t.CompiledStylesheet=op,t.StyleCompiler=ip,t.TemplateParseError=Pu,t.TemplateParseResult=Au,t.TemplateParser=Ou,t.splitClasses=Ie,t.createElementCssSelector=Ne,t.removeSummaryDuplicates=je,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],8:[function(t,e,n){(function(r){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("rxjs/Observable"),t("rxjs/observable/merge"),t("rxjs/operator/share"),t("rxjs/Subject")):o((r.ng=r.ng||{},r.ng.core=r.ng.core||{}),r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx)}(this,function(t,e,n,o,i){"use strict";function s(){if(!lo){var t=co.Symbol;if(t&&t.iterator)lo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(lo=r)}}return lo}function a(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function u(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function c(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function l(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function p(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+c(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,o=t[r];if("function"!=typeof o)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+c(o)+"'");if(r!=o.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+o.length+") in the function: "+c(o));for(var i=[],s=0,a=n.length-1;s<a;s++){var u=[];i.push(u);var p=n[s];if(Array.isArray(p))for(var h=0;h<p.length;h++)u.push(l(p[h]));else"function"==typeof p?u.push(l(p)):u.push(p)}return ho.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+c(t)+"'")}function h(t){var e=p(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),n=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+c(t.extends));e.prototype=n=Object.create(t.extends.prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=p(t[r],r));this&&this.annotations instanceof Array&&ho.defineMetadata("annotations",this.annotations,e);var o=e.name;return o&&"constructor"!==o||(e.overriddenName="class"+po++),e}function f(t,e,n,r){function o(t){if(!ho||!ho.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof o)return i.call(this,t),this;var e=new o(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var s=function(t){var n=ho.getOwnMetadata("annotations",t)||[];return n.push(e),ho.defineMetadata("annotations",n,t),t};return s.annotations=n,s.Class=h,r&&r(s),s}var i=d([e]);return n&&(o.prototype=Object.create(n.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}function d(t){return function(){for(var e=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach(function(t,r){var o=n[r];if(Array.isArray(t))e[t[0]]=void 0===o?t[1]:o;else for(var i in t)e[i]=o&&o.hasOwnProperty(i)?o[i]:t[i]})}}function y(t,e,n){function r(){function t(t,e,n){for(var r=ho.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(i),ho.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return o.apply(this,e),this;var i=new(r.bind.apply(r,[void 0].concat(e)));return t.annotation=i,t}var o=d(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function m(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof r)return o.apply(this,t),this;var n=new(r.bind.apply(r,[void 0].concat(t)));return function(t,e){var r=ho.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),ho.defineMetadata("propMetadata",r,t.constructor)}}var o=d(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function v(t){return null==t||t===wo.Default}function g(t){return t.__forward_ref__=g,t.toString=function(){return c(this())},t}function _(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===g?t():t}function b(t){return t[$o]}function w(t){return t[Ko]}function C(t){return t[Qo]||E}function E(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}function S(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[Ko]=e,r}function x(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}function T(t){return t.length>1?" ("+x(t.slice().reverse()).map(function(t){return c(t.token)}).join(" -> ")+")":""}function P(t,e,n,r){var o=r?S("",r):Error();return o.addKey=A,o.keys=[e],o.injectors=[t],o.constructResolvingMessage=n,o.message=o.constructResolvingMessage(),o[Ko]=r,o}function A(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function O(t,e){return P(t,e,function(){return"No provider for "+c(this.keys[0].token)+"!"+T(this.keys)})}function M(t,e){return P(t,e,function(){return"Cannot instantiate cyclic dependency!"+T(this.keys)})}function R(t,e,n,r){return P(t,r,function(){var t=c(this.keys[0].token);return w(this).message+": Error during instantiation of "+t+"!"+T(this.keys)+"."},e)}function k(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function I(t,e){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];i&&0!=i.length?n.push(i.map(c).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+c(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+c(t)+"' is decorated with Injectable.")}function N(t){return Error("Index "+t+" is out-of-bounds.")}function D(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function j(t){return"function"==typeof t}function L(t){return t?t.map(function(t){var e=t.type.annotationCls,n=t.args?t.args:[];return new(e.bind.apply(e,[void 0].concat(n)))}):[]}function V(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}function F(t){var e,n;if(t.useClass){var r=_(t.useClass);e=oi.factory(r),n=G(r)}else t.useExisting?(e=function(t){return t},n=[ii.fromKey(Zo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=z(t.useFactory,t.deps)):(e=function(){return t.useValue},n=si);return new ui(e,n)}function U(t){return new ai(Zo.get(t.provide),[F(t)],t.multi||!1)}function H(t){var e=B(q(t,[]).map(U),new Map);return Array.from(e.values())}function B(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=e.get(r.key.id);if(o){if(r.multiProvider!==o.multiProvider)throw D(o,r);if(r.multiProvider)for(var i=0;i<r.resolvedFactories.length;i++)o.resolvedFactories.push(r.resolvedFactories[i]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new ai(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}function q(t,e){return t.forEach(function(t){if(t instanceof Jo)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw k(t);q(t,e)}}),e}function z(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return W(t,e,n)})}return G(t)}function G(t){var e=oi.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw I(t,e);return e.map(function(n){return W(t,n,e)})}function W(t,e,n){var r=null,o=!1;if(!Array.isArray(e))return e instanceof Lo?$(e.token,o,null):$(e,o,null);for(var i=null,s=0;s<e.length;++s){var a=e[s];a instanceof Jo?r=a:a instanceof Lo?r=a.token:a instanceof Vo?o=!0:a instanceof Uo||a instanceof Ho?i=a:a instanceof io&&(r=a)}if(null!=(r=_(r)))return $(r,o,i);throw I(t,n)}function $(t,e,n){return new ii(Zo.get(t),e,n)}function K(t,e){for(var n=new Array(t._providers.length),r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}function Q(t){return!!t&&"function"==typeof t.then}function X(t){return!!t&&"function"==typeof t.subscribe}function Z(){return""+Y()+Y()+Y()}function Y(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function J(){throw new Error("Runtime compiler is not loaded")}function tt(t){var e=Error("No component factory found for "+c(t)+". Did you add it to @NgModule.entryComponents?");return e[Ai]=t,e}function et(){var t=co.wtf;return!(!t||!(Ri=t.trace))&&(ki=Ri.events,!0)}function nt(t,e){return void 0===e&&(e=null),ki.createScope(t,e)}function rt(t,e){return Ri.leaveScope(t,e),e}function ot(t,e){return Ri.beginTimeRange(t,e)}function it(t){Ri.endTimeRange(t)}function st(t,e){return null}function at(t){Qi=t}function ut(){if(Zi)throw new Error("Cannot enable prod mode after platform setup.");Xi=!1}function ct(){return Zi=!0,Xi}function lt(t){if(Ki&&!Ki.destroyed&&!Ki.injector.get(Yi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ki=t.get(ts);var e=t.get(vi,null);return e&&e.forEach(function(t){return t()}),Ki}function pt(t,e,n){void 0===n&&(n=[]);var r=new io("Platform: "+e);return function(e){void 0===e&&(e=[]);var o=dt();return o&&!o.injector.get(Yi,!1)||(t?t(n.concat(e).concat({provide:r,useValue:!0})):lt(li.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),ht(r)}}function ht(t){var e=dt();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}function ft(){Ki&&!Ki.destroyed&&Ki.destroy()}function dt(){return Ki&&!Ki.destroyed?Ki:null}function yt(t,e){try{var n=e();return Q(n)?n.catch(function(e){throw t.handleError(e),e}):n}catch(e){throw t.handleError(e),e}}function mt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function vt(t,e){var n=fs.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);fs.set(t,e)}function gt(t){var e=fs.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function _t(t){return t.reduce(function(t,e){var n=Array.isArray(e)?_t(e):e;return t.concat(n)},[])}function bt(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function wt(t){return t.map(function(t){return t.nativeElement})}function Ct(t,e,n){t.childNodes.forEach(function(t){t instanceof xs&&(e(t)&&n.push(t),Ct(t,e,n))})}function Et(t,e,n){t instanceof xs&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof xs&&Et(t,e,n)})}function St(t){return Ts.get(t)||null}function xt(t){Ts.set(t.nativeNode,t)}function Tt(t){Ts.delete(t.nativeNode)}function Pt(t,e){var n=At(t),r=At(e);if(n&&r)return Ot(t,e,Pt);var o=t&&("object"==typeof t||"function"==typeof t),i=e&&("object"==typeof e||"function"==typeof e);return!(n||!o||r||!i)||u(t,e)}function At(t){return!!Rt(t)&&(Array.isArray(t)||!(t instanceof Map)&&s()in t)}function Ot(t,e,n){for(var r=t[s()](),o=e[s()]();;){var i=r.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!n(i.value,a.value))return!1}}function Mt(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[s()](),o=void 0;!(o=r.next()).done;)e(o.value)}function Rt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function kt(t,e,n){var r=t.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+e+o}function It(t){return t.name||typeof t}function Nt(){return oi}function Dt(t,e){return t.nodes[e]}function jt(t,e){return t.nodes[e]}function Lt(t,e){return t.nodes[e]}function Vt(t,e){return t.nodes[e]}function Ft(t,e){return t.nodes[e]}function Ut(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 ?"),Bt(o,t)}function Ht(t,e){return t instanceof Error||(t=new Error(t.toString())),qt(t,e),t}function Bt(t,e){var n=new Error(t);return qt(n,e),n}function qt(t,e){t[$o]=e,t[Qo]=e.logError.bind(e)}function zt(t){return!!b(t)}function Gt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Wt(t){var e=ta.get(t);return e||(e=c(t)+"_"+ta.size,ta.set(t,e)),e}function $t(t,e,n,r){if(r instanceof Ps){r=r.wrapped;var o=t.def.nodes[e].bindingIndex+n,i=t.oldValues[o];i instanceof Ps&&(i=i.wrapped),t.oldValues[o]=new Ps(i)}return r}function Kt(t){return{id:ea,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function Qt(t){if(t&&t.id===ea){var e=null!=t.encapsulation&&t.encapsulation!==Io.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+ra++:na}return t&&t.id===na&&(t=null),t||null}function Xt(t,e,n,r){var o=t.oldValues;return!(!(2&t.state)&&u(o[e.bindingIndex+n],r))}function Zt(t,e,n,r){return!!Xt(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Yt(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!Pt(o,r))throw Ut(Ys.createDebugContext(t,e.index),o,r,0!=(1&t.state))}function Jt(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function te(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function ee(t,e,n,r){return Jt(33554432&t.def.nodes[e].flags?jt(t,e).componentView:t),Ys.handleEvent(t,e,n,r)}function ne(t){return t.parent?jt(t.parent,t.parentNodeDef.index):null}function re(t){return t.parent?t.parentNodeDef.parent:null}function oe(t,e){switch(201347067&e.flags){case 1:return jt(t,e.index).renderElement;case 2:return Dt(t,e.index).renderText}}function ie(t,e){return t?t+":"+e:e}function se(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function ae(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function ue(t){return 1<<t%32}function ce(t){var e={},n=0,r={};return t&&t.forEach(function(t){var o=t[0],i=t[1];"number"==typeof o?(e[o]=i,n|=ue(o)):r[o]=i}),{matchedQueries:e,references:r,matchedQueryIds:n}}function le(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Io.Native?jt(t,n.renderParent.index).renderElement:void 0:e}function pe(t){var e=oa.get(t);return e||((e=t(function(){return Js})).factory=t,oa.set(t,e)),e}function he(t){var e=[];return fe(t,0,void 0,void 0,e),e}function fe(t,e,n,r,o){3===e&&(n=t.renderer.parentNode(oe(t,t.def.lastRenderRootNode))),de(t,e,0,t.def.nodes.length-1,n,r,o)}function de(t,e,n,r,o,i,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];11&u.flags&&me(t,u,e,o,i,s),a+=u.childCount}}function ye(t,e,n,r,o,i){for(var s=t;s&&!se(s);)s=s.parent;for(var a=s.parent,u=re(s),c=u.index+1,l=u.index+u.childCount,p=c;p<=l;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&me(a,h,n,r,o,i),p+=h.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(p=0;p<f.length;p++)ve(t,f[p],n,r,o,i)}}function me(t,e,n,r,o,i){if(8&e.flags)ye(t,e.ngContent.index,n,r,o,i);else{var s=oe(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&ve(t,s,n,r,o,i),32&e.bindingFlags&&ve(jt(t,e.index).componentView,s,n,r,o,i)):ve(t,s,n,r,o,i),16777216&e.flags)for(var a=jt(t,e.index).viewContainer._embeddedViews,u=0;u<a.length;u++)fe(a[u],n,r,o,i);1&e.flags&&!e.element.name&&de(t,n,e.index+1,e.index+e.childCount,r,o,i)}}function ve(t,e,n,r,o,i){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,o);break;case 3:s.removeChild(r,e);break;case 0:i.push(e)}}function ge(t){if(":"===t[0]){var e=t.match(ia);return[e[1],e[2]]}return["",t]}function _e(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function be(t,e){for(var n="",r=0;r<2*t;r+=2)n=n+e[r]+Ce(e[r+1]);return n+e[2*t]}function we(t,e,n,r,o,i,s,a,u,c,l,p,h,f,d,y,m,v,g,_){switch(t){case 1:return e+Ce(n)+r;case 2:return e+Ce(n)+r+Ce(o)+i;case 3:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a;case 4:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a+Ce(u)+c;case 5:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p;case 6:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p+Ce(h)+f;case 7:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p+Ce(h)+f+Ce(d)+y;case 8:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p+Ce(h)+f+Ce(d)+y+Ce(m)+v;case 9:return e+Ce(n)+r+Ce(o)+i+Ce(s)+a+Ce(u)+c+Ce(l)+p+Ce(h)+f+Ce(d)+y+Ce(m)+v+Ce(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function Ce(t){return null!=t?t.toString():""}function Ee(t,e,n,r,o,i){t|=1;var s=ce(e),a=s.matchedQueries,u=s.references;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?pe(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Js},provider:null,text:null,query:null,ngContent:null}}function Se(t,e,n,r,o,i,s,a,u,c,l){void 0===i&&(i=[]),u||(u=Js);var p=ce(e),h=p.matchedQueries,f=p.references,d=p.matchedQueryIds,y=null,m=null;o&&(y=(I=ge(o))[0],m=I[1]),s=s||[];for(var v=new Array(s.length),g=0;g<s.length;g++){var _=s[g],b=_[0],w=_[1],C=_[2],E=ge(w),S=E[0],x=E[1],T=void 0,P=void 0;switch(15&b){case 4:P=C;break;case 1:case 8:T=C}v[g]={flags:b,ns:S,name:x,nonMinifiedName:x,securityContext:T,suffix:P}}a=a||[];for(var A=new Array(a.length),g=0;g<a.length;g++){var O=a[g],M=O[0],R=O[1];A[g]={type:0,target:M,eventName:R,propName:null}}var k=(i=i||[]).map(function(t){var e=t[0],n=t[1],r=ge(e);return[r[0],r[1],n]});return l=Qt(l),c&&(t|=33554432),t|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:d,references:f,ngContentIndex:n,childCount:r,bindings:v,bindingFlags:_e(v),outputs:A,element:{ns:y,name:m,attrs:k,template:null,componentProvider:null,componentView:c||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:u||Js},provider:null,text:null,query:null,ngContent:null};var I}function xe(t,e,n){var r,o=n.element,i=t.root.selectorOrNode,s=t.renderer;if(t.parent||!i){r=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=le(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(i);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=o.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(r,p,h,l)}return r}function Te(t,e,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],s=Pe(t,n.index,ie(i.target,i.eventName)),a=i.target,u=t;"component"===i.target&&(a=null,u=e);var c=u.renderer.listen(a||r,i.eventName,s);t.disposables[n.outputIndex+o]=c}}function Pe(t,e,n){return function(r){try{return ee(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function Ae(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Me(t,e,0,n)&&(f=!0),h>1&&Me(t,e,1,r)&&(f=!0),h>2&&Me(t,e,2,o)&&(f=!0),h>3&&Me(t,e,3,i)&&(f=!0),h>4&&Me(t,e,4,s)&&(f=!0),h>5&&Me(t,e,5,a)&&(f=!0),h>6&&Me(t,e,6,u)&&(f=!0),h>7&&Me(t,e,7,c)&&(f=!0),h>8&&Me(t,e,8,l)&&(f=!0),h>9&&Me(t,e,9,p)&&(f=!0),f}function Oe(t,e,n){for(var r=!1,o=0;o<n.length;o++)Me(t,e,o,n[o])&&(r=!0);return r}function Me(t,e,n,r){if(!Zt(t,e,n,r))return!1;var o=e.bindings[n],i=jt(t,e.index),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:Re(t,o,s,o.ns,a,r);break;case 2:ke(t,s,a,r);break;case 4:Ie(t,o,s,a,r);break;case 8:Ne(33554432&e.flags&&32&o.flags?i.componentView:t,o,s,a,r)}return!0}function Re(t,e,n,r,o,i){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=t.renderer;null!=i?u.setAttribute(n,o,a,r):u.removeAttribute(n,o,r)}function ke(t,e,n,r){var o=t.renderer;r?o.addClass(e,n):o.removeClass(e,n)}function Ie(t,e,n,r,o){var i=t.root.sanitizer.sanitize(Qs.STYLE,o);if(null!=i){i=i.toString();var s=e.suffix;null!=s&&(i+=s)}else i=null;var a=t.renderer;null!=i?a.setStyle(n,r,i):a.removeStyle(n,r)}function Ne(t,e,n,r,o){var i=e.securityContext,s=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(n,r,s)}function De(t,e){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function je(t,e,n){var r=le(t,e,n);r&&ye(t,n.ngContent.index,1,r,null,void 0)}function Le(t,e,n,r){var o=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=o.length),r.viewContainerParent=t,Ge(o,n,r),Ve(e,r),Ys.dirtyParentQueries(r),qe(e,n>0?o[n-1]:null,r)}function Ve(t,e){var n=ne(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),Fe(e.parent.def,e.parentNodeDef)}}function Fe(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}function Ue(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,We(n,e),Ys.dirtyParentQueries(r),ze(r),r}function He(t){if(16&t.state){var e=ne(t);if(e){var n=e.template._projectedViews;n&&(We(n,n.indexOf(t)),Ys.dirtyParentQueries(t))}}}function Be(t,e,n){var r=t.viewContainer._embeddedViews,o=r[e];return We(r,e),null==n&&(n=r.length),Ge(r,n,o),Ys.dirtyParentQueries(o),ze(o),qe(t,n>0?r[n-1]:null,o),o}function qe(t,e,n){var r=e?oe(e,e.def.lastRenderRootNode):t.renderElement;fe(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function ze(t){fe(t,3,null,null,void 0)}function Ge(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function We(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function $e(t,e,n,r,o,i){return new ca(t,e,n,r,o,i)}function Ke(t){return t.viewDefFactory}function Qe(t,e,n){return new pa(t,e,n)}function Xe(t){return new ha(t)}function Ze(t,e){return new fa(t,e)}function Ye(t,e){return new da(t,e)}function Je(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=jt(t,n.index);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Dt(t,n.index).renderText;if(20240&n.flags)return Lt(t,n.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function tn(t){return new ya(t.renderer)}function en(t,e,n,r,o,i,s){var a=[];if(i)for(var u in i){var c=i[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=16384,on(t,e,n,r,r,o,a,h)}function nn(t,e,n){return t|=16,on(t,null,0,e,e,n)}function rn(t,e,n,r,o){return on(t,e,0,n,r,o)}function on(t,e,n,r,o,i,s,a){var u=ce(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=i.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:Wt(e)}});return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:n,bindings:s,bindingFlags:_e(s),outputs:a,element:null,provider:{token:r,tokenKey:Wt(r),value:o,deps:h},text:null,query:null,ngContent:null}}function sn(t,e){return 4096&e.flags?Ea:hn(t,e)}function an(t,e){for(var n=t;n.parent&&!se(n);)n=n.parent;return fn(n.parent,re(n),!0,e.provider.value,e.provider.deps)}function un(t,e){var n=(32768&e.flags)>0,r=fn(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o<e.outputs.length;o++){var i=e.outputs[o],s=r[i.propName].subscribe(cn(t,e.parent.index,i.eventName));t.disposables[e.outputIndex+o]=s.unsubscribe.bind(s)}return r}function cn(t,e,n){return function(r){try{return ee(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function ln(t,e,n,r,o,i,s,a,u,c,l,p){var h=Lt(t,e.index),f=h.instance,d=!1,y=void 0,m=e.bindings.length;return m>0&&Xt(t,e,0,n)&&(d=!0,y=vn(t,h,e,0,n,y)),m>1&&Xt(t,e,1,r)&&(d=!0,y=vn(t,h,e,1,r,y)),m>2&&Xt(t,e,2,o)&&(d=!0,y=vn(t,h,e,2,o,y)),m>3&&Xt(t,e,3,i)&&(d=!0,y=vn(t,h,e,3,i,y)),m>4&&Xt(t,e,4,s)&&(d=!0,y=vn(t,h,e,4,s,y)),m>5&&Xt(t,e,5,a)&&(d=!0,y=vn(t,h,e,5,a,y)),m>6&&Xt(t,e,6,u)&&(d=!0,y=vn(t,h,e,6,u,y)),m>7&&Xt(t,e,7,c)&&(d=!0,y=vn(t,h,e,7,c,y)),m>8&&Xt(t,e,8,l)&&(d=!0,y=vn(t,h,e,8,l,y)),m>9&&Xt(t,e,9,p)&&(d=!0,y=vn(t,h,e,9,p,y)),y&&f.ngOnChanges(y),2&t.state&&65536&e.flags&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}function pn(t,e,n){for(var r=Lt(t,e.index),o=r.instance,i=!1,s=void 0,a=0;a<n.length;a++)Xt(t,e,a,n[a])&&(i=!0,s=vn(t,r,e,a,n[a],s));return s&&o.ngOnChanges(s),2&t.state&&65536&e.flags&&o.ngOnInit(),262144&e.flags&&o.ngDoCheck(),i}function hn(t,e){var n,r=(8192&e.flags)>0,o=e.provider;switch(201347067&e.flags){case 512:n=fn(t,e.parent,r,o.value,o.deps);break;case 1024:n=dn(t,e.parent,r,o.value,o.deps);break;case 2048:n=yn(t,e.parent,r,o.deps[0]);break;case 256:n=o.value}return n}function fn(t,e,n,r,o){var i,s=o.length;switch(s){case 0:i=new r;break;case 1:i=new r(yn(t,e,n,o[0]));break;case 2:i=new r(yn(t,e,n,o[0]),yn(t,e,n,o[1]));break;case 3:i=new r(yn(t,e,n,o[0]),yn(t,e,n,o[1]),yn(t,e,n,o[2]));break;default:for(var a=new Array(s),u=0;u<s;u++)a[u]=yn(t,e,n,o[u]);i=new(r.bind.apply(r,[void 0].concat(a)))}return i}function dn(t,e,n,r,o){var i,s=o.length;switch(s){case 0:i=r();break;case 1:i=r(yn(t,e,n,o[0]));break;case 2:i=r(yn(t,e,n,o[0]),yn(t,e,n,o[1]));break;case 3:i=r(yn(t,e,n,o[0]),yn(t,e,n,o[1]),yn(t,e,n,o[2]));break;default:for(var a=Array(s),u=0;u<s;u++)a[u]=yn(t,e,n,o[u]);i=r.apply(void 0,a)}return i}function yn(t,e,n,r,o){if(void 0===o&&(o=Wo.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=t;2&r.flags&&(o=null);var s=r.tokenKey;for(s===wa&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(s){case ma:return tn(a=mn(t,e,n));case va:var a=mn(t,e,n);return a.renderer;case ga:return new ps(jt(t,e.index).renderElement);case _a:return jt(t,e.index).viewContainer;case ba:if(e.element.template)return jt(t,e.index).template;break;case wa:return Xe(mn(t,e,n));case Ca:return Ye(t,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[s];if(u){var c=Lt(t,u.index);return c.instance===Ea&&(c.instance=hn(t,u)),c.instance}}n=se(t),e=re(t),t=t.parent}var l=i.root.injector.get(r.token,Sa);return l!==Sa||o===Sa?l:i.root.ngModule.injector.get(r.token,o)}function mn(t,e,n){var r;if(n)r=jt(t,e.index).componentView;else for(r=t;r.parent&&!se(r);)r=r.parent;return r}function vn(t,e,n,r,o,i){if(32768&n.flags){var s=jt(t,n.parent.index).componentView;2&s.def.flags&&(s.state|=8)}var a=n.bindings[r].name;if(e.instance[a]=o,524288&n.flags){i=i||{};var u=t.oldValues[n.bindingIndex+r];u instanceof Ps&&(u=u.wrapped),i[n.bindings[r].nonMinifiedName]=new Os(u,o,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=o,i}function gn(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0;r<n.length;r++){var o=n[r],i=o.parent;for(!i&&o.flags&e&&bn(t,r,o.flags&e),0==(o.childFlags&e)&&(r+=o.childCount);i&&1&i.flags&&r===i.index+i.childCount;)i.directChildFlags&e&&_n(t,i,e),i=i.parent}}function _n(t,e,n){for(var r=e.index+1;r<=e.index+e.childCount;r++){var o=t.def.nodes[r];o.flags&n&&bn(t,r,o.flags&n),r+=o.childCount}}function bn(t,e,n){var r=Lt(t,e).instance;r!==Ea&&(Ys.setCurrentNode(t,e),1048576&n&&r.ngAfterContentInit(),2097152&n&&r.ngAfterContentChecked(),4194304&n&&r.ngAfterViewInit(),8388608&n&&r.ngAfterViewChecked(),131072&n&&r.ngOnDestroy())}function wn(t){return Sn(128,new Array(t+1))}function Cn(t){return Sn(32,new Array(t))}function En(t){return Sn(64,t)}function Sn(t,e){for(var n=new Array(e.length),r=0;r<e.length;r++){var o=e[r];n[r]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:n,bindingFlags:_e(n),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function xn(t,e){return{value:void 0}}function Tn(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Zt(t,e,0,n)&&(f=!0),d>1&&Zt(t,e,1,r)&&(f=!0),d>2&&Zt(t,e,2,o)&&(f=!0),d>3&&Zt(t,e,3,i)&&(f=!0),d>4&&Zt(t,e,4,s)&&(f=!0),d>5&&Zt(t,e,5,a)&&(f=!0),d>6&&Zt(t,e,6,u)&&(f=!0),d>7&&Zt(t,e,7,c)&&(f=!0),d>8&&Zt(t,e,8,l)&&(f=!0),d>9&&Zt(t,e,9,p)&&(f=!0),f){var y=Vt(t,e.index),m=void 0;switch(201347067&e.flags){case 32:m=new Array(h.length),d>0&&(m[0]=n),d>1&&(m[1]=r),d>2&&(m[2]=o),d>3&&(m[3]=i),d>4&&(m[4]=s),d>5&&(m[5]=a),d>6&&(m[6]=u),d>7&&(m[7]=c),d>8&&(m[8]=l),d>9&&(m[9]=p);break;case 64:m={},d>0&&(m[h[0].name]=n),d>1&&(m[h[1].name]=r),d>2&&(m[h[2].name]=o),d>3&&(m[h[3].name]=i),d>4&&(m[h[4].name]=s),d>5&&(m[h[5].name]=a),d>6&&(m[h[6].name]=u),d>7&&(m[h[7].name]=c),d>8&&(m[h[8].name]=l),d>9&&(m[h[9].name]=p);break;case 128:var v=n;switch(d){case 1:m=v.transform(n);break;case 2:m=v.transform(r);break;case 3:m=v.transform(r,o);break;case 4:m=v.transform(r,o,i);break;case 5:m=v.transform(r,o,i,s);break;case 6:m=v.transform(r,o,i,s,a);break;case 7:m=v.transform(r,o,i,s,a,u);break;case 8:m=v.transform(r,o,i,s,a,u,c);break;case 9:m=v.transform(r,o,i,s,a,u,c,l);break;case 10:m=v.transform(r,o,i,s,a,u,c,l,p)}}y.value=m}return f}function Pn(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Zt(t,e,i,n[i])&&(o=!0);if(o){var s=Vt(t,e.index),a=void 0;switch(201347067&e.flags){case 32:a=n;break;case 64:a={};for(i=0;i<n.length;i++)a[r[i].name]=n[i];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,c)}s.value=a}return o}function An(t,e,n){var r=[];for(var o in n){var i=n[o];r.push({propName:o,bindingType:i})}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:ue(e),bindings:r},ngContent:null}}function On(){return new ds}function Mn(t){for(var e=t.def.nodeMatchedQueries;t.parent&&ae(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.index+n.childCount,o=0;o<=r;o++)67108864&(i=t.def.nodes[o]).flags&&536870912&i.flags&&(i.query.filterId&e)===i.query.filterId&&Ft(t,o).setDirty(),!(1&i.flags&&o+i.childCount<n.index)&&67108864&i.childFlags&&536870912&i.childFlags||(o+=i.childCount)}if(134217728&t.def.nodeFlags)for(o=0;o<t.def.nodes.length;o++){var i=t.def.nodes[o];134217728&i.flags&&536870912&i.flags&&Ft(t,o).setDirty(),o+=i.childCount}}function Rn(t,e){var n=Ft(t,e.index);if(n.dirty){var r,o=void 0;if(67108864&e.flags){var i=e.parent.parent;o=kn(t,i.index,i.index+i.childCount,e.query,[]),r=Lt(t,e.parent.index).instance}else 134217728&e.flags&&(o=kn(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(o);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function kn(t,e,n,r,o){for(var i=e;i<=n;i++){var s=t.def.nodes[i],a=s.matchedQueries[r.id];if(null!=a&&o.push(In(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=jt(t,i);if(16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=ne(p);h&&h===u&&kn(p,0,p.def.nodes.length-1,r,o)}var f=u.template._projectedViews;if(f)for(l=0;l<f.length;l++){var d=f[l];kn(d,0,d.def.nodes.length-1,r,o)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(i+=s.childCount)}return o}function In(t,e,n){if(null!=n){var r=void 0;switch(n){case 1:r=jt(t,e.index).renderElement;break;case 0:r=new ps(jt(t,e.index).renderElement);break;case 2:r=jt(t,e.index).template;break;case 3:r=jt(t,e.index).viewContainer;break;case 4:r=Lt(t,e.index).instance}return r}}function Nn(t,e){for(var n=new Array(e.length-1),r=1;r<e.length;r++)n[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[r]};return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:n,bindingFlags:_e(n),outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function Dn(t,e,n){var r,o=t.renderer;r=o.createText(n.text.prefix);var i=le(t,e,n);return i&&o.appendChild(i,r),{renderText:r}}function jn(t,e,n,r,o,i,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Zt(t,e,0,n)&&(h=!0),d>1&&Zt(t,e,1,r)&&(h=!0),d>2&&Zt(t,e,2,o)&&(h=!0),d>3&&Zt(t,e,3,i)&&(h=!0),d>4&&Zt(t,e,4,s)&&(h=!0),d>5&&Zt(t,e,5,a)&&(h=!0),d>6&&Zt(t,e,6,u)&&(h=!0),d>7&&Zt(t,e,7,c)&&(h=!0),d>8&&Zt(t,e,8,l)&&(h=!0),d>9&&Zt(t,e,9,p)&&(h=!0),h){var y=e.text.prefix;d>0&&(y+=Vn(n,f[0])),d>1&&(y+=Vn(r,f[1])),d>2&&(y+=Vn(o,f[2])),d>3&&(y+=Vn(i,f[3])),d>4&&(y+=Vn(s,f[4])),d>5&&(y+=Vn(a,f[5])),d>6&&(y+=Vn(u,f[6])),d>7&&(y+=Vn(c,f[7])),d>8&&(y+=Vn(l,f[8])),d>9&&(y+=Vn(p,f[9]));var m=Dt(t,e.index).renderText;t.renderer.setValue(m,y)}return h}function Ln(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Zt(t,e,i,n[i])&&(o=!0);if(o){for(var s="",i=0;i<n.length;i++)s+=Vn(n[i],r[i]);s=e.text.prefix+s;var a=Dt(t,e.index).renderText;t.renderer.setValue(a,s)}return o}function Vn(t,e){return(null!=t?t.toString():"")+e.suffix}function Fn(t,e,n,r){for(var o=0,i=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,f=0;f<e.length;f++){for(;c&&f>c.index+c.childCount;)(_=c.parent)&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),c=_;var d=e[f];d.index=f,d.parent=c,d.bindingIndex=o,d.outputIndex=i;var y=void 0;if(y=c&&1&c.flags&&!c.element.name?c.renderParent:c,d.renderParent=y,d.element){var m=d.element;m.publicProviders=c?c.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,l=!1,p=!1}if(Un(c,d,e.length),s|=d.flags,u|=d.matchedQueryIds,d.element&&d.element.template&&(u|=d.element.template.nodeMatchedQueries),c?(c.childFlags|=d.flags,c.directChildFlags|=d.flags,c.childMatchedQueries|=d.matchedQueryIds,d.element&&d.element.template&&(c.childMatchedQueries|=d.element.template.nodeMatchedQueries)):a|=d.flags,o+=d.bindings.length,i+=d.outputs.length,!y&&3&d.flags&&(h=d),20224&d.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var v=0!=(8192&d.flags),g=0!=(32768&d.flags);!v||g?c.element.publicProviders[d.provider.tokenKey]=d:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[d.provider.tokenKey]=d),g&&(c.element.componentProvider=d)}d.childCount&&(c=d)}for(;c;){var _=c.parent;_&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),c=_}var b=function(t,n,r,o){return e[n].element.handleEvent(t,r,o)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Js,updateRenderer:r||Js,handleEvent:b||Js,bindingCount:o,outputCount:i,lastRenderRootNode:h}}function Un(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.index+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!");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.index+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var o=t?t.index+t.childCount:n-1;if(e.index<=o&&e.index+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function Hn(t,e,n){var r=qn(t.root,t.renderer,t,e,e.element.template);return zn(r,t.component,n),Gn(r),r}function Bn(t,e,n){var r=qn(t,t.renderer,null,null,e);return zn(r,n,n),Gn(r),r}function qn(t,e,n,r,o){var i=new Array(o.nodes.length),s=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:s}}function zn(t,e,n){t.component=e,t.context=n}function Gn(t){var e;if(se(t)){var n=t.parentNodeDef;e=jt(t.parent,n.parent.index).renderElement}for(var r=t.def,o=t.nodes,i=0;i<r.nodes.length;i++){var s=r.nodes[i];Ys.setCurrentNode(t,i);var a=void 0;switch(201347067&s.flags){case 1:var u=xe(t,e,s),c=void 0;if(33554432&s.flags){var l=pe(s.element.componentView),p=s.element.componentRendererType,h=void 0;h=p?t.root.rendererFactory.createRenderer(u,p):t.root.renderer,c=qn(t.root,h,t,s.element.componentProvider,l)}Te(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?Ze(t,s):void 0},16777216&s.flags&&(a.viewContainer=Qe(t,s,a));break;case 2:a=Dn(t,e,s);break;case 512:case 1024:case 2048:case 256:a={instance:f=sn(t,s)};break;case 16:a={instance:f=an(t,s)};break;case 16384:var f=un(t,s);a={instance:f},32768&s.flags&&zn(jt(t,s.parent.index).componentView,f,f);break;case 32:case 64:case 128:a=xn(t,s);break;case 67108864:case 134217728:a=On();break;case 8:je(t,e,s),a=void 0}o[i]=a}or(t,xa.CreateViewNodes),ur(t,201326592,268435456,0)}function Wn(t){Qn(t),Ys.updateDirectives(t,1),ir(t,xa.CheckNoChanges),Ys.updateRenderer(t,1),or(t,xa.CheckNoChanges),t.state&=-97}function $n(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Qn(t),Ys.updateDirectives(t,0),ir(t,xa.CheckAndUpdate),ur(t,67108864,536870912,0),gn(t,2097152|(2&t.state?1048576:0)),Ys.updateRenderer(t,0),or(t,xa.CheckAndUpdate),ur(t,134217728,536870912,0),gn(t,8388608|(2&t.state?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97}function Kn(t,e,n,r,o,i,s,a,u,c,l,p,h){return 0===n?Xn(t,e,r,o,i,s,a,u,c,l,p,h):Zn(t,e,r)}function Qn(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var o=jt(t,n).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var s=o[i];s.state|=32,te(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Xn(t,e,n,r,o,i,s,a,u,c,l,p){var h=!1;switch(201347067&e.flags){case 1:h=Ae(t,e,n,r,o,i,s,a,u,c,l,p);break;case 2:h=jn(t,e,n,r,o,i,s,a,u,c,l,p);break;case 16384:h=ln(t,e,n,r,o,i,s,a,u,c,l,p);break;case 32:case 64:case 128:h=Tn(t,e,n,r,o,i,s,a,u,c,l,p)}return h}function Zn(t,e,n){var r=!1;switch(201347067&e.flags){case 1:r=Oe(t,e,n);break;case 2:r=Ln(t,e,n);break;case 16384:r=pn(t,e,n);break;case 32:case 64:case 128:r=Pn(t,e,n)}if(r)for(var o=e.bindings.length,i=e.bindingIndex,s=t.oldValues,a=0;a<o;a++)s[i+a]=n[a];return r}function Yn(t,e,n,r,o,i,s,a,u,c,l,p,h){return 0===n?Jn(t,e,r,o,i,s,a,u,c,l,p,h):tr(t,e,r),!1}function Jn(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Yt(t,e,0,n),h>1&&Yt(t,e,1,r),h>2&&Yt(t,e,2,o),h>3&&Yt(t,e,3,i),h>4&&Yt(t,e,4,s),h>5&&Yt(t,e,5,a),h>6&&Yt(t,e,6,u),h>7&&Yt(t,e,7,c),h>8&&Yt(t,e,8,l),h>9&&Yt(t,e,9,p)}function tr(t,e,n){for(var r=0;r<n.length;r++)Yt(t,e,r,n[r])}function er(t,e){if(Ft(t,e.index).dirty)throw Ut(Ys.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function nr(t){if(!(128&t.state)){if(ir(t,xa.Destroy),or(t,xa.Destroy),gn(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();He(t),t.renderer.destroyNode&&rr(t),se(t)&&t.renderer.destroy(),t.state|=128}}function rr(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(jt(t,n).renderElement):2&r.flags&&t.renderer.destroyNode(Dt(t,n).renderText)}}function or(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];33554432&o.flags?sr(jt(t,r).componentView,e):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function ir(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(16777216&o.flags)for(var i=jt(t,r).viewContainer._embeddedViews,s=0;s<i.length;s++)sr(i[s],e);else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function sr(t,e){var n=t.state;switch(e){case xa.CheckNoChanges:0==(128&n)&&(12==(12&n)?Wn(t):64&n&&ar(t,xa.CheckNoChangesProjectedViews));break;case xa.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Wn(t):64&n&&ar(t,e));break;case xa.CheckAndUpdate:0==(128&n)&&(12==(12&n)?$n(t):64&n&&ar(t,xa.CheckAndUpdateProjectedViews));break;case xa.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?$n(t):64&n&&ar(t,e));break;case xa.Destroy:nr(t);break;case xa.CreateViewNodes:Gn(t)}}function ar(t,e){ir(t,e),or(t,e)}function ur(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var o=t.def.nodes.length,i=0;i<o;i++){var s=t.def.nodes[i];if(s.flags&e&&s.flags&n)switch(Ys.setCurrentNode(t,s.index),r){case 0:Rn(t,s);break;case 1:er(t,s)}s.childFlags&e&&s.childFlags&n||(i+=s.childCount)}}function cr(){if(!Ta){Ta=!0;var t=ct()?pr():lr();Ys.setCurrentNode=t.setCurrentNode,Ys.createRootView=t.createRootView,Ys.createEmbeddedView=t.createEmbeddedView,Ys.checkAndUpdateView=t.checkAndUpdateView,Ys.checkNoChangesView=t.checkNoChangesView,Ys.destroyView=t.destroyView,Ys.resolveDep=yn,Ys.createDebugContext=t.createDebugContext,Ys.handleEvent=t.handleEvent,Ys.updateDirectives=t.updateDirectives,Ys.updateRenderer=t.updateRenderer,Ys.dirtyParentQueries=Mn}}function lr(){return{setCurrentNode:function(){},createRootView:hr,createEmbeddedView:Hn,checkAndUpdateView:$n,checkNoChangesView:Wn,destroyView:nr,createDebugContext:function(t,e){return new ka(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?yr:mr,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?yr:mr,t)}}}function pr(){return{setCurrentNode:wr,createRootView:fr,createEmbeddedView:vr,checkAndUpdateView:gr,checkNoChangesView:_r,destroyView:br,createDebugContext:function(t,e){return new ka(t,e)},handleEvent:Cr,updateDirectives:Er,updateRenderer:Sr}}function hr(t,e,n,r,o,i){return Bn(dr(t,o,o.injector.get(us),e,n),r,i)}function fr(t,e,n,r,o,i){var s=o.injector.get(us),a=dr(t,o,new Ia(s),e,n);return Dr(Pa.create,Bn,null,[a,r,i])}function dr(t,e,n,r,o){var i=e.injector.get(Xs),s=e.injector.get(Xo);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function yr(t,e,n,r,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Kn(t,f,n,r,o,i,s,a,u,c,l,p,h),224&f.flags?Vt(t,e).value:void 0}function mr(t,e,n,r,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Yn(t,f,n,r,o,i,s,a,u,c,l,p,h),224&f.flags?Vt(t,e).value:void 0}function vr(t,e,n){return Dr(Pa.create,Hn,null,[t,e,n])}function gr(t){return Dr(Pa.detectChanges,$n,null,[t])}function _r(t){return Dr(Pa.checkNoChanges,Wn,null,[t])}function br(t){return Dr(Pa.destroy,nr,null,[t])}function wr(t,e){Oa=t,Ma=e}function Cr(t,e,n,r){return wr(t,e),Dr(Pa.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Er(t,e){function n(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[n];return 0===e?xr(t,s,r,o):Tr(t,s,r,o),16384&s.flags&&wr(t,Mr(t,n)),224&s.flags?Vt(t,s.index).value:void 0}if(128&t.state)throw Gt(Pa[Aa]);return wr(t,Mr(t,0)),t.def.updateDirectives(n,t)}function Sr(t,e){function n(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[n];return 0===e?xr(t,s,r,o):Tr(t,s,r,o),3&s.flags&&wr(t,Rr(t,n)),224&s.flags?Vt(t,s.index).value:void 0}if(128&t.state)throw Gt(Pa[Aa]);return wr(t,Rr(t,0)),t.def.updateRenderer(n,t)}function xr(t,e,n,r){if(Kn.apply(void 0,[t,e,n].concat(r))){var o=1===n?r[0]:r;if(16384&e.flags){for(var i={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=o[s];8&a.flags&&(i[Pr(a.nonMinifiedName)]=Or(u))}var c=e.parent,l=jt(t,c.index).renderElement;if(c.element.name)for(var p in i)null!=(u=i[p])?t.renderer.setAttribute(l,p,u):t.renderer.removeAttribute(l,p);else t.renderer.setValue(l,"bindings="+JSON.stringify(i,null,2))}}}function Tr(t,e,n,r){Yn.apply(void 0,[t,e,n].concat(r))}function Pr(t){return"ng-reflect-"+(t=Ar(t.replace(/[$@]/g,"_")))}function Ar(t){return t.replace(Ra,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function Or(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function Mr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Rr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}function kr(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}function Ir(t){for(;t&&!se(t);)t=t.parent;return t.parent?jt(t.parent,re(t).index):null}function Nr(t,e,n){for(var r in e.references)n[r]=In(t,e,e.references[r])}function Dr(t,e,n,r){var o=Aa,i=Oa,s=Ma;try{Aa=t;var a=e.apply(n,r);return Oa=i,Ma=s,Aa=o,a}catch(t){if(zt(t)||!Oa)throw t;throw Ht(t,jr())}}function jr(){return Oa?new ka(Oa,Ma):null}function Lr(){return Bs}function Vr(){return qs}function Fr(t){return t||"en-US"}function Ur(){cr()}function Hr(t,e){return{name:t,definitions:e}}function Br(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function qr(t){return{type:3,steps:t}}function zr(t){return{type:2,steps:t}}function Gr(t){return{type:6,styles:t}}function Wr(t,e){return{type:0,name:t,styles:e}}function $r(t){return{type:5,steps:t}}function Kr(t,e){return{type:1,expr:t,animation:e}}function Qr(t,e){return Hr(t,e)}function Xr(t,e){return Br(t,e)}function Zr(t){return qr(t)}function Yr(t){return zr(t)}function Jr(t){return Gr(t)}function to(t,e){return Wr(t,e)}function eo(t){return $r(t)}function no(t,e){return Kr(t,e)}var ro=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},oo=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),io=function(t){function e(e){return t.call(this,e)||this}return ro(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(oo),so="undefined"!=typeof window&&window,ao="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,uo=void 0!==r&&r,co=so||uo||ao,lo=null,po=0,ho=co.Reflect,fo=new io("AnalyzeForEntryComponents"),yo=y("Attribute",[["attributeName",void 0]]),mo=function(){function t(){}return t}(),vo=m("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],mo),go=m("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],mo),_o=m("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],mo),bo=m("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],mo),wo={};wo.OnPush=0,wo.Default=1,wo[wo.OnPush]="OnPush",wo[wo.Default]="Default";var Co={};Co.CheckOnce=0,Co.Checked=1,Co.CheckAlways=2,Co.Detached=3,Co.Errored=4,Co.Destroyed=5,Co[Co.CheckOnce]="CheckOnce",Co[Co.Checked]="Checked",Co[Co.CheckAlways]="CheckAlways",Co[Co.Detached]="Detached",Co[Co.Errored]="Errored",Co[Co.Destroyed]="Destroyed";var Eo=f("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),So=f("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:wo.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},Eo),xo=f("Pipe",{name:void 0,pure:!0}),To=m("Input",[["bindingPropertyName",void 0]]),Po=m("Output",[["bindingPropertyName",void 0]]),Ao=m("HostBinding",[["hostPropertyName",void 0]]),Oo=m("HostListener",[["eventName",void 0],["args",[]]]),Mo={name:"custom-elements"},Ro={name:"no-errors-schema"},ko=f("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),Io={};Io.Emulated=0,Io.Native=1,Io.None=2,Io[Io.Emulated]="Emulated",Io[Io.Native]="Native",Io[Io.None]="None";var No=function(){function t(t){var e=void 0===t?{}:t,n=e.templateUrl,r=e.template,o=e.encapsulation,i=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=n,this.template=r,this.styleUrls=s,this.styles=i,this.encapsulation=o,this.animations=a,this.interpolation=u}return t}(),Do=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}(),jo=new Do("4.1.3"),Lo=y("Inject",[["token",void 0]]),Vo=y("Optional",[]),Fo=f("Injectable",[]),Uo=y("Self",[]),Ho=y("SkipSelf",[]),Bo=y("Host",[]),qo=new Object,zo=qo,Go=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=qo),e===qo)throw new Error("No provider for "+c(t)+"!");return e},t}(),Wo=function(){function t(){}return t.prototype.get=function(t,e){},t.prototype.get=function(t,e){},t}();Wo.THROW_IF_NOT_FOUND=qo,Wo.NULL=new Go;var $o="ngDebugContext",Ko="ngOriginalError",Qo="ngErrorLogger",Xo=function(){function t(t){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=C(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?b(t)?b(t):this._findContext(w(t)):null},t.prototype._findOriginalError=function(t){for(var e=w(t);e&&w(e);)e=w(e);return e},t}(),Zo=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return c(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Yo.get(_(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Yo.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Yo=new(function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Zo)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Zo(t,Zo.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}()),Jo=Function,ti=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,ei=function(){function t(t){this._reflect=t||co.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=void 0===t?new Array(e.length):new Array(t.length);for(var r=0;r<n.length;r++)void 0===t?n[r]=[]:t[r]!=Object?n[r]=[t[r]]:n[r]=[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if(ti.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,o=r.map(function(t){return t&&t.type}),i=r.map(function(t){return t&&L(t.decorators)});return this._zipTypesAndAnnotations(o,i)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){i=this._reflect.getOwnMetadata("parameters",t);if((o=this._reflect.getOwnMetadata("design:paramtypes",t))||i)return this._zipTypesAndAnnotations(o,i)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!j(t))return[];var e=V(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?L(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!j(t))return[];var e=V(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,o={};return Object.keys(r).forEach(function(t){o[t]=L(r[t])}),o}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!j(t))return{};var e=V(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var o=this._ownPropMetadata(t,e);return o&&Object.keys(o).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,o[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Jo&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+c(t)},t.prototype.resourceUri=function(t){return"./"+c(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),ni=function(){function t(){}return t.prototype.parameters=function(t){},t.prototype.annotations=function(t){},t.prototype.propMetadata=function(t){},t.prototype.importUri=function(t){},t.prototype.resourceUri=function(t){},t.prototype.resolveIdentifier=function(t,e,n,r){},t.prototype.resolveEnum=function(t,e){},t}(),ri=function(t){function e(e){var n=t.call(this)||this;return n.reflectionCapabilities=e,n}return ro(e,t),e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},e.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(ni),oi=new ri(new ei),ii=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),si=[],ai=function(){function t(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),ui=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),ci=new Object,li=function(){function t(){}return t.resolve=function(t){return H(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new pi(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(t){},t.prototype.createChildFromResolved=function(t){},t.prototype.resolveAndInstantiate=function(t){},t.prototype.instantiateResolved=function(t){},t.prototype.get=function(t,e){},t}(),pi=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=ci}return t.prototype.get=function(t,e){return void 0===e&&(e=zo),this._getByKey(Zo.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=li.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n._parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(li.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw N(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw M(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,o=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}var i;try{i=o.apply(void 0,n)}catch(e){throw R(this,e,e.stack,t.key)}return i},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:zo)},t.prototype._getByKey=function(t,e,n){return t===hi?this:e instanceof Uo?this._getByKeySelf(t,n):this._getByKeyDefault(t,n,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===ci&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return ci},t.prototype._throwOrNull=function(t,e){if(e!==zo)return e;throw O(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==ci?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var o;for(o=r instanceof Ho?this._parent:this;o instanceof t;){var i=o,s=i._getObjByKeyId(e.id);if(s!==ci)return s;o=i._parent}return null!==o?o.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+K(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),hi=Zo.get(Wo),fi=new io("Application Initializer"),di=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this._done=!1,this._donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t._done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var o=this.appInits[r]();Q(o)&&e.push(o)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();di.decorators=[{type:Fo}],di.ctorParameters=function(){return[{type:Array,decorators:[{type:Lo,args:[fi]},{type:Vo}]}]};var yi=new io("AppId"),mi={provide:yi,useFactory:Z,deps:[]},vi=new io("Platform Initializer"),gi=new io("Platform ID"),_i=new io("appBootstrapListener"),bi=new io("Application Packages Root URL"),wi=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();wi.decorators=[{type:Fo}],wi.ctorParameters=function(){return[]};var Ci=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),Ei=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw J()},t.prototype.compileModuleAsync=function(t){throw J()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw J()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw J()},t.prototype.getNgContentSelectors=function(t){throw J()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}();Ei.decorators=[{type:Fo}],Ei.ctorParameters=function(){return[]};var Si=new io("compilerOptions"),xi=function(){function t(){}return t.prototype.createCompiler=function(t){},t}(),Ti=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),Pi=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(t,e,n,r){},t}(),Ai="ngComponent",Oi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw tt(t)},t}(),Mi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){},t}();Mi.NULL=new Oi;var Ri,ki,Ii=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var o=t[r];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t)||this._parent.resolveComponentFactory(t);return new Ni(e,this._ngModule)},t}(),Ni=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r}return ro(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Pi),Di=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),ji=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){var e=new this._injectorClass(t||Wo.NULL);return e.create(),e},t}(),Li=new Object,Vi=function(){function t(t,e,n){var r=this;this.parent=t,this._destroyListeners=[],this._destroyed=!1,this.bootstrapFactories=n.map(function(t){return new Ni(t,r)}),this._cmpFactoryResolver=new Ii(e,t.get(Mi,Mi.NULL),this)}return t.prototype.create=function(){this.instance=this.createInternal()},t.prototype.createInternal=function(){},t.prototype.get=function(t,e){if(void 0===e&&(e=zo),t===Wo||t===Di)return this;if(t===Mi)return this._cmpFactoryResolver;var n=this.getInternal(t,Li);return n===Li?this.parent.get(t,e):n},t.prototype.getInternal=function(t,e){},Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this._cmpFactoryResolver},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+c(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t.prototype.destroyInternal=function(){},t}(),Fi=et(),Ui=Fi?nt:function(t,e){return st},Hi=Fi?rt:function(t,e){return e},Bi=Fi?ot:function(t,e){return null},qi=Fi?it:function(t){return null},zi=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return ro(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,i=function(t){return null},s=function(){return null};return e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(i=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,o,i,s)},e}(i.Subject),Gi=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new zi(!1),this._onMicrotaskEmpty=new zi(!1),this._onStable=new zi(!1),this._onErrorEvents=new zi(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,o,i,s){try{return t.onEnter(),e.invokeTask(r,o,i,s)}finally{t.onLeave()}},onInvoke:function(e,n,r,o,i,s,a){try{return t.onEnter(),e.invoke(r,o,i,s,a)}finally{t.onLeave()}},onHasTask:function(e,n,r,o){e.hasTask(r,o),n===r&&("microTask"==o.change?t.setHasMicrotask(o.microTask):"macroTask"==o.change&&t.setHasMacrotask(o.macroTask))},onHandleError:function(e,n,r,o){return e.handleError(r,o),t.triggerError(o),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),Wi=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){Gi.assertNotInAngularZone(),a(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?a(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(t,e,n){return[]},t.prototype.findProviders=function(t,e,n){return[]},t}();Wi.decorators=[{type:Fo}],Wi.ctorParameters=function(){return[{type:Gi}]};var $i=function(){function t(){this._applications=new Map,Qi.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},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),Qi.findTestabilityInTree(this,t,e)},t}();$i.decorators=[{type:Fo}],$i.ctorParameters=function(){return[]};var Ki,Qi=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Xi=!0,Zi=!1,Yi=new io("AllowMultipleToken"),Ji=function(){function t(t,e){this.name=t,this.token=e}return t}(),ts=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(t){},t.prototype.bootstrapModule=function(t,e){},t.prototype.onDestroy=function(t){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),es=function(t){function e(e){var n=t.call(this)||this;return n._injector=e,n._modules=[],n._destroyListeners=[],n._destroyed=!1,n}return ro(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.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},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var n=this;return e||(e=new Gi({enableLongStackTrace:ct()})),e.run(function(){var r=li.resolveAndCreate([{provide:Gi,useValue:e}],n.injector),o=t.create(r),i=o.injector.get(Xo,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return mt(n._modules,o)}),e.onError.subscribe({next:function(t){i.handleError(t)}}),yt(i,function(){var t=o.injector.get(di);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(o),o})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,n){var r=this;return void 0===e&&(e=[]),this.injector.get(xi).createCompiler(Array.isArray(e)?e:[e]).compileModuleAsync(t).then(function(t){return r._bootstrapModuleFactoryWithZone(t,n)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(ns);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+c(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e}(ts);es.decorators=[{type:Fo}],es.ctorParameters=function(){return[{type:Wo}]};var ns=function(){function t(){}return t.prototype.bootstrap=function(t){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),rs=function(t){function r(r,i,s,u,c,l){var p=t.call(this)||this;p._zone=r,p._console=i,p._injector=s,p._exceptionHandler=u,p._componentFactoryResolver=c,p._initStatus=l,p._bootstrapListeners=[],p._rootComponents=[],p._rootComponentTypes=[],p._views=[],p._runningTick=!1,p._enforceNoNewChanges=!1,p._stable=!0,p._enforceNoNewChanges=ct(),p._zone.onMicrotaskEmpty.subscribe({next:function(){p._zone.run(function(){p.tick()})}});var h=new e.Observable(function(t){p._stable=p._zone.isStable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks,p._zone.runOutsideAngular(function(){t.next(p._stable),t.complete()})}),f=new e.Observable(function(t){var e=p._zone.onStable.subscribe(function(){Gi.assertNotInAngularZone(),a(function(){p._stable||p._zone.hasPendingMacrotasks||p._zone.hasPendingMicrotasks||(p._stable=!0,t.next(!0))})}),n=p._zone.onUnstable.subscribe(function(){Gi.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return p._isStable=n.merge(h,o.share.call(f)),p}return ro(r,t),r.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},r.prototype.detachView=function(t){var e=t;mt(this._views,e),e.detachFromAppRef()},r.prototype.bootstrap=function(t){var e=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var n;n=t instanceof Pi?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);var r=n instanceof Ni?null:this._injector.get(Di),o=n.create(Wo.NULL,[],n.selector,r);o.onDestroy(function(){e._unloadComponent(o)});var i=o.injector.get(Wi,null);return i&&o.injector.get($i).registerApplication(o.location.nativeElement,i),this._loadComponent(o),ct()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},r.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t),this._injector.get(_i,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},r.prototype._unloadComponent=function(t){this.detachView(t.hostView),mt(this._rootComponents,t)},r.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=r._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._exceptionHandler.handleError(t)}finally{this._runningTick=!1,Hi(t)}},r.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(r.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),r}(ns);rs._tickScope=Ui("ApplicationRef#tick()"),rs.decorators=[{type:Fo}],rs.ctorParameters=function(){return[{type:Gi},{type:wi},{type:Wo},{type:Xo},{type:Mi},{type:di}]};var os=function(){function t(t,e,n,r,o,i){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=o,this.animations=i}return t}(),is=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),ss=function(){function t(){}return t.prototype.selectRootElement=function(t,e){},t.prototype.createElement=function(t,e,n){},t.prototype.createViewRoot=function(t){},t.prototype.createTemplateAnchor=function(t,e){},t.prototype.createText=function(t,e,n){},t.prototype.projectNodes=function(t,e){},t.prototype.attachViewAfter=function(t,e){},t.prototype.detachView=function(t){},t.prototype.destroyView=function(t,e){},t.prototype.listen=function(t,e,n){},t.prototype.listenGlobal=function(t,e,n){},t.prototype.setElementProperty=function(t,e,n){},t.prototype.setElementAttribute=function(t,e,n){},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){},t.prototype.setElementStyle=function(t,e,n){},t.prototype.invokeElementMethod=function(t,e,n){},t.prototype.setText=function(t,e){},t.prototype.animate=function(t,e,n,r,o,i,s){},t}(),as=(new io("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(t){},t}()),us=function(){function t(){}return t.prototype.createRenderer=function(t,e){},t}(),cs={};cs.Important=1,cs.DashCase=2,cs[cs.Important]="Important",cs[cs.DashCase]="DashCase";var ls=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createText=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.insertBefore=function(t,e,n){},t.prototype.removeChild=function(t,e){},t.prototype.selectRootElement=function(t){},t.prototype.parentNode=function(t){},t.prototype.nextSibling=function(t){},t.prototype.setAttribute=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e,n){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.setStyle=function(t,e,n,r){},t.prototype.removeStyle=function(t,e,n){},t.prototype.setProperty=function(t,e,n){},t.prototype.setValue=function(t,e){},t.prototype.listen=function(t,e,n){},t}(),ps=function(){function t(t){this.nativeElement=t}return t}(),hs=function(){function t(){}return t.prototype.load=function(t){},t}(),fs=new Map,ds=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new zi}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),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[s()]=function(){return this._results[s()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=_t(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),ys=function(){function t(){}return t}(),ms={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},vs=function(){function t(t,e){this._compiler=t,this._config=e||ms}return t.prototype.load=function(t){return this._compiler instanceof Ei?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=t.split("#"),r=n[0],o=n[1];return void 0===o&&(o="default"),System.import(r).then(function(t){return t[o]}).then(function(t){return bt(t,r,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),n=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+o]}).then(function(t){return bt(t,n,r)})},t}();vs.decorators=[{type:Fo}],vs.ctorParameters=function(){return[{type:Ei},{type:ys,decorators:[{type:Vo}]}]};var gs=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(t){},t}(),_s=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(t){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(t,e,n){},t.prototype.createComponent=function(t,e,n,r,o){},t.prototype.insert=function(t,e){},t.prototype.move=function(t,e){},t.prototype.indexOf=function(t){},t.prototype.remove=function(t){},t.prototype.detach=function(t){},t}(),bs=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ro(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(t){},e}(bs),Cs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ro(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(ws),Es=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Ss=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof xs?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}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),xs=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 ro(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=this,r=this.childNodes.indexOf(t);-1!==r&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var o},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 Ct(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Et(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}(Ss),Ts=new Map,Ps=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),As=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof Ps?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),Os=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),Ms=function(){function t(){}return t.prototype.supports=function(t){return At(t)},t.prototype.create=function(t,e){return new ks(e||t)},t}(),Rs=function(t,e){return e},ks=function(){function t(t){this._length=0,this._collection=null,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||Rs}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),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<kt(n,r,o)?e:n,s=kt(i,r,o),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{o||(o=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<o.length?o[l]:o[l]=0,h=p+l;c<=h&&h<u&&(o[l]=p+1)}o[i.previousIndex]=c-u}}s!==a&&t(i,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!At(t))throw new Error("Error trying to diff '"+c(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,o,i=this._itHead,s=!1;if(Array.isArray(t)){this._length=t.length;for(var a=0;a<this._length;a++)r=t[a],o=this._trackByFn(a,r),null!==i&&u(i.trackById,o)?(s&&(i=this._verifyReinsertion(i,r,o,a)),u(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,a),s=!0),i=i._next}else n=0,Mt(t,function(t){o=e._trackByFn(n,t),null!==i&&u(i.trackById,o)?(s&&(i=e._verifyReinsertion(i,t,o,n)),u(i.item,t)||e._addIdentityChange(i,t)):(i=e._mismatch(i,t,o,n),s=!0),i=i._next,n++}),this._length=n;return this._truncate(i),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(u(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):t=this._addAfter(new Is(e,n),o,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ds),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ds),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var n=[];this.forEachAddedItem(function(t){return n.push(t)});var r=[];this.forEachMovedItem(function(t){return r.push(t)});var o=[];this.forEachRemovedItem(function(t){return o.push(t)});var i=[];return this.forEachIdentityChange(function(t){return i.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\nidentityChanges: "+i.join(", ")+"\n"},t}(),Is=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?c(this.item):c(this.item)+"["+c(this.previousIndex)+"->"+c(this.currentIndex)+"]"},t}(),Ns=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<n.currentIndex)&&u(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),Ds=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new Ns,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+c(this.map)+")"},t}(),js=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Rt(t)},t.prototype.create=function(t){return new Ls},t}(),Ls=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Rt(t)))throw new Error("Error trying to diff '"+c(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var o=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new Vs(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){u(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t=[],e=[],n=[],r=[],o=[];return this.forEachItem(function(e){return t.push(c(e))}),this.forEachPreviousItem(function(t){return e.push(c(t))}),this.forEachChangedItem(function(t){return n.push(c(t))}),this.forEachAddedItem(function(t){return r.push(c(t))}),this.forEachRemovedItem(function(t){return o.push(c(t))}),"map: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+r.join(", ")+"\nchanges: "+n.join(", ")+"\nremovals: "+o.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),Vs=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return u(this.previousValue,this.currentValue)?c(this.key):c(this.key)+"["+c(this.previousValue)+"->"+c(this.currentValue)+"]"},t}(),Fs=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Ho,new Vo]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+It(t)+"'")},t}(),Us=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Ho,new Vo]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Hs=[new js],Bs=new Fs([new Ms]),qs=new Us(Hs),zs=pt(null,"core",[{provide:gi,useValue:"unknown"},es,{provide:ts,useExisting:es},{provide:ri,useFactory:Nt,deps:[]},{provide:ni,useExisting:ri},$i,wi]),Gs=new io("LocaleId"),Ws=new io("Translations"),$s=new io("TranslationsFormat"),Ks={};Ks.Error=0,Ks.Warning=1,Ks.Ignore=2,Ks[Ks.Error]="Error",Ks[Ks.Warning]="Warning",Ks[Ks.Ignore]="Ignore";var Qs={};Qs.NONE=0,Qs.HTML=1,Qs.STYLE=2,Qs.SCRIPT=3,Qs.URL=4,Qs.RESOURCE_URL=5,Qs[Qs.NONE]="NONE",Qs[Qs.HTML]="HTML",Qs[Qs.STYLE]="STYLE",Qs[Qs.SCRIPT]="SCRIPT",Qs[Qs.URL]="URL",Qs[Qs.RESOURCE_URL]="RESOURCE_URL";var Xs=function(){function t(){}return t.prototype.sanitize=function(t,e){},t}(),Zs=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n]},t}(),Ys={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView: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},Js=function(){},ta=new Map,ea="$$undefined",na="$$empty",ra=0,oa=new WeakMap,ia=/^:([^:]+):(.+)$/,sa=[],aa={},ua=new Object,ca=function(t){function e(e,n,r,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return ro(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e){var r=e[n];t.push({propName:n,templateName:r})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var n=this._outputs[e];t.push({propName:e,templateName:n})}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=pe(this.viewDefFactory),i=o.nodes[0].element.componentProvider.index,s=Ys.createRootView(t,e||[],n,o,r,ua),a=Lt(s,i).instance;return n&&s.renderer.setAttribute(jt(s,0).renderElement,"ng-version",jo.full),new la(s,new ha(s),a)},e}(Pi),la=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}return ro(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new ps(jt(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new da(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},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}(Ti),pa=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 ps(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new da(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=re(t),t=t.parent;return t?new da(t,e):new da(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Ue(this._data,t);Ys.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new ha(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 Ni||(o=i.get(Di));var s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var n=t,r=n._view;return Le(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var n=this._embeddedViews.indexOf(t._view);return Be(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Ue(this._data,t);e&&Ys.destroyView(e)},t.prototype.detach=function(t){var e=Ue(this._data,t);return e?new ha(e):null},t}(),ha=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return he(this._view)},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(){Jt(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){Ys.checkAndUpdateView(this._view)},t.prototype.checkNoChanges=function(){Ys.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)),Ys.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,ze(this._view),Ys.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}(),fa=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return ro(e,t),e.prototype.createEmbeddedView=function(t){return new ha(Ys.createEmbeddedView(this._parentView,this._def,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new ps(jt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(gs),da=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Wo.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return Ys.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:Wt(t)},e)},t}(),ya=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=ge(e),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return t&&this.delegate.appendChild(t,i),i},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;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),o=0;o<e.length;o++)this.delegate.insertBefore(n,e[o],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=ge(e),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(t,i,n,o):this.delegate.removeAttribute(t,i,o)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),ma=Wt(ss),va=Wt(ls),ga=Wt(ps),_a=Wt(_s),ba=Wt(gs),wa=Wt(bs),Ca=Wt(Wo),Ea=new Object,Sa={},xa={};xa.CreateViewNodes=0,xa.CheckNoChanges=1,xa.CheckNoChangesProjectedViews=2,xa.CheckAndUpdate=3,xa.CheckAndUpdateProjectedViews=4,xa.Destroy=5,xa[xa.CreateViewNodes]="CreateViewNodes",xa[xa.CheckNoChanges]="CheckNoChanges",xa[xa.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",xa[xa.CheckAndUpdate]="CheckAndUpdate",xa[xa.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",xa[xa.Destroy]="Destroy";var Ta=!1,Pa={};Pa.create=0,Pa.detectChanges=1,Pa.checkNoChanges=2,Pa.destroy=3,Pa.handleEvent=4,Pa[Pa.create]="create",Pa[Pa.detectChanges]="detectChanges",Pa[Pa.checkNoChanges]="checkNoChanges",Pa[Pa.destroy]="destroy",Pa[Pa.handleEvent]="handleEvent";var Aa,Oa,Ma,Ra=/([A-Z])/g,ka=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=re(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return jt(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Ye(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){Nr(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&Nr(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=Ir(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?oe(this.view,this.nodeDef):oe(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,o;2&this.nodeDef.flags?(r=this.view.def,o=this.nodeDef.index):(r=this.elView.def,o=this.elDef.index);var i=kr(r,o),s=-1,a=function(){return s++,s===i?(n=t.error).bind.apply(n,[t].concat(e)):Js;var n};r.factory(a),s<i&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),Ia=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Na(this.delegate.createRenderer(t,e))},t}(),Na=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){Tt(St(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=jr();if(r){var o=new xs(n,null,r);o.name=t,xt(o)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=jr();return n&&xt(new Ss(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=jr();return n&&xt(new Ss(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=St(t),r=St(e);n&&r&&n instanceof xs&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=St(t),o=St(e),i=St(n);r&&o&&r instanceof xs&&r.insertBefore(i,o),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=St(t),r=St(e);n&&r&&n instanceof xs&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=jr();return n&&xt(new xs(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var o=St(t);if(o&&o instanceof xs){var i=r?r+":"+e:e;o.attributes[i]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=St(t);if(r&&r instanceof xs){var o=n?n+":"+e:e;r.attributes[o]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=St(t);n&&n instanceof xs&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=St(t);n&&n instanceof xs&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var o=St(t);o&&o instanceof xs&&(o.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=St(t);r&&r instanceof xs&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=St(t);r&&r instanceof xs&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=St(t);r&&r.listeners.push(new Es(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),Da=function(){function t(t){}return t}();Da.decorators=[{type:ko,args:[{providers:[rs,{provide:ns,useExisting:rs},di,Ei,mi,{provide:Fs,useFactory:Lr},{provide:Us,useFactory:Vr},{provide:Gs,useFactory:Fr,deps:[[new Lo(Gs),new Vo,new Ho]]},{provide:fi,useValue:Ur,multi:!0}]}]}],Da.ctorParameters=function(){return[{type:ns}]};var ja={};ja.OnInit=0,ja.OnDestroy=1,ja.DoCheck=2,ja.OnChanges=3,ja.AfterContentInit=4,ja.AfterContentChecked=5,ja.AfterViewInit=6,ja.AfterViewChecked=7,ja[ja.OnInit]="OnInit",ja[ja.OnDestroy]="OnDestroy",ja[ja.DoCheck]="DoCheck",ja[ja.OnChanges]="OnChanges",ja[ja.AfterContentInit]="AfterContentInit",ja[ja.AfterContentChecked]="AfterContentChecked",ja[ja.AfterViewInit]="AfterViewInit",ja[ja.AfterViewChecked]="AfterViewChecked";var La=[ja.OnInit,ja.OnDestroy,ja.DoCheck,ja.OnChanges,ja.AfterContentInit,ja.AfterContentChecked,ja.AfterViewInit,ja.AfterViewChecked];t.Class=h,t.createPlatform=lt,t.assertPlatform=ht,t.destroyPlatform=ft,t.getPlatform=dt,t.PlatformRef=ts,t.ApplicationRef=ns,t.enableProdMode=ut,t.isDevMode=ct,t.createPlatformFactory=pt,t.NgProbeToken=Ji,t.APP_ID=yi,t.PACKAGE_ROOT_URL=bi,t.PLATFORM_INITIALIZER=vi,t.PLATFORM_ID=gi,t.APP_BOOTSTRAP_LISTENER=_i,t.APP_INITIALIZER=fi,t.ApplicationInitStatus=di,t.DebugElement=xs,t.DebugNode=Ss,t.asNativeElements=wt,t.getDebugNode=St,t.Testability=Wi,t.TestabilityRegistry=$i,t.setTestabilityGetter=at,t.TRANSLATIONS=Ws,t.TRANSLATIONS_FORMAT=$s,t.LOCALE_ID=Gs,t.MissingTranslationStrategy=Ks,t.ApplicationModule=Da,t.wtfCreateScope=Ui,t.wtfLeave=Hi,t.wtfStartTimeRange=Bi,t.wtfEndTimeRange=qi,t.Type=Jo,t.EventEmitter=zi,t.ErrorHandler=Xo,t.Sanitizer=Xs,t.SecurityContext=Qs,t.ANALYZE_FOR_ENTRY_COMPONENTS=fo,t.Attribute=yo,t.ContentChild=go,t.ContentChildren=vo,t.Query=mo,t.ViewChild=bo,t.ViewChildren=_o,t.Component=So,t.Directive=Eo,t.HostBinding=Ao,t.HostListener=Oo,t.Input=To,t.Output=Po,t.Pipe=xo,t.CUSTOM_ELEMENTS_SCHEMA=Mo,t.NO_ERRORS_SCHEMA=Ro,t.NgModule=ko,t.ViewEncapsulation=Io,t.Version=Do,t.VERSION=jo,t.forwardRef=g,t.resolveForwardRef=_,t.Injector=Wo,t.ReflectiveInjector=li,t.ResolvedReflectiveFactory=ui,t.ReflectiveKey=Zo,t.InjectionToken=io,t.OpaqueToken=oo,t.Inject=Lo,t.Optional=Vo,t.Injectable=Fo,t.Self=Uo,t.SkipSelf=Ho,t.Host=Bo,t.NgZone=Gi,t.RenderComponentType=os,t.Renderer=ss,t.Renderer2=ls,t.RendererFactory2=us,t.RendererStyleFlags2=cs,t.RootRenderer=as,t.COMPILER_OPTIONS=Si,t.Compiler=Ei,t.CompilerFactory=xi,t.ModuleWithComponentFactories=Ci,t.ComponentFactory=Pi,t.ComponentRef=Ti,t.ComponentFactoryResolver=Mi,t.ElementRef=ps,t.NgModuleFactory=ji,t.NgModuleRef=Di,t.NgModuleFactoryLoader=hs,t.getModuleFactory=gt,t.QueryList=ds,t.SystemJsNgModuleLoader=vs,t.SystemJsNgModuleLoaderConfig=ys,t.TemplateRef=gs,t.ViewContainerRef=_s,t.EmbeddedViewRef=Cs,t.ViewRef=ws,t.ChangeDetectionStrategy=wo,t.ChangeDetectorRef=bs,t.DefaultIterableDiffer=ks,t.IterableDiffers=Fs,t.KeyValueDiffers=Us,t.SimpleChange=Os,t.WrappedValue=Ps,t.platformCore=zs,t.ɵALLOW_MULTIPLE_PLATFORMS=Yi,t.ɵAPP_ID_RANDOM_PROVIDER=mi,t.ɵValueUnwrapper=As,t.ɵdevModeEqual=Pt,t.ɵisListLikeIterable=At,t.ɵChangeDetectorStatus=Co,t.ɵisDefaultChangeDetectionStrategy=v,t.ɵConsole=wi,t.ɵERROR_COMPONENT_TYPE="ngComponentType",t.ɵComponentFactory=Pi,t.ɵCodegenComponentFactoryResolver=Ii,t.ɵLIFECYCLE_HOOKS_VALUES=La,t.ɵLifecycleHooks=ja,t.ɵViewMetadata=No,t.ɵReflector=ri,t.ɵreflector=oi,t.ɵReflectionCapabilities=ei,t.ɵReflectorReader=ni,t.ɵRenderDebugInfo=is,t.ɵglobal=co,t.ɵlooseIdentical=u,t.ɵstringify=c,t.ɵmakeDecorator=f,t.ɵisObservable=X,t.ɵisPromise=Q,t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=Sa,t.ɵNgModuleInjector=Vi,t.ɵregisterModuleFactory=vt,t.ɵEMPTY_ARRAY=sa,t.ɵEMPTY_MAP=aa,t.ɵand=Ee,t.ɵccf=$e,t.ɵcrt=Kt,t.ɵdid=en,t.ɵeld=Se,t.ɵelementEventFullName=ie,t.ɵgetComponentViewDefinitionFactory=Ke,t.ɵinlineInterpolate=we,t.ɵinterpolate=be,t.ɵncd=De,t.ɵnov=Je,t.ɵpid=nn,t.ɵprd=rn,t.ɵpad=Cn,t.ɵpod=En,t.ɵppd=wn,t.ɵqud=An,t.ɵted=Nn,t.ɵunv=$t,t.ɵvid=Fn,t.AUTO_STYLE="*",t.trigger=Qr,t.animate=Xr,t.group=Zr,t.sequence=Yr,t.style=Jr,t.state=to,t.keyframes=eo,t.transition=no,t.ɵba=Br,t.ɵbb=qr,t.ɵbf=$r,t.ɵbc=zr,t.ɵbe=Wr,t.ɵbd=Gr,t.ɵbg=Kr,t.ɵz=Hr,t.ɵo=Ur,t.ɵl=Lr,t.ɵm=Vr,t.ɵn=Fr,t.ɵf=rs,t.ɵg=Z,t.ɵh=Bs,t.ɵi=qs,t.ɵj=Ms,t.ɵk=js,t.ɵc=pi,t.ɵd=ii,t.ɵe=H,t.ɵp=Fi,t.ɵr=nt,t.ɵq=et,t.ɵu=it,t.ɵs=rt,t.ɵt=ot,t.ɵa=y,t.ɵb=m,t.ɵw=on,t.ɵx=Zs,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":17,"rxjs/Subject":20,"rxjs/observable/merge":37,"rxjs/operator/share":53}],9:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/core"),t("rxjs/observable/forkJoin"),t("rxjs/observable/fromPromise"),t("rxjs/operator/map"),t("@angular/platform-browser")):o((r.ng=r.ng||{},r.ng.forms=r.ng.forms||{}),r.ng.core,r.Rx.Observable,r.Rx.Observable,r.Rx.Observable.prototype,r.ng.platformBrowser)}(this,function(t,e,n,r,o,i){"use strict";function s(t){return null==t||0===t.length}function a(t){return null!=t}function u(t){var n=e.ɵisPromise(t)?r.fromPromise(t):t;if(!e.ɵisObservable(n))throw new Error("Expected validator to return Promise or Observable.");return n}function c(t,e){return e.map(function(e){return e(t)})}function l(t,e){return e.map(function(e){return e(t)})}function p(t){var e=t.reduce(function(t,e){return null!=e?F({},t,e):t},{});return 0===Object.keys(e).length?null:e}function h(){var t=i.ɵgetDOM()?i.ɵgetDOM().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function f(t){return t.validate?function(e){return t.validate(e)}:t}function d(t){return t.validate?function(e){return t.validate(e)}:t}function y(){throw new Error("unimplemented")}function m(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function v(t){return t.split(":")[0]}function g(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function _(t){return t.split(":")[0]}function b(t,e){return e.path.concat([t])}function w(t,e){t||x(e,"Cannot find control with"),e.valueAccessor||x(e,"No value accessor for form control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(n){e.viewToModelUpdate(n),t.markAsDirty(),t.setValue(n,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function C(t,e){e.valueAccessor.registerOnChange(function(){return S(e)}),e.valueAccessor.registerOnTouched(function(){return S(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function E(t,e){null==t&&x(e,"Cannot find control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator])}function S(t){return x(t,"There is no FormControl instance attached to form control element with")}function x(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function T(t){return null!=t?q.compose(t.map(f)):null}function P(t){return null!=t?q.composeAsync(t.map(d)):null}function A(t,n){if(!t.hasOwnProperty("model"))return!1;var r=t.model;return!!r.isFirstChange()||!e.ɵlooseIdentical(n,r.currentValue)}function O(t){return lt.some(function(e){return t.constructor===e})}function M(t,e){if(!e)return null;var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){e.constructor===Q?n=e:O(e)?(r&&x(t,"More than one built-in value accessor matches form control with"),r=e):(o&&x(t,"More than one custom value accessor matches form control with"),o=e)}),o||(r||(n||(x(t,"No valid value accessor for form control with"),null)))}function R(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof gt?t.controls[e]||null:t instanceof _t?t.at(e)||null:null},t))}function k(t){return Array.isArray(t)?T(t):t||null}function I(t){return Array.isArray(t)?P(t):t||null}function N(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function D(t){return!(t instanceof jt||t instanceof Nt||t instanceof Vt)}var j=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},L=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(L),F=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},U=new e.InjectionToken("NgValidators"),H=new e.InjectionToken("NgAsyncValidators"),B=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,q=function(){function t(){}return t.required=function(t){return s(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return B.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(s(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,r;return"string"==typeof e?(r="^"+e+"$",n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(s(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){return p(c(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){var r=l(t,e).map(u);return o.map.call(n.forkJoin(r),p)}},t}(),z=new e.InjectionToken("NgValueAccessor"),G={provide:z,useExisting:e.forwardRef(function(){return W}),multi:!0},W=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.setElementProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();W.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[G]}]}],W.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var $={provide:z,useExisting:e.forwardRef(function(){return Q}),multi:!0},K=new e.InjectionToken("CompositionEventMode"),Q=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!h())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();Q.decorators=[{type:e.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[$]}]}],Q.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[K]}]}]};var X={provide:z,useExisting:e.forwardRef(function(){return Z}),multi:!0},Z=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},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.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();Z.decorators=[{type:e.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[X]}]}],Z.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var Y=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return j(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return y()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){},e}(L),J={provide:z,useExisting:e.forwardRef(function(){return et}),multi:!0},tt=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},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}();tt.decorators=[{type:e.Injectable}],tt.ctorParameters=function(){return[]};var et=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(Y),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.setElementProperty(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.setElementProperty(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: <input type="radio" formControlName="food" name="food">\n ')},t}();et.decorators=[{type:e.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[J]}]}],et.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:tt},{type:e.Injector}]},et.propDecorators={name:[{type:e.Input}],formControlName:[{type:e.Input}],value:[{type:e.Input}]};var nt={provide:z,useExisting:e.forwardRef(function(){return rt}),multi:!0},rt=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.setElementProperty(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.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();rt.decorators=[{type:e.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[nt]}]}],rt.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var ot={provide:z,useExisting:e.forwardRef(function(){return it}),multi:!0},it=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}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.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=m(e,t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=n,t(e._getOptionValue(n))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r),t))return r}return null},t.prototype._getOptionValue=function(t){var e=v(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}();it.decorators=[{type:e.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ot]}]}],it.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},it.propDecorators={compareWith:[{type:e.Input}]};var st=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(m(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.setElementProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();st.decorators=[{type:e.Directive,args:[{selector:"option"}]}],st.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:it,decorators:[{type:e.Optional},{type:e.Host}]}]},st.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var at={provide:z,useExisting:e.forwardRef(function(){return ut}),multi:!0},ut=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}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=this;this.value=t;var n;if(Array.isArray(t)){var r=t.map(function(t){return e._getOptionId(t)});n=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},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;i<o.length;i++){var s=o.item(i),a=e._getOptionValue(s.value);r.push(a)}else for(var o=n.options,i=0;i<o.length;i++)if((s=o.item(i)).selected){a=e._getOptionValue(s.value);r.push(a)}e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r)._value,t))return r}return null},t.prototype._getOptionValue=function(t){var e=_(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}();ut.decorators=[{type:e.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[at]}]}],ut.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},ut.propDecorators={compareWith:[{type:e.Input}]};var ct=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setElementProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();ct.decorators=[{type:e.Directive,args:[{selector:"option"}]}],ct.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:ut,decorators:[{type:e.Optional},{type:e.Host}]}]},ct.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var lt=[W,rt,Z,it,ut,et],pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(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 b(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 T(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(V),ht=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}(),ft={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},dt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e}(ht);dt.decorators=[{type:e.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:ft}]}],dt.ctorParameters=function(){return[{type:Y,decorators:[{type:e.Self}]}]};var yt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e}(ht);yt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ft}]}],yt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Self}]}]};var mt=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,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},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,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=k(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=I(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!0,this._parent&&!e&&this._parent.markAsTouched({onlySelf:e})},t.prototype.markAsUntouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype.markAsDirty=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!1,this._parent&&!e&&this._parent.markAsDirty({onlySelf:e})},t.prototype.markAsPristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype.markAsPending=function(t){var e=(void 0===t?{}:t).onlySelf;this._status="PENDING",this._parent&&!e&&this._parent.markAsPending({onlySelf:e})},t.prototype.disable=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._status="DISABLED",this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),!1!==r&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!n),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._status="VALID",this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r}),this._updateAncestors(!!n),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(t,e){},t.prototype.patchValue=function(t,e){},t.prototype.reset=function(t,e){},t.prototype.updateValueAndValidity=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(r)),!1!==r&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!n&&this._parent.updateValueAndValidity({onlySelf:n,emitEvent:r})},t.prototype._updateTreeValidity=function(t){var e=(void 0===t?{emitEvent:!0}:t).emitEvent;this._forEachChild(function(t){return t._updateTreeValidity({emitEvent:e})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e})},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=u(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){var n=(void 0===e?{}:e).emitEvent;this._errors=t,this._updateControlsErrors(!1!==n)},t.prototype.get=function(t){return R(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 e.EventEmitter,this._statusChanges=new e.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this._errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(t){},t.prototype._anyControls=function(t){},t.prototype._allControlsDisabled=function(){},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){var e=(void 0===t?{}:t).onlySelf;this._pristine=!this._anyControlsDirty(),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype._updateTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=this._anyControlsTouched(),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},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}(),vt=function(t){function e(e,n,r){void 0===e&&(e=null);var o=t.call(this,k(n),I(r))||this;return o._onChange=[],o._applyFormState(e),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return j(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._value=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)},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._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t},e}(mt),gt=function(t){function e(e,n,r){var o=t.call(this,n||null,r||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return j(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 vt?e.value:e.getRawValue(),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(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},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}(mt),_t=function(t){function e(e,n,r){var o=t.call(this,n||null,r||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return j(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(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},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 vt?t.value:t.getRawValue()})},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(){for(var t=0,e=this.controls;t<e.length;t++)if(e[t].enabled)return!1;return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(mt),bt={provide:V,useExisting:e.forwardRef(function(){return Ct})},wt=Promise.resolve(null),Ct=function(t){function n(n,r){var o=t.call(this)||this;return o._submitted=!1,o.ngSubmit=new e.EventEmitter,o.form=new gt({},T(n),P(r)),o}return j(n,t),Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path);t._control=n.registerControl(t.name,t.control),w(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},n.prototype.addFormGroup=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path),r=new gt({});E(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},n.prototype.removeFormGroup=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,e){var n=this;wt.then(function(){n.form.get(t.path).setValue(e)})},n.prototype.setValue=function(t){this.control.setValue(t)},n.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},n.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},n}(V);Ct.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[bt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],Ct.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]}]};var Et={formControlName:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ngModelWithFormGroup:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n '},St=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Et.formControlName+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+Et.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Et.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Et.ngModelGroup)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Et.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Et.ngModelGroup)},t}(),xt={provide:V,useExisting:e.forwardRef(function(){return Tt})},Tt=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 j(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Ct||St.modelGroupParentException()},e}(pt);Tt.decorators=[{type:e.Directive,args:[{selector:"[ngModelGroup]",providers:[xt],exportAs:"ngModelGroup"}]}],Tt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]}]},Tt.propDecorators={name:[{type:e.Input,args:["ngModelGroup"]}]};var Pt={provide:Y,useExisting:e.forwardRef(function(){return Ot})},At=Promise.resolve(null),Ot=function(t){function n(n,r,o,i){var s=t.call(this)||this;return s._control=new vt,s._registered=!1,s.update=new e.EventEmitter,s._parent=n,s._rawValidators=r||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return j(n,t),n.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),A(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return this._parent?b(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},n.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},n.prototype._setUpStandalone=function(){w(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},n.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},n.prototype._checkParentType=function(){!(this._parent instanceof Tt)&&this._parent instanceof pt?St.formGroupNameException():this._parent instanceof Tt||this._parent instanceof Ct||St.modelParentException()},n.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||St.missingNameException()},n.prototype._updateValue=function(t){var e=this;At.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},n.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;At.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},n}(Y);Ot.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Pt],exportAs:"ngModel"}]}],Ot.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},Ot.propDecorators={name:[{type:e.Input}],isDisabled:[{type:e.Input,args:["disabled"]}],model:[{type:e.Input,args:["ngModel"]}],options:[{type:e.Input,args:["ngModelOptions"]}],update:[{type:e.Output,args:["ngModelChange"]}]};var Mt=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 "+Et.formControlName)},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 '+Et.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Et.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Et.formControlName)},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 "+Et.formGroupName)},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 "+Et.formArrayName)},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}(),Rt={provide:Y,useExisting:e.forwardRef(function(){return kt})},kt=function(t){function n(n,r,o){var i=t.call(this)||this;return i.update=new e.EventEmitter,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=M(i,o),i}return j(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){Mt.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(w(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),A(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},n}(Y);kt.decorators=[{type:e.Directive,args:[{selector:"[formControl]",providers:[Rt],exportAs:"ngForm"}]}],kt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},kt.propDecorators={form:[{type:e.Input,args:["formControl"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var It={provide:V,useExisting:e.forwardRef(function(){return Nt})},Nt=function(t){function n(n,r){var o=t.call(this)||this;return o._validators=n,o._asyncValidators=r,o._submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new e.EventEmitter,o}return j(n,t),n.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var e=this.form.get(t.path);return w(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){N(this.directives,t)},n.prototype.addFormGroup=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormGroup=function(t){},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.addFormArray=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormArray=function(t){},n.prototype.getFormArray=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},n.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},n.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e._control!==n&&(C(e._control,e),n&&w(n,e),e._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},n.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},n.prototype._updateValidators=function(){var t=T(this._validators);this.form.validator=q.compose([this.form.validator,t]);var e=P(this._asyncValidators);this.form.asyncValidator=q.composeAsync([this.form.asyncValidator,e])},n.prototype._checkFormPresent=function(){this.form||Mt.missingFormException()},n}(V);Nt.decorators=[{type:e.Directive,args:[{selector:"[formGroup]",providers:[It],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Nt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]}]},Nt.propDecorators={form:[{type:e.Input,args:["formGroup"]}],ngSubmit:[{type:e.Output}]};var Dt={provide:V,useExisting:e.forwardRef(function(){return jt})},jt=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 j(e,t),e.prototype._checkParentType=function(){D(this._parent)&&Mt.groupParentException()},e}(pt);jt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName]",providers:[Dt]}]}],jt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]}]},jt.propDecorators={name:[{type:e.Input,args:["formGroupName"]}]};var Lt={provide:V,useExisting:e.forwardRef(function(){return Vt})},Vt=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 j(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 b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return T(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){D(this._parent)&&Mt.arrayParentException()},e}(V);Vt.decorators=[{type:e.Directive,args:[{selector:"[formArrayName]",providers:[Lt]}]}],Vt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]}]},Vt.propDecorators={name:[{type:e.Input,args:["formArrayName"]}]};var Ft={provide:Y,useExisting:e.forwardRef(function(){return Ut})},Ut=function(t){function n(n,r,o,i){var s=t.call(this)||this;return s._added=!1,s.update=new e.EventEmitter,s._parent=n,s._rawValidators=r||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return j(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){Mt.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),A(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(n.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){!(this._parent instanceof jt)&&this._parent instanceof pt?Mt.ngModelGroupException():this._parent instanceof jt||this._parent instanceof Nt||this._parent instanceof Vt||Mt.controlParentException()},n.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},n}(Y);Ut.decorators=[{type:e.Directive,args:[{selector:"[formControlName]",providers:[Ft]}]}],Ut.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[H]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},Ut.propDecorators={name:[{type:e.Input,args:["formControlName"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Ht={provide:U,useExisting:e.forwardRef(function(){return qt}),multi:!0},Bt={provide:U,useExisting:e.forwardRef(function(){return zt}),multi:!0},qt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?q.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();qt.decorators=[{type:e.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Ht],host:{"[attr.required]":'required ? "" : null'}}]}],qt.ctorParameters=function(){return[]},qt.propDecorators={required:[{type:e.Input}]};var zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.validate=function(t){return this.required?q.requiredTrue(t):null},e}(qt);zt.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Bt],host:{"[attr.required]":'required ? "" : null'}}]}],zt.ctorParameters=function(){return[]};var Gt={provide:U,useExisting:e.forwardRef(function(){return Wt}),multi:!0},Wt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?q.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Wt.decorators=[{type:e.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Gt]}]}],Wt.ctorParameters=function(){return[]},Wt.propDecorators={email:[{type:e.Input}]};var $t={provide:U,useExisting:e.forwardRef(function(){return Kt}),multi:!0},Kt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.minLength(parseInt(this.minlength,10))},t}();Kt.decorators=[{type:e.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[$t],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Kt.ctorParameters=function(){return[]},Kt.propDecorators={minlength:[{type:e.Input}]};var Qt={provide:U,useExisting:e.forwardRef(function(){return Xt}),multi:!0},Xt=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=q.maxLength(parseInt(this.maxlength,10))},t}();Xt.decorators=[{type:e.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Qt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],Xt.ctorParameters=function(){return[]},Xt.propDecorators={maxlength:[{type:e.Input}]};var Zt={provide:U,useExisting:e.forwardRef(function(){return Yt}),multi:!0},Yt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.pattern(this.pattern)},t}();Yt.decorators=[{type:e.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[Zt],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],Yt.ctorParameters=function(){return[]},Yt.propDecorators={pattern:[{type:e.Input}]};var Jt=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new gt(n,r,o)},t.prototype.control=function(t,e,n){return new vt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,o=t.map(function(t){return r._createControl(t)});return new _t(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){if(t instanceof vt||t instanceof gt||t instanceof _t)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t}();Jt.decorators=[{type:e.Injectable}],Jt.ctorParameters=function(){return[]};var te=new e.Version("4.1.3"),ee=function(){function t(){}return t}();ee.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],ee.ctorParameters=function(){return[]};var ne=[ee,st,ct,Q,Z,rt,W,it,ut,et,dt,yt,qt,Kt,Xt,Yt,zt,Wt],re=[Ot,Tt,Ct],oe=[kt,Nt,Ut,jt,Vt],ie=function(){function t(){}return t}();ie.decorators=[{type:e.NgModule,args:[{declarations:ne,exports:ne}]}],ie.ctorParameters=function(){return[]};var se=function(){function t(){}return t}();se.decorators=[{type:e.NgModule,args:[{declarations:re,providers:[tt],exports:[ie,re]}]}],se.ctorParameters=function(){return[]};var ae=function(){function t(){}return t}();ae.decorators=[{type:e.NgModule,args:[{declarations:[oe],providers:[Jt,tt],exports:[ie,oe]}]}],ae.ctorParameters=function(){return[]},t.AbstractControlDirective=L,t.AbstractFormGroupDirective=pt,t.CheckboxControlValueAccessor=W,t.ControlContainer=V,t.NG_VALUE_ACCESSOR=z,t.COMPOSITION_BUFFER_MODE=K,t.DefaultValueAccessor=Q,t.NgControl=Y,t.NgControlStatus=dt,t.NgControlStatusGroup=yt,t.NgForm=Ct,t.NgModel=Ot,t.NgModelGroup=Tt,t.RadioControlValueAccessor=et,t.FormControlDirective=kt,t.FormControlName=Ut,t.FormGroupDirective=Nt,t.FormArrayName=Vt,t.FormGroupName=jt,t.NgSelectOption=st,t.SelectControlValueAccessor=it,t.SelectMultipleControlValueAccessor=ut,t.CheckboxRequiredValidator=zt,t.EmailValidator=Wt,t.MaxLengthValidator=Xt,t.MinLengthValidator=Kt,t.PatternValidator=Yt,t.RequiredValidator=qt,t.FormBuilder=Jt,t.AbstractControl=mt,t.FormArray=_t,t.FormControl=vt,t.FormGroup=gt,t.NG_ASYNC_VALIDATORS=H,t.NG_VALIDATORS=U,t.Validators=q,t.VERSION=te,t.FormsModule=se,t.ReactiveFormsModule=ae,t.ɵba=ie,t.ɵz=oe,t.ɵx=ne,t.ɵy=re,t.ɵa=G,t.ɵb=$,t.ɵc=ht,t.ɵd=ft,t.ɵe=bt,t.ɵf=Pt,t.ɵg=xt,t.ɵbf=ee,t.ɵbb=X,t.ɵbc=Z,t.ɵh=J,t.ɵi=tt,t.ɵbd=nt,t.ɵbe=rt,t.ɵj=Rt,t.ɵk=Ft,t.ɵl=It,t.ɵn=Lt,t.ɵm=Dt,t.ɵo=ot,t.ɵq=ct,t.ɵp=at,t.ɵs=Bt,t.ɵt=Gt,t.ɵv=Qt,t.ɵu=$t,t.ɵw=Zt,t.ɵr=Ht,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8,"@angular/platform-browser":12,"rxjs/observable/forkJoin":34,"rxjs/observable/fromPromise":36,"rxjs/operator/map":46}],10:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/core"),t("rxjs/Observable"),t("@angular/platform-browser")):o((r.ng=r.ng||{},r.ng.http=r.ng.http||{}),r.ng.core,r.Rx,r.ng.platformBrowser)}(this,function(t,e,n,r){"use strict";function o(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return g.Get;case"POST":return g.Post;case"PUT":return g.Put;case"DELETE":return g.Delete;case"OPTIONS":return g.Options;case"HEAD":return g.Head;case"PATCH":return g.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function i(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function s(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;n<r;n++)e[n]=t.charCodeAt(n);return e.buffer}function a(t){void 0===t&&(t="");var e=new Map;return t.length>0&&t.split("&").forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],o=r[0],i=r[1],s=e.get(o)||[];s.push(i),e.set(o,s)}),e}function u(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,"/")}function c(){var t="object"==typeof window?window:{};return null===j&&(j=t[D]={}),j}function l(t){var e=new R;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}function p(t,e){return t.createConnection(e).response}function h(t,e,n,r){var o=t;return e?o.merge(new K({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})):o.merge(new K({method:n,url:r}))}function f(){return new W}function d(t,e){return new nt(t,e)}function y(t,e){return new rt(t,e)}var m=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},v=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();v.decorators=[{type:e.Injectable}],v.ctorParameters=function(){return[]};var g={};g.Get=0,g.Post=1,g.Put=2,g.Delete=3,g.Options=4,g.Head=5,g.Patch=6,g[g.Get]="Get",g[g.Post]="Post",g[g.Put]="Put",g[g.Delete]="Delete",g[g.Options]="Options",g[g.Head]="Head",g[g.Patch]="Patch";var _={};_.Unsent=0,_.Open=1,_.HeadersReceived=2,_.Loading=3,_.Done=4,_.Cancelled=5,_[_.Unsent]="Unsent",_[_.Open]="Open",_[_.HeadersReceived]="HeadersReceived",_[_.Loading]="Loading",_[_.Done]="Done",_[_.Cancelled]="Cancelled";var b={};b.Basic=0,b.Cors=1,b.Default=2,b.Error=3,b.Opaque=4,b[b.Basic]="Basic",b[b.Cors]="Cors",b[b.Default]="Default",b[b.Error]="Error",b[b.Opaque]="Opaque";var w={};w.NONE=0,w.JSON=1,w.FORM=2,w.FORM_DATA=3,w.TEXT=4,w.BLOB=5,w.ARRAY_BUFFER=6,w[w.NONE]="NONE",w[w.JSON]="JSON",w[w.FORM]="FORM",w[w.FORM_DATA]="FORM_DATA",w[w.TEXT]="TEXT",w[w.BLOB]="BLOB",w[w.ARRAY_BUFFER]="ARRAY_BUFFER";var C={};C.Text=0,C.Json=1,C.ArrayBuffer=2,C.Blob=3,C[C.Text]="Text",C[C.Json]="Json",C[C.ArrayBuffer]="ArrayBuffer",C[C.Blob]="Blob";var E=function(){function t(e){var n=this;if(this._headers=new Map,this._normalizedNames=new Map,e)return e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):void 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,t.split(","))}),e[t._normalizedNames.get(r)]=o}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase())||null: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}(),S=function(){function t(t){var e=void 0===t?{}:t,n=e.body,r=e.status,o=e.headers,i=e.statusText,s=e.type,a=e.url;this.body=null!=n?n:null,this.status=null!=r?r:null,this.headers=null!=o?o:null,this.statusText=null!=i?i:null,this.type=null!=s?s:null,this.url=null!=a?a: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}(),x=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:b.Default,headers:new E})||this}return m(e,t),e}(S);x.decorators=[{type:e.Injectable}],x.ctorParameters=function(){return[]};var T=function(){function t(){}return t.prototype.createConnection=function(t){},t}(),P=function(){function t(){}return t}(),A=function(){function t(){}return t.prototype.configureRequest=function(t){},t}(),O=function(t){return t>=200&&t<300},M=function(){function t(){}return t.prototype.encodeKey=function(t){return u(t)},t.prototype.encodeValue=function(t){return u(t)},t}(),R=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new M),this.rawParams=t,this.queryEncoder=e,this.paramsMap=a(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)return void this.delete(t);var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)},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<t.length;++o)r.push(t[o]);e.paramsMap.set(n,r)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var o=0;o<t.length;++o)r.push(t[o]);e.paramsMap.set(n,r)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))})}),e.join("&")},t.prototype.delete=function(t){this.paramsMap.delete(t)},t}(),k=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(t){if(void 0===t&&(t="legacy"),this._body instanceof R)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+t)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:s(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),I=function(t){function e(e){var n=t.call(this)||this;return n._body=e.body,n.status=e.status,n.ok=n.status>=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return m(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(k),N=0,D="__ng_jsonp__",j=null,L=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+N++},t.prototype.requestCallback=function(t){return D+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){c()[t]=e},t.prototype.removeConnection=function(t){c()[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[]};var V="JSONP injected script did not invoke callback.",F="JSONP requests must use GET request method.",U=function(){function t(){}return t.prototype.finished=function(t){},t}(),H=function(t){function e(e,r,o){var i=t.call(this)||this;if(i._dom=r,i.baseResponseOptions=o,i._finished=!1,e.method!==g.Get)throw new TypeError(F);return i.request=e,i.response=new n.Observable(function(t){i.readyState=_.Loading;var n=i._id=r.nextRequestID();r.exposeConnection(n,i);var s=r.requestCallback(i._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+"="+s);var u=i._script=r.build(a),c=function(e){if(i.readyState!==_.Cancelled){if(i.readyState=_.Done,r.cleanup(u),!i._finished){var n=new S({body:V,type:b.Error,url:a});return o&&(n=o.merge(n)),void t.error(new I(n))}var s=new S({body:i._responseData,url:a});i.baseResponseOptions&&(s=i.baseResponseOptions.merge(s)),t.next(new I(s)),t.complete()}},l=function(e){if(i.readyState!==_.Cancelled){i.readyState=_.Done,r.cleanup(u);var n=new S({body:e.message,type:b.Error});o&&(n=o.merge(n)),t.error(new I(n))}};return u.addEventListener("load",c),u.addEventListener("error",l),r.send(u),function(){i.readyState=_.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),i._dom.cleanup(u)}}),i}return m(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==_.Cancelled&&(this._responseData=t)},e}(U),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(T),q=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return m(e,t),e.prototype.createConnection=function(t){return new H(t,this._browserJSONP,this._baseResponseOptions)},e}(B);q.decorators=[{type:e.Injectable}],q.ctorParameters=function(){return[{type:L},{type:S}]};var z=/^\)\]\}',?\n/,G=function(){function t(t,e,r){var o=this;this.request=t,this.response=new n.Observable(function(n){var s=e.build();s.open(g[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,o=null;204!==e&&"string"==typeof(o=void 0===s.response?s.responseText:s.response)&&(o=o.replace(z,"")),0===e&&(e=o?200:0);var a=E.fromResponseHeaderString(s.getAllResponseHeaders()),u=i(s)||t.url,c=s.statusText||"OK",l=new S({body:o,status:e,headers:a,statusText:c,url:u});null!=r&&(l=r.merge(l));var p=new I(l);if(p.ok=O(e),p.ok)return n.next(p),void n.complete();n.error(p)},u=function(t){var e=new S({body:t,type:b.Error,status:s.status,statusText:s.statusText});null!=r&&(e=r.merge(e)),n.error(new I(e))};if(o.setDetectedContentType(t,s),null==t.headers&&(t.headers=new E),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case C.ArrayBuffer:s.responseType="arraybuffer";break;case C.Json:s.responseType="json";break;case C.Text:s.responseType="text";break;case C.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(o.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case w.NONE:break;case w.JSON:e.setRequestHeader("content-type","application/json");break;case w.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case w.TEXT:e.setRequestHeader("content-type","text/plain");break;case w.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),W=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=r.ɵgetDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),$=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 G(t,this._browserXHR,this._baseResponseOptions)},t}();$.decorators=[{type:e.Injectable}],$.ctorParameters=function(){return[{type:v},{type:S},{type:A}]};var K=function(){function t(t){var e=void 0===t?{}:t,n=e.method,r=e.headers,i=e.body,s=e.url,a=e.search,u=e.params,c=e.withCredentials,l=e.responseType;this.method=null!=n?o(n):null,this.headers=null!=r?r:null,this.body=null!=i?i:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(u||a),this.withCredentials=null!=c?c: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 E(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 R?t.clone():"string"==typeof t?new R(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new R;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}(),Q=function(t){function e(){return t.call(this,{method:g.Get,headers:new E})||this}return m(e,t),e}(K);Q.decorators=[{type:e.Injectable}],Q.ctorParameters=function(){return[]};var X=function(t){function e(e){var n=t.call(this)||this,r=e.url;n.url=e.url;var i=e.params||e.search;if(i){var s=void 0;if((s="object"!=typeof i||i instanceof R?i.toString():l(i).toString()).length>0){var a="?";-1!=n.url.indexOf("?")&&(a="&"==n.url[n.url.length-1]?"":"&"),n.url=r+a+s}}return n._body=e.body,n.method=o(e.method),n.headers=new E(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return m(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return w.JSON;case"application/x-www-form-urlencoded":return w.FORM;case"multipart/form-data":return w.FORM_DATA;case"text/plain":case"text/html":return w.TEXT;case"application/octet-stream":return this._body instanceof et?w.ARRAY_BUFFER:w.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?w.NONE:this._body instanceof R?w.FORM:this._body instanceof J?w.FORM_DATA:this._body instanceof tt?w.BLOB:this._body instanceof et?w.ARRAY_BUFFER:this._body&&"object"==typeof this._body?w.JSON:w.TEXT},e.prototype.getBody=function(){switch(this.contentType){case w.JSON:case w.FORM:return this.text();case w.FORM_DATA:return this._body;case w.TEXT:return this.text();case w.BLOB:return this.blob();case w.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(k),Z=function(){},Y="object"==typeof window?window:Z,J=Y.FormData||Z,tt=Y.Blob||Z,et=Y.ArrayBuffer||Z,nt=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=p(this._backend,new X(h(this._defaultOptions,e,g.Get,t)));else{if(!(t instanceof X))throw new Error("First argument must be a url string or Request instance.");n=p(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new X(h(this._defaultOptions,e,g.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new X(h(this._defaultOptions.merge(new K({body:e})),n,g.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new X(h(this._defaultOptions.merge(new K({body:e})),n,g.Put,t)))},t.prototype.delete=function(t,e){return this.request(new X(h(this._defaultOptions,e,g.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new X(h(this._defaultOptions.merge(new K({body:e})),n,g.Patch,t)))},t.prototype.head=function(t,e){return this.request(new X(h(this._defaultOptions,e,g.Head,t)))},t.prototype.options=function(t,e){return this.request(new X(h(this._defaultOptions,e,g.Options,t)))},t}();nt.decorators=[{type:e.Injectable}],nt.ctorParameters=function(){return[{type:T},{type:K}]};var rt=function(t){function e(e,n){return t.call(this,e,n)||this}return m(e,t),e.prototype.request=function(t,e){if("string"==typeof t&&(t=new X(h(this._defaultOptions,e,g.Get,t))),!(t instanceof X))throw new Error("First argument must be a url string or Request instance.");if(t.method!==g.Get)throw new Error("JSONP requests must use GET request method.");return p(this._backend,t)},e}(nt);rt.decorators=[{type:e.Injectable}],rt.ctorParameters=function(){return[{type:T},{type:K}]};var ot=function(){function t(){}return t}();ot.decorators=[{type:e.NgModule,args:[{providers:[{provide:nt,useFactory:d,deps:[$,K]},v,{provide:K,useClass:Q},{provide:S,useClass:x},$,{provide:A,useFactory:f}]}]}],ot.ctorParameters=function(){return[]};var it=function(){function t(){}return t}();it.decorators=[{type:e.NgModule,args:[{providers:[{provide:rt,useFactory:y,deps:[B,K]},L,{provide:K,useClass:Q},{provide:S,useClass:x},{provide:B,useClass:q}]}]}],it.ctorParameters=function(){return[]};var st=new e.Version("4.1.3");t.BrowserXhr=v,t.JSONPBackend=B,t.JSONPConnection=U,t.CookieXSRFStrategy=W,t.XHRBackend=$,t.XHRConnection=G,t.BaseRequestOptions=Q,t.RequestOptions=K,t.BaseResponseOptions=x,t.ResponseOptions=S,t.ReadyState=_,t.RequestMethod=g,t.ResponseContentType=C,t.ResponseType=b,t.Headers=E,t.Http=nt,t.Jsonp=rt,t.HttpModule=ot,t.JsonpModule=it,t.Connection=P,t.ConnectionBackend=T,t.XSRFStrategy=A,t.Request=X,t.Response=I,t.QueryEncoder=M,t.URLSearchParams=R,t.VERSION=st,t.ɵg=L,t.ɵa=q,t.ɵf=k,t.ɵb=f,t.ɵc=d,t.ɵd=y,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8,"@angular/platform-browser":12,"rxjs/Observable":17}],11:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/compiler"),t("@angular/core"),t("@angular/common"),t("@angular/platform-browser")):o((r.ng=r.ng||{},r.ng.platformBrowserDynamic=r.ng.platformBrowserDynamic||{}),r.ng.compiler,r.ng.core,r.ng.common,r.ng.platformBrowser)}(this,function(t,e,n,r,o){"use strict";var i=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="text",o.onload=function(){var r=o.response||o.responseText,i=1223===o.status?204:o.status;0===i&&(i=r?200:0),200<=i&&i<=300?e(r):n("Failed to load "+t)},o.onerror=function(){n("Failed to load "+t)},o.send(),r},e}(e.ResourceLoader);s.decorators=[{type:n.Injectable}],s.ctorParameters=function(){return[]};var a=[o.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:s}]},multi:!0},{provide:n.PLATFORM_ID,useValue:r.ɵPLATFORM_BROWSER_ID}],u=function(t){function e(){var e=t.call(this)||this;if(e._cache=n.ɵglobal.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return i(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(e.ResourceLoader),c=new n.Version("4.1.3"),l=[{provide:e.ResourceLoader,useClass:u}],p=n.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",a);t.RESOURCE_CACHE_PROVIDER=l,t.platformBrowserDynamic=p,t.VERSION=c,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=a,t.ɵResourceLoaderImpl=s,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/compiler":7,"@angular/core":8,"@angular/platform-browser":12}],12:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/common"),t("@angular/core")):o((r.ng=r.ng||{},r.ng.platformBrowser=r.ng.platformBrowser||{}),r.ng.common,r.ng.core)}(this,function(t,e,n){"use strict";function r(){return L}function o(t){L||(L=t)}function i(){return G||(G=document.querySelector("base"))?G.getAttribute("href"):null}function s(t){return q||(q=document.createElement("a")),q.setAttribute("href",t),"/"===q.pathname.charAt(0)?q.pathname:"/"+q.pathname}function a(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var o=r[n],i=o.indexOf("="),s=-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t,e,n){for(var r=e.split("."),o=t;r.length>1;){var i=r.shift();o=o.hasOwnProperty(i)&&null!=o[i]?o[i]:o[i]={}}void 0!==o&&null!==o||(o={}),o[r.shift()]=n}function c(){return!!window.history.pushState}function l(t,e,o){return function(){o.get(n.ApplicationInitStatus).donePromise.then(function(){var n=r();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}}function p(t){return n.getDebugNode(t)}function h(t,e){var n=(t||[]).concat(e||[]);return r().setGlobalVar(et,p),r().setGlobalVar(nt,J({},tt,f(n||[]))),function(){return p}}function f(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return ft.replace(pt,t)}function y(t){return ht.replace(pt,t)}function m(t,e,n){for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?m(t,o,n):(o=o.replace(pt,t),n.push(o))}return n}function v(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}function g(t,e){if(t.charCodeAt(0)===mt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function _(t){return(t=String(t)).match(Pt)||t.match(At)?t:(n.isDevMode()&&r().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return(t=String(t)).split(",").map(function(t){return _(t.trim())}).join(", ")}function w(){if(Ot)return Ot;var t=(Mt=r()).createElement("template");if("content"in t)return t;var e=Mt.createHtmlDocument();if(null==(Ot=Mt.querySelector(e,"body"))){var n=Mt.createElement("html",e);Ot=Mt.createElement("body",e),Mt.appendChild(n,Ot),Mt.appendChild(e,n)}return Ot}function C(t){for(var e={},n=0,r=t.split(",");n<r.length;n++)e[r[n]]=!0;return e}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,o=t;r<o.length;r++){var i=o[r];for(var s in i)i.hasOwnProperty(s)&&(n[s]=!0)}return n}function S(t,e){if(e&&Mt.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+Mt.getOuterHTML(t));return e}function x(t){return t.replace(/&/g,"&").replace(qt,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(zt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function T(t){Mt.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Mt.removeAttribute(t,n)});for(var e=0,n=Mt.childNodesAsList(t);e<n.length;e++){var r=n[e];Mt.isElementNode(r)&&T(r)}}function P(t,e){try{var r=w(),o=e?String(e):"",i=5,s=o;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,o=s,Mt.setInnerHTML(r,o),t.documentMode&&T(r),s=Mt.getInnerHTML(r)}while(o!==s);for(var a=new Bt,u=a.sanitizeChildren(Mt.getTemplateContent(r)||r),c=Mt.getTemplateContent(r)||r,l=0,p=Mt.childNodesAsList(c);l<p.length;l++){var h=p[l];Mt.removeChild(c,h)}return n.isDevMode()&&a.sanitizedSomething&&Mt.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}catch(t){throw Ot=null,t}}function A(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var o=t.charAt(r);"'"===o&&n?e=!e:'"'===o&&e&&(n=!n)}return e&&n}function O(t){if(!(t=String(t).trim()))return"";var e=t.match(Wt);return e&&_(e[1])===e[1]||t.match(Gt)&&A(t)?t:(n.isDevMode()&&r().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function M(){z.makeCurrent(),Z.init()}function R(){return new n.ErrorHandler}function k(){return document}function I(t){return r().setGlobalVar(ue,new ae(t)),t}function N(){r().setGlobalVar(ue,null)}var D,j=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},L=null,V=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(t,e){},t.prototype.setProperty=function(t,e,n){},t.prototype.getProperty=function(t,e){},t.prototype.invoke=function(t,e,n){},t.prototype.logError=function(t){},t.prototype.log=function(t){},t.prototype.logGroup=function(t){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t,e){},t.prototype.parse=function(t){},t.prototype.querySelector=function(t,e){},t.prototype.querySelectorAll=function(t,e){},t.prototype.on=function(t,e,n){},t.prototype.onAndCancel=function(t,e,n){},t.prototype.dispatchEvent=function(t,e){},t.prototype.createMouseEvent=function(t){},t.prototype.createEvent=function(t){},t.prototype.preventDefault=function(t){},t.prototype.isPrevented=function(t){},t.prototype.getInnerHTML=function(t){},t.prototype.getTemplateContent=function(t){},t.prototype.getOuterHTML=function(t){},t.prototype.nodeName=function(t){},t.prototype.nodeValue=function(t){},t.prototype.type=function(t){},t.prototype.content=function(t){},t.prototype.firstChild=function(t){},t.prototype.nextSibling=function(t){},t.prototype.parentElement=function(t){},t.prototype.childNodes=function(t){},t.prototype.childNodesAsList=function(t){},t.prototype.clearNodes=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.removeChild=function(t,e){},t.prototype.replaceChild=function(t,e,n){},t.prototype.remove=function(t){},t.prototype.insertBefore=function(t,e,n){},t.prototype.insertAllBefore=function(t,e,n){},t.prototype.insertAfter=function(t,e,n){},t.prototype.setInnerHTML=function(t,e){},t.prototype.getText=function(t){},t.prototype.setText=function(t,e){},t.prototype.getValue=function(t){},t.prototype.setValue=function(t,e){},t.prototype.getChecked=function(t){},t.prototype.setChecked=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createTemplate=function(t){},t.prototype.createElement=function(t,e){},t.prototype.createElementNS=function(t,e,n){},t.prototype.createTextNode=function(t,e){},t.prototype.createScriptTag=function(t,e,n){},t.prototype.createStyleElement=function(t,e){},t.prototype.createShadowRoot=function(t){},t.prototype.getShadowRoot=function(t){},t.prototype.getHost=function(t){},t.prototype.getDistributedNodes=function(t){},t.prototype.clone=function(t){},t.prototype.getElementsByClassName=function(t,e){},t.prototype.getElementsByTagName=function(t,e){},t.prototype.classList=function(t){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.hasClass=function(t,e){},t.prototype.setStyle=function(t,e,n){},t.prototype.removeStyle=function(t,e){},t.prototype.getStyle=function(t,e){},t.prototype.hasStyle=function(t,e,n){},t.prototype.tagName=function(t){},t.prototype.attributeMap=function(t){},t.prototype.hasAttribute=function(t,e){},t.prototype.hasAttributeNS=function(t,e,n){},t.prototype.getAttribute=function(t,e){},t.prototype.getAttributeNS=function(t,e,n){},t.prototype.setAttribute=function(t,e,n){},t.prototype.setAttributeNS=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e){},t.prototype.removeAttributeNS=function(t,e,n){},t.prototype.templateAwareRoot=function(t){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(t){},t.prototype.getTitle=function(t){},t.prototype.setTitle=function(t,e){},t.prototype.elementMatches=function(t,e){},t.prototype.isTemplateElement=function(t){},t.prototype.isTextNode=function(t){},t.prototype.isCommentNode=function(t){},t.prototype.isElementNode=function(t){},t.prototype.hasShadowRoot=function(t){},t.prototype.isShadowRoot=function(t){},t.prototype.importIntoDoc=function(t){},t.prototype.adoptNode=function(t){},t.prototype.getHref=function(t){},t.prototype.getEventKey=function(t){},t.prototype.resolveAndSetHref=function(t,e,n){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(t,e){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(t){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(t,e,n){},t.prototype.getComputedStyle=function(t){},t.prototype.getData=function(t,e){},t.prototype.setGlobalVar=function(t,e){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(t){},t.prototype.setCookie=function(t,e){},t}(),F=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=e.getStyle(n,r[o]+"AnimationName")){e._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=i[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return j(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(V),U={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},H={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},B={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","Â":"NumLock"};n.ɵglobal.Node&&(D=n.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var q,z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){o(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){t[e].apply(t,n)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return U},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return D.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var o=n[r];e.set(o.name,o.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return document.title},e.prototype.setTitle=function(t,e){document.title=e||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&B.hasOwnProperty(e)&&(e=B[e]))}return H[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e=i();return null==e?null:s(e)},e.prototype.resetBaseElement=function(){G=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){u(n.ɵglobal,t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return a(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(F),G=null,W=new n.InjectionToken("DocumentToken"),$=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return j(e,t),e.prototype._init=function(){this._location=r().getLocation(),this._history=r().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return r().getBaseHref(this._doc)},e.prototype.onPopState=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){c()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){c()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(e.PlatformLocation);$.decorators=[{type:n.Injectable}],$.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var K=function(){function t(t){this._doc=t,this._dom=r()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var o=this._dom.createElement("meta");this._setMetaElementAttributes(t,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t}();K.decorators=[{type:n.Injectable}],K.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Q=new n.InjectionToken("TRANSITION_ID"),X=[{provide:n.APP_INITIALIZER,useFactory:l,deps:[Q,W,n.Injector],multi:!0}],Z=function(){function t(){}return t.init=function(){n.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){n.ɵglobal.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},n.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},n.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=n.ɵglobal.getAllAngularTestabilities(),r=e.length,o=!1,i=function(e){o=o||e,0==--r&&t(o)};e.forEach(function(t){t.whenStable(i)})};n.ɵglobal.frameworkStabilizers||(n.ɵglobal.frameworkStabilizers=[]),n.ɵglobal.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var o=t.getTestability(e);return null!=o?o:n?r().isShadowRoot(e)?this.findTestabilityInTree(t,r().getHost(e),!0):this.findTestabilityInTree(t,r().parentElement(e),!0):null},t}(),Y=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return r().getTitle(this._doc)},t.prototype.setTitle=function(t){r().setTitle(this._doc,t)},t}();Y.decorators=[{type:n.Injectable}],Y.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var J=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},tt={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},et="ng.probe",nt="ng.coreTokens",rt=function(){function t(t,e){this.name=t,this.token=e}return t}(),ot=[{provide:n.APP_INITIALIZER,useFactory:h,deps:[[rt,new n.Optional],[n.NgProbeToken,new n.Optional]],multi:!0}],it=new n.InjectionToken("EventManagerPlugins"),st=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t}();st.decorators=[{type:n.Injectable}],st.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[it]}]},{type:n.NgZone}]};var at=function(){function t(t){this._doc=t}return t.prototype.supports=function(t){},t.prototype.addEventListener=function(t,e,n){},t.prototype.addGlobalEventListener=function(t,e,n){var o=r().getGlobalEventTarget(this._doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+e);return this.addEventListener(o,e,n)},t}(),ut=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();ut.decorators=[{type:n.Injectable}],ut.ctorParameters=function(){return[]};var ct=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return j(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return r().remove(t)})},e}(ut);ct.decorators=[{type:n.Injectable}],ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var lt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},pt=/%COMP%/g,ht="_nghost-%COMP%",ft="_ngcontent-%COMP%",dt=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new yt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var r=this.rendererByCompId.get(e.id);return r||(r=new vt(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,r)),r.applyToHost(t),r;case n.ViewEncapsulation.Native:return new gt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var o=m(e.id,e.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t}();dt.decorators=[{type:n.Injectable}],dt.ctorParameters=function(){return[{type:st},{type:ct}]};var yt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(lt[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var o=lt[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=lt[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,r,o){o&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,r,o&n.RendererStyleFlags2.Important?"important":""):t.style[e]=r},t.prototype.removeStyle=function(t,e,r){r&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){g(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return g(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(n)):this.eventManager.addEventListener(t,e,v(n))},t}(),mt="@".charCodeAt(0),vt=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.component=r;var i=m(r.id,r.styles,[]);return n.addStyles(i),o.contentAttr=d(r.id),o.hostAttr=y(r.id),o}return j(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(yt),gt=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=m(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return j(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(yt),_t=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){return t.removeEventListener(e,n,!1)}},e}(at);_t.decorators=[{type:n.Injectable}],_t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var bt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},wt=new n.InjectionToken("HammerGestureConfig"),Ct=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t}();Ct.decorators=[{type:n.Injectable}],Ct.ctorParameters=function(){return[]};var Et=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return j(e,t),e.prototype.supports=function(t){if(!bt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,o=this.manager.getZone();return e=e.toLowerCase(),o.runOutsideAngular(function(){var i=r._config.buildHammer(t),s=function(t){o.runGuarded(function(){n(t)})};return i.on(e,s),function(){return i.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(at);Et.decorators=[{type:n.Injectable}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]},{type:Ct,decorators:[{type:n.Inject,args:[wt]}]}]};var St=["alt","control","meta","shift"],xt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Tt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,o){var i=e.parseEventName(n),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,i.domEventName,s)})},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(St.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 s={};return s.domEventName=r,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),St.forEach(function(r){r!=n&&(0,xt[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}(at);Tt.decorators=[{type:n.Injectable}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Pt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,At=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Ot=null,Mt=null,Rt=C("area,br,col,hr,img,wbr"),kt=C("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),It=C("rp,rt"),Nt=E(It,kt),Dt=E(kt,C("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),jt=E(It,C("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Lt=E(Rt,Dt,jt,Nt),Vt=C("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ft=C("srcset"),Ut=C("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ht=E(Vt,Ft,Ut),Bt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(Mt.isElementNode(e)?this.startElement(e):Mt.isTextNode(e)?this.chars(Mt.nodeValue(e)):this.sanitizedSomething=!0,Mt.firstChild(e))e=Mt.firstChild(e);else for(;e;){Mt.isElementNode(e)&&this.endElement(e);var n=S(e,Mt.nextSibling(e));if(n){e=n;break}e=S(e,Mt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=Mt.nodeName(t).toLowerCase();if(!Lt.hasOwnProperty(n))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(n),Mt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();if(!Ht.hasOwnProperty(r))return void(e.sanitizedSomething=!0);Vt[r]&&(t=_(t)),Ft[r]&&(t=b(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(x(t)),e.buf.push('"')}),this.buf.push(">")},t.prototype.endElement=function(t){var e=Mt.nodeName(t).toLowerCase();Lt.hasOwnProperty(e)&&!Rt.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),qt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zt=/([^\#-~ |!])/g,Gt=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"),Wt=/^url\(([^)]+)\)$/,$t=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),Kt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return j(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof Xt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),P(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof Zt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case n.SecurityContext.SCRIPT:if(e instanceof Yt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof te||e instanceof Jt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof te)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Qt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Xt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Zt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Yt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Jt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new te(t)},e}($t);Kt.decorators=[{type:n.Injectable}],Kt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Qt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Qt),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Qt),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Qt),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Qt),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Qt),ee=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:M,multi:!0},{provide:e.PlatformLocation,useClass:$},{provide:W,useFactory:k,deps:[]}],ne=[{provide:n.Sanitizer,useExisting:$t},{provide:$t,useClass:Kt}],re=n.createPlatformFactory(n.platformCore,"browser",ee),oe=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:n.APP_ID,useValue:e.appId},{provide:Q,useExisting:n.APP_ID},X]}},t}();oe.decorators=[{type:n.NgModule,args:[{providers:[ne,{provide:n.ErrorHandler,useFactory:R,deps:[]},{provide:it,useClass:_t,multi:!0},{provide:it,useClass:Tt,multi:!0},{provide:it,useClass:Et,multi:!0},{provide:wt,useClass:Ct},dt,{provide:n.RendererFactory2,useExisting:dt},{provide:ut,useExisting:ct},ct,n.Testability,st,ot,K,Y],exports:[e.CommonModule,n.ApplicationModule]}]}],oe.ctorParameters=function(){return[{type:oe,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]};var ie="undefined"!=typeof window&&window||{},se=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),ae=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=ie.console.profile;e&&n&&ie.console.profile("Change Detection");for(var o=r().performanceNow(),i=0;i<5||r().performanceNow()-o<500;)this.appRef.tick(),i++;var s=r().performanceNow();e&&n&&ie.console.profileEnd("Change Detection");var a=(s-o)/i;return ie.console.log("ran "+i+" change detection cycles"),ie.console.log(a.toFixed(2)+" ms per check"),new se(a,i)},t}(),ue="ng.profiler",ce=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&r().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),le=new n.Version("4.1.3");t.BrowserModule=oe,t.platformBrowser=re,t.Meta=K,t.Title=Y,t.disableDebugTools=N,t.enableDebugTools=I,t.By=ce,t.NgProbeToken=rt,t.DOCUMENT=W,t.EVENT_MANAGER_PLUGINS=it,t.EventManager=st,t.HAMMER_GESTURE_CONFIG=wt,t.HammerGestureConfig=Ct,t.DomSanitizer=$t,t.VERSION=le,t.ɵBROWSER_SANITIZATION_PROVIDERS=ne,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=ee,t.ɵinitDomAdapter=M,t.ɵBrowserDomAdapter=z,t.ɵsetValueOnPath=u,t.ɵBrowserPlatformLocation=$,t.ɵTRANSITION_ID=Q,t.ɵBrowserGetTestability=Z,t.ɵELEMENT_PROBE_PROVIDERS=ot,t.ɵDomAdapter=V,t.ɵgetDOM=r,t.ɵsetRootDomAdapter=o,t.ɵDomRendererFactory2=dt,t.ɵNAMESPACE_URIS=lt,t.ɵflattenStyles=m,t.ɵshimContentAttribute=d,t.ɵshimHostAttribute=y,t.ɵDomEventsPlugin=_t,t.ɵHammerGesturesPlugin=Et,t.ɵKeyEventsPlugin=Tt,t.ɵDomSharedStylesHost=ct,t.ɵSharedStylesHost=ut,t.ɵb=k,t.ɵa=R,t.ɵh=F,t.ɵg=X,t.ɵf=l,t.ɵc=h,t.ɵd=at,t.ɵe=Kt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/core":8}],13:[function(t,e,n){!function(r,o){"object"==typeof n&&void 0!==e?o(n,t("@angular/common"),t("@angular/core"),t("rxjs/BehaviorSubject"),t("rxjs/Subject"),t("rxjs/observable/from"),t("rxjs/observable/of"),t("rxjs/operator/concatMap"),t("rxjs/operator/every"),t("rxjs/operator/first"),t("rxjs/operator/map"),t("rxjs/operator/mergeMap"),t("rxjs/operator/reduce"),t("rxjs/Observable"),t("rxjs/operator/catch"),t("rxjs/operator/concatAll"),t("rxjs/util/EmptyError"),t("rxjs/observable/fromPromise"),t("rxjs/operator/last"),t("rxjs/operator/mergeAll"),t("@angular/platform-browser"),t("rxjs/operator/filter")):o((r.ng=r.ng||{},r.ng.router=r.ng.router||{}),r.ng.common,r.ng.core,r.Rx,r.Rx,r.Rx.Observable,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.ng.platformBrowser,r.Rx.Observable.prototype)}(this,function(t,e,n,r,o,i,s,a,u,c,l,p,h,f,d,y,m,v,g,_,b,w){"use strict";function C(t){return new Le(t)}function E(t){var e=Error("NavigationCancelingError: "+t);return e[Ve]=!0,e}function S(t){return t[Ve]}function x(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var o={},i=0;i<r.length;i++){var s=r[i],a=t[i];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:o}}function T(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];P(r,A(e,r))}}function P(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==je)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.")}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&T(t.children,e)}function A(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function O(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!M(t[n],e[n]))return!1;return!0}function M(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var o,i=0;i<n.length;i++)if(o=n[i],t[o]!==e[o])return!1;return!0}function R(t){return Array.prototype.concat.apply([],t)}function k(t){return t.length>0?t[t.length-1]:null}function I(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function N(t,e){if(0===Object.keys(t).length)return s.of({});var n=[],r=[],o={};I(t,function(t,i){var s=l.map.call(e(i,t),function(t){return o[i]=t});i===je?n.push(s):r.push(s)});var i=y.concatAll.call(s.of.apply(void 0,n.concat(r))),a=g.last.call(i);return l.map.call(a,function(){return o})}function D(t){var e=_.mergeAll.call(t);return u.every.call(e,function(t){return!0===t})}function j(t){return n.ɵisObservable(t)?t:n.ɵisPromise(t)?v.fromPromise(Promise.resolve(t)):s.of(t)}function L(){return new Ue(new He([],{}),{},null)}function V(t,e,n){return n?F(t.queryParams,e.queryParams)&&U(t.root,e.root):H(t.queryParams,e.queryParams)&&B(t.root,e.root)}function F(t,e){return M(t,e)}function U(t,e){if(!G(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!U(t.children[n],e.children[n]))return!1}return!0}function H(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}function B(t,e){return q(t,e,e.segments)}function q(t,e,n){if(t.segments.length>n.length)return!!G(o=t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!G(t.segments,n))return!1;for(var r in e.children){if(!t.children[r])return!1;if(!B(t.children[r],e.children[r]))return!1}return!0}var o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!G(t.segments,o)&&(!!t.children[je]&&q(t.children[je],e,i))}function z(t,e){return G(t,e)&&t.every(function(t,n){return M(t.parameters,e[n].parameters)})}function G(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function W(t,e){var n=[];return I(t.children,function(t,r){r===je&&(n=n.concat(e(t,r)))}),I(t.children,function(t,r){r!==je&&(n=n.concat(e(t,r)))}),n}function $(t){return t.segments.map(function(t){return Z(t)}).join("/")}function K(t,e){if(!t.hasChildren())return $(t);if(e){var n=t.children[je]?K(t.children[je],!1):"",r=[];return I(t.children,function(t,e){e!==je&&r.push(e+":"+K(t,!1))}),r.length>0?n+"("+r.join("//")+")":n}var o=W(t,function(e,n){return n===je?[K(t.children[je],!1)]:[n+":"+K(e,!1)]});return $(t)+"/("+o.join("//")+")"}function Q(t){return encodeURIComponent(t)}function X(t){return decodeURIComponent(t)}function Z(t){return""+Q(t.path)+Y(t.parameters)}function Y(t){return Object.keys(t).map(function(e){return";"+Q(e)+"="+Q(t[e])}).join("")}function J(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return Q(e)+"="+Q(t)}).join("&"):Q(e)+"="+Q(n)});return e.length?"?"+e.join("&"):""}function tt(t){var e=t.match(We);return e?e[0]:""}function et(t){var e=t.match($e);return e?e[0]:""}function nt(t){var e=t.match(Ke);return e?e[0]:""}function rt(t){return new f.Observable(function(e){return e.error(new Ze(t))})}function ot(t){return new f.Observable(function(e){return e.error(new Ye(t))})}function it(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function st(t){return new f.Observable(function(e){return e.error(E("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function at(t,e,n,r,o){return new Je(t,e,n,r,o).apply()}function ut(t,e){var n=e.canLoad;return n&&0!==n.length?D(l.map.call(i.from(n),function(n){var r=t.get(n);return j(r.canLoad?r.canLoad(e):r(e))})):s.of(!0)}function ct(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||x)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function lt(t,e,n,r){if(n.length>0&&dt(t,n,r))return{segmentGroup:pt(o=new He(e,ft(r,new He(n,t.children)))),slicedSegments:[]};if(0===n.length&&yt(t,n,r)){var o=new He(t.segments,ht(t,n,r,t.children));return{segmentGroup:pt(o),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function pt(t){if(1===t.numberOfChildren&&t.children[je]){var e=t.children[je];return new He(t.segments.concat(e.segments),e.children)}return t}function ht(t,e,n,r){for(var o={},i=0,s=n;i<s.length;i++){var a=s[i];mt(t,e,a)&&!r[vt(a)]&&(o[vt(a)]=new He([],{}))}return Xe({},r,o)}function ft(t,e){var n={};n[je]=e;for(var r=0,o=t;r<o.length;r++){var i=o[r];""===i.path&&vt(i)!==je&&(n[vt(i)]=new He([],{}))}return n}function dt(t,e,n){return n.some(function(n){return mt(t,e,n)&&vt(n)!==je})}function yt(t,e,n){return n.some(function(n){return mt(t,e,n)})}function mt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function vt(t){return t.outlet||je}function gt(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var o=gt(t,r[n]);if(o)return o}return null}function _t(t,e,n){if(n.push(e),t===e.value)return n;for(var r=0,o=e.children;r<o.length;r++){var i=_t(t,o[r],n.slice(0));if(i.length>0)return i}return[]}function bt(t,e){var n=wt(t,e),o=new r.BehaviorSubject([new Be("",{})]),i=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),a=new r.BehaviorSubject({}),u=new r.BehaviorSubject(""),c=new on(o,i,a,u,s,je,e,n.root);return c.snapshot=n.root,new rn(new en(c,[]),n)}function wt(t,e){var n=new sn([],{},{},"",{},je,e,null,t.root,-1,{});return new an("",new en(n,[]))}function Ct(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],o=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return e.slice(n).reduce(function(t,e){return{params:nn({},t.params,e.params),data:nn({},t.data,e.data),resolve:nn({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}function Et(t,e){e.value._routerState=t,e.children.forEach(function(e){return Et(t,e)})}function St(t){var e=t.children.length>0?" { "+t.children.map(St).join(", ")+" } ":"";return""+t.value+e}function xt(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,M(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),M(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),O(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),M(e.data,t._futureSnapshot.data)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Tt(t,e){var n=M(t.params,e.params)&&z(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||Tt(t.parent,e.parent))}function Pt(t,e,n){var r=At(t,e._root,n?n._root:void 0);return new rn(r,e)}function At(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){(o=n.value)._futureSnapshot=e.value;i=Mt(t,e,n);return new en(o,i)}if(t.retrieve(e.value)){var r=t.retrieve(e.value).route;return Ot(e,r),r}var o=Rt(e.value),i=e.children.map(function(e){return At(t,e)});return new en(o,i)}function Ot(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)Ot(t.children[n],e.children[n])}function Mt(t,e,n){return e.children.map(function(e){for(var r=0,o=n.children;r<o.length;r++){var i=o[r];if(t.shouldReuseRoute(i.value.snapshot,e.value))return At(t,e,i)}return At(t,e)})}function Rt(t){return new on(new r.BehaviorSubject(t.url),new r.BehaviorSubject(t.params),new r.BehaviorSubject(t.queryParams),new r.BehaviorSubject(t.fragment),new r.BehaviorSubject(t.data),t.outlet,t.component,t)}function kt(t,e,n,r,o){if(0===n.length)return Nt(e.root,e.root,e,r,o);var i=jt(n);if(i.toRoot())return Nt(e.root,new He([],{}),e,r,o);var s=Lt(i,e,t),a=s.processChildren?Bt(s.segmentGroup,s.index,i.commands):Ht(s.segmentGroup,s.index,i.commands);return Nt(s.segmentGroup,a,e,r,o)}function It(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Nt(t,e,n,r,o){var i={};return r&&I(r,function(t,e){i[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new Ue(e,i,o):new Ue(Dt(n.root,t,e),i,o)}function Dt(t,e,n){var r={};return I(t.children,function(t,o){r[o]=t===e?n:Dt(t,e,n)}),new He(t.segments,r)}function jt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new un(!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 I(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:i}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new un(n,e,r)}function Lt(t,e,n){if(t.isAbsolute)return new cn(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new cn(n.snapshot._urlSegment,!0,0);var r=It(t.commands[0])?0:1,o=n.snapshot._lastPathIndex+r;return Vt(n.snapshot._urlSegment,o,t.numberOfDoubleDots)}function Vt(t,e,n){for(var r=t,o=e,i=n;i>o;){if(i-=o,!(r=r.parent))throw new Error("Invalid number of '../'");o=r.segments.length}return new cn(r,!1,o-i)}function Ft(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[je]:""+t}function Ut(t){return"object"!=typeof t[0]?(e={},e[je]=t,e):void 0===t[0].outlets?(n={},n[je]=t,n):t[0].outlets;var e,n}function Ht(t,e,n){if(t||(t=new He([],{})),0===t.segments.length&&t.hasChildren())return Bt(t,e,n);var r=qt(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var i=new He(t.segments.slice(0,r.pathIndex),{});return i.children[je]=new He(t.segments.slice(r.pathIndex),t.children),Bt(i,0,o)}return r.match&&0===o.length?new He(t.segments,{}):r.match&&!t.hasChildren()?zt(t,e,n):r.match?Bt(t,0,o):zt(t,e,n)}function Bt(t,e,n){if(0===n.length)return new He(t.segments,{});var r=Ut(n),o={};return I(r,function(n,r){null!==n&&(o[r]=Ht(t.children[r],e,n))}),I(t.children,function(t,e){void 0===r[e]&&(o[e]=t)}),new He(t.segments,o)}function qt(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(r>=n.length)return i;var s=t.segments[o],a=Ft(n[r]),u=r<n.length-1?n[r+1]:null;if(o>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!$t(a,u,s))return i;r+=2}else{if(!$t(a,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function zt(t,e,n){for(var r=t.segments.slice(0,e),o=0;o<n.length;){if("object"==typeof n[o]&&void 0!==n[o].outlets){var i=Gt(n[o].outlets);return new He(r,i)}if(0===o&&It(n[0])){var s=t.segments[e];r.push(new Be(s.path,n[0])),o++}else{var a=Ft(n[o]),u=o<n.length-1?n[o+1]:null;a&&u&&It(u)?(r.push(new Be(a,Wt(u))),o+=2):(r.push(new Be(a,{})),o++)}}return new He(r,{})}function Gt(t){var e={};return I(t,function(t,n){null!==t&&(e[n]=zt(new He([],{}),0,t))}),e}function Wt(t){var e={};return I(t,function(t,n){return e[n]=""+t}),e}function $t(t,e,n){return t==n.path&&M(e,n.parameters)}function Kt(t,e,n,r){return new hn(t,e,n,r).recognize()}function Qt(t){t.sort(function(t,e){return t.value.outlet===je?-1:e.value.outlet===je?1:t.value.outlet.localeCompare(e.value.outlet)})}function Xt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Zt(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new pn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||x)(n,t,e);if(!r)throw new pn;var o={};I(r.posParams,function(t,e){o[e]=t.path});var i=ln({},o,r.consumed[r.consumed.length-1].parameters);return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}function Yt(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.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+"'.")}e[t.value.outlet]=t.value})}function Jt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function te(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 ee(t,e,n,r){if(n.length>0&&oe(t,n,r)){var o=new He(e,re(t,e,r,new He(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&ie(t,n,r)){var i=new He(t.segments,ne(t,n,r,t.children));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}var s=new He(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function ne(t,e,n,r){for(var o={},i=0,s=n;i<s.length;i++){var a=s[i];if(se(t,e,a)&&!r[ae(a)]){var u=new He([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,o[ae(a)]=u}}return ln({},r,o)}function re(t,e,n,r){var o={};o[je]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var i=0,s=n;i<s.length;i++){var a=s[i];if(""===a.path&&ae(a)!==je){var u=new He([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,o[ae(a)]=u}}return o}function oe(t,e,n){return n.some(function(n){return se(t,e,n)&&ae(n)!==je})}function ie(t,e,n){return n.some(function(n){return se(t,e,n)})}function se(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function ae(t){return t.outlet||je}function ue(t){return t.data||{}}function ce(t){return t.resolve||{}}function le(t){throw t}function pe(t){return s.of(null)}function he(t){xt(t.value),t.children.forEach(he)}function fe(t){for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}function de(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}function ye(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function me(t,e){var n=t._outlets[e.outlet];if(!n){var r=e.component.name;throw e.outlet===je?new Error("Cannot find primary outlet to load '"+r+"'"):new Error("Cannot find the outlet "+e.outlet+" to load '"+r+"'")}return n}function ve(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}function ge(t){return""===t||!!t}function _e(){return new n.NgProbeToken("Router",bn)}function be(t,n,r){return void 0===r&&(r={}),r.useHash?new e.HashLocationStrategy(t,n):new e.PathLocationStrategy(t,n)}function we(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ce(t){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:fn,multi:!0,useValue:t}]}function Ee(t,e,n,r,o,i,s,a,u,c,l){void 0===u&&(u={});var p=new bn(null,e,n,r,o,i,s,R(a));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),u.errorHandler&&(p.errorHandler=u.errorHandler),u.enableTracing){var h=b.ɵgetDOM();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return p}function Se(t){return t.routerState.root}function xe(t){return t.appInitializer.bind(t)}function Te(t){return t.bootstrapListener.bind(t)}function Pe(){return[Un,{provide:n.APP_INITIALIZER,multi:!0,useFactory:xe,deps:[Un]},{provide:Hn,useFactory:Te,deps:[Un]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Hn}]}var Ae=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Oe=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),Me=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Re=function(){function t(t,e,n){this.id=t,this.url=e,this.reason=n}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),ke=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),Ie=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ne=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),De=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),je="primary",Le=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}(),Ve="ngNavigationCancelingError",Fe=function(){function t(t,e){this.routes=t,this.module=e}return t}(),Ue=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=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ge.serialize(this)},t}(),He=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,I(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 $(this)},t}(),Be=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=C(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Z(this)},t}(),qe=function(){function t(){}return t.prototype.parse=function(t){},t.prototype.serialize=function(t){},t}(),ze=function(){function t(){}return t.prototype.parse=function(t){var e=new Qe(t);return new Ue(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return""+("/"+K(t.root,!0))+J(t.queryParams)+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Ge=new ze,We=/^[^\/()?;=&#]+/,$e=/^[^=?&#]+/,Ke=/^[^?&#]+/,Qe=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 He([],{}):new He([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[je]=new He(t,e)),n},t.prototype.parseSegment=function(){var t=tt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Be(X(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=tt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=tt(this.remaining);r&&(n=r,this.capture(n))}t[X(e)]=X(n)}},t.prototype.parseQueryParam=function(t){var e=et(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=nt(this.remaining);r&&(n=r,this.capture(n))}var o=X(e),i=X(n);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=tt(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=je);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[je]:new He([],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}(),Xe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Ze=function(){function t(t){this.segmentGroup=t||null}return t}(),Ye=function(){function t(t){this.urlTree=t}return t}(),Je=function(){function t(t,e,r,o,i){this.configLoader=e,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(n.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,je),n=l.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(n,function(e){if(e instanceof Ye)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Ze)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,je),r=l.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return d._catch.call(r,function(t){if(t instanceof Ze)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=t.segments.length>0?new He([],(o={},o[je]=t,o)):t;return new Ue(r,e,n);var o},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?l.map.call(this.expandChildren(t,e,n),function(t){return new He([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return N(n.children,function(n,o){return r.expandSegmentGroup(t,e,o,n)})},t.prototype.expandSegment=function(t,e,n,r,o,i){var a=this,u=s.of.apply(void 0,n),p=l.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,n,u,r,o,i);return d._catch.call(c,function(t){if(t instanceof Ze)return s.of(null);throw t})}),h=y.concatAll.call(p),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t,n){if(t instanceof m.EmptyError){if(a.noLeftoversInUrl(e,r,o))return s.of(new He([],{}));throw new Ze(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,s){return vt(r)!==i?rt(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):rt(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("/")?ot(i):p.mergeMap.call(this.lineralizeSegments(n,i),function(n){var i=new He(n,{});return o.expandSegment(t,i,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var s=this,a=ct(e,r,o),u=a.matched,c=a.consumedSegments,l=a.lastChild,h=a.positionalParamSegments;if(!u)return rt(e);var f=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?ot(f):p.mergeMap.call(this.lineralizeSegments(r,f),function(r){return s.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?l.map.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new He(r,{})}):s.of(new He(r,{}));var i=ct(e,n,r),a=i.matched,u=i.consumedSegments,c=i.lastChild;if(!a)return rt(e);var h=r.slice(c),f=this.getChildConfig(t,n);return p.mergeMap.call(f,function(t){var n=t.module,r=t.routes,i=lt(e,u,h,r),a=i.segmentGroup,c=i.slicedSegments;if(0===c.length&&a.hasChildren()){var p=o.expandChildren(n,r,a);return l.map.call(p,function(t){return new He(u,t)})}if(0===r.length&&0===c.length)return s.of(new He(u,{}));var f=o.expandSegment(n,a,r,c,je,!0);return l.map.call(f,function(t){return new He(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?s.of(new Fe(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?s.of(e._loadedConfig):p.mergeMap.call(ut(t.injector,e),function(r){return r?l.map.call(n.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):st(e)}):s.of(new Fe([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return s.of(n);if(r.numberOfChildren>1||!r.children[je])return it(t.redirectTo);r=r.children[je]}},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 Ue(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return I(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),s={};return I(e.children,function(e,i){s[i]=o.createSegmentGroup(t,e,n,r)}),new He(i,s)},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){for(var n=0,r=0,o=e;r<o.length;r++){var i=o[r];if(i.path===t.path)return e.splice(n),i;n++}return t},t}(),tn=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=gt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=gt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=_t(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 _t(t,this._root,[]).map(function(t){return t.value})},t}(),en=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),nn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},rn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Et(r,e),r}return Ae(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(tn),on=function(){function t(t,e,n,r,o,i,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,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=l.map.call(this.params,function(t){return C(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=l.map.call(this.queryParams,function(t){return C(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),sn=function(){function t(t,e,n,r,o,i,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._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=C(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(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}(),an=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Et(r,n),r}return Ae(e,t),e.prototype.toString=function(){return St(this._root)},e}(tn),un=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&It(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!==k(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}(),cn=function(){function t(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}return t}(),ln=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},pn=function(){function t(){}return t}(),hn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=ee(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,je),n=new sn([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},je,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new en(n,e),o=new an(this.url,r);return this.inheriteParamsAndData(o._root),s.of(o)}catch(t){return new f.Observable(function(e){return e.error(t)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,n=t.value,r=Ct(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheriteParamsAndData(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=this,r=W(e,function(e,r){return n.processSegmentGroup(t,e,r)});return Yt(r),Qt(r),r},t.prototype.processSegment=function(t,e,n,r){for(var o=0,i=t;o<i.length;o++){var s=i[o];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(t){if(!(t instanceof pn))throw t}}if(this.noLeftoversInUrl(e,n,r))return[];throw new pn},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 pn;if((t.outlet||je)!==r)throw new pn;if("**"===t.path){var o=n.length>0?k(n).parameters:{},i=new sn(n,o,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),r,t.component,t,Jt(e),te(e)+n.length,ce(t));return[new en(i,[])]}var s=Zt(e,t,n),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=n.slice(c),p=Xt(t),h=ee(e,a,l,p),f=h.segmentGroup,d=h.slicedSegments,y=new sn(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),r,t.component,t,Jt(e),te(e)+a.length,ce(t));if(0===d.length&&f.hasChildren()){var m=this.processChildren(p,f);return[new en(y,m)]}if(0===p.length&&0===d.length)return[new en(y,[])];var v=this.processSegment(p,f,d,je);return[new en(y,v)]},t}(),fn=new n.InjectionToken("ROUTES"),dn=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return l.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Fe(R(o.injector.get(fn)),o)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?v.fromPromise(this.loader.load(t)):p.mergeMap.call(j(t()),function(t){return t instanceof n.NgModuleFactory?s.of(t):v.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),yn=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),mn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){},t.prototype.extract=function(t){},t.prototype.merge=function(t,e){},t}(),vn=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}(),gn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},_n=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}(),bn=function(){function t(t,e,i,s,a,u,c,l){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.outletMap=i,this.location=s,this.config=l,this.navigations=new r.BehaviorSubject(null),this.routerEvents=new o.Subject,this.navigationId=0,this.errorHandler=le,this.navigated=!1,this.hooks={beforePreactivation:pe,afterPreactivation:pe},this.urlHandlingStrategy=new vn,this.routeReuseStrategy=new _n;var h=function(t){return p.triggerEvent(new Ne(t))},f=function(t){return p.triggerEvent(new De(t))};this.ngModule=a.get(n.NgModuleRef),this.resetConfig(l),this.currentUrlTree=L(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new dn(u,c,h,f),this.currentRouterState=bt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.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(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){T(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var r=void 0===e?{}:e,o=r.relativeTo,i=r.queryParams,s=r.fragment,a=r.preserveQueryParams,u=r.queryParamsHandling,c=r.preserveFragment;n.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=o||this.routerState.root,p=c?this.currentUrlTree.fragment:s,h=null;if(u)switch(u){case"merge":h=gn({},this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=a?this.currentUrlTree.queryParams:i||null;return kt(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof Ue?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),ve(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof Ue)return V(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return V(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise.catch(function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);var o=null,i=null,s=new Promise(function(t,e){o=t,i=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:o,reject:i,promise:s}),s.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,o=t.extras,i=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new Oe(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!!o.skipLocationChange,!!o.replaceUrl,n,null)}).then(i,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Oe(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!1,!1,n,bt(a,e.rootComponentType).snapshot)}).then(i,s)):(this.rawUrlTree=r,i(null))},t.prototype.runNavigate=function(t,e,n,r,o,i){var a=this;return o!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Re(o,this.serializeUrl(t),"Navigation ID "+o+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(i)h=s.of({appliedUrl:t,snapshot:i});else{var f=at(a.ngModule.injector,a.configLoader,a.urlSerializer,t,a.config);h=p.mergeMap.call(f,function(e){return l.map.call(Kt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(n){return a.routerEvents.next(new Ie(o,a.serializeUrl(t),a.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var d,y,m=p.mergeMap.call(h,function(t){return l.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),v=l.map.call(m,function(t){var e=t.appliedUrl,n=t.snapshot,r=a.ngModule.injector;return(d=new En(n,a.currentRouterState.snapshot,r)).traverse(a.outletMap),{appliedUrl:e,snapshot:n}}),g=p.mergeMap.call(v,function(t){var e=t.appliedUrl,n=t.snapshot;return a.navigationId!==o?s.of(!1):l.map.call(d.checkGuards(),function(t){return{appliedUrl:e,snapshot:n,shouldActivate:t}})}),_=p.mergeMap.call(g,function(t){return a.navigationId!==o?s.of(!1):t.shouldActivate?l.map.call(d.resolveData(),function(){return t}):s.of(t)}),b=p.mergeMap.call(_,function(t){return l.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),w=l.map.call(b,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;return r?{appliedUrl:e,state:Pt(a.routeReuseStrategy,n,a.currentRouterState),shouldActivate:r}:{appliedUrl:e,state:null,shouldActivate:r}}),C=a.currentRouterState,E=a.currentUrlTree;w.forEach(function(t){var i=t.appliedUrl,s=t.state;if(!t.shouldActivate||o!==a.navigationId)return void(y=!1);if(a.currentUrlTree=i,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!n){var u=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(u)||r?a.location.replaceState(u):a.location.go(u)}new Sn(a.routeReuseStrategy,s,C).activate(a.outletMap),y=!0}).then(function(){y?(a.navigated=!0,a.routerEvents.next(new Me(o,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Re(o,a.serializeUrl(t),"")),u(!1))},function(n){if(S(n))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Re(o,a.serializeUrl(t),n.message)),u(!1);else{a.routerEvents.next(new ke(o,a.serializeUrl(t),n));try{u(a.errorHandler(n))}catch(t){c(t)}}a.currentRouterState=C,a.currentUrlTree=E,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),wn=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),Cn=function(){function t(t,e){this.component=t,this.route=e}return t}(),En=function(){function t(t,e,n){this.future=t,this.curr=e,this.moduleInjector=n,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.canDeactivateChecks.length&&0===this.canActivateChecks.length)return s.of(!0);var e=this.runCanDeactivateChecks();return p.mergeMap.call(e,function(e){return e?t.runCanActivateChecks():s.of(!1)})},t.prototype.resolveData=function(){var t=this;if(0===this.canActivateChecks.length)return s.of(null);var e=i.from(this.canActivateChecks),n=a.concatMap.call(e,function(e){return t.runResolve(e.route)});return h.reduce.call(n,function(t,e){return t})},t.prototype.traverseChildRoutes=function(t,e,n,r){var o=this,i=ye(e);t.children.forEach(function(t){o.traverseRoutes(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),I(i,function(t,e){return o.deactiveRouteAndItsChildren(t,n._outlets[e])})},t.prototype.traverseRoutes=function(t,e,n,r){var o=t.value,i=e?e.value:null,s=n?n._outlets[t.value.outlet]:null;i&&o._routeConfig===i._routeConfig?(this.shouldRunGuardsAndResolvers(i,o,o._routeConfig.runGuardsAndResolvers)?(this.canActivateChecks.push(new wn(r)),this.canDeactivateChecks.push(new Cn(s.component,i))):(o.data=i.data,o._resolvedData=i._resolvedData),o.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,r):this.traverseChildRoutes(t,e,n,r)):(i&&this.deactiveRouteAndItsChildren(e,s),this.canActivateChecks.push(new wn(r)),o.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,r):this.traverseChildRoutes(t,null,n,r))},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Tt(t,e)||!M(t.queryParams,e.queryParams);case"paramsChange":default:return!Tt(t,e)}},t.prototype.deactiveRouteAndItsChildren=function(t,e){var n=this,r=ye(t),o=t.value;I(r,function(t,r){o.component?e?n.deactiveRouteAndItsChildren(t,e.outletMap._outlets[r]):n.deactiveRouteAndItsChildren(t,null):n.deactiveRouteAndItsChildren(t,e)}),o.component&&e&&e.isActivated?this.canDeactivateChecks.push(new Cn(e.component,o)):this.canDeactivateChecks.push(new Cn(null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=i.from(this.canDeactivateChecks),n=p.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return u.every.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=i.from(this.canActivateChecks),n=p.mergeMap.call(e,function(e){return D(i.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return u.every.call(n,function(t){return!0===t})},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;return n&&0!==n.length?D(l.map.call(i.from(n),function(n){var r,o=e.getToken(n,t);return r=j(o.canActivate?o.canActivate(t,e.future):o(t,e.future)),c.first.call(r)})):s.of(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return D(l.map.call(i.from(r),function(t){return D(l.map.call(i.from(t.guards),function(r){var o,i=e.getToken(r,t.node);return o=j(i.canActivateChild?i.canActivateChild(n,e.future):i(n,e.future)),c.first.call(o)}))}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!r||0===r.length)return s.of(!0);var o=p.mergeMap.call(i.from(r),function(r){var o,i=n.getToken(r,e);return o=j(i.canDeactivate?i.canDeactivate(t,e,n.curr,n.future):i(t,e,n.curr,n.future)),c.first.call(o)});return u.every.call(o,function(t){return!0===t})},t.prototype.runResolve=function(t){var e=t._resolve;return l.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=gn({},t.data,Ct(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this;return N(t,function(t,r){var o=n.getToken(r,e);return j(o.resolve?o.resolve(e,n.future):o(e,n.future))})},t.prototype.getToken=function(t,e){var n=de(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),Sn=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),xt(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,o=ye(e);t.children.forEach(function(t){r.deactivateRoutes(t,o[t.value.outlet],n),delete o[t.value.outlet]}),I(o,function(t,e){return r.deactiveRouteAndItsChildren(t,n)})},t.prototype.activateChildRoutes=function(t,e,n){var r=this,o=ye(e);t.children.forEach(function(t){r.activateRoutes(t,o[t.value.outlet],n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,o=e?e.value:null;if(r===o)if(r.component){var i=me(n,r);this.deactivateChildRoutes(t,e,i.outletMap)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactiveRouteAndItsChildren(e,n)},t.prototype.activateRoutes=function(t,e,n){var r=t.value;if(r===(e?e.value:null))if(xt(r),r.component){o=me(n,r);this.activateChildRoutes(t,e,o.outletMap)}else this.activateChildRoutes(t,e,n);else if(r.component){xt(r);var o=me(n,t.value);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var i=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.attach(i.componentRef,i.route.value),he(i.route)}else{var s=new yn;this.placeComponentIntoOutlet(s,r,o),this.activateChildRoutes(t,null,s)}}else xt(r),this.activateChildRoutes(t,null,n)},t.prototype.placeComponentIntoOutlet=function(t,e,n){var r=fe(e.snapshot),o=r?r.module.componentFactoryResolver:null;n.activateWith(e,o,t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=me(e,t.value).detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:n,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var n=this,r=ye(t),o=null;try{o=me(e,t.value)}catch(t){return}var i=o.outletMap;I(r,function(r,o){t.value.component?n.deactiveRouteAndItsChildren(r,i):n.deactiveRouteAndItsChildren(r,e)}),o&&o.isActivated&&o.deactivate()},t}(),xn=function(){function t(t,e,n,r,o){this.router=t,this.route=e,this.commands=[],null==n&&r.setElementAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();xn.decorators=[{type:n.Directive,args:[{selector:":not(a)[routerLink]"}]}],xn.ctorParameters=function(){return[{type:bn},{type:on},{type:void 0,decorators:[{type:n.Attribute,args:["tabindex"]}]},{type:n.Renderer},{type:n.ElementRef}]},xn.propDecorators={queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click"]}]};var Tn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Me&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n){if(0!==t||e||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,r),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Tn.decorators=[{type:n.Directive,args:[{selector:"a[routerLink]"}]}],Tn.ctorParameters=function(){return[{type:bn},{type:on},{type:e.LocationStrategy}]},Tn.propDecorators={target:[{type:n.HostBinding,args:["attr.target"]},{type:n.Input}],queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],href:[{type:n.HostBinding}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]};var Pn=function(){function t(t,e,n,r){var o=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Me&&o.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.classes.forEach(function(n){return t.renderer.setElementClass(t.element.nativeElement,n,e)}),Promise.resolve(e).then(function(e){return t.active=e}))}},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();Pn.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Pn.ctorParameters=function(){return[{type:bn},{type:n.ElementRef},{type:n.Renderer},{type:n.ChangeDetectorRef}]},Pn.propDecorators={links:[{type:n.ContentChildren,args:[xn,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[Tn,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]};var An=function(){function t(t,e,r,o){this.parentOutletMap=t,this.location=e,this.resolver=r,this.name=o,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,t.registerOutlet(o||je,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:je)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,r,o,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=i,this._activatedRoute=t;var s=t._futureSnapshot._routeConfig.component,a=e.resolveComponentFactory(s),u=n.ReflectiveInjector.fromResolvedProviders(o,r);this.activated=this.location.createComponent(a,this.location.length,u,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.prototype.activateWith=function(t,e,n){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=n,this._activatedRoute=t;var r=t._futureSnapshot._routeConfig.component,o=(e=e||this.resolver).resolveComponentFactory(r),i=new On(t,n,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,i,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t}();An.decorators=[{type:n.Directive,args:[{selector:"router-outlet"}]}],An.ctorParameters=function(){return[{type:yn},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]}]},An.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]};var On=function(){function t(t,e,n){this.route=t,this.map=e,this.parent=n}return t.prototype.get=function(t,e){return t===on?this.route:t===yn?this.map:this.parent.get(t,e)},t}(),Mn=function(){function t(){}return t.prototype.shouldDetach=function(t){},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){},t.prototype.retrieve=function(t){},t.prototype.shouldReuseRoute=function(t,e){},t}(),Rn=function(){function t(){}return t.prototype.preload=function(t,e){},t}(),kn=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),In=function(){function t(){}return t.prototype.preload=function(t,e){return s.of(null)},t}(),Nn=function(){function t(t,e,n,r,o){this.router=t,this.injector=r,this.preloadingStrategy=o;var i=function(e){return t.triggerEvent(new Ne(e))},s=function(e){return t.triggerEvent(new De(e))};this.loader=new dn(e,n,i,s)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof Me});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(n.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,o=e;r<o.length;r++){var s=o[r];if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;n.push(this.processRoutes(a.module,a.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(t,s)):s.children&&n.push(this.processRoutes(t,s.children))}return _.mergeAll.call(i.from(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t.injector,e);return p.mergeMap.call(r,function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t}();Nn.decorators=[{type:n.Injectable}],Nn.ctorParameters=function(){return[{type:bn},{type:n.NgModuleFactoryLoader},{type:n.Compiler},{type:n.Injector},{type:Rn}]};var Dn=[An,xn,Tn,Pn],jn=new n.InjectionToken("ROUTER_CONFIGURATION"),Ln=new n.InjectionToken("ROUTER_FORROOT_GUARD"),Vn=[e.Location,{provide:qe,useClass:ze},{provide:bn,useFactory:Ee,deps:[n.ApplicationRef,qe,yn,e.Location,n.Injector,n.NgModuleFactoryLoader,n.Compiler,fn,jn,[mn,new n.Optional],[Mn,new n.Optional]]},yn,{provide:on,useFactory:Se,deps:[bn]},{provide:n.NgModuleFactoryLoader,useClass:n.SystemJsNgModuleLoader},Nn,In,kn,{provide:jn,useValue:{enableTracing:!1}}],Fn=function(){function t(t,e){}return t.forRoot=function(r,o){return{ngModule:t,providers:[Vn,Ce(r),{provide:Ln,useFactory:we,deps:[[bn,new n.Optional,new n.SkipSelf]]},{provide:jn,useValue:o||{}},{provide:e.LocationStrategy,useFactory:be,deps:[e.PlatformLocation,[new n.Inject(e.APP_BASE_HREF),new n.Optional],jn]},{provide:Rn,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:In},{provide:n.NgProbeToken,multi:!0,useFactory:_e},Pe()]}},t.forChild=function(e){return{ngModule:t,providers:[Ce(e)]}},t}();Fn.decorators=[{type:n.NgModule,args:[{declarations:Dn,exports:Dn}]}],Fn.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[Ln]}]},{type:bn,decorators:[{type:n.Optional}]}]};var Un=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new o.Subject}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(bn),o=t.injector.get(jn);if(t.isLegacyDisabled(o)||t.isLegacyEnabled(o))e(!0);else if("disabled"===o.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '"+o.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?s.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(jn),r=this.injector.get(Nn),o=this.injector.get(bn),i=this.injector.get(n.ApplicationRef);t===i.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),r.setUpPreloading(),o.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t}();Un.decorators=[{type:n.Injectable}],Un.ctorParameters=function(){return[{type:n.Injector}]};var Hn=new n.InjectionToken("Router Initializer"),Bn=new n.Version("4.1.3");t.RouterLink=xn,t.RouterLinkWithHref=Tn,t.RouterLinkActive=Pn,t.RouterOutlet=An,t.NavigationCancel=Re,t.NavigationEnd=Me,t.NavigationError=ke,t.NavigationStart=Oe,t.RouteConfigLoadEnd=De,t.RouteConfigLoadStart=Ne,t.RoutesRecognized=Ie,t.RouteReuseStrategy=Mn,t.Router=bn,t.ROUTES=fn,t.ROUTER_CONFIGURATION=jn,t.ROUTER_INITIALIZER=Hn,t.RouterModule=Fn,t.provideRoutes=Ce,t.RouterOutletMap=yn,t.NoPreloading=In,t.PreloadAllModules=kn,t.PreloadingStrategy=Rn,t.RouterPreloader=Nn,t.ActivatedRoute=on,t.ActivatedRouteSnapshot=sn,t.RouterState=rn,t.RouterStateSnapshot=an,t.PRIMARY_OUTLET=je,t.convertToParamMap=C,t.UrlHandlingStrategy=mn,t.DefaultUrlSerializer=ze,t.UrlSegment=Be,t.UrlSegmentGroup=He,t.UrlSerializer=qe,t.UrlTree=Ue,t.VERSION=Bn,t.ɵROUTER_PROVIDERS=Vn,t.ɵflatten=R,t.ɵa=Ln,t.ɵg=Un,t.ɵh=xe,t.ɵi=Te,t.ɵd=we,t.ɵc=be,t.ɵj=Pe,t.ɵf=Se,t.ɵb=_e,t.ɵe=Ee,t.ɵk=tn,t.ɵl=en,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/core":8,"@angular/platform-browser":12,"rxjs/BehaviorSubject":14,"rxjs/Observable":17,"rxjs/Subject":20,"rxjs/observable/from":35,"rxjs/observable/fromPromise":36,"rxjs/observable/of":38,"rxjs/operator/catch":39,"rxjs/operator/concatAll":40,"rxjs/operator/concatMap":41,"rxjs/operator/every":42,"rxjs/operator/filter":43,"rxjs/operator/first":44,"rxjs/operator/last":45,"rxjs/operator/map":46,"rxjs/operator/mergeAll":48,"rxjs/operator/mergeMap":49,"rxjs/operator/reduce":52,"rxjs/util/EmptyError":57}],14:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("./Subject"),i=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return r(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 i.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.Subject);n.BehaviorSubject=s},{"./Subject":20,"./util/ObjectUnsubscribedError":58}],15:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(t("./Subscriber").Subscriber);n.InnerSubscriber=o},{"./Subscriber":22}],16:[function(t,e,n){"use strict";var r=t("./Observable"),o=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();n.Notification=o},{"./Observable":17}],17:[function(t,e,n){"use strict";var r=t("./util/root"),o=t("./util/toSubscriber"),i=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=o.toSubscriber(t,e,n);if(r?r.call(i,this.source):i.add(this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o=n.subscribe(function(e){if(o)try{t(e)}catch(t){r(t),o.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();n.Observable=s},{"./symbol/observable":55,"./util/root":67,"./util/toSubscriber":69}],18:[function(t,e,n){"use strict";n.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},{}],19:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(t("./Subscriber").Subscriber);n.OuterSubscriber=o},{"./Subscriber":22}],20:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("./Observable"),i=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(i.Subscriber);n.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.$$rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new o.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(o.Observable);n.Subject=p;var h=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);n.AnonymousSubject=h},{"./Observable":17,"./SubjectSubscription":21,"./Subscriber":22,"./Subscription":23,"./symbol/rxSubscriber":56,"./util/ObjectUnsubscribedError":58}],21:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(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}(t("./Subscription").Subscription);n.SubjectSubscription=o},{"./Subscription":23}],22:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("./util/isFunction"),i=t("./Subscription"),s=t("./Observer"),a=t("./symbol/rxSubscriber"),u=function(t){function e(n,r,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,o)}}return r(e,t),e.prototype[a.$$rxSubscriber]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(i.Subscription);n.Subscriber=u;var c=function(t){function e(e,n,r,i){t.call(this),this._parentSubscriber=e;var s,a=this;o.isFunction(n)?s=n:n&&(a=n,s=n.next,r=n.error,i=n.complete,o.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=r,this._complete=i}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},{"./Observer":18,"./Subscription":23,"./symbol/rxSubscriber":56,"./util/isFunction":63}],23:[function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var o=t("./util/isArray"),i=t("./util/isObject"),s=t("./util/isFunction"),a=t("./util/tryCatch"),u=t("./util/errorObject"),c=t("./util/UnsubscriptionError"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,l=n._parent,p=n._parents,h=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,y=p?p.length:0;l;)l.remove(this),l=++d<y&&p[d]||null;if(s.isFunction(h)&&(v=a.tryCatch(h).call(this))===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e])),o.isArray(f))for(d=-1,y=f.length;++d<y;){var m=f[d];if(i.isObject(m)){var v=a.tryCatch(m.unsubscribe).call(m);if(v===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();n.Subscription=l},{"./util/UnsubscriptionError":59,"./util/errorObject":60,"./util/isArray":61,"./util/isFunction":63,"./util/isObject":64,"./util/tryCatch":70}],24:[function(t,e,n){"use strict";var r=t("../../Observable"),o=t("../../operator/map");r.Observable.prototype.map=o.map},{"../../Observable":17,"../../operator/map":46}],25:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Observable"),i=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new i.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,o=t.subscriber;if(!o.closed){if(n>=r)return void o.complete();o.next(e[n]),t.index=n+1,this.schedule(t)}},e.prototype._subscribe=function(t){var n=this,r=n.arrayLike,o=n.scheduler,i=r.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:r,index:0,length:i,subscriber:t});for(var s=0;s<i&&!t.closed;s++)t.next(r[s]);t.complete()},e}(o.Observable);n.ArrayLikeObservable=a},{"../Observable":17,"./EmptyObservable":28,"./ScalarObservable":33}],26:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Observable"),i=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var o=t.length;return o>1?new e(t,r):1===o?new i.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,o=t.subscriber;if(n>=r)return void o.complete();o.next(e[n]),o.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var i=0;i<r&&!t.closed;i++)t.next(n[i]);t.complete()},e}(o.Observable);n.ArrayObservable=u},{"../Observable":17,"../util/isScheduler":66,"./EmptyObservable":28,"./ScalarObservable":33}],27:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subject"),i=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0}return r(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||((t=this._connection=new a.Subscription).add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(i.Observable);n.ConnectableObservable=u,n.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){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}(o.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new p(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),p=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(s.Subscriber)},{"../Observable":17,"../Subject":20,"../Subscriber":22,"../Subscription":23}],28:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(t("../Observable").Observable);n.EmptyObservable=o},{"../Observable":17}],29:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Observable"),i=t("./EmptyObservable"),s=t("../util/isArray"),a=t("../util/subscribeToResult"),u=t("../OuterSubscriber"),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new i.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new i.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(o.Observable);n.ForkJoinObservable=c;var l=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var o=n.length;this.total=o,this.values=new Array(o);for(var i=0;i<o;i++){var s=n[i],u=a.subscribeToResult(this,s,null,i);u&&(u.outerIndex=i,this.add(u))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e,o._hasValue||(o._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this,r=n.haveValues,o=n.resultSelector,i=n.values,s=i.length;if(!t._hasValue)return void e.complete();if(++this.completed===s){if(r===s){var a=o?o.apply(this,i):i;e.next(a)}e.complete()}},e}(u.OuterSubscriber)},{"../Observable":17,"../OuterSubscriber":19,"../util/isArray":61,"../util/subscribeToResult":68,"./EmptyObservable":28}],30:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../util/isArray"),i=t("../util/isArrayLike"),s=t("../util/isPromise"),a=t("./PromiseObservable"),u=t("./IteratorObservable"),c=t("./ArrayObservable"),l=t("./ArrayLikeObservable"),p=t("../symbol/iterator"),h=t("../Observable"),f=t("../operator/observeOn"),d=t("../symbol/observable"),y=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[d.$$observable])return t instanceof h.Observable&&!n?t:new e(t,n);if(o.isArray(t))return new c.ArrayObservable(t,n);if(s.isPromise(t))return new a.PromiseObservable(t,n);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,n);if(i.isArrayLike(t))return new l.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[d.$$observable]().subscribe(t):e[d.$$observable]().subscribe(new f.ObserveOnSubscriber(t,n,0))},e}(h.Observable);n.FromObservable=y},{"../Observable":17,"../operator/observeOn":51,"../symbol/iterator":54,"../symbol/observable":55,"../util/isArray":61,"../util/isArrayLike":62,"../util/isPromise":65,"./ArrayLikeObservable":25,"./ArrayObservable":26,"./IteratorObservable":31,"./PromiseObservable":32}],31:[function(t,e,n){"use strict";function r(t){var e=t[l.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[l.$$iterator]()}function o(t){var e=+t.length;return isNaN(e)?0:0!==e&&i(e)?(e=s(e)*Math.floor(Math.abs(e)),e<=0?0:e>d?d:e):e}function i(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=t("../util/root"),c=t("../Observable"),l=t("../symbol/iterator"),p=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=r(e)}return a(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,o=t.subscriber;if(n)return void o.error(t.error);var i=r.next();return i.done?void o.complete():(o.next(i.value),t.index=e+1,o.closed?void("function"==typeof r.return&&r.return()):void this.schedule(t))},e.prototype._subscribe=function(t){var n=this,r=n.iterator,o=n.scheduler;if(o)return o.schedule(e.dispatch,0,{index:0,iterator:r,subscriber:t});for(;;){var i=r.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed){"function"==typeof r.return&&r.return();break}}},e}(c.Observable);n.IteratorObservable=p;var h=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=o(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},{"../Observable":17,"../symbol/iterator":54,"../util/root":67}],32:[function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function o(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("../util/root"),a=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return i(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,i=this.scheduler;if(null==i)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return i.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(i.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(i.schedule(o,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(t("../Observable").Observable);n.PromiseObservable=a},{"../Observable":17,"../util/root":67}],33:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;if(e)return void r.complete();r.next(n),r.closed||(t.done=!0,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(t("../Observable").Observable);n.ScalarObservable=o},{"../Observable":17}],34:[function(t,e,n){"use strict";var r=t("./ForkJoinObservable");n.forkJoin=r.ForkJoinObservable.create},{"./ForkJoinObservable":29}],35:[function(t,e,n){"use strict";var r=t("./FromObservable");n.from=r.FromObservable.create},{"./FromObservable":30}],36:[function(t,e,n){"use strict";var r=t("./PromiseObservable");n.fromPromise=r.PromiseObservable.create},{"./PromiseObservable":32}],37:[function(t,e,n){"use strict";var r=t("../operator/merge");n.merge=r.mergeStatic},{"../operator/merge":47}],38:[function(t,e,n){"use strict";var r=t("./ArrayObservable");n.of=r.ArrayObservable.of},{"./ArrayObservable":26}],39:[function(t,e,n){"use strict";function r(t){var e=new a(t),n=this.lift(e);return e.caught=n}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n._catch=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}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(s.subscribeToResult(this,n))}},e}(i.OuterSubscriber)},{"../OuterSubscriber":19,"../util/subscribeToResult":68}],40:[function(t,e,n){"use strict";function r(){return this.lift(new o.MergeAllOperator(1))}var o=t("./mergeAll");n.concatAll=r},{"./mergeAll":48}],41:[function(t,e,n){"use strict";function r(t,e){return this.lift(new o.MergeMapOperator(t,e,1))}var o=t("./mergeMap");n.concatMap=r},{"./mergeMap":49}],42:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e,this))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber");n.every=r;var s=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 a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,n,r,o){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=o,this.index=0,this.thisArg=r||this}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}(i.Subscriber)},{"../Subscriber":22}],43:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber");n.filter=r;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.Subscriber)},{"../Subscriber":22}],44:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber"),s=t("../util/EmptyError");n.first=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,o,i){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=o,this.source=i,this.index=0,this.hasCompleted=!1,this._emitted=!1}return o(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){if(this.resultSelector)return void this._tryResultSelector(t,e);this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(i.Subscriber)},{"../Subscriber":22,"../util/EmptyError":57}],45:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber"),s=t("../util/EmptyError");n.last=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,o,i){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=o,this.source=i,this.hasValue=!1,this.index=0,void 0!==o&&(this.lastValue=o,this.hasValue=!0)}return o(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(i.Subscriber)},{"../Subscriber":22,"../util/EmptyError":57}],46:[function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber");n.map=r;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();n.MapOperator=s;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.Subscriber)},{"../Subscriber":22}],47:[function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(o.apply(void 0,[this].concat(t)))}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return u.isScheduler(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof i.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(n))}var i=t("../Observable"),s=t("../observable/ArrayObservable"),a=t("./mergeAll"),u=t("../util/isScheduler");n.merge=r,n.mergeStatic=o},{"../Observable":17,"../observable/ArrayObservable":26,"../util/isScheduler":66,"./mergeAll":48}],48:[function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n.mergeAll=r;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();n.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);n.MergeAllSubscriber=u},{"../OuterSubscriber":19,"../util/subscribeToResult":68}],49:[function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new a(t,e,n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../util/subscribeToResult"),s=t("../OuterSubscriber");n.mergeMap=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();n.MergeMapOperator=a;var u=function(t){function e(e,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(i.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var o;try{o=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(o)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);n.MergeMapSubscriber=u},{"../OuterSubscriber":19,"../util/subscribeToResult":68}],50:[function(t,e,n){"use strict";function r(t,e){var n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new i(n,e));var r=Object.create(this,o.connectableObservableDescriptor);return r.source=this,r.subjectFactory=n,r}var o=t("../observable/ConnectableObservable");n.multicast=r;var i=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();n.MulticastOperator=i},{"../observable/ConnectableObservable":27}],51:[function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber"),s=t("../Notification");n.observeOn=r;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();n.ObserveOnOperator=a;var u=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return o(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(i.Subscriber);n.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();n.ObserveOnMessage=c},{"../Notification":16,"../Subscriber":22}],52:[function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(t,e,n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber");n.reduce=r;var s=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 a(t,this.accumulator,this.seed,this.hasSeed))},t}();n.ReduceOperator=s;var a=function(t){function e(e,n,r,o){t.call(this,e),this.accumulator=n,this.hasSeed=o,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return o(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t,this.index++)}catch(t){return void this.destination.error(t)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(i.Subscriber);n.ReduceSubscriber=a},{"../Subscriber":22}],53:[function(t,e,n){"use strict";function r(){return new s.Subject}function o(){return i.multicast.call(this,r).refCount()}var i=t("./multicast"),s=t("../Subject");n.share=o},{"../Subject":20,"./multicast":50}],54:[function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var o=t("../util/root");n.symbolIteratorPonyfill=r,n.$$iterator=r(o.root)},{"../util/root":67}],55:[function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var o=t("../util/root");n.getSymbolObservable=r,n.$$observable=r(o.root)},{"../util/root":67}],56:[function(t,e,n){"use strict";var r=t("../util/root").root.Symbol;n.$$rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},{"../util/root":67}],57:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.EmptyError=o},{}],58:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.ObjectUnsubscribedError=o},{}],59:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);n.UnsubscriptionError=o},{}],60:[function(t,e,n){"use strict";n.errorObject={e:{}}},{}],61:[function(t,e,n){"use strict";n.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],62:[function(t,e,n){"use strict";n.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],63:[function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.isFunction=r},{}],64:[function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}n.isObject=r},{}],65:[function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.isPromise=r},{}],66:[function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.isScheduler=r},{}],67:[function(t,e,n){(function(t){"use strict";if(n.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t,!n.root)throw new Error("RxJS could not find any global context (window, self, global)")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],68:[function(t,e,n){"use strict";function r(t,e,n,r){var h=new l.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(i.isArrayLike(e)){for(var f=0,d=e.length;f<d&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){o.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.$$iterator])for(var y=e[c.$$iterator]();;){var m=y.next();if(m.done){h.complete();break}if(h.next(m.value),h.closed)break}else if(e&&"function"==typeof e[p.$$observable]){var v=e[p.$$observable]();if("function"==typeof v.subscribe)return v.subscribe(new l.InnerSubscriber(t,n,r));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g="You provided "+(a.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(g))}}return null}var o=t("./root"),i=t("./isArrayLike"),s=t("./isPromise"),a=t("./isObject"),u=t("../Observable"),c=t("../symbol/iterator"),l=t("../InnerSubscriber"),p=t("../symbol/observable");n.subscribeToResult=r},{"../InnerSubscriber":15,"../Observable":17,"../symbol/iterator":54,"../symbol/observable":55,"./isArrayLike":62,"./isObject":64,"./isPromise":65,"./root":67}],69:[function(t,e,n){"use strict";function r(t,e,n){if(t){if(t instanceof o.Subscriber)return t;if(t[i.$$rxSubscriber])return t[i.$$rxSubscriber]()}return t||e||n?new o.Subscriber(t,e,n):new o.Subscriber(s.empty)}var o=t("../Subscriber"),i=t("../symbol/rxSubscriber"),s=t("../Observer");n.toSubscriber=r},{"../Observer":18,"../Subscriber":22,"../symbol/rxSubscriber":56}],70:[function(t,e,n){"use strict";function r(){try{return i.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function o(t){return i=t,r}var i,s=t("./errorObject");n.tryCatch=o},{"./errorObject":60}]},{},[5])(5)}); \ No newline at end of file diff --git a/apps/maarch_entreprise/js/functions.js b/apps/maarch_entreprise/js/functions.js index d3206dd1bc06328bc3566f6f4ecc3abd968399ab..3b30887860934622f3ce7785cdee142de387c33f 100755 --- a/apps/maarch_entreprise/js/functions.js +++ b/apps/maarch_entreprise/js/functions.js @@ -161,146 +161,142 @@ function deletePriority(rowToDelete) { } } -function repost(php_file,update_divs,fields,action,timeout) - { - //alert('php file : '+php_file); - var event_count = 0; +function repost(php_file,update_divs,fields,action,timeout) { + var event_count = 0; - //Observe fields - for (var i = 0; i < fields.length; ++i) { + //Observe fields + for (var i = 0; i < fields.length; ++i) { + $(fields[i]).observe(action,send); + } - $(fields[i]).observe(action,send); - } + function send(event) + { + var params = ''; + event_count++; - function send(event) + for (var i = 0; i < fields.length; ++i) { - params = ''; - event_count++; - - for (var i = 0; i < fields.length; ++i) - { - params += $(fields[i]).serialize()+'&'; - } + params += $(fields[i]).serialize()+'&'; + } - setTimeout(function() { - event_count--; + setTimeout(function() { + event_count--; - if(event_count == 0) - new Ajax.Request(php_file, - { - method:'post', - onSuccess: function(transport){ + if(event_count == 0) + new Ajax.Request(php_file, + { + method:'post', + onSuccess: function(transport){ - var response = transport.responseText; - var reponse_div = new Element("div"); - reponse_div.innerHTML = response; - var replace_div = reponse_div.select('div'); + var response = transport.responseText; + var reponse_div = new Element("div"); + reponse_div.innerHTML = response; + var replace_div = reponse_div.select('div'); - for (var i = 0; i < replace_div.length; ++i) - for(var j = 0; j < update_divs.length; ++j) - { - if(replace_div[i].id == update_divs[j]) - $(update_divs[j]).replace(replace_div[i]); - } - }, - onFailure: function(){ alert('Something went wrong...'); }, - parameters: params - }); - }, timeout); - } + for (var i = 0; i < replace_div.length; ++i) + for(var j = 0; j < update_divs.length; ++j) + { + if(replace_div[i].id == update_divs[j]) + $(update_divs[j]).replace(replace_div[i]); + } + }, + onFailure: function(){ alert('Something went wrong...'); }, + parameters: params + }); + }, timeout); } +} +/** +* List used for autocompletion +* +*/ +var initList = function (idField, idList, theUrlToListScript, paramNameSrv, minCharsSrv) +{ + new Ajax.Autocompleter( + idField, + idList, + theUrlToListScript, + { + paramName: paramNameSrv, + minChars: minCharsSrv + }); +}; - /** - * List used for autocompletion - * - */ - var initList = function (idField, idList, theUrlToListScript, paramNameSrv, minCharsSrv) - { - new Ajax.Autocompleter( - idField, - idList, - theUrlToListScript, - { - paramName: paramNameSrv, - minChars: minCharsSrv - }); - }; - - /** - * List used for autocompletion and set id in hidden input - * - */ - var initList_hidden_input = function (idField, idList, theUrlToListScript, paramNameSrv, minCharsSrv, new_value) - { - new Ajax.Autocompleter( - idField, - idList, - theUrlToListScript, - { - paramName: paramNameSrv, - minChars: minCharsSrv, - afterUpdateElement: function (text, li){ - $(new_value).value = li.id; - } - }); - }; +/** +* List used for autocompletion and set id in hidden input +* +*/ +var initList_hidden_input = function (idField, idList, theUrlToListScript, paramNameSrv, minCharsSrv, new_value) +{ + new Ajax.Autocompleter( + idField, + idList, + theUrlToListScript, + { + paramName: paramNameSrv, + minChars: minCharsSrv, + afterUpdateElement: function (text, li){ + $(new_value).value = li.id; + } + }); +}; - var initList_hidden_input2 = function (idField, idList, theUrlToListScript, paramNameSrv, minCharsSrv, new_value, actual_value) - { - new Ajax.Autocompleter( - idField, - idList, - theUrlToListScript, - { - paramName: paramNameSrv, - minChars: minCharsSrv, - afterUpdateElement: function (text, li){ - var str = li.id; - var res = str.split(","); - $(new_value).value = res[1]; - $(actual_value).value = res[0]; - $('country').value = 'FRANCE'; - } - }); - }; +var initList_hidden_input2 = function (idField, idList, theUrlToListScript, paramNameSrv, minCharsSrv, new_value, actual_value) +{ + new Ajax.Autocompleter( + idField, + idList, + theUrlToListScript, + { + paramName: paramNameSrv, + minChars: minCharsSrv, + afterUpdateElement: function (text, li){ + var str = li.id; + var res = str.split(","); + $(new_value).value = res[1]; + $(actual_value).value = res[0]; + $('country').value = 'FRANCE'; + } + }); +}; - var initList_hidden_input3 = function (idField, idList, theUrlToListScript, paramNameSrv, minCharsSrv, new_value, actual_value) - { - new Ajax.Autocompleter( - idField, - idList, - theUrlToListScript, - { - paramName: paramNameSrv, - minChars: minCharsSrv, - afterUpdateElement: function (text, li){ - var str = li.id; - var res = str.split(","); - $(new_value).value = res[0]; - $(actual_value).value = res[1]; - $('country').value = 'FRANCE'; - } - }); - }; +var initList_hidden_input3 = function (idField, idList, theUrlToListScript, paramNameSrv, minCharsSrv, new_value, actual_value) +{ + new Ajax.Autocompleter( + idField, + idList, + theUrlToListScript, + { + paramName: paramNameSrv, + minChars: minCharsSrv, + afterUpdateElement: function (text, li){ + var str = li.id; + var res = str.split(","); + $(new_value).value = res[0]; + $(actual_value).value = res[1]; + $('country').value = 'FRANCE'; + } + }); +}; - var initList_hidden_input_before = function (idField, idList, theUrlToListScript, paramNameSrv, minCharsSrv, new_value, previous_name, previous_field) - { - new Ajax.Autocompleter( - idField, - idList, - theUrlToListScript, - { - paramName: paramNameSrv, - minChars: minCharsSrv, - callback: function (element, entry){ - return entry + "&"+previous_name+"=" + $(previous_field).value; - }, - afterUpdateElement: function (text, li){ - $(new_value).value = li.id; - } - }); - }; +var initList_hidden_input_before = function (idField, idList, theUrlToListScript, paramNameSrv, minCharsSrv, new_value, previous_name, previous_field) +{ + new Ajax.Autocompleter( + idField, + idList, + theUrlToListScript, + { + paramName: paramNameSrv, + minChars: minCharsSrv, + callback: function (element, entry){ + return entry + "&"+previous_name+"=" + $(previous_field).value; + }, + afterUpdateElement: function (text, li){ + $(new_value).value = li.id; + } + }); +}; /*********** Init vars for the calendar ****************/ @@ -1017,7 +1013,7 @@ function createModal(txt, id_mod, height, width, mode_frm, iframe_container_id){ Event.observe(layer, 'mousewheel', function(event){Event.stop(event);}.bindAsEventListener(), true); Event.observe(layer, 'DOMMouseScroll', function(event){Event.stop(event);}.bindAsEventListener(), false); $(id_mod).focus(); - $$("input[type='button']").each(function(v) {v.removeAttribute('disabled');v.style.opacity="1";}) + $j("input[type='button']").prop("disabled", false).css("opacity", "1"); } function test_form() @@ -1232,10 +1228,7 @@ function valid_action_form(current_form_id, path_manage_script, id_action, value }, onCreate: function(answer) { //show loading image in toolbar - $$("input[type='button']").each(function(v) { - v.setAttribute("disabled","disabled"); - v.style.opacity = "0.5"; - }); + $j("input[type='button']").prop("disabled", true).css("opacity", "0.5"); }, onSuccess: function(answer){ eval('response='+answer.responseText); @@ -1266,7 +1259,8 @@ function valid_action_form(current_form_id, path_manage_script, id_action, value try { $('frm_error_'+id_action).innerHTML = response.error_txt; alert($('frm_error_'+id_action).innerHTML); - $$("input[type='button']").each(function(v) {v.removeAttribute('disabled');v.style.opacity="1";}); + $j("input[type='button']").prop("disabled", false).css("opacity", "1"); + } catch(e){ } @@ -1474,7 +1468,8 @@ function action_send_first_request( path_manage_script, mode_req, id_action, re }, beforeSend: function() { //show loading image in toolbar - $$("input[type='button']").each(function(v) {v.setAttribute("disabled","disabled");v.style.opacity="0.5";}); + $j("input[type='button']").prop("disabled", true).css("opacity", "0.5"); + }, success: function(answer){ eval("response = " + answer); @@ -1561,9 +1556,7 @@ function action_send_form_confirm_result(path_manage_script, mode_req, id_action }, onCreate: function(answer) { //show loading image in toolbar - $$("input[type='button']").each(function(v) { - v.setAttribute("disabled","disabled");v.style.opacity="0.5"; - }); + $j("input[type='button']").prop("disabled", true).css("opacity", "0.5"); }, onSuccess: function(answer){ eval('response='+answer.responseText); @@ -1588,12 +1581,8 @@ function action_send_form_confirm_result(path_manage_script, mode_req, id_action { try{ $('frm_error').innerHTML = response.error_txt; - $$("input[type='button']").each(function(v) { - v.setAttribute("disabled","disabled"); - v.style.opacity="0.5"; - }); - } - catch(e){} + $j("input[type='button']").prop("disabled", true).css("opacity", "0.5"); + } catch(e) {} } }, onFailure: function(){ @@ -3118,7 +3107,7 @@ function loadTab(resId,collId,titleTab,pathScriptTab,module){ document.getElementById('show_tab').style.display='block'; document.getElementById('show_tab').setAttribute('module',module); - $$("span[class='tab_module']").each(function(v) {v.innerHTML = '<i class="fa fa-plus-square-o"></i>';}) + $j("span[class='tab_module']").each(function(i, e) {e.innerHTML = '<i class="fa fa-plus-square-o"></i>';}) if(document.getElementById(module+'_tab') != undefined ){ document.getElementById(module+'_tab').innerHTML = '<i class="fa fa-minus-square-o"></i>'; } diff --git a/apps/maarch_entreprise/js/indexing.js b/apps/maarch_entreprise/js/indexing.js index 0dead96a2fda4ff4b4fa40281072946861e979d0..14b038787ada8be79697a3b540d60caea9c009e4 100644 --- a/apps/maarch_entreprise/js/indexing.js +++ b/apps/maarch_entreprise/js/indexing.js @@ -924,30 +924,6 @@ function process_category(category, display_value_tr, params_cat) /** Declaration of the autocompleter object used for the contacts*/ var contact_autocompleter; -/** - * Launch the Ajax autocomplete object to activate autocompletion on contacts - * - * @param path_script String Path to the Ajax script - **/ -function launch_autocompleter_contacts(path_script, id_text, id_div, cat_id) -{ - var input = id_text || 'contact'; - var div = id_div || 'show_contacts'; - - var params = get_contacts_params(); - - if (contact_autocompleter && contact_autocompleter.element == $$('#' + input)[0]) - contact_autocompleter.options.defaultParams = params; - else if(path_script) - contact_autocompleter = new Ajax.Autocompleter(input, div, path_script, { - method:'get', - paramName:'Input', - parameters: params, - minChars: 2 - }); - else return false; -} - /** * Launch the Ajax autocomplete object to activate autocompletion on contacts en put address_id and contact_id in an hidden input * @@ -960,7 +936,7 @@ function launch_autocompleter_contacts_v2(path_script, id_text, id_div, cat_id, var params = get_contacts_params(); - if (contact_autocompleter && contact_autocompleter.element == $$('#' + input)[0]) + if (contact_autocompleter && contact_autocompleter.element == $j('#' + input)[0]) contact_autocompleter.options.defaultParams = params; else if(path_script) contact_autocompleter = new Ajax.Autocompleter(input, div, path_script, { @@ -991,9 +967,7 @@ function launch_autocompleter2_contacts_v2(path_script, id_text, id_div, cat_id, var input = id_text || 'contact'; var div = id_div || 'show_contacts'; - // var params = get_contacts_params(); - - if (contact_autocompleter && contact_autocompleter.element == $$('#' + input)[0]) + if (contact_autocompleter && contact_autocompleter.element == $j('#' + input)[0]) contact_autocompleter.options.defaultParams = params; else if(path_script) contact_autocompleter = new Ajax.Autocompleter2(input, div, path_script, { @@ -1008,11 +982,13 @@ function launch_autocompleter2_contacts_v2(path_script, id_text, id_div, cat_id, parent.$(address_id).value = res[1]; if (path_script2 && res[1]) { getDepartment(path_script2, res[1]); - }; + } } }); - else return false; + else { + return false; + } } function getDepartment(path_script, address_id) { @@ -1031,24 +1007,6 @@ function getDepartment(path_script, address_id) { }); } -function launch_autocompleter_choose_contact(path_script, id_text, id_div, cat_id, contact_id){ - var input = id_text || 'contact'; - var div = id_div || 'show_contacts'; - - // var params = get_contacts_params(); - - contact_autocompleter = new Ajax.Autocompleter(input, div, path_script, { - method:'get', - paramName:'what', - // parameters: params, - minChars: 2, - afterUpdateElement: function (text, li){ - $(contact_id).value = li.id; - } - }); - -} - function putInSessionContact(path_script){ var contactSelected = $('contactSelect').options[$('contactSelect').selectedIndex].value; if (contactSelected == "") { @@ -1172,126 +1130,6 @@ function update_contact_autocompleter() } } -/** - * Open in a popup the contact or user card - * - * @param path_contact_card String Path to the contact card - * @param path_user_card String Path to the user card - **/ -function open_contact_card(path_contact_card,path_user_card,mode) -{ - if (mode == '') { - mode = 'view'; - } - - if($('email')){ - var contact_value = $('email').value; - }else{ - var contact_value = $('contact').value; - } - var arr = get_checked_values('type_contact'); - var contact_id = contact_value.substring(contact_value.indexOf('(')+1, contact_value.indexOf(')')); - if (arr.length == 0) { - //~ if (console != null) { - //~ console.log('Erreur launch_autocompleter_contacts, no items checked'); - //~ } else { - //~ alert('Erreur launch_autocompleter_contacts, no items checked'); - //~ } - window.open(path_contact_card+'&id='+contact_id, 'contact_info', 'height=600, width=600,scrollbars=yes,resizable=yes'); - } else { - if (arr[0] == 'internal') { - window.open(path_user_card+'&id='+contact_id, 'contact_info', 'height=450, width=600,scrollbars=no,resizable=yes'); - } else if(arr[0] == 'external' || arr[0] == 'multi_external') { - window.open(path_contact_card+'&mode='+mode+'&id='+contact_id, 'contact_info', 'height=600, width=600,scrollbars=yes,resizable=yes'); - } - } -} - -function create_contact(path_create, id_action) -{ - /*if ($('type_contact_external')) { - $('type_contact_external').checked = true; - $('type_contact_external').onclick(); - }*/ - - - var contact_frm = $('indexingfrmcontact'); - var contact_type = get_contact_type($('category_id').value); - if (contact_frm) { - var corporate = 'Y' ; - if ($('is_corporate_N').checked == true) { - corporate = 'N' ; - } - var private = 'Y' ; - if ($('is_private_N').checked == true) { - private = 'N' ; - } - var title_val = $('title').value; - var society_val = $('society').value; - var phone_val = $('phone').value; - var mail_val = $('mail').value; - var num_val = $('num').value; - var street_val = $('street').value; - var add_comp_val = $('add_comp').value; - var cp_val = $('cp').value; - var town_val = $('town').value; - var country_val = $('country').value; - var comp_data_val = $('comp_data').value; - var lastname_val = $('lastname').value; - var firstname_val = $('firstname').value; - var func_val = $('function').value; - - new Ajax.Request(path_create, - { - method:'post', - asynchronous:false, - parameters: { - is_corporate : corporate, - is_private : private, - title : title_val, - society : society_val, - phone : phone_val, - mail : mail_val, - num : num_val, - street : street_val, - add_comp : add_comp_val, - cp : cp_val, - town : town_val, - country : country_val, - comp_data : comp_data_val, - lastname : lastname_val, - firstname : firstname_val, - func : func_val, - contactType : contact_type - }, - onSuccess: function(answer){ - eval("response = "+answer.responseText); - //alert(answer.responseText); - if (response.status == 0 ) { - if($('type_multi_contact_external').checked == true){ - var contact = $('email'); - }else{ - var contact = $('contact'); - } - - if (contact) { - contact.value = response.value; - //$('contact_card').style.visibility = 'visible'; - new Effect.toggle('create_contact_div', 'blind', {delay:0.2}); - clear_form('indexingfrmcontact'); - } - } else { - try{ - $('frm_error_'+id_action).innerHTML = response.error_txt; - } - catch(e){} - } - } - }); - } - -} - /** * When you change the contact type, the table used for the autocompletion change * @@ -1763,7 +1601,7 @@ function hideSelectFile(){ } else { // $('choose_file_div').style.display='block'; window.frames["choose_file"].$('with_file').click(); - }; + } } function affiche_chrono(){ @@ -1814,33 +1652,6 @@ function affiche_chrono(){ } } -function affiche_get_chrono(){ - - var type_id = document.getElementById('attachment_types').options[document.getElementById('attachment_types').selectedIndex]; - - if (type_id.getAttribute('get_chrono') == 'true') { - $('get_chrono_label').setStyle({display: 'inline'}); - $('get_chrono_display').setStyle({display: 'inline'}); - new Ajax.Request('index.php?display=true&module=attachments&page=get_other_chrono_attachment', - { - method:'post', - parameters: - { - type_id : type_id - }, - onSuccess: function(answer){ - eval("response = "+answer.responseText); - $('get_chrono_display').innerHTML=response.chronoList; - } - }); - } else { - $('get_chrono_label').setStyle({display: 'none'}); - $('get_chrono_display').setStyle({display: 'none'}); - $('get_chrono_display').value=''; - $('get_chrono').value=''; - } -} - function showEditButton(){ var modele_id = document.getElementById('templateOffice').options[document.getElementById('templateOffice').selectedIndex]; diff --git a/apps/maarch_entreprise/js/prototype.js b/apps/maarch_entreprise/js/prototype.js index a5bfce268c5117d711e06e18cbfae09cdf0ed68a..cc89dafcd6ae69cf81adfea016a0f1a8d8341c58 100644 --- a/apps/maarch_entreprise/js/prototype.js +++ b/apps/maarch_entreprise/js/prototype.js @@ -1,4 +1,4 @@ -/* Prototype JavaScript framework, version 1.7.2 +/* Prototype JavaScript framework, version 1.7.3 * (c) 2005-2010 Sam Stephenson * * Prototype is freely distributable under the terms of an MIT-style license. @@ -8,7 +8,7 @@ var Prototype = { - Version: '1.7.2', + Version: '1.7.3', Browser: (function(){ var ua = navigator.userAgent; @@ -621,7 +621,7 @@ Object.extend(String.prototype, (function() { } function stripTags() { - return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi, ''); + return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?(\/)?>|<\/\w+>/gi, ''); } function stripScripts() { @@ -734,7 +734,7 @@ Object.extend(String.prototype, (function() { function evalJSON(sanitize) { var json = this.unfilterJSON(), - cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; + cx = /[\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff\u0000]/g; if (cx.test(json)) { json = json.replace(cx, function (a) { return '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); @@ -1332,10 +1332,9 @@ Array.from = $A; } if (arrayProto.some) { - var some = wrapNative(Array.prototype.some); + some = wrapNative(Array.prototype.some); } - function every(iterator) { if (this == null) throw new TypeError(); iterator = iterator || Prototype.K; @@ -1352,22 +1351,16 @@ Array.from = $A; } if (arrayProto.every) { - var every = wrapNative(Array.prototype.every); - } - - var _reduce = arrayProto.reduce; - function inject(memo, iterator) { - iterator = iterator || Prototype.K; - var context = arguments[2]; - return _reduce.call(this, iterator.bind(context), memo); + every = wrapNative(Array.prototype.every); } - if (!arrayProto.reduce) { - var inject = Enumerable.inject; - } Object.extend(arrayProto, Enumerable); + if (arrayProto.entries === Enumerable.entries) { + delete arrayProto.entries; + } + if (!arrayProto._reverse) arrayProto._reverse = arrayProto.reverse; @@ -1383,7 +1376,6 @@ Array.from = $A; any: some, every: every, all: every, - inject: inject, clear: clear, first: first, @@ -2146,12 +2138,12 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { function visible(element) { - return $(element).style.display !== 'none'; + return $(element).getStyle('display') !== 'none'; } function toggle(element, bool) { element = $(element); - if (Object.isUndefined(bool)) + if (typeof bool !== 'boolean') bool = !Element.visible(element); Element[bool ? 'show' : 'hide'](element); @@ -2683,6 +2675,7 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { function descendantOf_DOM(element, ancestor) { element = $(element), ancestor = $(ancestor); + if (!element || !ancestor) return false; while (element = element.parentNode) if (element === ancestor) return true; return false; @@ -2690,12 +2683,14 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { function descendantOf_contains(element, ancestor) { element = $(element), ancestor = $(ancestor); + if (!element || !ancestor) return false; if (!ancestor.contains) return descendantOf_DOM(element, ancestor); return ancestor.contains(element) && ancestor !== element; } function descendantOf_compareDocumentPosition(element, ancestor) { element = $(element), ancestor = $(ancestor); + if (!element || !ancestor) return false; return (element.compareDocumentPosition(ancestor) & 8) === 8; } @@ -2800,8 +2795,10 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { for (var attr in attributes) { name = table.names[attr] || attr; value = attributes[attr]; - if (table.values[attr]) - name = table.values[attr](element, value) || name; + if (table.values[attr]) { + value = table.values[attr](element, value); + if (Object.isUndefined(value)) continue; + } if (value === false || value === null) element.removeAttribute(name); else if (value === true) @@ -2979,7 +2976,9 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { values: { checked: function(element, value) { - element.checked = !!value; + value = !!value; + element.checked = value; + return value ? 'checked' : null; }, style: function(element, value) { @@ -3124,8 +3123,11 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { value = element.currentStyle[style]; } - if (style === 'opacity' && !STANDARD_CSS_OPACITY_SUPPORTED) - return getOpacity_IE(element); + if (style === 'opacity') { + if (!STANDARD_CSS_OPACITY_SUPPORTED) + return getOpacity_IE(element); + else return value ? parseFloat(value) : 1.0; + } if (value === 'auto') { if ((style === 'width' || style === 'height') && Element.visible(element)) @@ -3177,7 +3179,7 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { if (value < 0.00001) value = 0; style.filter = stripAlphaFromFilter_IE(filter) + - 'alpha(opacity=' + (value * 100) + ')'; + ' alpha(opacity=' + (value * 100) + ')'; return element; } @@ -3193,7 +3195,7 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { var filter = Element.getStyle(element, 'filter'); if (filter.length === 0) return 1.0; - var match = (filter || '').match(/alpha\(opacity=(.*)\)/); + var match = (filter || '').match(/alpha\(opacity=(.*)\)/i); if (match && match[1]) return parseFloat(match[1]) / 100; return 1.0; } @@ -3519,7 +3521,7 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { return boxWidth - bl - br - pl - pr; } - if ('currentStyle' in document.documentElement) { + if (!Object.isUndefined(document.documentElement.currentStyle) && !Prototype.Browser.Opera) { getRawStyle = getRawStyle_IE; } @@ -4047,15 +4049,19 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { function getOffsetParent(element) { element = $(element); + function selfOrBody(element) { + return isHtml(element) ? $(document.body) : $(element); + } + if (isDocument(element) || isDetached(element) || isBody(element) || isHtml(element)) return $(document.body); var isInline = (Element.getStyle(element, 'display') === 'inline'); - if (!isInline && element.offsetParent) return $(element.offsetParent); + if (!isInline && element.offsetParent) return selfOrBody(element.offsetParent); while ((element = element.parentNode) && element !== document.body) { if (Element.getStyle(element, 'position') !== 'static') { - return isHtml(element) ? $(document.body) : $(element); + return selfOrBody(element); } } @@ -4093,8 +4099,8 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { } } while (element); - valueL -= layout.get('margin-top'); - valueT -= layout.get('margin-left'); + valueL -= layout.get('margin-left'); + valueT -= layout.get('margin-top'); return new Element.Offset(valueL, valueT); } @@ -4265,6 +4271,8 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { offsetLeft: 0 }, options || {}); + var docEl = document.documentElement; + source = $(source); element = $(element); var p, delta, layout, styles = {}; @@ -4278,19 +4286,41 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { } } + function pageScrollXY() { + var x = 0, y = 0; + if (Object.isNumber(window.pageXOffset)) { + x = window.pageXOffset; + y = window.pageYOffset; + } else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) { + x = document.body.scrollLeft; + y = document.body.scrollTop; + } else if (docEl && (docEl.scrollLeft || docEl.scrollTop)) { + x = docEl.scrollLeft; + y = docEl.scrollTop; + } + return { x: x, y: y }; + } + + var pageXY = pageScrollXY(); + + if (options.setWidth || options.setHeight) { layout = Element.getLayout(source); } if (options.setLeft) - styles.left = (p[0] - delta[0] + options.offsetLeft) + 'px'; + styles.left = (p[0] + pageXY.x - delta[0] + options.offsetLeft) + 'px'; if (options.setTop) - styles.top = (p[1] - delta[1] + options.offsetTop) + 'px'; + styles.top = (p[1] + pageXY.y - delta[1] + options.offsetTop) + 'px'; + + var currentLayout = element.getLayout(); - if (options.setWidth) - styles.width = layout.get('border-box-width') + 'px'; - if (options.setHeight) - styles.height = layout.get('border-box-height') + 'px'; + if (options.setWidth) { + styles.width = layout.get('width') + 'px'; + } + if (options.setHeight) { + styles.height = layout.get('height') + 'px'; + } return Element.setStyle(element, styles); } @@ -4488,260 +4518,274 @@ Prototype.Selector = (function() { }; })(); Prototype._original_property = window.Sizzle; + +;(function () { + function fakeDefine(fn) { + Prototype._actual_sizzle = fn(); + } + fakeDefine.amd = true; + + if (typeof define !== 'undefined' && define.amd) { + Prototype._original_define = define; + Prototype._actual_sizzle = null; + window.define = fakeDefine; + } +})(); + /*! - * Sizzle CSS Selector Engine v@VERSION + * Sizzle CSS Selector Engine v1.10.18 * http://sizzlejs.com/ * * Copyright 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * - * Date: @DATE + * Date: 2014-02-05 */ (function( window ) { var i, - support, - Expr, - getText, - isXML, - compile, - select, - outermostContext, - sortInput, - hasDuplicate, - - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - expando = "sizzle" + -(new Date()), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - } - return 0; - }, - - strundefined = typeof undefined, - MAX_NEGATIVE = 1 << 31, - - hasOwn = ({}).hasOwnProperty, - arr = [], - pop = arr.pop, - push_native = arr.push, - push = arr.push, - slice = arr.slice, - indexOf = arr.indexOf || function( elem ) { - var i = 0, - len = this.length; - for ( ; i < len; i++ ) { - if ( this[i] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", - - - whitespace = "[\\x20\\t\\r\\n\\f]", - characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", - - identifier = characterEncoding.replace( "w", "w#" ), - - attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + - "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", - - pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", - - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + characterEncoding + ")" ), - "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), - "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rnative = /^[^{]+\{\s*\[native \w/, - - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rsibling = /[+~]/, - rescape = /'|\\/g, - - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - return high !== high || escapedWhitespace ? - escaped : - high < 0 ? - String.fromCharCode( high + 0x10000 ) : - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }; + support, + Expr, + getText, + isXML, + compile, + select, + outermostContext, + sortInput, + hasDuplicate, + + setDocument, + document, + docElem, + documentIsHTML, + rbuggyQSA, + rbuggyMatches, + matches, + contains, + + expando = "sizzle" + -(new Date()), + preferredDoc = window.document, + dirruns = 0, + done = 0, + classCache = createCache(), + tokenCache = createCache(), + compilerCache = createCache(), + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + } + return 0; + }, + + strundefined = typeof undefined, + MAX_NEGATIVE = 1 << 31, + + hasOwn = ({}).hasOwnProperty, + arr = [], + pop = arr.pop, + push_native = arr.push, + push = arr.push, + slice = arr.slice, + indexOf = arr.indexOf || function( elem ) { + var i = 0, + len = this.length; + for ( ; i < len; i++ ) { + if ( this[i] === elem ) { + return i; + } + } + return -1; + }, + + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", + + + whitespace = "[\\x20\\t\\r\\n\\f]", + characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", + + identifier = characterEncoding.replace( "w", "w#" ), + + attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + + "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", + + pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", + + rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), + + rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), + rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), + + rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), + + rpseudo = new RegExp( pseudos ), + ridentifier = new RegExp( "^" + identifier + "$" ), + + matchExpr = { + "ID": new RegExp( "^#(" + characterEncoding + ")" ), + "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), + "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), + "ATTR": new RegExp( "^" + attributes ), + "PSEUDO": new RegExp( "^" + pseudos ), + "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), + "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + }, + + rinputs = /^(?:input|select|textarea|button)$/i, + rheader = /^h\d$/i, + + rnative = /^[^{]+\{\s*\[native \w/, + + rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, + + rsibling = /[+~]/, + rescape = /'|\\/g, + + runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), + funescape = function( _, escaped, escapedWhitespace ) { + var high = "0x" + escaped - 0x10000; + return high !== high || escapedWhitespace ? + escaped : + high < 0 ? + String.fromCharCode( high + 0x10000 ) : + String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); + }; try { - push.apply( - (arr = slice.call( preferredDoc.childNodes )), - preferredDoc.childNodes - ); - arr[ preferredDoc.childNodes.length ].nodeType; + push.apply( + (arr = slice.call( preferredDoc.childNodes )), + preferredDoc.childNodes + ); + arr[ preferredDoc.childNodes.length ].nodeType; } catch ( e ) { - push = { apply: arr.length ? - - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - function( target, els ) { - var j = target.length, - i = 0; - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; - } - }; + push = { apply: arr.length ? + + function( target, els ) { + push_native.apply( target, slice.call(els) ); + } : + + function( target, els ) { + var j = target.length, + i = 0; + while ( (target[j++] = els[i++]) ) {} + target.length = j - 1; + } + }; } function Sizzle( selector, context, results, seed ) { - var match, elem, m, nodeType, - i, groups, old, nid, newContext, newSelector; - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - - context = context || document; - results = results || []; - - if ( !selector || typeof selector !== "string" ) { - return results; - } - - if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { - return []; - } - - if ( documentIsHTML && !seed ) { - - if ( (match = rquickExpr.exec( selector )) ) { - if ( (m = match[1]) ) { - if ( nodeType === 9 ) { - elem = context.getElementById( m ); - if ( elem && elem.parentNode ) { - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - } else { - if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && - contains( context, elem ) && elem.id === m ) { - results.push( elem ); - return results; - } - } - - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - nid = old = expando; - newContext = context; - newSelector = nodeType === 9 && selector; - - if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { - groups = tokenize( selector ); - - if ( (old = context.getAttribute("id")) ) { - nid = old.replace( rescape, "\\$&" ); - } else { - context.setAttribute( "id", nid ); - } - nid = "[id='" + nid + "'] "; - - i = groups.length; - while ( i-- ) { - groups[i] = nid + toSelector( groups[i] ); - } - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context; - newSelector = groups.join(","); - } - - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch(qsaError) { - } finally { - if ( !old ) { - context.removeAttribute("id"); - } - } - } - } - } - - return select( selector.replace( rtrim, "$1" ), context, results, seed ); + var match, elem, m, nodeType, + i, groups, old, nid, newContext, newSelector; + + if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { + setDocument( context ); + } + + context = context || document; + results = results || []; + + if ( !selector || typeof selector !== "string" ) { + return results; + } + + if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { + return []; + } + + if ( documentIsHTML && !seed ) { + + if ( (match = rquickExpr.exec( selector )) ) { + if ( (m = match[1]) ) { + if ( nodeType === 9 ) { + elem = context.getElementById( m ); + if ( elem && elem.parentNode ) { + if ( elem.id === m ) { + results.push( elem ); + return results; + } + } else { + return results; + } + } else { + if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && + contains( context, elem ) && elem.id === m ) { + results.push( elem ); + return results; + } + } + + } else if ( match[2] ) { + push.apply( results, context.getElementsByTagName( selector ) ); + return results; + + } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { + push.apply( results, context.getElementsByClassName( m ) ); + return results; + } + } + + if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { + nid = old = expando; + newContext = context; + newSelector = nodeType === 9 && selector; + + if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { + groups = tokenize( selector ); + + if ( (old = context.getAttribute("id")) ) { + nid = old.replace( rescape, "\\$&" ); + } else { + context.setAttribute( "id", nid ); + } + nid = "[id='" + nid + "'] "; + + i = groups.length; + while ( i-- ) { + groups[i] = nid + toSelector( groups[i] ); + } + newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context; + newSelector = groups.join(","); + } + + if ( newSelector ) { + try { + push.apply( results, + newContext.querySelectorAll( newSelector ) + ); + return results; + } catch(qsaError) { + } finally { + if ( !old ) { + context.removeAttribute("id"); + } + } + } + } + } + + return select( selector.replace( rtrim, "$1" ), context, results, seed ); } /** * Create key-value caches of limited size * @returns {Function(string, Object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry + * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) + * deleting the oldest entry */ function createCache() { - var keys = []; - - function cache( key, value ) { - if ( keys.push( key + " " ) > Expr.cacheLength ) { - delete cache[ keys.shift() ]; - } - return (cache[ key + " " ] = value); - } - return cache; + var keys = []; + + function cache( key, value ) { + if ( keys.push( key + " " ) > Expr.cacheLength ) { + delete cache[ keys.shift() ]; + } + return (cache[ key + " " ] = value); + } + return cache; } /** @@ -4749,8 +4793,8 @@ function createCache() { * @param {Function} fn The function to mark */ function markFunction( fn ) { - fn[ expando ] = true; - return fn; + fn[ expando ] = true; + return fn; } /** @@ -4758,18 +4802,18 @@ function markFunction( fn ) { * @param {Function} fn Passed the created div and expects a boolean result */ function assert( fn ) { - var div = document.createElement("div"); - - try { - return !!fn( div ); - } catch (e) { - return false; - } finally { - if ( div.parentNode ) { - div.parentNode.removeChild( div ); - } - div = null; - } + var div = document.createElement("div"); + + try { + return !!fn( div ); + } catch (e) { + return false; + } finally { + if ( div.parentNode ) { + div.parentNode.removeChild( div ); + } + div = null; + } } /** @@ -4778,12 +4822,12 @@ function assert( fn ) { * @param {Function} handler The method that will be applied */ function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = attrs.length; + var arr = attrs.split("|"), + i = attrs.length; - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } + while ( i-- ) { + Expr.attrHandle[ arr[i] ] = handler; + } } /** @@ -4793,24 +4837,24 @@ function addHandle( attrs, handler ) { * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b */ function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - ( ~b.sourceIndex || MAX_NEGATIVE ) - - ( ~a.sourceIndex || MAX_NEGATIVE ); - - if ( diff ) { - return diff; - } - - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; + var cur = b && a, + diff = cur && a.nodeType === 1 && b.nodeType === 1 && + ( ~b.sourceIndex || MAX_NEGATIVE ) - + ( ~a.sourceIndex || MAX_NEGATIVE ); + + if ( diff ) { + return diff; + } + + if ( cur ) { + while ( (cur = cur.nextSibling) ) { + if ( cur === b ) { + return -1; + } + } + } + + return a ? 1 : -1; } /** @@ -4818,10 +4862,10 @@ function siblingCheck( a, b ) { * @param {String} type */ function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === type; + }; } /** @@ -4829,10 +4873,10 @@ function createInputPseudo( type ) { * @param {String} type */ function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; + return function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && elem.type === type; + }; } /** @@ -4840,20 +4884,20 @@ function createButtonPseudo( type ) { * @param {Function} fn */ function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); + return markFunction(function( argument ) { + argument = +argument; + return markFunction(function( seed, matches ) { + var j, + matchIndexes = fn( [], seed.length, argument ), + i = matchIndexes.length; + + while ( i-- ) { + if ( seed[ (j = matchIndexes[i]) ] ) { + seed[j] = !(matches[j] = seed[j]); + } + } + }); + }); } /** @@ -4862,7 +4906,7 @@ function createPositionalPseudo( fn ) { * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value */ function testContext( context ) { - return context && typeof context.getElementsByTagName !== strundefined && context; + return context && typeof context.getElementsByTagName !== strundefined && context; } support = Sizzle.support = {}; @@ -4873,8 +4917,8 @@ support = Sizzle.support = {}; * @returns {Boolean} True iff elem is a non-HTML XML node */ isXML = Sizzle.isXML = function( elem ) { - var documentElement = elem && (elem.ownerDocument || elem).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; + var documentElement = elem && (elem.ownerDocument || elem).documentElement; + return documentElement ? documentElement.nodeName !== "HTML" : false; }; /** @@ -4883,342 +4927,342 @@ isXML = Sizzle.isXML = function( elem ) { * @returns {Object} Returns the current document */ setDocument = Sizzle.setDocument = function( node ) { - var hasCompare, - doc = node ? node.ownerDocument || node : preferredDoc, - parent = doc.defaultView; - - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - document = doc; - docElem = doc.documentElement; - - documentIsHTML = !isXML( doc ); - - if ( parent && parent !== parent.top ) { - if ( parent.addEventListener ) { - parent.addEventListener( "unload", function() { - setDocument(); - }, false ); - } else if ( parent.attachEvent ) { - parent.attachEvent( "onunload", function() { - setDocument(); - }); - } - } - - /* Attributes - ---------------------------------------------------------------------- */ - - support.attributes = assert(function( div ) { - div.className = "i"; - return !div.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - support.getElementsByTagName = assert(function( div ) { - div.appendChild( doc.createComment("") ); - return !div.getElementsByTagName("*").length; - }); - - support.getElementsByClassName = rnative.test( doc.getElementsByClassName ) && assert(function( div ) { - div.innerHTML = "<div class='a'></div><div class='a i'></div>"; - - div.firstChild.className = "i"; - return div.getElementsByClassName("i").length === 2; - }); - - support.getById = assert(function( div ) { - docElem.appendChild( div ).id = expando; - return !doc.getElementsByName || !doc.getElementsByName( expando ).length; - }); - - if ( support.getById ) { - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== strundefined && documentIsHTML ) { - var m = context.getElementById( id ); - return m && m.parentNode ? [m] : []; - } - }; - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - } else { - delete Expr.find["ID"]; - - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - } - - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== strundefined ) { - return context.getElementsByTagName( tag ); - } - } : - function( tag, context ) { - var elem, - tmp = [], - i = 0, - results = context.getElementsByTagName( tag ); - - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - - rbuggyMatches = []; - - rbuggyQSA = []; - - if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { - assert(function( div ) { - div.innerHTML = "<select t=''><option selected=''></option></select>"; - - if ( div.querySelectorAll("[t^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - if ( !div.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - if ( !div.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - }); - - assert(function( div ) { - var input = doc.createElement("input"); - input.setAttribute( "type", "hidden" ); - div.appendChild( input ).setAttribute( "name", "D" ); - - if ( div.querySelectorAll("[name=d]").length ) { - rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); - } - - if ( !div.querySelectorAll(":enabled").length ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - div.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( div ) { - support.disconnectedMatch = matches.call( div, "div" ); - - matches.call( div, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); - - /* Contains - ---------------------------------------------------------------------- */ - hasCompare = rnative.test( docElem.compareDocumentPosition ); - - contains = hasCompare || rnative.test( docElem.contains ) ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - sortOrder = hasCompare ? - function( a, b ) { - - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; - if ( compare ) { - return compare; - } - - compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? - a.compareDocumentPosition( b ) : - - 1; - - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { - return -1; - } - if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { - return 1; - } - - return sortInput ? - ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } : - function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - if ( !aup || !bup ) { - return a === doc ? -1 : - b === doc ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : - 0; - - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - siblingCheck( ap[i], bp[i] ) : - - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - return doc; + var hasCompare, + doc = node ? node.ownerDocument || node : preferredDoc, + parent = doc.defaultView; + + if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { + return document; + } + + document = doc; + docElem = doc.documentElement; + + documentIsHTML = !isXML( doc ); + + if ( parent && parent !== parent.top ) { + if ( parent.addEventListener ) { + parent.addEventListener( "unload", function() { + setDocument(); + }, false ); + } else if ( parent.attachEvent ) { + parent.attachEvent( "onunload", function() { + setDocument(); + }); + } + } + + /* Attributes + ---------------------------------------------------------------------- */ + + support.attributes = assert(function( div ) { + div.className = "i"; + return !div.getAttribute("className"); + }); + + /* getElement(s)By* + ---------------------------------------------------------------------- */ + + support.getElementsByTagName = assert(function( div ) { + div.appendChild( doc.createComment("") ); + return !div.getElementsByTagName("*").length; + }); + + support.getElementsByClassName = rnative.test( doc.getElementsByClassName ) && assert(function( div ) { + div.innerHTML = "<div class='a'></div><div class='a i'></div>"; + + div.firstChild.className = "i"; + return div.getElementsByClassName("i").length === 2; + }); + + support.getById = assert(function( div ) { + docElem.appendChild( div ).id = expando; + return !doc.getElementsByName || !doc.getElementsByName( expando ).length; + }); + + if ( support.getById ) { + Expr.find["ID"] = function( id, context ) { + if ( typeof context.getElementById !== strundefined && documentIsHTML ) { + var m = context.getElementById( id ); + return m && m.parentNode ? [m] : []; + } + }; + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + return elem.getAttribute("id") === attrId; + }; + }; + } else { + delete Expr.find["ID"]; + + Expr.filter["ID"] = function( id ) { + var attrId = id.replace( runescape, funescape ); + return function( elem ) { + var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); + return node && node.value === attrId; + }; + }; + } + + Expr.find["TAG"] = support.getElementsByTagName ? + function( tag, context ) { + if ( typeof context.getElementsByTagName !== strundefined ) { + return context.getElementsByTagName( tag ); + } + } : + function( tag, context ) { + var elem, + tmp = [], + i = 0, + results = context.getElementsByTagName( tag ); + + if ( tag === "*" ) { + while ( (elem = results[i++]) ) { + if ( elem.nodeType === 1 ) { + tmp.push( elem ); + } + } + + return tmp; + } + return results; + }; + + Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { + if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { + return context.getElementsByClassName( className ); + } + }; + + /* QSA/matchesSelector + ---------------------------------------------------------------------- */ + + + rbuggyMatches = []; + + rbuggyQSA = []; + + if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { + assert(function( div ) { + div.innerHTML = "<select t=''><option selected=''></option></select>"; + + if ( div.querySelectorAll("[t^='']").length ) { + rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); + } + + if ( !div.querySelectorAll("[selected]").length ) { + rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); + } + + if ( !div.querySelectorAll(":checked").length ) { + rbuggyQSA.push(":checked"); + } + }); + + assert(function( div ) { + var input = doc.createElement("input"); + input.setAttribute( "type", "hidden" ); + div.appendChild( input ).setAttribute( "name", "D" ); + + if ( div.querySelectorAll("[name=d]").length ) { + rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); + } + + if ( !div.querySelectorAll(":enabled").length ) { + rbuggyQSA.push( ":enabled", ":disabled" ); + } + + div.querySelectorAll("*,:x"); + rbuggyQSA.push(",.*:"); + }); + } + + if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector || + docElem.mozMatchesSelector || + docElem.oMatchesSelector || + docElem.msMatchesSelector) )) ) { + + assert(function( div ) { + support.disconnectedMatch = matches.call( div, "div" ); + + matches.call( div, "[s!='']:x" ); + rbuggyMatches.push( "!=", pseudos ); + }); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); + rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); + + /* Contains + ---------------------------------------------------------------------- */ + hasCompare = rnative.test( docElem.compareDocumentPosition ); + + contains = hasCompare || rnative.test( docElem.contains ) ? + function( a, b ) { + var adown = a.nodeType === 9 ? a.documentElement : a, + bup = b && b.parentNode; + return a === bup || !!( bup && bup.nodeType === 1 && ( + adown.contains ? + adown.contains( bup ) : + a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 + )); + } : + function( a, b ) { + if ( b ) { + while ( (b = b.parentNode) ) { + if ( b === a ) { + return true; + } + } + } + return false; + }; + + /* Sorting + ---------------------------------------------------------------------- */ + + sortOrder = hasCompare ? + function( a, b ) { + + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; + if ( compare ) { + return compare; + } + + compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? + a.compareDocumentPosition( b ) : + + 1; + + if ( compare & 1 || + (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { + + if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { + return -1; + } + if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { + return 1; + } + + return sortInput ? + ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : + 0; + } + + return compare & 4 ? -1 : 1; + } : + function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + var cur, + i = 0, + aup = a.parentNode, + bup = b.parentNode, + ap = [ a ], + bp = [ b ]; + + if ( !aup || !bup ) { + return a === doc ? -1 : + b === doc ? 1 : + aup ? -1 : + bup ? 1 : + sortInput ? + ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : + 0; + + } else if ( aup === bup ) { + return siblingCheck( a, b ); + } + + cur = a; + while ( (cur = cur.parentNode) ) { + ap.unshift( cur ); + } + cur = b; + while ( (cur = cur.parentNode) ) { + bp.unshift( cur ); + } + + while ( ap[i] === bp[i] ) { + i++; + } + + return i ? + siblingCheck( ap[i], bp[i] ) : + + ap[i] === preferredDoc ? -1 : + bp[i] === preferredDoc ? 1 : + 0; + }; + + return doc; }; Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); + return Sizzle( expr, null, null, elements ); }; Sizzle.matchesSelector = function( elem, expr ) { - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } - expr = expr.replace( rattributeQuotes, "='$1']" ); + expr = expr.replace( rattributeQuotes, "='$1']" ); - if ( support.matchesSelector && documentIsHTML && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { + if ( support.matchesSelector && documentIsHTML && + ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && + ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - try { - var ret = matches.call( elem, expr ); + try { + var ret = matches.call( elem, expr ); - if ( ret || support.disconnectedMatch || - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch(e) {} - } + if ( ret || support.disconnectedMatch || + elem.document && elem.document.nodeType !== 11 ) { + return ret; + } + } catch(e) {} + } - return Sizzle( expr, document, null, [elem] ).length > 0; + return Sizzle( expr, document, null, [elem] ).length > 0; }; Sizzle.contains = function( context, elem ) { - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); + if ( ( context.ownerDocument || context ) !== document ) { + setDocument( context ); + } + return contains( context, elem ); }; Sizzle.attr = function( elem, name ) { - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val !== undefined ? - val : - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null; + if ( ( elem.ownerDocument || elem ) !== document ) { + setDocument( elem ); + } + + var fn = Expr.attrHandle[ name.toLowerCase() ], + val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? + fn( elem, name, !documentIsHTML ) : + undefined; + + return val !== undefined ? + val : + support.attributes || !documentIsHTML ? + elem.getAttribute( name ) : + (val = elem.getAttributeNode(name)) && val.specified ? + val.value : + null; }; Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); + throw new Error( "Syntax error, unrecognized expression: " + msg ); }; /** @@ -5226,29 +5270,29 @@ Sizzle.error = function( msg ) { * @param {ArrayLike} results */ Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - sortInput = null; - - return results; + var elem, + duplicates = [], + j = 0, + i = 0; + + hasDuplicate = !support.detectDuplicates; + sortInput = !support.sortStable && results.slice( 0 ); + results.sort( sortOrder ); + + if ( hasDuplicate ) { + while ( (elem = results[i++]) ) { + if ( elem === results[ i ] ) { + j = duplicates.push( i ); + } + } + while ( j-- ) { + results.splice( duplicates[ j ], 1 ); + } + } + + sortInput = null; + + return results; }; /** @@ -5256,443 +5300,443 @@ Sizzle.uniqueSort = function( results ) { * @param {Array|Element} elem */ getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - while ( (node = elem[i++]) ) { - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - - return ret; + var node, + ret = "", + i = 0, + nodeType = elem.nodeType; + + if ( !nodeType ) { + while ( (node = elem[i++]) ) { + ret += getText( node ); + } + } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { + if ( typeof elem.textContent === "string" ) { + return elem.textContent; + } else { + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + ret += getText( elem ); + } + } + } else if ( nodeType === 3 || nodeType === 4 ) { + return elem.nodeValue; + } + + return ret; }; Expr = Sizzle.selectors = { - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[5] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } + cacheLength: 50, - if ( match[3] && match[4] !== undefined ) { - match[2] = match[4]; + createPseudo: markFunction, - } else if ( unquoted && rpseudo.test( unquoted ) && - (excess = tokenize( unquoted, true )) && - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { + match: matchExpr, - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - return match.slice( 0, 3 ); - } - }, + attrHandle: {}, - filter: { + find: {}, - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { return true; } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, outerCache, node, diff, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType; - - if ( parent ) { - - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { - return false; - } - } - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - if ( forward && useCache ) { - outerCache = parent[ expando ] || (parent[ expando ] = {}); - cache = outerCache[ type ] || []; - nodeIndex = cache[0] === dirruns && cache[1]; - diff = cache[0] === dirruns && cache[2]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( node.nodeType === 1 && ++diff && node === elem ) { - outerCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { - diff = cache[1]; - - } else { - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { - if ( useCache ) { - (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - if ( fn[ expando ] ) { - return fn( argument ); - } - - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf.call( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - "not": markFunction(function( selector ) { - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - "lang": markFunction( function( lang ) { - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - "enabled": function( elem ) { - return elem.disabled === false; - }, - - "disabled": function( elem ) { - return elem.disabled === true; - }, - - "checked": function( elem ) { - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, + relative: { + ">": { dir: "parentNode", first: true }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: true }, + "~": { dir: "previousSibling" } + }, - "selected": function( elem ) { - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - "empty": function( elem ) { - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeType < 6 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); - }, - - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } + preFilter: { + "ATTR": function( match ) { + match[1] = match[1].replace( runescape, funescape ); + + match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); + + if ( match[2] === "~=" ) { + match[3] = " " + match[3] + " "; + } + + return match.slice( 0, 4 ); + }, + + "CHILD": function( match ) { + /* matches from matchExpr["CHILD"] + 1 type (only|nth|...) + 2 what (child|of-type) + 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) + 4 xn-component of xn+y argument ([+-]?\d*n|) + 5 sign of xn-component + 6 x of xn-component + 7 sign of y-component + 8 y of y-component + */ + match[1] = match[1].toLowerCase(); + + if ( match[1].slice( 0, 3 ) === "nth" ) { + if ( !match[3] ) { + Sizzle.error( match[0] ); + } + + match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); + match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); + + } else if ( match[3] ) { + Sizzle.error( match[0] ); + } + + return match; + }, + + "PSEUDO": function( match ) { + var excess, + unquoted = !match[5] && match[2]; + + if ( matchExpr["CHILD"].test( match[0] ) ) { + return null; + } + + if ( match[3] && match[4] !== undefined ) { + match[2] = match[4]; + + } else if ( unquoted && rpseudo.test( unquoted ) && + (excess = tokenize( unquoted, true )) && + (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { + + match[0] = match[0].slice( 0, excess ); + match[2] = unquoted.slice( 0, excess ); + } + + return match.slice( 0, 3 ); + } + }, + + filter: { + + "TAG": function( nodeNameSelector ) { + var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); + return nodeNameSelector === "*" ? + function() { return true; } : + function( elem ) { + return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; + }; + }, + + "CLASS": function( className ) { + var pattern = classCache[ className + " " ]; + + return pattern || + (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && + classCache( className, function( elem ) { + return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); + }); + }, + + "ATTR": function( name, operator, check ) { + return function( elem ) { + var result = Sizzle.attr( elem, name ); + + if ( result == null ) { + return operator === "!="; + } + if ( !operator ) { + return true; + } + + result += ""; + + return operator === "=" ? result === check : + operator === "!=" ? result !== check : + operator === "^=" ? check && result.indexOf( check ) === 0 : + operator === "*=" ? check && result.indexOf( check ) > -1 : + operator === "$=" ? check && result.slice( -check.length ) === check : + operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : + operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : + false; + }; + }, + + "CHILD": function( type, what, argument, first, last ) { + var simple = type.slice( 0, 3 ) !== "nth", + forward = type.slice( -4 ) !== "last", + ofType = what === "of-type"; + + return first === 1 && last === 0 ? + + function( elem ) { + return !!elem.parentNode; + } : + + function( elem, context, xml ) { + var cache, outerCache, node, diff, nodeIndex, start, + dir = simple !== forward ? "nextSibling" : "previousSibling", + parent = elem.parentNode, + name = ofType && elem.nodeName.toLowerCase(), + useCache = !xml && !ofType; + + if ( parent ) { + + if ( simple ) { + while ( dir ) { + node = elem; + while ( (node = node[ dir ]) ) { + if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { + return false; + } + } + start = dir = type === "only" && !start && "nextSibling"; + } + return true; + } + + start = [ forward ? parent.firstChild : parent.lastChild ]; + + if ( forward && useCache ) { + outerCache = parent[ expando ] || (parent[ expando ] = {}); + cache = outerCache[ type ] || []; + nodeIndex = cache[0] === dirruns && cache[1]; + diff = cache[0] === dirruns && cache[2]; + node = nodeIndex && parent.childNodes[ nodeIndex ]; + + while ( (node = ++nodeIndex && node && node[ dir ] || + + (diff = nodeIndex = 0) || start.pop()) ) { + + if ( node.nodeType === 1 && ++diff && node === elem ) { + outerCache[ type ] = [ dirruns, nodeIndex, diff ]; + break; + } + } + + } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { + diff = cache[1]; + + } else { + while ( (node = ++nodeIndex && node && node[ dir ] || + (diff = nodeIndex = 0) || start.pop()) ) { + + if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { + if ( useCache ) { + (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; + } + + if ( node === elem ) { + break; + } + } + } + } + + diff -= last; + return diff === first || ( diff % first === 0 && diff / first >= 0 ); + } + }; + }, + + "PSEUDO": function( pseudo, argument ) { + var args, + fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || + Sizzle.error( "unsupported pseudo: " + pseudo ); + + if ( fn[ expando ] ) { + return fn( argument ); + } + + if ( fn.length > 1 ) { + args = [ pseudo, pseudo, "", argument ]; + return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? + markFunction(function( seed, matches ) { + var idx, + matched = fn( seed, argument ), + i = matched.length; + while ( i-- ) { + idx = indexOf.call( seed, matched[i] ); + seed[ idx ] = !( matches[ idx ] = matched[i] ); + } + }) : + function( elem ) { + return fn( elem, 0, args ); + }; + } + + return fn; + } + }, + + pseudos: { + "not": markFunction(function( selector ) { + var input = [], + results = [], + matcher = compile( selector.replace( rtrim, "$1" ) ); + + return matcher[ expando ] ? + markFunction(function( seed, matches, context, xml ) { + var elem, + unmatched = matcher( seed, null, xml, [] ), + i = seed.length; + + while ( i-- ) { + if ( (elem = unmatched[i]) ) { + seed[i] = !(matches[i] = elem); + } + } + }) : + function( elem, context, xml ) { + input[0] = elem; + matcher( input, null, xml, results ); + return !results.pop(); + }; + }), + + "has": markFunction(function( selector ) { + return function( elem ) { + return Sizzle( selector, elem ).length > 0; + }; + }), + + "contains": markFunction(function( text ) { + return function( elem ) { + return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; + }; + }), + + "lang": markFunction( function( lang ) { + if ( !ridentifier.test(lang || "") ) { + Sizzle.error( "unsupported lang: " + lang ); + } + lang = lang.replace( runescape, funescape ).toLowerCase(); + return function( elem ) { + var elemLang; + do { + if ( (elemLang = documentIsHTML ? + elem.lang : + elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { + + elemLang = elemLang.toLowerCase(); + return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; + } + } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); + return false; + }; + }), + + "target": function( elem ) { + var hash = window.location && window.location.hash; + return hash && hash.slice( 1 ) === elem.id; + }, + + "root": function( elem ) { + return elem === docElem; + }, + + "focus": function( elem ) { + return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); + }, + + "enabled": function( elem ) { + return elem.disabled === false; + }, + + "disabled": function( elem ) { + return elem.disabled === true; + }, + + "checked": function( elem ) { + var nodeName = elem.nodeName.toLowerCase(); + return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); + }, + + "selected": function( elem ) { + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + "empty": function( elem ) { + for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { + if ( elem.nodeType < 6 ) { + return false; + } + } + return true; + }, + + "parent": function( elem ) { + return !Expr.pseudos["empty"]( elem ); + }, + + "header": function( elem ) { + return rheader.test( elem.nodeName ); + }, + + "input": function( elem ) { + return rinputs.test( elem.nodeName ); + }, + + "button": function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && elem.type === "button" || name === "button"; + }, + + "text": function( elem ) { + var attr; + return elem.nodeName.toLowerCase() === "input" && + elem.type === "text" && + + ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); + }, + + "first": createPositionalPseudo(function() { + return [ 0 ]; + }), + + "last": createPositionalPseudo(function( matchIndexes, length ) { + return [ length - 1 ]; + }), + + "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { + return [ argument < 0 ? argument + length : argument ]; + }), + + "even": createPositionalPseudo(function( matchIndexes, length ) { + var i = 0; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "odd": createPositionalPseudo(function( matchIndexes, length ) { + var i = 1; + for ( ; i < length; i += 2 ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; --i >= 0; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }), + + "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { + var i = argument < 0 ? argument + length : argument; + for ( ; ++i < length; ) { + matchIndexes.push( i ); + } + return matchIndexes; + }) + } }; Expr.pseudos["nth"] = Expr.pseudos["eq"]; for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); + Expr.pseudos[ i ] = createInputPseudo( i ); } for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); + Expr.pseudos[ i ] = createButtonPseudo( i ); } function setFilters() {} @@ -5700,405 +5744,405 @@ setFilters.prototype = Expr.filters = Expr.pseudos; Expr.setFilters = new setFilters(); function tokenize( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( (tokens = []) ); - } - - matched = false; - - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: match[0].replace( rtrim, " " ) - }); - soFar = soFar.slice( matched.length ); - } - - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: type, - matches: match - }); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - tokenCache( selector, groups ).slice( 0 ); + var matched, match, tokens, type, + soFar, groups, preFilters, + cached = tokenCache[ selector + " " ]; + + if ( cached ) { + return parseOnly ? 0 : cached.slice( 0 ); + } + + soFar = selector; + groups = []; + preFilters = Expr.preFilter; + + while ( soFar ) { + + if ( !matched || (match = rcomma.exec( soFar )) ) { + if ( match ) { + soFar = soFar.slice( match[0].length ) || soFar; + } + groups.push( (tokens = []) ); + } + + matched = false; + + if ( (match = rcombinators.exec( soFar )) ) { + matched = match.shift(); + tokens.push({ + value: matched, + type: match[0].replace( rtrim, " " ) + }); + soFar = soFar.slice( matched.length ); + } + + for ( type in Expr.filter ) { + if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || + (match = preFilters[ type ]( match ))) ) { + matched = match.shift(); + tokens.push({ + value: matched, + type: type, + matches: match + }); + soFar = soFar.slice( matched.length ); + } + } + + if ( !matched ) { + break; + } + } + + return parseOnly ? + soFar.length : + soFar ? + Sizzle.error( selector ) : + tokenCache( selector, groups ).slice( 0 ); } function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; + var i = 0, + len = tokens.length, + selector = ""; + for ( ; i < len; i++ ) { + selector += tokens[i].value; + } + return selector; } function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - checkNonElements = base && dir === "parentNode", - doneName = done++; - - return combinator.first ? - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - } : - - function( elem, context, xml ) { - var oldCache, outerCache, - newCache = [ dirruns, doneName ]; - - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - if ( (oldCache = outerCache[ dir ]) && - oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { - - return (newCache[ 2 ] = oldCache[ 2 ]); - } else { - outerCache[ dir ] = newCache; - - if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { - return true; - } - } - } - } - } - }; + var dir = combinator.dir, + checkNonElements = base && dir === "parentNode", + doneName = done++; + + return combinator.first ? + function( elem, context, xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + return matcher( elem, context, xml ); + } + } + } : + + function( elem, context, xml ) { + var oldCache, outerCache, + newCache = [ dirruns, doneName ]; + + if ( xml ) { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + if ( matcher( elem, context, xml ) ) { + return true; + } + } + } + } else { + while ( (elem = elem[ dir ]) ) { + if ( elem.nodeType === 1 || checkNonElements ) { + outerCache = elem[ expando ] || (elem[ expando ] = {}); + if ( (oldCache = outerCache[ dir ]) && + oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { + + return (newCache[ 2 ] = oldCache[ 2 ]); + } else { + outerCache[ dir ] = newCache; + + if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { + return true; + } + } + } + } + } + }; } function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; + return matchers.length > 1 ? + function( elem, context, xml ) { + var i = matchers.length; + while ( i-- ) { + if ( !matchers[i]( elem, context, xml ) ) { + return false; + } + } + return true; + } : + matchers[0]; } function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; + var i = 0, + len = contexts.length; + for ( ; i < len; i++ ) { + Sizzle( selector, contexts[i], results ); + } + return results; } function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; + var elem, + newUnmatched = [], + i = 0, + len = unmatched.length, + mapped = map != null; + + for ( ; i < len; i++ ) { + if ( (elem = unmatched[i]) ) { + if ( !filter || filter( elem, context, xml ) ) { + newUnmatched.push( elem ); + if ( mapped ) { + map.push( i ); + } + } + } + } + + return newUnmatched; } function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - [] : - - results : - matcherIn; - - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); + if ( postFilter && !postFilter[ expando ] ) { + postFilter = setMatcher( postFilter ); + } + if ( postFinder && !postFinder[ expando ] ) { + postFinder = setMatcher( postFinder, postSelector ); + } + return markFunction(function( seed, results, context, xml ) { + var temp, i, elem, + preMap = [], + postMap = [], + preexisting = results.length, + + elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), + + matcherIn = preFilter && ( seed || !selector ) ? + condense( elems, preMap, preFilter, context, xml ) : + elems, + + matcherOut = matcher ? + postFinder || ( seed ? preFilter : preexisting || postFilter ) ? + + [] : + + results : + matcherIn; + + if ( matcher ) { + matcher( matcherIn, matcherOut, context, xml ); + } + + if ( postFilter ) { + temp = condense( matcherOut, postMap ); + postFilter( temp, [], context, xml ); + + i = temp.length; + while ( i-- ) { + if ( (elem = temp[i]) ) { + matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); + } + } + } + + if ( seed ) { + if ( postFinder || preFilter ) { + if ( postFinder ) { + temp = []; + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) ) { + temp.push( (matcherIn[i] = elem) ); + } + } + postFinder( null, (matcherOut = []), temp, xml ); + } + + i = matcherOut.length; + while ( i-- ) { + if ( (elem = matcherOut[i]) && + (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { + + seed[temp] = !(results[temp] = elem); + } + } + } + + } else { + matcherOut = condense( + matcherOut === results ? + matcherOut.splice( preexisting, matcherOut.length ) : + matcherOut + ); + if ( postFinder ) { + postFinder( null, results, matcherOut, xml ); + } else { + push.apply( results, matcherOut ); + } + } + }); } function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf.call( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - if ( matcher[ expando ] ) { - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); + var checkContext, matcher, j, + len = tokens.length, + leadingRelative = Expr.relative[ tokens[0].type ], + implicitRelative = leadingRelative || Expr.relative[" "], + i = leadingRelative ? 1 : 0, + + matchContext = addCombinator( function( elem ) { + return elem === checkContext; + }, implicitRelative, true ), + matchAnyContext = addCombinator( function( elem ) { + return indexOf.call( checkContext, elem ) > -1; + }, implicitRelative, true ), + matchers = [ function( elem, context, xml ) { + return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( + (checkContext = context).nodeType ? + matchContext( elem, context, xml ) : + matchAnyContext( elem, context, xml ) ); + } ]; + + for ( ; i < len; i++ ) { + if ( (matcher = Expr.relative[ tokens[i].type ]) ) { + matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; + } else { + matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); + + if ( matcher[ expando ] ) { + j = ++i; + for ( ; j < len; j++ ) { + if ( Expr.relative[ tokens[j].type ] ) { + break; + } + } + return setMatcher( + i > 1 && elementMatcher( matchers ), + i > 1 && toSelector( + tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) + ).replace( rtrim, "$1" ), + matcher, + i < j && matcherFromTokens( tokens.slice( i, j ) ), + j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), + j < len && toSelector( tokens ) + ); + } + matchers.push( matcher ); + } + } + + return elementMatcher( matchers ); } function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - var bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, outermost ) { - var elem, j, matcher, - matchedCount = 0, - i = "0", - unmatched = seed && [], - setMatched = [], - contextBackup = outermostContext, - elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), - len = elems.length; - - if ( outermost ) { - outermostContext = context !== document && context; - } - - for ( ; i !== len && (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context, xml ) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - } - } - - if ( bySet ) { - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - if ( seed ) { - unmatched.push( elem ); - } - } - } - - matchedCount += i; - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - setMatched = condense( setMatched ); - } - - push.apply( results, setMatched ); - - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; + var bySet = setMatchers.length > 0, + byElement = elementMatchers.length > 0, + superMatcher = function( seed, context, xml, results, outermost ) { + var elem, j, matcher, + matchedCount = 0, + i = "0", + unmatched = seed && [], + setMatched = [], + contextBackup = outermostContext, + elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), + dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), + len = elems.length; + + if ( outermost ) { + outermostContext = context !== document && context; + } + + for ( ; i !== len && (elem = elems[i]) != null; i++ ) { + if ( byElement && elem ) { + j = 0; + while ( (matcher = elementMatchers[j++]) ) { + if ( matcher( elem, context, xml ) ) { + results.push( elem ); + break; + } + } + if ( outermost ) { + dirruns = dirrunsUnique; + } + } + + if ( bySet ) { + if ( (elem = !matcher && elem) ) { + matchedCount--; + } + + if ( seed ) { + unmatched.push( elem ); + } + } + } + + matchedCount += i; + if ( bySet && i !== matchedCount ) { + j = 0; + while ( (matcher = setMatchers[j++]) ) { + matcher( unmatched, setMatched, context, xml ); + } + + if ( seed ) { + if ( matchedCount > 0 ) { + while ( i-- ) { + if ( !(unmatched[i] || setMatched[i]) ) { + setMatched[i] = pop.call( results ); + } + } + } + + setMatched = condense( setMatched ); + } + + push.apply( results, setMatched ); + + if ( outermost && !seed && setMatched.length > 0 && + ( matchedCount + setMatchers.length ) > 1 ) { + + Sizzle.uniqueSort( results ); + } + } + + if ( outermost ) { + dirruns = dirrunsUnique; + outermostContext = contextBackup; + } + + return unmatched; + }; + + return bySet ? + markFunction( superMatcher ) : + superMatcher; } compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - if ( !match ) { - match = tokenize( selector ); - } - i = match.length; - while ( i-- ) { - cached = matcherFromTokens( match[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - - cached.selector = selector; - } - return cached; + var i, + setMatchers = [], + elementMatchers = [], + cached = compilerCache[ selector + " " ]; + + if ( !cached ) { + if ( !match ) { + match = tokenize( selector ); + } + i = match.length; + while ( i-- ) { + cached = matcherFromTokens( match[i] ); + if ( cached[ expando ] ) { + setMatchers.push( cached ); + } else { + elementMatchers.push( cached ); + } + } + + cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); + + cached.selector = selector; + } + return cached; }; /** @@ -6111,64 +6155,64 @@ compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { * @param {Array} [seed] A set of elements to match against */ select = Sizzle.select = function( selector, context, results, seed ) { - var i, tokens, token, type, find, - compiled = typeof selector === "function" && selector, - match = !seed && tokenize( (selector = compiled.selector || selector) ); - - results = results || []; - - if ( match.length === 1 ) { - - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - support.getById && context.nodeType === 9 && documentIsHTML && - Expr.relative[ tokens[1].type ] ) { - - context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; - if ( !context ) { - return results; - - } else if ( compiled ) { - context = context.parentNode; - } - - selector = selector.slice( tokens.shift().value.length ); - } - - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[i]; - - if ( Expr.relative[ (type = token.type) ] ) { - break; - } - if ( (find = Expr.find[ type ]) ) { - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context - )) ) { - - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - - ( compiled || compile( selector, match ) )( - seed, - context, - !documentIsHTML, - results, - rsibling.test( selector ) && testContext( context.parentNode ) || context - ); - return results; + var i, tokens, token, type, find, + compiled = typeof selector === "function" && selector, + match = !seed && tokenize( (selector = compiled.selector || selector) ); + + results = results || []; + + if ( match.length === 1 ) { + + tokens = match[0] = match[0].slice( 0 ); + if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && + support.getById && context.nodeType === 9 && documentIsHTML && + Expr.relative[ tokens[1].type ] ) { + + context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; + if ( !context ) { + return results; + + } else if ( compiled ) { + context = context.parentNode; + } + + selector = selector.slice( tokens.shift().value.length ); + } + + i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; + while ( i-- ) { + token = tokens[i]; + + if ( Expr.relative[ (type = token.type) ] ) { + break; + } + if ( (find = Expr.find[ type ]) ) { + if ( (seed = find( + token.matches[0].replace( runescape, funescape ), + rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context + )) ) { + + tokens.splice( i, 1 ); + selector = seed.length && toSelector( tokens ); + if ( !selector ) { + push.apply( results, seed ); + return results; + } + + break; + } + } + } + } + + ( compiled || compile( selector, match ) )( + seed, + context, + !documentIsHTML, + results, + rsibling.test( selector ) && testContext( context.parentNode ) || context + ); + return results; }; @@ -6179,56 +6223,72 @@ support.detectDuplicates = !!hasDuplicate; setDocument(); support.sortDetached = assert(function( div1 ) { - return div1.compareDocumentPosition( document.createElement("div") ) & 1; + return div1.compareDocumentPosition( document.createElement("div") ) & 1; }); if ( !assert(function( div ) { - div.innerHTML = "<a href='#'></a>"; - return div.firstChild.getAttribute("href") === "#" ; + div.innerHTML = "<a href='#'></a>"; + return div.firstChild.getAttribute("href") === "#" ; }) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - }); + addHandle( "type|href|height|width", function( elem, name, isXML ) { + if ( !isXML ) { + return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); + } + }); } if ( !support.attributes || !assert(function( div ) { - div.innerHTML = "<input/>"; - div.firstChild.setAttribute( "value", "" ); - return div.firstChild.getAttribute( "value" ) === ""; + div.innerHTML = "<input/>"; + div.firstChild.setAttribute( "value", "" ); + return div.firstChild.getAttribute( "value" ) === ""; }) ) { - addHandle( "value", function( elem, name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - }); + addHandle( "value", function( elem, name, isXML ) { + if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { + return elem.defaultValue; + } + }); } if ( !assert(function( div ) { - return div.getAttribute("disabled") == null; + return div.getAttribute("disabled") == null; }) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return elem[ name ] === true ? name.toLowerCase() : - (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - null; - } - }); + addHandle( booleans, function( elem, name, isXML ) { + var val; + if ( !isXML ) { + return elem[ name ] === true ? name.toLowerCase() : + (val = elem.getAttributeNode( name )) && val.specified ? + val.value : + null; + } + }); } if ( typeof define === "function" && define.amd ) { - define(function() { return Sizzle; }); + define(function() { return Sizzle; }); } else if ( typeof module !== "undefined" && module.exports ) { - module.exports = Sizzle; + module.exports = Sizzle; } else { - window.Sizzle = Sizzle; + window.Sizzle = Sizzle; } })( window ); +;(function() { + if (typeof Sizzle !== 'undefined') { + return; + } + + if (typeof define !== 'undefined' && define.amd) { + window.Sizzle = Prototype._actual_sizzle; + window.define = Prototype._original_define; + delete Prototype._actual_sizzle; + delete Prototype._original_define; + } else if (typeof module !== 'undefined' && module.exports) { + window.Sizzle = module.exports; + module.exports = {}; + } +})(); + ;(function(engine) { var extendElements = Prototype.Selector.extendElements; @@ -6870,7 +6930,7 @@ Form.EventObserver = Class.create(Abstract.EventObserver, { Event._isCustomEvent = isCustomEvent; - function getRegistryForElement(element, uid) { + function getOrCreateRegistryFor(element, uid) { var CACHE = GLOBAL.Event.cache; if (Object.isUndefined(uid)) uid = getUniqueElementID(element); @@ -6886,7 +6946,7 @@ Form.EventObserver = Class.create(Abstract.EventObserver, { function register(element, eventName, handler) { - var registry = getRegistryForElement(element); + var registry = getOrCreateRegistryFor(element); if (!registry[eventName]) registry[eventName] = []; var entries = registry[eventName]; @@ -6906,9 +6966,8 @@ Form.EventObserver = Class.create(Abstract.EventObserver, { } function unregister(element, eventName, handler) { - var registry = getRegistryForElement(element); - var entries = registry[eventName]; - if (!entries) return; + var registry = getOrCreateRegistryFor(element); + var entries = registry[eventName] || []; var i = entries.length, entry; while (i--) { @@ -6918,10 +6977,16 @@ Form.EventObserver = Class.create(Abstract.EventObserver, { } } - if (!entry) return; + if (entry) { + var index = entries.indexOf(entry); + entries.splice(index, 1); + } - var index = entries.indexOf(entry); - entries.splice(index, 1); + if (entries.length === 0) { + delete registry[eventName]; + if (Object.keys(registry).length === 1 && ('element' in registry)) + destroyRegistryForElement(element); + } return entry; } @@ -7020,14 +7085,24 @@ Form.EventObserver = Class.create(Abstract.EventObserver, { } function stopObservingEventName(element, eventName) { - var registry = getRegistryForElement(element); + var registry = getOrCreateRegistryFor(element); var entries = registry[eventName]; - if (!entries) return; - delete registry[eventName]; + if (entries) { + delete registry[eventName]; + } + + entries = entries || []; var i = entries.length; while (i--) removeEvent(element, eventName, entries[i].responder); + + for (var name in registry) { + if (name === 'element') continue; + return; // There is another registered event + } + + destroyRegistryForElement(element); } @@ -7194,7 +7269,8 @@ Form.EventObserver = Class.create(Abstract.EventObserver, { function createResponderForCustomEvent(uid, eventName, handler) { return function(event) { - var element = Event.cache[uid].element; + var cache = Event.cache[uid]; + var element = cache && cache.element; if (Object.isUndefined(event.eventName)) return false; @@ -7283,7 +7359,9 @@ Hash.toQueryString = Object.toQueryString; var Toggle = { display: Element.toggle }; -Element.Methods.childOf = Element.Methods.descendantOf; +Element.addMethods({ + childOf: Element.Methods.descendantOf +}); var Insertion = { Before: function(element, content) { @@ -7507,4 +7585,4 @@ Object.extend(Element.ClassNames.prototype, Enumerable); return Prototype.Selector.select(selector, element || document); } }); -})(); \ No newline at end of file +})(); diff --git a/apps/maarch_entreprise/js/unittest.js b/apps/maarch_entreprise/js/unittest.js deleted file mode 100644 index 9555c22cc3e2cf7c03bbccab4e7245220f46f2ad..0000000000000000000000000000000000000000 --- a/apps/maarch_entreprise/js/unittest.js +++ /dev/null @@ -1,568 +0,0 @@ -// script.aculo.us unittest.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 - -// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) -// (c) 2005-2010 Jon Tirsen (http://www.tirsen.com) -// (c) 2005-2010 Michael Schuerig (http://www.schuerig.de/michael/) -// -// script.aculo.us is freely distributable under the terms of an MIT-style license. -// For details, see the script.aculo.us web site: http://script.aculo.us/ - -// experimental, Firefox-only -Event.simulateMouse = function(element, eventName) { - var options = Object.extend({ - pointerX: 0, - pointerY: 0, - buttons: 0, - ctrlKey: false, - altKey: false, - shiftKey: false, - metaKey: false - }, arguments[2] || {}); - var oEvent = document.createEvent("MouseEvents"); - oEvent.initMouseEvent(eventName, true, true, document.defaultView, - options.buttons, options.pointerX, options.pointerY, options.pointerX, options.pointerY, - options.ctrlKey, options.altKey, options.shiftKey, options.metaKey, 0, $(element)); - - if(this.mark) Element.remove(this.mark); - this.mark = document.createElement('div'); - this.mark.appendChild(document.createTextNode(" ")); - document.body.appendChild(this.mark); - this.mark.style.position = 'absolute'; - this.mark.style.top = options.pointerY + "px"; - this.mark.style.left = options.pointerX + "px"; - this.mark.style.width = "5px"; - this.mark.style.height = "5px;"; - this.mark.style.borderTop = "1px solid red;"; - this.mark.style.borderLeft = "1px solid red;"; - - if(this.step) - alert('['+new Date().getTime().toString()+'] '+eventName+'/'+Test.Unit.inspect(options)); - - $(element).dispatchEvent(oEvent); -}; - -// Note: Due to a fix in Firefox 1.0.5/6 that probably fixed "too much", this doesn't work in 1.0.6 or DP2. -// You need to downgrade to 1.0.4 for now to get this working -// See https://bugzilla.mozilla.org/show_bug.cgi?id=289940 for the fix that fixed too much -Event.simulateKey = function(element, eventName) { - var options = Object.extend({ - ctrlKey: false, - altKey: false, - shiftKey: false, - metaKey: false, - keyCode: 0, - charCode: 0 - }, arguments[2] || {}); - - var oEvent = document.createEvent("KeyEvents"); - oEvent.initKeyEvent(eventName, true, true, window, - options.ctrlKey, options.altKey, options.shiftKey, options.metaKey, - options.keyCode, options.charCode ); - $(element).dispatchEvent(oEvent); -}; - -Event.simulateKeys = function(element, command) { - for(var i=0; i<command.length; i++) { - Event.simulateKey(element,'keypress',{charCode:command.charCodeAt(i)}); - } -}; - -var Test = {}; -Test.Unit = {}; - -// security exception workaround -Test.Unit.inspect = Object.inspect; - -Test.Unit.Logger = Class.create(); -Test.Unit.Logger.prototype = { - initialize: function(log) { - this.log = $(log); - if (this.log) { - this._createLogTable(); - } - }, - start: function(testName) { - if (!this.log) return; - this.testName = testName; - this.lastLogLine = document.createElement('tr'); - this.statusCell = document.createElement('td'); - this.nameCell = document.createElement('td'); - this.nameCell.className = "nameCell"; - this.nameCell.appendChild(document.createTextNode(testName)); - this.messageCell = document.createElement('td'); - this.lastLogLine.appendChild(this.statusCell); - this.lastLogLine.appendChild(this.nameCell); - this.lastLogLine.appendChild(this.messageCell); - this.loglines.appendChild(this.lastLogLine); - }, - finish: function(status, summary) { - if (!this.log) return; - this.lastLogLine.className = status; - this.statusCell.innerHTML = status; - this.messageCell.innerHTML = this._toHTML(summary); - this.addLinksToResults(); - }, - message: function(message) { - if (!this.log) return; - this.messageCell.innerHTML = this._toHTML(message); - }, - summary: function(summary) { - if (!this.log) return; - this.logsummary.innerHTML = this._toHTML(summary); - }, - _createLogTable: function() { - this.log.innerHTML = - '<div id="logsummary"></div>' + - '<table id="logtable">' + - '<thead><tr><th>Status</th><th>Test</th><th>Message</th></tr></thead>' + - '<tbody id="loglines"></tbody>' + - '</table>'; - this.logsummary = $('logsummary'); - this.loglines = $('loglines'); - }, - _toHTML: function(txt) { - return txt.escapeHTML().replace(/\n/g,"<br/>"); - }, - addLinksToResults: function(){ - $$("tr.failed .nameCell").each( function(td){ // todo: limit to children of this.log - td.title = "Run only this test"; - Event.observe(td, 'click', function(){ window.location.search = "?tests=" + td.innerHTML;}); - }); - $$("tr.passed .nameCell").each( function(td){ // todo: limit to children of this.log - td.title = "Run all tests"; - Event.observe(td, 'click', function(){ window.location.search = "";}); - }); - } -}; - -Test.Unit.Runner = Class.create(); -Test.Unit.Runner.prototype = { - initialize: function(testcases) { - this.options = Object.extend({ - testLog: 'testlog' - }, arguments[1] || {}); - this.options.resultsURL = this.parseResultsURLQueryParameter(); - this.options.tests = this.parseTestsQueryParameter(); - if (this.options.testLog) { - this.options.testLog = $(this.options.testLog) || null; - } - if(this.options.tests) { - this.tests = []; - for(var i = 0; i < this.options.tests.length; i++) { - if(/^test/.test(this.options.tests[i])) { - this.tests.push(new Test.Unit.Testcase(this.options.tests[i], testcases[this.options.tests[i]], testcases["setup"], testcases["teardown"])); - } - } - } else { - if (this.options.test) { - this.tests = [new Test.Unit.Testcase(this.options.test, testcases[this.options.test], testcases["setup"], testcases["teardown"])]; - } else { - this.tests = []; - for(var testcase in testcases) { - if(/^test/.test(testcase)) { - this.tests.push( - new Test.Unit.Testcase( - this.options.context ? ' -> ' + this.options.titles[testcase] : testcase, - testcases[testcase], testcases["setup"], testcases["teardown"] - )); - } - } - } - } - this.currentTest = 0; - this.logger = new Test.Unit.Logger(this.options.testLog); - setTimeout(this.runTests.bind(this), 1000); - }, - parseResultsURLQueryParameter: function() { - return window.location.search.parseQuery()["resultsURL"]; - }, - parseTestsQueryParameter: function(){ - if (window.location.search.parseQuery()["tests"]){ - return window.location.search.parseQuery()["tests"].split(','); - }; - }, - // Returns: - // "ERROR" if there was an error, - // "FAILURE" if there was a failure, or - // "SUCCESS" if there was neither - getResult: function() { - var hasFailure = false; - for(var i=0;i<this.tests.length;i++) { - if (this.tests[i].errors > 0) { - return "ERROR"; - } - if (this.tests[i].failures > 0) { - hasFailure = true; - } - } - if (hasFailure) { - return "FAILURE"; - } else { - return "SUCCESS"; - } - }, - postResults: function() { - if (this.options.resultsURL) { - new Ajax.Request(this.options.resultsURL, - { method: 'get', parameters: 'result=' + this.getResult(), asynchronous: false }); - } - }, - runTests: function() { - var test = this.tests[this.currentTest]; - if (!test) { - // finished! - this.postResults(); - this.logger.summary(this.summary()); - return; - } - if(!test.isWaiting) { - this.logger.start(test.name); - } - test.run(); - if(test.isWaiting) { - this.logger.message("Waiting for " + test.timeToWait + "ms"); - setTimeout(this.runTests.bind(this), test.timeToWait || 1000); - } else { - this.logger.finish(test.status(), test.summary()); - this.currentTest++; - // tail recursive, hopefully the browser will skip the stackframe - this.runTests(); - } - }, - summary: function() { - var assertions = 0; - var failures = 0; - var errors = 0; - var messages = []; - for(var i=0;i<this.tests.length;i++) { - assertions += this.tests[i].assertions; - failures += this.tests[i].failures; - errors += this.tests[i].errors; - } - return ( - (this.options.context ? this.options.context + ': ': '') + - this.tests.length + " tests, " + - assertions + " assertions, " + - failures + " failures, " + - errors + " errors"); - } -}; - -Test.Unit.Assertions = Class.create(); -Test.Unit.Assertions.prototype = { - initialize: function() { - this.assertions = 0; - this.failures = 0; - this.errors = 0; - this.messages = []; - }, - summary: function() { - return ( - this.assertions + " assertions, " + - this.failures + " failures, " + - this.errors + " errors" + "\n" + - this.messages.join("\n")); - }, - pass: function() { - this.assertions++; - }, - fail: function(message) { - this.failures++; - this.messages.push("Failure: " + message); - }, - info: function(message) { - this.messages.push("Info: " + message); - }, - error: function(error) { - this.errors++; - this.messages.push(error.name + ": "+ error.message + "(" + Test.Unit.inspect(error) +")"); - }, - status: function() { - if (this.failures > 0) return 'failed'; - if (this.errors > 0) return 'error'; - return 'passed'; - }, - assert: function(expression) { - var message = arguments[1] || 'assert: got "' + Test.Unit.inspect(expression) + '"'; - try { expression ? this.pass() : - this.fail(message); } - catch(e) { this.error(e); } - }, - assertEqual: function(expected, actual) { - var message = arguments[2] || "assertEqual"; - try { (expected == actual) ? this.pass() : - this.fail(message + ': expected "' + Test.Unit.inspect(expected) + - '", actual "' + Test.Unit.inspect(actual) + '"'); } - catch(e) { this.error(e); } - }, - assertInspect: function(expected, actual) { - var message = arguments[2] || "assertInspect"; - try { (expected == actual.inspect()) ? this.pass() : - this.fail(message + ': expected "' + Test.Unit.inspect(expected) + - '", actual "' + Test.Unit.inspect(actual) + '"'); } - catch(e) { this.error(e); } - }, - assertEnumEqual: function(expected, actual) { - var message = arguments[2] || "assertEnumEqual"; - try { $A(expected).length == $A(actual).length && - expected.zip(actual).all(function(pair) { return pair[0] == pair[1] }) ? - this.pass() : this.fail(message + ': expected ' + Test.Unit.inspect(expected) + - ', actual ' + Test.Unit.inspect(actual)); } - catch(e) { this.error(e); } - }, - assertNotEqual: function(expected, actual) { - var message = arguments[2] || "assertNotEqual"; - try { (expected != actual) ? this.pass() : - this.fail(message + ': got "' + Test.Unit.inspect(actual) + '"'); } - catch(e) { this.error(e); } - }, - assertIdentical: function(expected, actual) { - var message = arguments[2] || "assertIdentical"; - try { (expected === actual) ? this.pass() : - this.fail(message + ': expected "' + Test.Unit.inspect(expected) + - '", actual "' + Test.Unit.inspect(actual) + '"'); } - catch(e) { this.error(e); } - }, - assertNotIdentical: function(expected, actual) { - var message = arguments[2] || "assertNotIdentical"; - try { !(expected === actual) ? this.pass() : - this.fail(message + ': expected "' + Test.Unit.inspect(expected) + - '", actual "' + Test.Unit.inspect(actual) + '"'); } - catch(e) { this.error(e); } - }, - assertNull: function(obj) { - var message = arguments[1] || 'assertNull'; - try { (obj==null) ? this.pass() : - this.fail(message + ': got "' + Test.Unit.inspect(obj) + '"'); } - catch(e) { this.error(e); } - }, - assertMatch: function(expected, actual) { - var message = arguments[2] || 'assertMatch'; - var regex = new RegExp(expected); - try { (regex.exec(actual)) ? this.pass() : - this.fail(message + ' : regex: "' + Test.Unit.inspect(expected) + ' did not match: ' + Test.Unit.inspect(actual) + '"'); } - catch(e) { this.error(e); } - }, - assertHidden: function(element) { - var message = arguments[1] || 'assertHidden'; - this.assertEqual("none", element.style.display, message); - }, - assertNotNull: function(object) { - var message = arguments[1] || 'assertNotNull'; - this.assert(object != null, message); - }, - assertType: function(expected, actual) { - var message = arguments[2] || 'assertType'; - try { - (actual.constructor == expected) ? this.pass() : - this.fail(message + ': expected "' + Test.Unit.inspect(expected) + - '", actual "' + (actual.constructor) + '"'); } - catch(e) { this.error(e); } - }, - assertNotOfType: function(expected, actual) { - var message = arguments[2] || 'assertNotOfType'; - try { - (actual.constructor != expected) ? this.pass() : - this.fail(message + ': expected "' + Test.Unit.inspect(expected) + - '", actual "' + (actual.constructor) + '"'); } - catch(e) { this.error(e); } - }, - assertInstanceOf: function(expected, actual) { - var message = arguments[2] || 'assertInstanceOf'; - try { - (actual instanceof expected) ? this.pass() : - this.fail(message + ": object was not an instance of the expected type"); } - catch(e) { this.error(e); } - }, - assertNotInstanceOf: function(expected, actual) { - var message = arguments[2] || 'assertNotInstanceOf'; - try { - !(actual instanceof expected) ? this.pass() : - this.fail(message + ": object was an instance of the not expected type"); } - catch(e) { this.error(e); } - }, - assertRespondsTo: function(method, obj) { - var message = arguments[2] || 'assertRespondsTo'; - try { - (obj[method] && typeof obj[method] == 'function') ? this.pass() : - this.fail(message + ": object doesn't respond to [" + method + "]"); } - catch(e) { this.error(e); } - }, - assertReturnsTrue: function(method, obj) { - var message = arguments[2] || 'assertReturnsTrue'; - try { - var m = obj[method]; - if(!m) m = obj['is'+method.charAt(0).toUpperCase()+method.slice(1)]; - m() ? this.pass() : - this.fail(message + ": method returned false"); } - catch(e) { this.error(e); } - }, - assertReturnsFalse: function(method, obj) { - var message = arguments[2] || 'assertReturnsFalse'; - try { - var m = obj[method]; - if(!m) m = obj['is'+method.charAt(0).toUpperCase()+method.slice(1)]; - !m() ? this.pass() : - this.fail(message + ": method returned true"); } - catch(e) { this.error(e); } - }, - assertRaise: function(exceptionName, method) { - var message = arguments[2] || 'assertRaise'; - try { - method(); - this.fail(message + ": exception expected but none was raised"); } - catch(e) { - ((exceptionName == null) || (e.name==exceptionName)) ? this.pass() : this.error(e); - } - }, - assertElementsMatch: function() { - var expressions = $A(arguments), elements = $A(expressions.shift()); - if (elements.length != expressions.length) { - this.fail('assertElementsMatch: size mismatch: ' + elements.length + ' elements, ' + expressions.length + ' expressions'); - return false; - } - elements.zip(expressions).all(function(pair, index) { - var element = $(pair.first()), expression = pair.last(); - if (element.match(expression)) return true; - this.fail('assertElementsMatch: (in index ' + index + ') expected ' + expression.inspect() + ' but got ' + element.inspect()); - }.bind(this)) && this.pass(); - }, - assertElementMatches: function(element, expression) { - this.assertElementsMatch([element], expression); - }, - benchmark: function(operation, iterations) { - var startAt = new Date(); - (iterations || 1).times(operation); - var timeTaken = ((new Date())-startAt); - this.info((arguments[2] || 'Operation') + ' finished ' + - iterations + ' iterations in ' + (timeTaken/1000)+'s' ); - return timeTaken; - }, - _isVisible: function(element) { - element = $(element); - if(!element.parentNode) return true; - this.assertNotNull(element); - if(element.style && Element.getStyle(element, 'display') == 'none') - return false; - - return this._isVisible(element.parentNode); - }, - assertNotVisible: function(element) { - this.assert(!this._isVisible(element), Test.Unit.inspect(element) + " was not hidden and didn't have a hidden parent either. " + ("" || arguments[1])); - }, - assertVisible: function(element) { - this.assert(this._isVisible(element), Test.Unit.inspect(element) + " was not visible. " + ("" || arguments[1])); - }, - benchmark: function(operation, iterations) { - var startAt = new Date(); - (iterations || 1).times(operation); - var timeTaken = ((new Date())-startAt); - this.info((arguments[2] || 'Operation') + ' finished ' + - iterations + ' iterations in ' + (timeTaken/1000)+'s' ); - return timeTaken; - } -}; - -Test.Unit.Testcase = Class.create(); -Object.extend(Object.extend(Test.Unit.Testcase.prototype, Test.Unit.Assertions.prototype), { - initialize: function(name, test, setup, teardown) { - Test.Unit.Assertions.prototype.initialize.bind(this)(); - this.name = name; - - if(typeof test == 'string') { - test = test.gsub(/(\.should[^\(]+\()/,'#{0}this,'); - test = test.gsub(/(\.should[^\(]+)\(this,\)/,'#{1}(this)'); - this.test = function() { - eval('with(this){'+test+'}'); - } - } else { - this.test = test || function() {}; - } - - this.setup = setup || function() {}; - this.teardown = teardown || function() {}; - this.isWaiting = false; - this.timeToWait = 1000; - }, - wait: function(time, nextPart) { - this.isWaiting = true; - this.test = nextPart; - this.timeToWait = time; - }, - run: function() { - try { - try { - if (!this.isWaiting) this.setup.bind(this)(); - this.isWaiting = false; - this.test.bind(this)(); - } finally { - if(!this.isWaiting) { - this.teardown.bind(this)(); - } - } - } - catch(e) { this.error(e); } - } -}); - -// *EXPERIMENTAL* BDD-style testing to please non-technical folk -// This draws many ideas from RSpec http://rspec.rubyforge.org/ - -Test.setupBDDExtensionMethods = function(){ - var METHODMAP = { - shouldEqual: 'assertEqual', - shouldNotEqual: 'assertNotEqual', - shouldEqualEnum: 'assertEnumEqual', - shouldBeA: 'assertType', - shouldNotBeA: 'assertNotOfType', - shouldBeAn: 'assertType', - shouldNotBeAn: 'assertNotOfType', - shouldBeNull: 'assertNull', - shouldNotBeNull: 'assertNotNull', - - shouldBe: 'assertReturnsTrue', - shouldNotBe: 'assertReturnsFalse', - shouldRespondTo: 'assertRespondsTo' - }; - var makeAssertion = function(assertion, args, object) { - this[assertion].apply(this,(args || []).concat([object])); - }; - - Test.BDDMethods = {}; - $H(METHODMAP).each(function(pair) { - Test.BDDMethods[pair.key] = function() { - var args = $A(arguments); - var scope = args.shift(); - makeAssertion.apply(scope, [pair.value, args, this]); }; - }); - - [Array.prototype, String.prototype, Number.prototype, Boolean.prototype].each( - function(p){ Object.extend(p, Test.BDDMethods) } - ); -}; - -Test.context = function(name, spec, log){ - Test.setupBDDExtensionMethods(); - - var compiledSpec = {}; - var titles = {}; - for(specName in spec) { - switch(specName){ - case "setup": - case "teardown": - compiledSpec[specName] = spec[specName]; - break; - default: - var testName = 'test'+specName.gsub(/\s+/,'-').camelize(); - var body = spec[specName].toString().split('\n').slice(1); - if(/^\{/.test(body[0])) body = body.slice(1); - body.pop(); - body = body.map(function(statement){ - return statement.strip() - }); - compiledSpec[testName] = body.join('\n'); - titles[testName] = specName; - } - } - new Test.Unit.Runner(compiledSpec, { titles: titles, testLog: log || 'testlog', context: name }); -}; \ No newline at end of file diff --git a/apps/maarch_entreprise/template/documents_list_search_adv.html b/apps/maarch_entreprise/template/documents_list_search_adv.html index ae33a90ae68db6ea59aaeaaf0f77ccfff892caa0..35aec327338ea392e2664c5bf2150b5332d73b33 100644 --- a/apps/maarch_entreprise/template/documents_list_search_adv.html +++ b/apps/maarch_entreprise/template/documents_list_search_adv.html @@ -202,12 +202,7 @@ Mods <br/> <script> - $$('#container')[0].setAttribute('style', 'width: 90%; min-width: 1000px;'); - $$('#content')[0].setAttribute('style', 'width: auto; min-width: 1000px;'); - //$$('#inner_content')[0].setAttribute('style', 'width: auto; min-width: 1000px;'); - $$('table#extended_list')[0].setAttribute('style', 'width: 100%; min-width: 900px; margin: 0;'); - /* - // liste condensée - $$('table.listing')[0].setAttribute('style', 'width: 100%; min-width: 900px;'); - */ + $j('#container').attr('style', 'width: 90%; min-width: 1000px;'); + $j('#content').attr('style', 'width: auto; min-width: 1000px;'); + $j('table#extended_list').attr('style', 'width: 100%; min-width: 900px; margin: 0;'); </script> \ No newline at end of file diff --git a/apps/maarch_entreprise/template/documents_list_with_attachments.html b/apps/maarch_entreprise/template/documents_list_with_attachments.html index db0ac81a931f26308ba3dd846fa1ce357a779f4e..5c4229dd3aa84e0dd07c2d91f5a1eefabe4fda17 100644 --- a/apps/maarch_entreprise/template/documents_list_with_attachments.html +++ b/apps/maarch_entreprise/template/documents_list_with_attachments.html @@ -203,12 +203,8 @@ Mods <br/> <script> - $$('#container')[0].setAttribute('style', 'width: 90%; min-width: 1000px;'); - $$('#content')[0].setAttribute('style', 'width: auto; min-width: 1000px;'); - $$('#inner_content')[0].setAttribute('style', 'width: auto; min-width: 1000px;'); - $$('table#extended_list')[0].setAttribute('style', 'width: 100%; min-width: 900px; margin: 0;'); - /* - // liste condensée - $$('table.listing')[0].setAttribute('style', 'width: 100%; min-width: 900px;'); - */ + $j('#container').attr('style', 'width: 90%; min-width: 1000px;'); + $j('#content').attr('style', 'width: auto; min-width: 1000px;'); + $j('#inner_content').attr('style', 'width: auto; min-width: 1000px;'); + $j('table#extended_list').attr('style', 'width: 100%; min-width: 900px; margin: 0;'); </script> \ No newline at end of file diff --git a/apps/maarch_entreprise/xml/index_letterbox.xml b/apps/maarch_entreprise/xml/index_letterbox.xml index bbd2142df9165990f7d0677ccf20ed3bbe8d2b48..f9cc8b2accce6a345cd44d6739d73e8e350f7617 100755 --- a/apps/maarch_entreprise/xml/index_letterbox.xml +++ b/apps/maarch_entreprise/xml/index_letterbox.xml @@ -22,14 +22,6 @@ <label>PO#</label> <type>string</type> <img>arrow-right</img> - <table> - <table_name>doctypes</table_name> - <foreign_key>type_id</foreign_key> - <foreign_label>description</foreign_label> - <where_clause>enabled = 'Y'</where_clause> - <order>order by description</order> - </table> - <default_value></default_value> </INDEX> <INDEX> <column>custom_t2</column> diff --git a/core/class/resources_controler.php b/core/class/resources_controler.php index 453a4ac6ace73d00f9984aff3e2d40d31ffb224b..610172838ab3bdec1f3adcf6c8a16b2c3a0f25c8 100755 --- a/core/class/resources_controler.php +++ b/core/class/resources_controler.php @@ -115,7 +115,8 @@ class resources_controler $data, $storeResult['docserver_id'], $status, - $fileFormat + $fileFormat, + $table ); unlink($Fnm); //var_dump($data);exit; @@ -156,7 +157,7 @@ class resources_controler } } - private function prepareStorage($data, $docserverId, $status, $fileFormat) + private function prepareStorage($data, $docserverId, $status, $fileFormat, $table) { $statusFound = false; $typistFound = false; @@ -165,6 +166,7 @@ class resources_controler $userPrimaryEntity = false; $destinationFound = false; $initiatorFound = false; + $attachmentTypeFound = false; $db = new Database(); for ($i=0;$i<count($data);$i++) { if (strtoupper($data[$i]['type']) == 'INTEGER' || strtoupper($data[$i]['type']) == 'FLOAT') { @@ -217,6 +219,9 @@ class resources_controler } } + if (strtoupper($data[$i]['column']) == strtoupper('attachment_type')) { + $attachmentTypeFound = true; + } } if (!$typistFound && !$toAddressFound) { array_push( @@ -307,7 +312,19 @@ class resources_controler ) ); } - } + } + + if (!$attachmentTypeFound && $table == 'res_attachments') { + array_push( + $data, + array( + 'column' => 'attachment_type', + 'value' => 'simple_attachment', + 'type' => 'string', + ) + ); + } + array_push( $data, array( diff --git a/modules/attachments/choose_attachment.php b/modules/attachments/choose_attachment.php index a26f2b2b2272d865e88e2ebb779f68e2d7141524..80bdbc019837751c0d485996d3217811f7461aae 100644 --- a/modules/attachments/choose_attachment.php +++ b/modules/attachments/choose_attachment.php @@ -94,16 +94,16 @@ $upFileOK = false; <?php if (!empty($_SESSION['upfile']['local_path']) && empty($_SESSION['error'])) { ?> <i class="fa fa-check-square fa-2x" title="<?php echo _DOWNLOADED_FILE; ?>"></i> - <input type="button" id="fileButton" onclick="$$('#file')[0].click();" class="button" + <input type="button" id="fileButton" onclick="$j('#file').click();" class="button" value="<?php if($_REQUEST['with_file'] == 'true'){ echo _WITHOUT_FILE; } else {echo $_FILES['file']['name']; }?>" title="<?php if($_REQUEST['with_file'] == 'true'){ echo _WITHOUT_FILE; } else {echo $_FILES['file']['name']; }?>" style="width: 85%;margin: 0px;margin-top: -10px;font-size: 12px;text-align: center;text-overflow: ellipsis;overflow: hidden;"> <?php } elseif (!empty($_SESSION['error'])) { ?> <i class="fa fa-remove fa-2x" title="<?php echo $_SESSION['error']; ?>"></i> - <input type="button" id="fileButton" onclick="$$('#file')[0].click();" class="button" value="<?php echo $_SESSION['error']; ?>" style="width: 85%;margin: 0px;margin-top: -10px;font-size: 12px;text-align: center;text-overflow: ellipsis;overflow: hidden;"> + <input type="button" id="fileButton" onclick="$j('#file').click();" class="button" value="<?php echo $_SESSION['error']; ?>" style="width: 85%;margin: 0px;margin-top: -10px;font-size: 12px;text-align: center;text-overflow: ellipsis;overflow: hidden;"> <?php } else { ?> <i class="fa fa-remove fa-2x" title="<?php echo _NO_FILE_SELECTED; ?>"></i> - <input type="button" id="fileButton" onclick="$$('#file')[0].click();" class="button" value="<?php echo _CHOOSE_FILE; ?>" style="width: 85%;margin: 0px;margin-top: -10px;font-size: 12px;text-align: center;text-overflow: ellipsis;overflow: hidden;"> + <input type="button" id="fileButton" onclick="$j('#file').click();" class="button" value="<?php echo _CHOOSE_FILE; ?>" style="width: 85%;margin: 0px;margin-top: -10px;font-size: 12px;text-align: center;text-overflow: ellipsis;overflow: hidden;"> <?php } ?> <p style="display:none"> <!-- window.parent.$('title').value = this.value.substring(0,this.value.indexOf('.')); --> diff --git a/modules/attachments/del_attachment.php b/modules/attachments/del_attachment.php index be8cb7277d5aeb44e5cb078771ed2c8958dd3731..37abd964e4054f7a0b94f186199011d1803321e1 100644 --- a/modules/attachments/del_attachment.php +++ b/modules/attachments/del_attachment.php @@ -156,18 +156,6 @@ if ($stmt->rowCount() > 0) { var document_type = '<?php functions::xecho($info_doc['attachment_type']); ?>'; var is_version = '<?php functions::xecho($is_version); ?>'; - if(window.parent.top.document.getElementById('ans_'+num_rep+'_'+res_id_doc)) { - var tab = window.parent.top.document.getElementById('tabricatorRight'); - if(document_type == 'signed_response'){ - window.parent.top.document.getElementById('ans_'+num_rep+'_'+res_id_doc).innerHTML = "<?php echo $attach_type; ?><sup><span class=\"\" style=\"\" id=\"\"></span></sup>"; - window.parent.top.document.getElementById('ans_'+num_rep+'_'+res_id_doc).setAttribute('onclick','updateFunctionModifRep(\'<?php echo $document_id; ?>\', '+num_rep+', '+is_version+')'); - window.parent.top.document.getElementById('ans_'+num_rep+'_'+res_id_doc).id = 'ans_'+num_rep+'_<?php echo $document_id; ?>'; - - }else{ - tab.removeChild(window.parent.top.document.getElementById('ans_'+num_rep+'_'+res_id_doc)); - } - - } if(window.parent.top.document.getElementById('content_'+num_rep+'_'+res_id_doc)) { var tab = window.parent.top.document.getElementById('tabricatorRight'); @@ -184,26 +172,6 @@ if ($stmt->rowCount() > 0) { } - if (window.parent.top.document.getElementById("sign_link")){ - window.parent.top.document.getElementById("sign_link").style.display = ''; - window.parent.top.document.getElementById("sign_link").setAttribute('onclick','signFile(<?php echo $document_id; ?>,'+is_version+',2);'); - window.parent.top.document.getElementById("sign_link").style.color = '#666'; - window.parent.top.document.getElementById("sign_link_img").src = 'static.php?filename=sign.png'; - window.parent.top.document.getElementById("sign_link_img").title= 'Signer ces projets de réponse (sans certificat)'; - window.parent.top.document.getElementById("sign_link_img").style.cursor = 'pointer'; - window.parent.top.document.getElementById("sign_link").removeAttribute('disabled'); - window.parent.top.document.getElementById("sign_link").removeAttribute('href'); - } - - if (window.parent.top.document.getElementById("update_rep_link")) { - window.parent.top.document.getElementById("update_rep_link").style.display = ''; - console.log("is_version = "+is_version); - /*if (is_version == 2) document.getElementById("update_rep_link").style.display = 'none'; - else */if (is_version != 1) window.parent.top.document.getElementById("update_rep_link").setAttribute('onclick','modifyAttachmentsForm(\'index.php?display=true&module=attachments&page=attachments_content&id=<?php echo $document_id; ?>&relation=1&fromDetail=\',\'98%\',\'auto\');'); - else window.parent.top.document.getElementById("update_rep_link").setAttribute('onclick','modifyAttachmentsForm(\'index.php?display=true&module=attachments&page=attachments_content&id=<?php echo $document_id; ?>&relation=2&fromDetail=\',\'98%\',\'auto\');'); - - } - } var eleframe1 = parent.document.getElementsByName('list_attach'); diff --git a/modules/attachments/js/functions.js b/modules/attachments/js/functions.js index c527c68d4c037ee2eb201fc757fad15c5b999105..97c60ab454efc1f6219306694e0dbaf009f95de7 100644 --- a/modules/attachments/js/functions.js +++ b/modules/attachments/js/functions.js @@ -1,8 +1,7 @@ // Date + 60 jours, utile pour les transmissions function defineBackDate() { - var delay; var date1 = new Date(); - delay = $('withDelay').value + var delay = $j('#withDelay')[0].value; date1.setDate(date1.getDate() + Number(delay)); var str_date = date1.toLocaleDateString(); var t = str_date.split('/'); @@ -175,7 +174,6 @@ function addNewTransmission(prePath, docId, canCreateContact, langString, user) var div = document.createElement('div'); $('transmission').appendChild(div); size = $('transmission').childElementCount; - //var lang = langString.split("#"); $('newTransmissionButton' + (size - 1)).style.display = "none"; $("divOr" + (size - 1)).style.display = "none"; @@ -272,70 +270,26 @@ function getTemplatesForSelect(path_to_script, attachment_type, selectToChange) { method:'post', parameters: {attachment_type: attachment_type}, - onSuccess: function(answer){ + onSuccess: function(answer) { $(selectToChange).innerHTML = answer.responseText; } }); } -function hide_index(mode_hide, display_val) -{ - var tr_link = $('attach_link_tr'); - var tr_title = $('attach_title_tr'); - var indexes = $('indexing_fields'); - var comp_index = $('comp_indexes'); - if(mode_hide == true) - { - if(tr_link && display_val) - { - Element.setStyle(tr_link, {display : display_val}); - Element.setStyle(tr_title, {display : display_val}); - } - if(indexes) - { - Element.setStyle(indexes, {display : 'none'}); - } - if(comp_index) - { - Element.setStyle(comp_index, {display : 'none'}); - } - //show link and hide index - } - else - { - if(tr_link && display_val) - { - Element.setStyle(tr_link, {display : 'none'}); - Element.setStyle(tr_title, {display : 'none'}); - } - if(indexes) - { - Element.setStyle(indexes, {display : display_val}); - - } - if(comp_index) - { - Element.setStyle(comp_index, {display : 'block'}); - } - //hide link and show index - } -} - function showAttachmentsForm(path, width, height) { - if(typeof(width)==='undefined'){ - var width = '800'; + width = '800'; } - + if(typeof(height)==='undefined'){ - var height = '480'; + height = '480'; } - new Ajax.Request(path, { method:'post', - parameters: { url : path - }, + parameters: { + url : path + }, onSuccess: function(answer) { eval("response = "+answer.responseText); @@ -350,7 +304,7 @@ function showAttachmentsForm(path, width, height) { } function get_num_rep(res_id){ - trig_elements = document.getElementsByClassName('trig'); + var trig_elements = document.getElementsByClassName('trig'); for (i=0; i<trig_elements.length; i++){ var id = trig_elements[i].id; var splitted_id = id.split("_"); @@ -360,7 +314,6 @@ function get_num_rep(res_id){ } function ValidAttachmentsForm(path, form_id, fromAngular) { - //console.log(Form.serialize(form_id)); new Ajax.Request(path, { asynchronous: false, @@ -416,18 +369,6 @@ function ValidAttachmentsForm(path, form_id, fromAngular) { $('viewframevalidRep' + num_rep + '_' + rep_id).src = $('viewframevalidRep' + num_rep + '_' + rep_id).src; } - if ($('ans_' + num_rep + '_' + rep_id)) { - $('ans_' + num_rep + '_' + rep_id).innerHTML = response.title; - if (response.isVersion) { - $('ans_' + num_rep + '_' + rep_id).setAttribute('onclick', 'updateFunctionModifRep(\'' + response.majFrameId + '\', ' + num_rep + ', ' + response.isVersion + ');'); - $('ans_' + num_rep + '_' + rep_id).id = 'ans_' + num_rep + '_' + response.majFrameId; - } - } - - if ($('cur_idAffich')) { - console.log('test refresh'); - loadNewId2('index.php?display=true&module=visa&page=update_visaPage', res_id_master, $('coll_id').value); - } eval(response.exec_js); } } else { @@ -438,14 +379,13 @@ function ValidAttachmentsForm(path, form_id, fromAngular) { } function modifyAttachmentsForm(path, width, height) { - if(typeof(width)==='undefined'){ - var width = '800'; + width = '800'; } - + if(typeof(height)==='undefined'){ - var height = '480'; - } + height = '480'; + } new Ajax.Request(path, { @@ -467,8 +407,6 @@ function modifyAttachmentsForm(path, width, height) { function setFinalVersion(path) { -var check = $('final').value; - new Ajax.Request(path, { asynchronous:false, @@ -486,8 +424,8 @@ var check = $('final').value; } function loadSelectedContact() { - ContactAndAddress = $('selectContactIdRes').value; - value = ContactAndAddress.split("#"); + var ContactAndAddress = $('selectContactIdRes').value; + var value = ContactAndAddress.split("#"); $('contactidAttach').value=value[0]; $('addressidAttach').value=value[1]; $('contact_attach').value=value[2]; @@ -557,10 +495,8 @@ function setButtonStyle(radioButton, fileFormat, statusValidateButton) { } } - function cleanTitle(str) { //permet de supprimer les # dans le titre qui bloque l'ouverture de l'applet java var res = str.replace(/#/g, " "); return(res); } - diff --git a/modules/avis/documents_list_with_avis.php b/modules/avis/documents_list_with_avis.php index c984327ba906057e591d600fa9fd346f119d70ad..75761dca2e19eea6beac76468775d380e70cff1e 100755 --- a/modules/avis/documents_list_with_avis.php +++ b/modules/avis/documents_list_with_avis.php @@ -582,10 +582,7 @@ $status = 0; $content = $list->showList($tab, $paramsTab, $listKey, $_SESSION['current_basket']); // $debug = $list->debug(false); -$content .= "<script>$$('#container')[0].setAttribute('style', 'width: 90%; min-width: 1000px;');". - "$$('#content')[0].setAttribute('style', 'width: auto; min-width: 1000px;');". - "$$('#inner_content')[0].setAttribute('style', 'width: auto; min-width: 1000px;');". - // "$$('table#extended_list')[0].setAttribute('style', 'width: 100%; min-width: 900px; margin: 0;');". - "</script>"; +$content .= '<script>$j(\'#container\').attr(\'style\', \'width: 90%; min-width: 1000px;\');$j(\'#content\').attr(\'style\', \'width: auto; min-width: 1000px;\');'; +$content .= '$j(\'#inner_content\').attr(\'style\', \'width: auto; min-width: 1000px;\');</script>'; echo "{'status' : " . $status . ", 'content' : '" . addslashes($debug.$content) . "', 'error' : '" . addslashes(functions::xssafe($error)) . "'}"; diff --git a/modules/basket/class/class_admin_basket_Abstract.php b/modules/basket/class/class_admin_basket_Abstract.php index f8d11334f6aaf11b77ffefad42036f11710b1260..35f72b161ef52404ce5ef7d43b7b30cb1a50d446 100644 --- a/modules/basket/class/class_admin_basket_Abstract.php +++ b/modules/basket/class/class_admin_basket_Abstract.php @@ -345,9 +345,9 @@ abstract class admin_basket_Abstract extends Database <?php } ?> <p style="text-align:center;"> - <i class="fa fa-search fa-2x" id="is_visible_only_on_search_icon" title="<?php echo _BASKET_VISIBLE_ONLY_ON_SEARCH;?>" style="<?php echo $css; ?>" onclick="$$('#is_visible_only_on_search')[0].click();"></i> + <i class="fa fa-search fa-2x" id="is_visible_only_on_search_icon" title="<?php echo _BASKET_VISIBLE_ONLY_ON_SEARCH;?>" style="<?php echo $css; ?>" onclick="$j('#is_visible_only_on_search').click();"></i> <?php if ($core_tools->is_module_loaded('folder')) { ?> - <i class="fa fa-folder-o fa-2x" id="is_folder_basket_icon" title="<?php echo _IS_FOLDER_BASKET;?>" style="<?php echo $css2; ?>" onclick="$$('#is_folder_basket')[0].click();"></i> + <i class="fa fa-folder-o fa-2x" id="is_folder_basket_icon" title="<?php echo _IS_FOLDER_BASKET;?>" style="<?php echo $css2; ?>" onclick="$j('#is_folder_basket').click();"></i> <?php } ?> <?php if ($core_tools->is_module_loaded('notifications')) { if ($_SESSION['m_admin']['basket']['flag_notif'] === 'Y'){ @@ -355,7 +355,7 @@ abstract class admin_basket_Abstract extends Database }else{ $css2='color:rgb(102, 102, 102);cursor:pointer;'; }?> - <i class="fa fa-bell-o fa-2x" id="flag_notif_icon" title="<?php echo _ACTIVATE_NOTIFICATION;?>" style="<?php echo $css2; ?>" onclick="$$('#flag_notif')[0].click();"></i> + <i class="fa fa-bell-o fa-2x" id="flag_notif_icon" title="<?php echo _ACTIVATE_NOTIFICATION;?>" style="<?php echo $css2; ?>" onclick="$j('#flag_notif').click();"></i> <?php } ?> </p> <p class="buttons" style="text-align:center;"> diff --git a/modules/basket/groupbasket_popup.php b/modules/basket/groupbasket_popup.php index fe27d75b6f0cc268a99f7834cd9009fe2567c249..dc10f8598c51f24c900f21026f97ebaa95716ca4 100644 --- a/modules/basket/groupbasket_popup.php +++ b/modules/basket/groupbasket_popup.php @@ -239,7 +239,7 @@ $time = $core_tools->get_session_time_expire(); echo '<li style="margin-top:5px;"><i style="font-weight:bold;font-style: italic;">'.ucfirst($module_name).'</i><ul>'; foreach ($actions_ids as $key => $action_id) { ?> - <li><input type="checkbox" name="actions[]" value="<?php functions::xecho($action_id['ID']);?>" class="check group_action" id="checkbox_<?php functions::xecho($action_id['ID']); ?>" onclick="$$('#action_<?php functions::xecho($action_id['ID']); ?>_page_use')[0].click();show_config_action(<?php functions::xecho($action_id['ID']);?>, true, <?php if(!empty($action_id['ID'])){ echo 'true';}else{ echo 'false';}?>);" <?php + <li><input type="checkbox" name="actions[]" value="<?php functions::xecho($action_id['ID']);?>" class="check group_action" id="checkbox_<?php functions::xecho($action_id['ID']); ?>" onclick="$j('#action_<?php functions::xecho($action_id['ID']); ?>_page_use').click();show_config_action(<?php functions::xecho($action_id['ID']);?>, true, <?php if(!empty($action_id['ID'])){ echo 'true';}else{ echo 'false';}?>);" <?php if (isset($action_id['ID']) && $bask->is_action_defined_for_the_group( $action_id['ID'], @@ -334,7 +334,7 @@ $time = $core_tools->get_session_time_expire(); </form> </div> </div> -<script type="text/javascript">$$('select').each(function(element) { new Chosen(element,{width: "226px", disable_search_threshold: 10,search_contains: true}); });</script> +<script type="text/javascript">$j('select').each(function(i, element) { new Chosen(element,{width: "226px", disable_search_threshold: 10,search_contains: true}); });</script> </body> </html> diff --git a/modules/basket/js/functions.js b/modules/basket/js/functions.js index 52b69fdbed283ff27ec3471114c3206060c8c483..9337a9304bfb9d999d359871da531097d0daa1d6 100644 --- a/modules/basket/js/functions.js +++ b/modules/basket/js/functions.js @@ -1,10 +1,7 @@ -//document.write('<script type="text/javascript" src="js/scrollbox.js"></script>'); - function show_config_action( id_action, inside_scrollbox, show_when_disabled) { - //var div_to_show = $('action_'+id_action); - var chkbox = $('checkbox_'+id_action) + var chkbox = $('checkbox_'+id_action); if(chkbox && (chkbox.disabled == false || show_when_disabled == true) ) { @@ -25,7 +22,7 @@ var actions_uses = $(id_action+'_actions_uses'); actions_uses.style.display = 'none'; } - for(i=0; i < childs.length; i++) + for(var i=0; i < childs.length; i++) { if(childs[i].id=='action_'+id_action) { @@ -42,17 +39,6 @@ } - function check_this_box( id_box) - { - var to_check = $(id_box); - - if(to_check && to_check.disabled == false) - { - to_check.checked = 'checked'; - } - } - - function manage_actions(id, inside_scrollbox, path_manage_script) { var hide_other_actions = false; @@ -141,7 +127,7 @@ { var childs = main_div.firstChild.childNodes; } - for(i=0; i < childs.length; i++) + for(var i=0; i < childs.length; i++) { childs[i].style.display = 'none'; } @@ -179,7 +165,6 @@ function check_form_baskets(id_form) { if(reg_user.test(elems[i].value)) { - //return 1; // Ok found = true; } else @@ -216,7 +201,6 @@ function check_form_baskets(id_form) function check_form_baskets_secondary(id_form) { var form = $(id_form); - var reg_user = new RegExp("^.+, .+ (.+)$"); if (typeof(form) != 'undefined') { var found = false; var elems = document.getElementsByTagName('INPUT'); @@ -246,7 +230,6 @@ function check_form_baskets_secondary(id_form) function valid_actions_param(id_form) { var frm = $(id_form); - //var reg_chosen = new RegExp("_chosen$"); var selects = frm.getElementsByTagName('select'); //Array for(var i=0; i< selects.length;i++) { @@ -257,39 +240,6 @@ function valid_actions_param(id_form) } } -function moveInWF(way, collId, resId, role, userId) -{ - if (way != '' && collId != '' && resId != '' && role != '' && userId != '') { - //~ console.log(way); - //~ console.log(collId); - //~ console.log(resId); - //~ console.log(role); - //~ console.log(userId); - new Ajax.Request( - 'index.php?display=true&module=basket&page=ajaxMoveInWF&display=true', - { - method:'post', - asynchronous : false, - parameters: { - way : way, - collId : collId, - resId : resId, - role : role, - userId : userId - }, - onSuccess: function(answer) { - eval('response=' + answer.responseText); - if (response.status > 0) { - window.alert(response.error_txt); - } else { - //$('send').click(); - } - } - } - ); - } -} - function simpleAjaxReturn(url){ new Ajax.Request(url, { diff --git a/modules/cases/js/functions.js b/modules/cases/js/functions.js index b4c80cfc86361edf3ff8f4aab8a215126f112c39..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100755 --- a/modules/cases/js/functions.js +++ b/modules/cases/js/functions.js @@ -1,21 +0,0 @@ -function unlink_case(path_manage_script,case_id,res_id){ - new Ajax.Request(path_manage_script, - { - method:'post', - parameters: { - case_id : case_id, - res_id : res_id, - }, - onSuccess: function(answer){ - eval('response='+answer.responseText); - if(response){ - window.location.href='index.php?page=details&dir=indexing_searching&id='+res_id; - }else{ - alert('Something went wrong...'); - } - }, - onFailure: function(){ - alert('Something went wrong...'); - } - }); -} \ No newline at end of file diff --git a/modules/entities/js/functions.js b/modules/entities/js/functions.js index 5f76a9c8964b319ecc2bcc5df3f4235d3436c085..37462fb2ea1f7121adaffdde265295a2139c183d 100644 --- a/modules/entities/js/functions.js +++ b/modules/entities/js/functions.js @@ -85,34 +85,6 @@ function change_entity( } } -// Load list of listmodels to fill select list (index, validate) -// >>> type of list (entity_id, type_id, custom list type) -// >>> type of element to fill (select or list) -// >>> id of element to fill -function select_listmodels( - objectType, - returnElementType, - returnElementId -) { - new Ajax.Request( - 'index.php?display=true&module=entities&page=select_listmodels', - { - method:'post', - parameters: { - objectType : objectType, - returnElementType : returnElementType - }, - onSuccess: function(answer) - { - var returnElement = $(returnElementId); - if(returnElement != null && returnElement.nodeName.toUpperCase() == returnElementType.toUpperCase()) { - returnElement.innerHTML += answer.responseText; - } - } - } - ); -} - // Load listmodel to session[origin] // >>> type of list (entity_id, type_id, custom list type) // >>> id of list (entity_id, type_id, custom id) @@ -293,15 +265,7 @@ function validate_difflist_type() { } -function saveListDiff( - mode, - table, - collId, - resId, - userId, - concatList, - onlyCC -) { +function saveListDiff(mode, table, collId, resId, userId, concatList, onlyCC) { new Ajax.Request( 'index.php?display=true&module=entities&page=save_list_diff', { @@ -317,9 +281,7 @@ function saveListDiff( }, onSuccess: function(answer){ eval("response = "+answer.responseText); - //alert(answer.responseText); if (response.status == 0) { - //alert(window.opener.document); var div_diff_list_message = $('div_diff_list_message'); if (div_diff_list_message != null) { div_diff_list_message.innerHTML = response.div_content; diff --git a/modules/fileplan/js/functions.js b/modules/fileplan/js/functions.js index 8ede96ec61abad29d8908a7c6f1bd68d4d9e7d0a..6ade855c9dad4778424c78b991f3bb3cd1b4180c 100644 --- a/modules/fileplan/js/functions.js +++ b/modules/fileplan/js/functions.js @@ -1,24 +1,21 @@ function showFileplanForm (path, extraValues, width, height) { if(typeof(width)==='undefined'){ - var width = '500px'; + width = '500px'; } if(typeof(height)==='undefined'){ - var height = '230px'; - } + height = '230px'; + } if ($('divList')) { $('divList').style.display = 'none'; } new Ajax.Request(path, { method:'post', - parameters: { url : path, - 'values[]': extraValues - }, - onLoading: function(answer) { - //show loading - // $('loading').style.display='block'; - }, + parameters: { + url : path, + 'values[]': extraValues + }, onSuccess: function(answer) { eval("response = "+answer.responseText); if(response.status == 0){ @@ -28,7 +25,6 @@ function showFileplanForm (path, extraValues, width, height) { } else { window.top.$('main_error').innerHTML = response.error; } - // $('loading').style.display='none'; } }); } @@ -41,9 +37,6 @@ function validFileplanForm(path, form_id) { method:'post', parameters: Form.serialize(form_id), encoding: 'UTF-8', - onLoading: function(answer) { - // $('loading').style.display='inline'; - }, onSuccess: function(answer) { eval("response = "+answer.responseText); if(response.status == 0){ @@ -51,7 +44,6 @@ function validFileplanForm(path, form_id) { } else { alert(response.error); } - // $('loading').style.display='none'; } }); } @@ -63,9 +55,6 @@ function execFileplanScript(path) { method:'post', parameters: { url : path }, - onLoading: function(answer) { - // $('loading').style.display='block'; - }, onSuccess: function(answer){ eval("response = "+answer.responseText); if(response.status == 0){ @@ -73,7 +62,6 @@ function execFileplanScript(path) { } else { window.top.$('main_error').innerHTML = response.error; } - // $('loading').style.display='none'; } }); } @@ -81,7 +69,7 @@ function execFileplanScript(path) { function planIsChecked(idForm, fieldName) { if(typeof(fieldName)==='undefined'){ - var fieldName = 'field[]'; + fieldName = 'field[]'; } var count = 0; var thisForm = document.getElementById(idForm); @@ -90,7 +78,6 @@ function planIsChecked(idForm, fieldName) { if(thisForm.elements[i].checked == true) count ++; } } - // alert(count); var oneIsChecked = (count > 0) ? true: false; return oneIsChecked; @@ -99,9 +86,8 @@ function planIsChecked(idForm, fieldName) { function getFieldsCheckedValues(idForm, fieldName) { if(typeof(fieldName)==='undefined'){ - var fieldName = 'field[]'; + fieldName = 'field[]'; } - // var checkedValues = ''; var checkedValues = []; var thisForm = document.getElementById(idForm); @@ -109,17 +95,14 @@ function getFieldsCheckedValues(idForm, fieldName) { if (thisForm.elements[i].type == 'checkbox' && thisForm.elements[i].name == fieldName) { if(thisForm.elements[i].checked == true) checkedValues.push(thisForm.elements[i].value); - // checkedValues += thisForm.elements[i].value + ','; } } - // alert(checkedValues); return checkedValues; } function showFileplanList(path, idForm, width, height, error) { var isChecked = planIsChecked(idForm); - // alert(isChecked); if(isChecked == true) { var checkedValues = getFieldsCheckedValues(idForm); @@ -140,9 +123,10 @@ function loadFileplanList(idField, idList, path) { new Ajax.Request(path, { method:'post', - parameters: { url : path, - param: fieldValue, - }, + parameters: { + url : path, + param: fieldValue + }, onLoading: function(answer) { //show loading $('loadingFileplan').style.display='block'; diff --git a/modules/folder/js/functions.js b/modules/folder/js/functions.js index ce51879ff95d3a02c287db53c18587bcd7a4d3dc..b9327903012469494a9f64d625f9f41df8e5b204 100644 --- a/modules/folder/js/functions.js +++ b/modules/folder/js/functions.js @@ -1,49 +1,3 @@ -/** - * Fill the Folder field in indexing page (basing on the subfolder field value) - * - * @param path_to_script String Path to the Ajax script - **/ -function fill_folder(path_to_script) -{ - var subfolder_value = $('subfolder').value; - var subfolder_id = subfolder_value.substring(subfolder_value.indexOf('(')+1, subfolder_value.indexOf(')')); - //console.log(subfolder_id); - if(path_to_script) - { - new Ajax.Request(path_to_script, - { - method:'post', - parameters: - { - id_subfolder : subfolder_id - }, - onSuccess: function(answer){ - eval("response = "+answer.responseText); - //alert(answer.responseText); - if(response.status == 0 ) - { - $('folder').value = response.value; - } - else - { - if(console) - { - console.log('Erreur Ajax'); - } - } - } - }); - } - else - { - if(console) - { - console.log('Error fill_folder '); - } - } -} - - function valid_viewfolder(url) { var type_choice = ''; @@ -106,71 +60,6 @@ function valid_viewfolder(url) date_fin : datefin }, onSuccess: function(answer){ - // alert(answer.responseText); - var div_to_fill = $('result_folderviewstat'); - div_to_fill.innerHTML = answer.responseText; - } - }); - } -} - -function valid_histfolder(url) -{ - var type_choice = ''; - var action_id = ''; - var datestart = ''; - var datefin = ''; - var error = ''; - var input = $('folder_id'); - var period_item = $('period'); - var action_item = $('action'); - if(input) - { - id_folder = input.value; - } - - if(period_item && period_item.checked) - { - type_choice = 'period'; - var datestart_item = $('datestart'); - if(datestart_item) - { - datestart = datestart_item.value; - } - var datefin_item = $('datefin'); - if(datefin_item) - { - datefin = datefin_item.value; - } - } - else if(action_item && action_item.checked) - { - type_choice = 'action'; - var actions_list = $('action_id'); - //console.log(actions_list); - if(actions_list) - { - action_id = actions_list.options[actions_list.selectedIndex].value; - } - } - else - { - error = 'empty_type_choice'; - } - if(type_choice != '' && url && error == '' ) - { - new Ajax.Request(url, - { - method:'post', - parameters: { - type_report : type_choice, - date_start : datestart, - date_fin : datefin, - id_action : action_id, - folder_id : id_folder - }, - onSuccess: function(answer){ - // alert(answer.responseText); var div_to_fill = $('result_folderviewstat'); div_to_fill.innerHTML = answer.responseText; } @@ -193,15 +82,15 @@ function get_folder_index(url, foldertype, id_div) method:'post', parameters: { foldertype_id : foldertype - }, - onSuccess: function(answer){ - var div_to_fill = $(id_div); - // console.log(div_to_fill); - if(div_to_fill) - { - div_to_fill.innerHTML = answer.responseText; - } - } + }, + onSuccess: function(answer){ + var div_to_fill = $(id_div); + + if(div_to_fill) + { + div_to_fill.innerHTML = answer.responseText; + } + } }); } } @@ -240,20 +129,18 @@ function search_change_coll(url, id_coll) function get_ft_opt_index(url) { - if(url) - { + if(url) { new Ajax.Request(url, { method:'post', parameters: {}, - onSuccess: function(answer){ - var div_to_fill = $('opt_index'); - // console.log(div_to_fill); - if(div_to_fill) - { - div_to_fill.innerHTML = answer.responseText; - } - } + onSuccess: function(answer){ + var div_to_fill = $('opt_index'); + if(div_to_fill) + { + div_to_fill.innerHTML = answer.responseText; + } + } }); } } diff --git a/modules/notes/js/functions.js b/modules/notes/js/functions.js index d4685a3b4e5bc70c4be4c360deb89491527f0f08..6b993323a41c15de2d34bd2077a0d2d50e5b4b99 100644 --- a/modules/notes/js/functions.js +++ b/modules/notes/js/functions.js @@ -1,11 +1,11 @@ function showNotesForm(path, width, height) { if(typeof(width)==='undefined'){ - var width = '800'; + width = '800'; } if(typeof(height)==='undefined'){ - var height = '480'; + height = '480'; } new Ajax.Request(path, @@ -27,7 +27,7 @@ function showNotesForm(path, width, height) { }); } -function validNotesForm (path, form_id) { +function validNotesForm(path, form_id) { new Ajax.Request(path, { @@ -70,4 +70,4 @@ function addTemplateToNote(templateNotes, path) } } }); -} \ No newline at end of file +} diff --git a/modules/notifications/js/functions.js b/modules/notifications/js/functions.js index 8ed5e09a904bd933bd530a8a56b08d0de9af69fb..d56077fc36d9ddb2ef90ebda7ba7ede89917cfbf 100755 --- a/modules/notifications/js/functions.js +++ b/modules/notifications/js/functions.js @@ -3,14 +3,6 @@ function change_properties_box(difftype_id, path_manage_script, diff_list_id, or var div_id = diff_list_id; var origin_arg = origin_keyword || ''; - //~ if($('destination_mandatory')) - //~ { - //~ var isMandatory = $('destination_mandatory').style.display; - //~ } - //~ else - //~ { - //~ var isMandatory = "none"; - //~ } document.getElementById(div_id).style = "height:0px; width:600px; border:0px;"; if(difftype_id != null) { @@ -90,13 +82,13 @@ function loadDiffusionProperties(difftype_id, path_manage_script, updatediv_id) var selected_list = response.div_content.split(','); var complete_list = $("frmevent").elements["diffusion_values[]"]; var diffusion_properties = $("frmevent").elements["diffusion_properties[]"]; - for (i=0;i<complete_list.length;i++) + for (var i=0;i<complete_list.length;i++) { complete_list[i].selected = false; } - for (i=0;i<complete_list.length;i++) + for (var i=0;i<complete_list.length;i++) { - for(j=0;j<selected_list.length;j++) + for(var j=0;j<selected_list.length;j++) { if(complete_list[i].value == selected_list[j]) { @@ -105,11 +97,6 @@ function loadDiffusionProperties(difftype_id, path_manage_script, updatediv_id) } } Move(complete_list,diffusion_properties); - /*if(diff_list_div != null) - { - diff_list_div.innerHTML = response.div_content; - }*/ - } else { @@ -131,7 +118,7 @@ function loadDiffusionProperties(difftype_id, path_manage_script, updatediv_id) function loadAttachforProperties(difftype_id, path_manage_script, updatediv_id) { - var div_id = updatediv_id + var div_id = updatediv_id; if(difftype_id != null) { new Ajax.Request(path_manage_script, @@ -143,17 +130,16 @@ function loadAttachforProperties(difftype_id, path_manage_script, updatediv_id) eval("response = "+answer.responseText); if(response.status == 0 ) { - var diff_list_div = $(div_id); var selected_list = response.div_content.split(','); var complete_list = $("frmevent").elements["attachfor_values[]"]; var attachfor_properties = $("frmevent").elements["attachfor_properties[]"]; - for (i=0;i<complete_list.length;i++) + for (var i=0;i<complete_list.length;i++) { complete_list[i].selected = false; } - for (i=0;i<complete_list.length;i++) + for (var i=0;i<complete_list.length;i++) { - for(j=0;j<selected_list.length;j++) + for(var j=0;j<selected_list.length;j++) { if(complete_list[i].value == selected_list[j]) { diff --git a/modules/reports/js/functions.js b/modules/reports/js/functions.js index 6901f8b62c09299265fc05fef5035b7f3539c823..4f4fca4e67665cee84e80b4793242456a621d2d0 100644 --- a/modules/reports/js/functions.js +++ b/modules/reports/js/functions.js @@ -1,7 +1,6 @@ function fill_report_result(url_report) { -// alert(url_report); if(url_report) { var fct_args = ''; @@ -16,7 +15,6 @@ function fill_report_result(url_report) fct_args += tmp2[0]+'#'+tmp2[1]+'$$'; } } - //console.log(fct_args); $j.ajax( { url : url_report, diff --git a/modules/sendmail/js/functions.js b/modules/sendmail/js/functions.js index d83b27c9fb213a37f42fdf6603f85a995d2a33ed..8c52ba5f15e6e28c77319e1a334f2eeb9daf451f 100644 --- a/modules/sendmail/js/functions.js +++ b/modules/sendmail/js/functions.js @@ -11,13 +11,6 @@ var addEmailAdress = function (idField, idList, theUrlToListScript, paramNameSrv }); }; -/* -function addTemplateToEmail(modele){ - $(body_from_html).value = modele + '<br>'; - tinyMCE.execCommand('mceInsertContent',false,modele); -} -*/ - function addTemplateToEmail(templateMails, path){ new Ajax.Request(path, @@ -30,18 +23,9 @@ function addTemplateToEmail(templateMails, path){ eval("response = " + answer.responseText); if (response.status == 0) { var strContent = response.content; - //var strContentReplace = strContent.replace(reg, '\n') + '<p></p>'; - //var strContentReplace = strContent.replace(/\\n/g, '<p>') + '<p><p>'; var strContentReplace = strContent.replace(/\\n/g, ''); - //tinyMCE.execCommand('mceInsertContent',false,strContentReplace); tinyMCE.execCommand('mceSetContent',false,strContentReplace); } - - /* - else { - window.top.$('main_error').innerHTML = response.error; - } - */ } }); } @@ -66,15 +50,15 @@ function changeSignature(selected, mailSignaturesJS){ function showEmailForm(path, width, height, iframe_container_id) { if(typeof(width)==='undefined'){ - var width = '820px'; + width = '820px'; } if(typeof(height)==='undefined'){ - var height = '545px'; + height = '545px'; } if(typeof(iframe_container_id)==='undefined'){ - var iframe_container_id = ''; + iframe_container_id = ''; } new Ajax.Request(path, { @@ -121,7 +105,6 @@ function updateAdress(path, action, adress, target, array_index, email_format_te alert(response.error); eval(response.exec_js); } - // $('loading_' + target).style.display='none'; } }); } else { @@ -132,7 +115,7 @@ function updateAdress(path, action, adress, target, array_index, email_format_te } } -function validEmailForm (path, form_id) { +function validEmailForm(path, form_id) { var attachments = $j("#joined_files input.check"); @@ -173,24 +156,20 @@ function validEmailForm (path, form_id) { }); } -function validEmailFormForSendToContact (path, form_id, path2, status) { - // var content = tinyMCE.get('body_from_html').getContent(); // - // alert(content); +function validEmailFormForSendToContact(path, form_id, path2, status) { tinyMCE.triggerSave(); new Ajax.Request(path, { asynchronous:false, method:'post', - // parameters: Form.serialize(form_id)+ '&body_from_html=' + content, - parameters: Form.serialize(form_id), + parameters: Form.serialize(form_id), encoding: 'UTF-8', onSuccess: function(answer){ eval("response = "+answer.responseText); if(response.status == 0){ eval(response.exec_js); - changeStatusForActionSendToContact(path2, status) - window.parent.destroyModal('form_email'); - + changeStatusForActionSendToContact(path2, status); + window.parent.destroyModal('form_email'); } else { alert(response.error); eval(response.exec_js); @@ -207,16 +186,14 @@ function validEmailFormForSendToContact (path, form_id, path2, status) { parameters: {status : status}, encoding: 'UTF-8', onSuccess : function(){ - //window.top.location.reload(); - parent.document.getElementById('storage').click(); - } + parent.document.getElementById('storage').click(); + } }); } function extractEmailAdress(field, item) { var fullAdress = item.innerHTML; - var email = fullAdress.match(/\(([^)]+)\)/)[1]; - field.value = email; + field.value = fullAdress.match(/\(([^)]+)\)/)[1]; } function validateEmail(email) { diff --git a/modules/thumbnails/js/functions.js b/modules/thumbnails/js/functions.js index df31c99fddd37a23eb9f607651718679e8aa9ede..ef04b662d3e18dba17d3c5f7de2ef55f7c8398bd 100644 --- a/modules/thumbnails/js/functions.js +++ b/modules/thumbnails/js/functions.js @@ -8,8 +8,6 @@ function showThumb(divName, resId, collId) parameters: { resId : resId, collId : collId}, onSuccess: function(answer) { eval("response = "+answer.responseText); - //console.log(response.toShow); - //console.log("divname " + divName+resId); $(divName+resId).innerHTML = response.toShow; } }); diff --git a/modules/visa/documents_list_with_signatory.php b/modules/visa/documents_list_with_signatory.php index 21a94657615aa8a2187dfd6d3b80afdc4c66430b..10bd3d775891ee3ef3ee2f987e06674d345cfcab 100644 --- a/modules/visa/documents_list_with_signatory.php +++ b/modules/visa/documents_list_with_signatory.php @@ -601,10 +601,7 @@ $status = 0; $content = $list->showList($tab, $paramsTab, $listKey, $_SESSION['current_basket']); // $debug = $list->debug(false); -$content .= "<script>$$('#container')[0].setAttribute('style', 'width: 90%; min-width: 1000px;');". - "$$('#content')[0].setAttribute('style', 'width: auto; min-width: 1000px;');". - "$$('#inner_content')[0].setAttribute('style', 'width: auto; min-width: 1000px;');". - // "$$('table#extended_list')[0].setAttribute('style', 'width: 100%; min-width: 900px; margin: 0;');". - "</script>"; +$content .= '<script>$j(\'#container\').attr(\'style\', \'width: 90%; min-width: 1000px;\');$j(\'#content\').attr(\'style\', \'width: auto; min-width: 1000px;\');'; +$content .= '$j(\'#inner_content\').attr(\'style\', \'width: auto; min-width: 1000px;\');</script>'; echo "{'status' : " . $status . ", 'content' : '" . addslashes($debug.$content) . "', 'error' : '" . addslashes(functions::xssafe($error)) . "'}"; diff --git a/modules/visa/js/functions.js b/modules/visa/js/functions.js index 184e6e6633bec6a92482dfe5aa02ac5f1755cdc0..f8367932382afe478cb290f91ab8e13d535803d5 100644 --- a/modules/visa/js/functions.js +++ b/modules/visa/js/functions.js @@ -1,4 +1,3 @@ -var docLockInterval; function addVisaUser(users) { if (!users) { nb_visa = $j(".droptarget").length; @@ -79,7 +78,7 @@ function resetPosVisa () { $j("#" + this.id).find(".visaUserPos").text(i); i++; }); - i-- + i--; $j("#visa_" + i).find(".visaUserSign").css("visibility","visible"); } function updateVisaWorkflow(resId) { @@ -292,680 +291,15 @@ function initDragNDropVisa() { }); } -function manageFrame(button) { - - var firstDiv = $("visa_listDoc"); - var secondDiv = $("visa_left"); - var thirdDiv = $("visa_right"); - - var right = "fa fa-arrow-circle-o-right fa-2x"; - var left = "fa fa-arrow-circle-o-left fa-2x"; - - if (button.id == "firstFrame") { - - if (firstDiv.style.display != "none") { - firstDiv.style.display = "none"; - button.className = right; - } else { - firstDiv.style.display = ""; - button.className = left; - } - } else if (button.id == "secondFrame") { - - if (secondDiv.style.display != "none") { - $("thirdFrame").style.display = "none"; - secondDiv.style.display = "none"; - button.className = right; - } else { - $("thirdFrame").style.display = ""; - secondDiv.style.display = ""; - button.className = left; - } - } else if (button.id == "thirdFrame") { - - if (thirdDiv.style.display != "none") { - $("secondFrame").style.display = "none"; - thirdDiv.style.display = "none"; - button.className = left; - } else { - $("secondFrame").style.display = ""; - thirdDiv.style.display = ""; - button.className = right; - } - } - - if (firstDiv.style.display != "none" && secondDiv.style.display != "none" && thirdDiv.style.display != "none") { - firstDiv.style.width = "15%"; - $("firstFrame").style.marginLeft = "13.8%"; - secondDiv.style.width = "41%"; - $("secondFrame").style.marginLeft = "40.9%"; - thirdDiv.style.width = "41%"; - $("thirdFrame").style.marginLeft = "0.6%"; - } else if (firstDiv.style.display != "none" && (secondDiv.style.display == "none" || thirdDiv.style.display == "none")) { - firstDiv.style.width = "15%"; - $("firstFrame").style.marginLeft = "13.8%"; - if (secondDiv.style.display == "none") { - thirdDiv.style.width = "82%"; - $("secondFrame").style.marginLeft = "0.2%"; - } - else { - secondDiv.style.width = "82%"; - $("thirdFrame").style.marginLeft = "83%"; - } - } else if (firstDiv.style.display == "none" && secondDiv.style.display != "none" && thirdDiv.style.display != "none") { - $("firstFrame").style.marginLeft = "-0.5%"; - secondDiv.style.width = "48%"; - $("secondFrame").style.marginLeft = "47%"; - thirdDiv.style.width = "48%"; - $("thirdFrame").style.marginLeft = "0.6%" - } else if (firstDiv.style.display == "none" && (secondDiv.style.display == "none" || thirdDiv.style.display == "none")) { - $("firstFrame").style.marginLeft = "-0.5%"; - if (secondDiv.style.display == "none") { - thirdDiv.style.width = "98%"; - $("secondFrame").style.marginLeft = "0.2%"; - } - else { - secondDiv.style.width = "98%"; - $("thirdFrame").style.marginLeft = "97.5%"; - } - } -} - function setTitle(input) { input.title = input.value; } -function triggerFlashMsg($divName, $msg) { - var div = $($divName); - - div.innerHTML = $msg; - div.style.display = 'table-cell'; - Element.hide.delay(5, $divName); -} - -/* Fonctions ajoutées par DIS */ - -//Fonction permettant de lancer les 2 modules Tabricator côte à côte pour les différentes pages d'action (formation circuit de visa, visa ..) -function launchTabri(){ - var tabricatorRight = new Tabricator('tabricatorRight', 'DT'); - var tabricatorLeft = new Tabricator('tabricatorLeft', 'DT'); -} - - - -function loadNewId(path_update, newId, collId, idToDisplay) { - new Ajax.Request(path_update, - { - method: 'post', - parameters: { - res_id: newId, - coll_id: collId, - action: parent.$('action_id').value - }, - asynchronous: false, - onSuccess: function (answer) { - eval("response = " + answer.responseText); - //console.log(response); - if (response.status == 0) { //document verouillé - alert(response.error); - } else { - /* Modification dans la liste de gauche */ - var zone_old = 'list_doc_' + parent.$('cur_resId').value; - var zone_new = 'list_doc_' + newId; - //console.log(zone_new); - clearInterval(docLockInterval); - //unlock old doc - new Ajax.Request('index.php?display=true&dir=actions&page=docLocker', {method: 'post', parameters: {'AJAX_CALL': true, 'unlock': true, 'res_id': parent.$('cur_resId').value}, onSuccess: function (answer) {/*var cur_url=window.location.href;*/ - if (cur_url.indexOf('&directLinkToAction') != -1) - cur_url = cur_url.replace('&directLinkToAction', ''); - window.location.href = cur_url; - }}); - //lock the new doc - docLockInterval = setInterval("new Ajax.Request('index.php?display=true&dir=actions&page=docLocker',{ method:'post', parameters: {'AJAX_CALL': true, 'lock': true, 'res_id': " + newId + " } });", 50000); - if ($(zone_new)) { - $(zone_new).className = 'selectedId'; - } - if ($(zone_old)) { - $(zone_old).className = 'unselectedId'; - } - - parent.$('cur_resId').value = newId; - - if (idToDisplay == 'chrono_number') { - parent.$('numIdDocPage').innerHTML = parent.$('chrn_id_' + newId).innerHTML; - } else { - parent.$('numIdDocPage').innerHTML = newId; - } - //console.log('display: '+idToDisplay); - } - if (response.status == 1) { //page de visa - parent.$('tabricatorLeft').innerHTML = response.left_html; - parent.$('tabricatorRight').innerHTML = response.right_html; - parent.$("send_action").setAttribute('onclick', response.valid_button); - - updateFunctionModifRep(response.id_rep, 1, response.is_vers_rep); - - //console.log("Initialisation onglets de la partie droite"); - var tabricatorLeft = new Tabricator('tabricatorLeft', 'DT'); - var tabricatorRight = new Tabricator('tabricatorRight', 'DT'); - - eval(response.exec_js); - - } - - if (response.status == 2) { //page préparation circuit - parent.$('tabricatorRight').innerHTML = response.right_html; - parent.$("send_action").setAttribute('onclick', response.valid_button); - var tabricatorRight = new Tabricator('tabricatorRight', 'DT'); - //console.log("MAJ OK"); - } - - if (response.status == 3) { //page envoi mail - parent.$('tabricatorRight').innerHTML = response.right_html; - parent.$("send_action").setAttribute('onclick', response.valid_button); - var tabricatorRight = new Tabricator('tabricatorRight', 'DT'); - - showEmailForm('index.php?display=true&module=sendmail&page=sendmail_ajax_content&mode=add&identifier=' + newId + '&origin=document&coll_id=' + collId + '&size=medium', '820px', '545px', 'sendmail_iframe'); - } - - if (response.status == 4) { //page impression dossier - parent.$('tabricatorRight').innerHTML = response.right_html; - parent.$("send_action").setAttribute('onclick', response.valid_button); - var tabricatorRight = new Tabricator('tabricatorRight', 'DT'); - //console.log("MAJ OK"); - } - }, - onFailure: function () { - //console.log("Probleme de Mise à jour !"); - } - }); - -} - -function loadNewId2(path_update, newId, collId, idToDisplay) { - new Ajax.Request(path_update, - { - method: 'post', - parameters: { - res_id: newId, - coll_id: collId, - action: $('action_id').value - }, - asynchronous: false, - onSuccess: function (answer) { - eval("response = " + answer.responseText); - //console.log(response); - if (response.status == 0) { //document verouillé - alert(response.error); - } else { - - /* Modification dans la liste de gauche */ - var zone_old = 'list_doc_' + $('cur_resId').value; - var zone_new = 'list_doc_' + newId; - //console.log(zone_new); - clearInterval(docLockInterval); - //unlock old doc - new Ajax.Request('index.php?display=true&dir=actions&page=docLocker', {method: 'post', parameters: {'AJAX_CALL': true, 'unlock': true, 'res_id': $('cur_resId').value}, onSuccess: function (answer) {/*var cur_url=window.location.href;*/ - if (cur_url.indexOf('&directLinkToAction') != -1) - cur_url = cur_url.replace('&directLinkToAction', ''); - window.location.href = cur_url; - }}); - //lock the new doc - docLockInterval = setInterval("new Ajax.Request('index.php?display=true&dir=actions&page=docLocker',{ method:'post', parameters: {'AJAX_CALL': true, 'lock': true, 'res_id': " + newId + " } });", 50000); - - if($(zone_new)){ - $(zone_new).className = 'selectedId'; - } - if($(zone_old)){ - $(zone_old).className = 'unselectedId'; - } - $('cur_resId').value = newId; - - if (idToDisplay == 'chrono_number') { - $('numIdDocPage').innerHTML = $('chrn_id_' + newId).innerHTML; - } else { - $('numIdDocPage').innerHTML = newId; - } - //console.log('display: '+idToDisplay); - } - if (response.status == 1) { //page de visa - $('tabricatorLeft').innerHTML = response.left_html; - $('tabricatorRight').innerHTML = response.right_html; - $("send_action").setAttribute('onclick', response.valid_button); - - updateFunctionModifRep(response.id_rep, 1, response.is_vers_rep); - - console.log("Initialisation onglets de la partie droite"); - var tabricatorLeft = new Tabricator('tabricatorLeft', 'DT'); - var tabricatorRight = new Tabricator('tabricatorRight', 'DT'); - - } - - if (response.status == 2) { //page préparation circuit - $('tabricatorRight').innerHTML = response.right_html; - $("send_action").setAttribute('onclick', response.valid_button); - var tabricatorRight = new Tabricator('tabricatorRight', 'DT'); - //console.log("MAJ OK"); - } - - if (response.status == 3) { //page envoi mail - $('tabricatorRight').innerHTML = response.right_html; - $("send_action").setAttribute('onclick', response.valid_button); - var tabricatorRight = new Tabricator('tabricatorRight', 'DT'); - - showEmailForm('index.php?display=true&module=sendmail&page=sendmail_ajax_content&mode=add&identifier=' + newId + '&origin=document&coll_id=' + collId + '&size=medium', '820px', '545px', 'sendmail_iframe'); - } - - if (response.status == 4) { //page impression dossier - $('tabricatorRight').innerHTML = response.right_html; - $("send_action").setAttribute('onclick', response.valid_button); - var tabricatorRight = new Tabricator('tabricatorRight', 'DT'); - //console.log("MAJ OK"); - } - }, - onFailure: function () { - //console.log("Probleme de Mise à jour !"); - } - }); - -} - -function previousDoc(path_update,collId){ - var current = parent.$('cur_resId').value; - $('list_doc_'+current).previousSibling.click(); -} - -function nextDoc(path_update,collId){ - var current = parent.$('cur_resId').value; - $('list_doc_'+current).nextSibling.click(); - -} - -function updateFunctionModifRep(idReponse, num_rep, is_version){ - if(idReponse == 0){ - if (parent.document.getElementById("update_rep_link")) { - parent.document.getElementById("update_rep_link").style.display = 'none'; - } - if (parent.document.getElementById("sign_link")) { - parent.document.getElementById("sign_link").style.display = 'none'; - } - - }else{ - new Ajax.Request("index.php?display=true&page=checkSignFile&module=visa&res_id="+idReponse, - { - method:'post', - onSuccess: function(answer){ - eval("response = "+answer.responseText); - if (response.status == 1){ - if (parent.document.getElementById("sign_link")){ - parent.document.getElementById("sign_link").style.display = ''; - parent.document.getElementById("sign_link").setAttribute('onclick','document.getElementById("list_attach").src="index.php?display=true&module=attachments&page=del_attachment&relation=1&id='+idReponse+'&fromDetail="'); - parent.document.getElementById("sign_link").style.color = 'green'; - parent.document.getElementById("sign_link_img").src = 'static.php?filename=sign_valid.png'; - parent.document.getElementById("sign_link_img").title= 'Enlever la signature'; - parent.document.getElementById("sign_link_img").style.cursor = 'not-allowed'; - parent.document.getElementById("sign_link").setAttribute('disabled','disabled'); - - } - if (parent.document.getElementById("sign_link_certif")){ - parent.document.getElementById("sign_link_certif").setAttribute('onclick',''); - parent.document.getElementById("sign_link_certif").style.color = 'green'; - } - - if (parent.document.getElementById("update_rep_link")) { - parent.document.getElementById("update_rep_link").style.display = 'none'; - } - } - else if (response.status == 0){ - if (parent.document.getElementById("sign_link")){ - parent.document.getElementById("sign_link").style.display = ''; - parent.document.getElementById("sign_link").setAttribute('onclick','signFile('+idReponse+','+is_version+',2);'); - parent.document.getElementById("sign_link").style.color = ''; - parent.document.getElementById("sign_link_img").src = 'static.php?filename=sign.png'; - parent.document.getElementById("sign_link_img").title= 'Signer ces projets de réponse (sans certificat)'; - parent.document.getElementById("sign_link_img").style.cursor = 'pointer'; - parent.document.getElementById("sign_link").removeAttribute('disabled'); - } - if (parent.document.getElementById("sign_link_certif")){ - parent.document.getElementById("sign_link_certif").setAttribute('onclick','signFile('+idReponse+','+is_version+',0);'); - parent.document.getElementById("sendPIN").setAttribute('onclick','signFile('+idReponse+','+is_version+',\'\', $(\'valuePIN\').value);'); - parent.document.getElementById("valuePIN").setAttribute('onKeyPress','if (event.keyCode == 13) signFile('+idReponse+','+is_version+',\'\', $(\'valuePIN\').value);'); - parent.document.getElementById("sign_link_certif").style.color = ''; - parent.document.getElementById("sign_link_img").src = 'static.php?filename=sign.png'; - } - if (parent.document.getElementById("update_rep_link")) { - parent.document.getElementById("update_rep_link").style.display = ''; - console.log("is_version = "+is_version); - /*if (is_version == 2) document.getElementById("update_rep_link").style.display = 'none'; - else */if (is_version != 1) parent.document.getElementById("update_rep_link").setAttribute('onclick','modifyAttachmentsForm(\'index.php?display=true&module=attachments&page=attachments_content&id='+idReponse+'&relation=1&fromDetail=\',\'98%\',\'auto\');'); - else parent.document.getElementById("update_rep_link").setAttribute('onclick','modifyAttachmentsForm(\'index.php?display=true&module=attachments&page=attachments_content&id='+idReponse+'&relation=2&fromDetail=\',\'98%\',\'auto\');'); - - } - } - } - }); - parent.document.getElementById("cur_idAffich").setAttribute('value',num_rep); - parent.document.getElementById("cur_rep").setAttribute('value',idReponse); - } -} - -function hasAllAnsSigned(id_doc){ - var retour = 'null'; - new Ajax.Request("index.php?display=true&page=checkAllAnsSigned&module=visa&res_id="+id_doc, - { - method:'post', - asynchronous:false, - onSuccess: function(answer){ - eval("response = "+answer.responseText); - retour = response.status; - } - }); - return retour; -} - -function signFile(res_id,isVersion, mode, pinCode){ - var reg = /^[0-9]{4}$/; - var func_onclic; - if(pinCode == undefined || pinCode=='') - { - pinCode=''; - } - else if (!reg.test(pinCode)){ - //alert("Le code PIN doit comporter 4 chiffres"); - $('badPin').style.display = 'block'; - $('badPin').innerHTML = 'Le format est incorrect (4 chiffres)'; - $('valuePIN').value = ""; - } - else { - $('modalPIN').style.display = 'none'; - new Ajax.Request("index.php?display=true&module=visa&page=encodePinCode", - { - method:'post', - asynchronous:false, - parameters: { - pinCode : pinCode - } - }); - } - if (mode == 2){ - - var path = ''; - if (isVersion == 0) path = 'index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&id='+res_id; - else if (isVersion == 1) path = 'index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isVersion&id='+res_id; - else if (isVersion == 2) path = 'index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isOutgoing&id='+res_id; - new Ajax.Request(path, - { - method:'post', - onSuccess: function(answer){ - eval("response = "+answer.responseText); - if (response.status == 0){ - if ($('cur_idAffich')) var num_rep = $('cur_idAffich').value; - if ($('cur_rep')){ - var newId = response.new_id; - var oldRep = $('cur_rep').value; - $('cur_rep').value = newId; - } - if ($('cur_resId')) var num_idMaster = $('cur_resId').value; - if ($('update_rep_link')){ - $('update_rep_link').style.display = 'none'; - } - if ($('sign_link')){ - $("sign_link").style.display = ''; - link = 'index.php?display=true&module=attachments&page=del_attachment&relation=1&id='+newId; - $("sign_link").setAttribute('onclick','document.getElementById(\'list_attach\').src="'+link+'"'); - $("sign_link").style.color = 'green'; - $("sign_link_img").src = 'static.php?filename=sign_valid.png'; - $("sign_link_img").title= 'Enlever la signature'; - $("sign_link_img").style.cursor = 'not-allowed'; - $("sign_link").setAttribute('disabled','disabled'); - //console.log($('sign_link').style); - } - if ($('sign_link_certif')){ - $('sign_link_certif').style.color = 'green'; - $('sign_link_certif').setAttribute('onclick',''); - } - - if(oldRep == newId-1){ - oldRep = res_id; - } - if($('viewframevalidRep'+num_rep+'_'+oldRep)) { - $('viewframevalidRep'+num_rep+'_'+oldRep).src = "index.php?display=true&module=attachments&page=view_attachment&res_id_master="+num_idMaster+"&id="+newId; - $('viewframevalidRep'+num_rep+'_'+oldRep).id = 'viewframevalidRep'+num_rep+'_'+newId; - } - - - if($('ans_'+num_rep+'_'+oldRep)) { - $('ans_'+num_rep+'_'+oldRep).setAttribute('onclick','updateFunctionModifRep(\''+newId+'\', '+num_rep+', 0);'); - $('ans_'+num_rep+'_'+oldRep).id = 'ans_'+num_rep+'_'+newId; - } - - if($('content_'+num_rep+'_'+oldRep)) { - $('content_'+num_rep+'_'+oldRep).id = 'content_'+num_rep+'_'+newId; - } - var zone_id = 'signedDoc_'+$('cur_resId').value; - - if($(zone_id)){ - if (hasAllAnsSigned($('cur_resId').value) == 1){ - $(zone_id).style.visibility = 'visible'; - } - else{ - $(zone_id).style.visibility = 'hidden'; - } - } - - $('ans_'+num_rep+'_'+newId).innerHTML='<sup><i class="fa fa-certificate fa-lg fa-fw" style="color:#fdd16c"></i></sup>Réponse signée'; - $('ans_'+num_rep+'_'+newId).title=$('ans_'+num_rep+'_'+newId).title; - //$('list_attach').src = 'index.php?display=true&module=attachments&page=frame_list_attachments&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder'; - - loadToolbarBadge('attachments_tab','index.php?display=true&module=attachments&page=load_toolbar_attachments&origin=document&resId='+$('cur_resId').value+'&collId=letterbox_coll'); - } - else{ - alert(response.error); - console.log(func_onclic); - $("sign_link").setAttribute('onclick',func_onclic); - } - //$("sign_link").removeAttribute("onclick"); - //$("sign_link_img").style.display = 'none'; - //$('sign_link').className = 'fa fa-spinner fa-2x fa-spin'; - document.getElementById("sign_link").className = document.getElementById("sign_link").className.replace( /(?:^|\s)fa fa-spinner fa-2x fa-spin(?!\S)/g , "" ) - $('sign_link').title=""; - $("sign_link_img").style.display = ''; - }, - onCreate: function(answer){ - func_onclic = $("sign_link").getAttribute("onclick"); - $("sign_link").removeAttribute("onclick"); - $("sign_link_img").style.display = 'none'; - $('sign_link').className = 'fa fa-spinner fa-2x fa-spin'; - $('sign_link').title="en cours de traitement..." - } - }); - } - else { - new Ajax.Request("index.php?display=true&module=visa&page=checkPinCode", - { - method:'post', - onSuccess: function(answer){ - eval("response = "+answer.responseText); - if (response.status == 1){ - $('badPin').style.display = 'none'; - if (isVersion == 0) window.open('index.php?display=true&module=visa&page=sign_ans&collId=letterbox_coll&id='+res_id+'&modeSign='+mode,'','height=301, width=301,scrollbars=yes,resizable=yes'); - else if (isVersion == 1) window.open('index.php?display=true&module=visa&page=sign_ans&collId=letterbox_coll&isVersion&id='+res_id+'&modeSign='+mode,'','height=301, width=301,scrollbars=yes,resizable=yes'); - else if (isVersion == 2) window.open('index.php?display=true&module=visa&page=sign_ans&collId=letterbox_coll&isOutgoing&id='+res_id+'&modeSign='+mode,'','height=301, width=301,scrollbars=yes,resizable=yes'); - } - else if (response.status == 0){ - if (mode == 1){ - if (isVersion == 0) window.open('index.php?display=true&module=visa&page=sign_ans&collId=letterbox_coll&id='+res_id+'&modeSign='+mode,'','height=301, width=301,scrollbars=yes,resizable=yes'); - else if (isVersion == 1) window.open('index.php?display=true&module=visa&page=sign_ans&collId=letterbox_coll&isVersion&id='+res_id+'&modeSign='+mode,'','height=301, width=301,scrollbars=yes,resizable=yes'); - else if (isVersion == 2) window.open('index.php?display=true&module=visa&page=sign_ans&collId=letterbox_coll&isOutgoing&id='+res_id+'&modeSign='+mode,'','height=301, width=301,scrollbars=yes,resizable=yes'); - } - - else { - var attr = document.getElementById("sendPIN").getAttribute('onclick').split(','); - document.getElementById("sendPIN").setAttribute('onclick',attr[0]+','+attr[1]+','+mode+','+attr[3]); - - var attr2 = document.getElementById("valuePIN").getAttribute('onKeyPress').split(','); - document.getElementById("valuePIN").setAttribute('onKeyPress',attr2[0]+','+attr2[1]+','+mode+','+attr2[3]); - - $('modalPIN').style.display = 'block'; - //console.log("Code PIN :"+pinCode); - } - } - } - }); - - } - -} - //load applet in a modal function loadAppletSign(url){ displayModal(url, 'VisaApplet', 300, 300); } - -function translateError(key){ - var message = ""; - switch(key){ - case "300" : - message = "L'exécutable de signature est introuvable. Veuillez contacter votre administrateur.";break; - case "99" : - message = "Erreur lors de la signature numérique";break; - case "98" : - message = "Code PIN erroné";break; - case "97" : - message = "Trop de tentatives infructueuses pour le code PIN. Veuillez contacter votre administrateur.";break; - case "12" : - message = "Le répertoire PDF destination n'a pas de droit d'écriture. Veuillez contacter votre administrateur";break; - case "16" : - message = "Le code PIN doit comporter 4 chiffres";break; - case "51" : - message = "Anomalie lors de l'incrustation de l'imagette de signature";break; - default : - message = "";break; - } - return message; -} - - -//destroy the modal of the applet and launch an ajax script -function endOfAppletSign(objectType, theMsg, newId) -{ - if (objectType == 'ans_project') { - if (newId != 0){ - endAttachmentSign(newId); - } - else{ - if (theMsg != '' && theMsg != ' ') { - if ($('maarchcm_error')) { - $('maarchcm_error').innerHTML = translateError(theMsg); - $('maarchcm_error').style.display = "block"; - } - if (theMsg == "98"){ - window.opener.$('modalPIN').style.display = 'block'; - window.opener.$('badPin').innerHTML = 'Code PIN incorrect (3 essais maximum)'; - window.opener.$('badPin').style.display = 'block'; - window.close(); - } - } - } - } - //destroyModal('CMApplet'); -} - -function endAttachmentSign(newId) -{ - if (window.opener.$('cur_idAffich')) var num_rep = window.opener.$('cur_idAffich').value; - if (window.opener.$('cur_rep')){ - var oldRep = window.opener.$('cur_rep').value; - window.opener.$('cur_rep').value = newId; - } - if (window.opener.$('cur_resId')) var num_idMaster = window.opener.$('cur_resId').value; - - if (window.opener.$('update_rep_link')){ - window.opener.$('update_rep_link').style.display = 'none'; - } - if (window.opener.$('sign_link')){ - window.opener.$('sign_link').style.color = 'green'; - window.opener.$('sign_link').setAttribute('onclick',''); - } - - if (window.opener.$('sign_link_certif')){ - window.opener.$('sign_link_certif').style.color = 'green'; - window.opener.$('sign_link_certif').setAttribute('onclick',''); - } - if(window.opener.$('viewframevalidRep'+num_rep+'_'+oldRep)) { - window.opener.$('viewframevalidRep'+num_rep+'_'+oldRep).src = "index.php?display=true&module=attachments&page=view_attachment&res_id_master="+num_idMaster+"&id="+newId; - window.opener.$('viewframevalidRep'+num_rep+'_'+oldRep).id = 'viewframevalidRep'+num_rep+'_'+newId; - } - - if(window.opener.$('ans_'+num_rep+'_'+oldRep)) { - window.opener.$('ans_'+num_rep+'_'+oldRep).setAttribute('onclick','updateFunctionModifRep(\''+newId+'\', '+num_rep+', 0);'); - $('ans_'+num_rep+'_'+oldRep).id = 'ans_'+num_rep+'_'+newId; - } - - var zone_id = 'signedDoc_'+window.opener.$('cur_resId').value; - if (hasAllAnsSigned(window.opener.$('cur_resId').value) == 1){ - window.opener.$(zone_id).style.visibility = 'visible'; - } - else{ - window.opener.$(zone_id).style.visibility = 'hidden'; - } - - - window.close(); -} -function generateWaybill(resId) -{ - //console.log("Génération du bordereau"); - new Ajax.Request("index.php?display=true&module=visa&page=visa_waybill", - { - method: 'post', - parameters: {res_id: resId - }, - asynchronous: false, - onSuccess: function (answer) { - eval("response = " + answer.responseText); - if (response.status == 1) { - //console.log("path = "+response.path); - //console.log("code = "+response.code); - new Ajax.Request("index.php?display=true&module=visa&page=put_barcode", - { - method: 'post', - parameters: {path: response.path, - res_id: resId, - code: response.code - }, - asynchronous: false, - onSuccess: function (answer) { - eval("response2 = " + answer.responseText); - if (response2.status == 1) { - //console.log("path = "+response2.path); - } - } - }); - } - } - }); - -} - -function showNotesPage(id_tabricator) { - var tab = $(id_tabricator); - var tabDT = tab.getElementsByTagName('DT'); - for (var i = 0; i < tabDT.length; i++) { - tabDT[i].setAttribute("class", "trig"); - if (tabDT[i].id == "onglet_notes") - tabDT[i].setAttribute("class", "trig open"); - } - - var tabDD = tab.getElementsByTagName('DD'); - for (var i = 0; i < tabDD.length; i++) { - tabDD[i].style.display = "none"; - if (tabDD[i].id == "page_notes") - tabDD[i].style.display = "block"; - } -} - function printFolder(res_id, coll_id, form_id, path) { //console.log("printFolder"); new Ajax.Request(path, diff --git a/modules/visa/show_visaListDocBasket_tab.php b/modules/visa/show_visaListDocBasket_tab.php deleted file mode 100644 index 7990160c7b11bfb0364831e546a3b48b7adba68f..0000000000000000000000000000000000000000 --- a/modules/visa/show_visaListDocBasket_tab.php +++ /dev/null @@ -1,220 +0,0 @@ -<?php -require_once 'core' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'class_request.php'; -require_once 'core' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'class_security.php'; -require_once "modules" . DIRECTORY_SEPARATOR . "visa" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_modules_tools.php"; - -$core_tools = new core_tools(); -$core_tools->load_lang(); -$core_tools->load_html(); -$core_tools->load_header('', true, false); -$core_tools->load_js(); - -$res_id = $_REQUEST["resId"]; -$coll_id = $_REQUEST["collId"]; -$view = $_REQUEST["view"]; - -$security = new security(); -$right = $security->test_right_doc($coll_id, $res_id); - -if(!$right){ - exit(_NO_RIGHT_TXT); -} - -$visa = new visa(); -$db = new Database(); - -$frm_str .= '<div class="listDocsBasket">'; -$tab_docs = $visa->getDocsBasket(); -//$frm_str .= '<pre>'.print_r($tab_docs,true).'</pre>'; -//$selectedCat = ''; -$list_docs = ''; -$data = array(); -foreach ($tab_docs as $num => $res_id_doc) { - - $stmt = $db->query( - "select alt_identifier, status, category_id, priority, destination, " - . " dest_contact_id, exp_contact_id, dest_user_id, exp_user_id, address_id, " - . " subject, admission_date, process_limit_date" - . " from " . $view - . " where res_id = ?", array($res_id_doc) - ); - $resChrono_doc = $stmt->fetchObject(); - $chrono_number_doc = $resChrono_doc->alt_identifier; - $cat_id = $resChrono_doc->category_id; - $doc_status = $resChrono_doc->status; - $doc_priority = $resChrono_doc->priority; - $doc_destination = $resChrono_doc->destination; - $doc_dest_contact_id = $resChrono_doc->dest_contact_id; - $doc_exp_contact_id = $resChrono_doc->exp_contact_id; - $doc_dest_user_id = $resChrono_doc->dest_user_id; - $doc_exp_user_id = $resChrono_doc->exp_user_id; - $doc_address_id = $resChrono_doc->address_id; - $doc_subject = $resChrono_doc->subject; - $doc_admission_date = functions::format_date_db($resChrono_doc->admission_date); - $doc_process_limit_date = functions::format_date_db($resChrono_doc->process_limit_date); - - $allAnsSigned = true; - $stmt2 = $db->query("SELECT status from res_view_attachments where (attachment_type='response_project' OR attachment_type='outgoing_mail') and res_id_master = ?", array($res_id_doc)); - while ($line = $stmt2->fetchObject()) { - if ($line->status == 'TRA' || $line->status == 'A_TRA') { - $allAnsSigned = false; - } - } - - if ($allAnsSigned) - $classSign = "visibility:visible;"; - else - $classSign = "visibility:hidden;"; - - $list_docs .= $res_id_doc . "#"; - - if ($res_id_doc == $res_id) { - $classLine = ' class="selectedId " '; - } else - $classLine = ' class="unselectedId " '; - - $id_to_display = _ID_TO_DISPLAY; - - $frm_str .= '<div ' . $classLine . ' onmouseover="this.style.cursor=\'pointer\';" onclick="loadNewId(\'index.php?display=true&module=visa&page=update_visaPage\',' . $res_id_doc . ',\'' . $coll_id . '\',\'' . $id_to_display . '\');" id="list_doc_' . $res_id_doc . '">'; - //check_category($coll_id, $res_id_doc); - //$data = get_general_data($coll_id, $res_id_doc, 'minimal', array(), $cat_id); - - if ($res_id_doc == $res_id) { - $selectedCat = $cat_id; - $curNumDoc = $num; - $curdest = $doc_destination; - } - - $frm_str .= '<ul>'; - $frm_str .= '<li><b style="float:left;">'; - $frm_str .= '<span id = "chrn_id_' . $res_id_doc . '">' . $chrono_number_doc . '</span> <i class="fa fa-certificate" id="signedDoc_' . $res_id_doc . '" style="' . $classSign . '" ></i> '/* . ' - ' .$res_id_doc */; - - //priority - $color = ''; - $color = 'color:' . $_SESSION['mail_priorities_color'][$doc_priority] . ';'; - - $frm_str .= '</b><i class="fa fa-circle" aria-hidden="true" style="float:right;' . $color . '" title="' . $_SESSION['mail_priorities'][$doc_priority] . '"></i></li>'; - - $frm_str .= '<li style="clear:both;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">'; - $frm_str .= '<i class="fa fa-user" title="Contact"></i> '; - - //BEGIN CASE OF CONTACT - $data = array(); - - if ($doc_dest_user_id <> '' || $doc_exp_user_id <> '') { - if ($doc_dest_user_id <> '') { - $contactIdentifier = $doc_dest_user_id; - } elseif ($doc_exp_user_id <> '') { - $contactIdentifier = $doc_exp_user_id; - } - $data['type_contact'] = 'internal'; - $stmt2 = $db->query( - 'SELECT lastname, firstname FROM ' - . $_SESSION['tablename']['users'] - . " WHERE user_id = ?", array($contactIdentifier) - ); - $res = $stmt2->fetchObject(); - $data['contact'] = $res->lastname . ' ' . $res->firstname; - $data['contactId'] = $line->{$contactIdentifier}; - } elseif ($doc_dest_contact_id <> '' || $doc_exp_contact_id <> '') { - - if ($doc_dest_contact_id <> '') { - $contactIdentifier = $doc_dest_contact_id; - } elseif ($doc_exp_contact_id <> '') { - $contactIdentifier = $doc_exp_contact_id; - } - - $data['type_contact'] = 'external'; - - // $stmt2 = $db->query("SELECT address_id FROM mlb_coll_ext WHERE res_id = ?", array($res_id)); - // $resAddress = $stmt2->fetchObject(); - $addressId = $doc_address_id; - - $stmt2 = $db->query('SELECT is_corporate_person, is_private, contact_lastname, contact_firstname, society, society_short, contact_purpose_id, address_num, address_street, address_postal_code, address_town, lastname, firstname FROM view_contacts WHERE contact_id = ? and ca_id = ?', array($contactIdentifier, $addressId)); - $res = $stmt2->fetchObject(); - - if ($res->is_corporate_person == 'Y') { - $data['contact'] = $res->society . ' '; - if (!empty($res->society_short)) { - $data['contact'] .= '(' . $res->society_short . ') '; - } - } else { - $data['contact'] = $res->contact_lastname . ' ' . $res->contact_firstname . ' '; - if (!empty($res->society)) { - $data['contact'] .= '(' . $res->society . ') '; - } - } - - if ($res->is_private == 'Y') { - $data['contact'] .= '(' . _CONFIDENTIAL_ADDRESS . ')'; - } else { - require_once("apps" . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_contacts_v2.php"); - $contact = new contacts_v2(); - $data['contact'] .= '- ' . $contact->get_label_contact($res->contact_purpose_id, $_SESSION['tablename']['contact_purposes']) . ' : '; - if (!empty($res->lastname) || !empty($res->firstname)) { - $data['contact'] .= $res->lastname . ' ' . $res->firstname . ' '; - } - if (!empty($res->address_num) || !empty($res->address_street) || !empty($res->address_town) || !empty($res->address_postal_code)) { - $data['contact'] .= ', ' . $res->address_num . ' ' . $res->address_street . ' ' . $res->address_postal_code . ' ' . strtoupper($res->address_town); - } - } - $data['contactId'] = $contactIdentifier; - $data['addressId'] = $addressId; - } - //TODO CASE OF MULTICONTACTS - // else if ($arr[$i] == 'is_multicontacts') { - // if (!empty ($line->{$arr[$i]})) { - // $data['type_contact'] = 'multi_external'; - // } - // } - //echo $data['contact'];exit; - //END CASE OF CONTACT - - if (isset($data['contact']) && !empty($data['contact'])) { - $frm_str .= '<span title="'.$data['contact'].'">'.$data['contact'].'</span>'; - } else { - $frm_str .= _MULTI . '-' . _DEST; - } - $frm_str .= '</li>'; - - $frm_str .= '<li>'; - $frm_str .= '<i class="fa fa-file" title="Objet"></i> '; - if (isset($doc_subject) && !empty($doc_subject)) { - $frm_str .= '<span title="'.$doc_subject.'">'.$doc_subject.'</span>'; - } - $frm_str .= '</li>'; - - $frm_str .= '<li>'; - $frm_str .= '<i class="fa fa-calendar " title="Date d\'arrivée"></i> '; - $frm_str .= $doc_admission_date; - $frm_str .= ' <i class="fa fa-bell" title="Date limite"></i> '; - $frm_str .= $doc_process_limit_date; - $frm_str .= '</li>'; - - $frm_str .= '</ul>'; - - $frm_str .= '</div>'; -} -$frm_str .= '</div>'; - -$frm_str .= '<div class="toolbar" style="text-align:center;">'; -$frm_str .= '<table style="width:100%;">'; -$frm_str .= '<tr>'; -$frm_str .= '<td style="width:50%";">'; -$frm_str .= '<a href="javascript://" id="previous_doc" onclick="previousDoc(\'index.php?display=true&module=visa&page=update_visaPage\', \'' . $coll_id . '\');"><i class="fa fa-chevron-up fa-2x" title="Précédent"></i></a>'; - -$frm_str .= '</td>'; - -$frm_str .= '<td style="width:50%";">'; -$frm_str .= '<a href="javascript://" id="next_doc" onclick="nextDoc(\'index.php?display=true&module=visa&page=update_visaPage\', \'' . $coll_id . '\');"><i class="fa fa-chevron-down fa-2x" title="Suivant"></i></a>'; - -$frm_str .= '</td>'; - -//$frm_str .= '<td style="width:33%";">'; -//$frm_str .= '<a href="javascript://" id="cancel" onclick="javascript:$(\'baskets\').style.visibility=\'visible\';destroyModal(\'modal_'.$id_action.'\');reinit();"><i class="fa fa-backward fa-2x" title="Annuler"></i></a>'; -//$frm_str .= '</td>'; -$frm_str .= '</tr>'; -$frm_str .= '</table>'; -$frm_str .= '</div>'; - -echo $frm_str; diff --git a/modules/visa/update_visaPage.php b/modules/visa/update_visaPage.php deleted file mode 100644 index 5c4e95ec054bfecd59af902ef0dd6ca8bd7d5444..0000000000000000000000000000000000000000 --- a/modules/visa/update_visaPage.php +++ /dev/null @@ -1,180 +0,0 @@ -<?php - -$db = new Database(); -$core_tools =new core_tools(); - -$res_id = $_REQUEST['res_id']; -$_SESSION['doc_id'] = $res_id; -$coll_id = $_REQUEST['coll_id']; -// Ouverture de la modal - $frm_str = ''; - $docLockerCustomPath = 'apps/maarch_entreprise/actions/docLocker.php'; - $docLockerPath = $_SESSION['config']['businessappurl'] . '/actions/docLocker.php'; - if (is_file($docLockerCustomPath)) - require_once $docLockerCustomPath; - else if (is_file($docLockerPath)) - require_once $docLockerPath; - else - exit("can't find docLocker.php"); - - $docLocker = new docLocker($res_id); - if (!$docLocker->canOpen()) { - echo "{status : 0,error:'"._DOC_LOCKER_RES_ID."".$res_id.""._DOC_LOCKER_USER." ".$_SESSION['userLock']."'}"; - exit(); - } - -require_once "modules" . DIRECTORY_SEPARATOR . "visa" . DIRECTORY_SEPARATOR - . "class" . DIRECTORY_SEPARATOR - . "class_modules_tools.php"; -include('apps'.DIRECTORY_SEPARATOR.$_SESSION['config']['app_id'].DIRECTORY_SEPARATOR.'definition_mail_categories.php'); -require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_security.php"); -$sec =new security(); -$core =new core_tools(); - -$data = get_general_data($coll_id, $res_id, 'minimal'); - -/* Partie centrale*/ -$left_html = ''; - - -//Onglet document -if ($data['category_id']['value'] != 'outgoing'){ - $pathScriptTab = $_SESSION['config']['businessappurl'].'index.php?display=true&dir=indexing_searching&page=view_resource_controler&visu&id='. $res_id.'&collid='.$coll_id; - $left_html .= '<dt id="onglet_entrant" style="padding-top: 6px;" onclick="loadSpecificTab(\'viewframevalidDoc\',\''.$pathScriptTab.'\');return false;">'._INCOMING.' <sup><span id="nb_note" style="'.$style2.'" class="'.$class.'">'.$nbr_notes.'</span></sup></dt><dd style="overflow-y: hidden;">'; - $left_html .= '<iframe src="'.$pathScriptTab.'" name="viewframevalidDoc" id="viewframevalidDoc" scrolling="auto" frameborder="0" style="width:100%;height:100%;" ></iframe></dd>'; - - $left_html .= '</dd>'; -}else{ - $js .= '$$(\'#visa_tab\')[0].click();'; -} - -//Onglet Circuit -$pathScriptTab = $_SESSION['config']['businessappurl'] . 'index.php?display=true&page=show_visa_tab&module=visa&resId='.$res_id.'&collId='.$coll_id.'&destination='; -$left_html .= '<dt id="visa_tab" style="padding-top: 6px;" onclick="loadSpecificTab(\'workflow_visa\',\''.$pathScriptTab.'\');return false;">'._VISA_WORKFLOW.'<span id="visa_tab_img"></span><span id="visa_tab_badge"></span></dt><dd id="page_circuit" style="overflow-x: hidden;">'; -$left_html .= '<h2>'._VISA_WORKFLOW.'</h2>'; -$left_html .= '<iframe src="" name="workflow_visa" width="100%" height="620px" align="left" scrolling="yes" frameborder="0" id="workflow_visa"></iframe>'; -$left_html .= '</dd>'; - -//LOAD TOOLBAR BADGE -$toolbarBagde_script = $_SESSION['config']['businessappurl'] . 'index.php?display=true&module=visa&page=load_toolbar_visa&origin=parent&resId='.$res_id.'&collId='.$coll_id; -$js .='loadToolbarBadge(\'visa_tab\',\''.$toolbarBagde_script.'\');'; - -//Onglet Avancement -$pathScriptTab = $_SESSION['config']['businessappurl'].'index.php?display=true&dir=indexing_searching&page=document_workflow_history&id='. $res_id .'&coll_id='. $coll_id.'&load&size=full'; -$left_html .= '<dt id="onglet_avancement" style="padding-top: 6px;" onclick="loadSpecificTab(\'workflow_history_document\',\''.$pathScriptTab.'\');return false;">Avancement <sup><span id="nb_note" style="'.$style2.'" class="'.$class.'">'.$nbr_notes.'</span></sup></dt><dd id="page_avancement" style="overflow-x: hidden;">'; -$left_html .= '<h2>'. _WF .'</h2>'; -$left_html .= '<iframe src="" name="workflow_history_document" width="100%" height="620px" align="left" scrolling="yes" frameborder="0" id="workflow_history_document"></iframe>'; -$left_html .= '<br/>'; -$left_html .= '<br/>'; - -$pathScriptTab = $_SESSION['config']['businessappurl'].'index.php?display=true&dir=indexing_searching&page=document_history&id='. $res_id .'&coll_id='. $coll_id.'&load&size=full'; -$left_html .= '<span style="cursor: pointer;" onmouseover="this.style.cursor=\'pointer\';" onclick="new Effect.toggle(\'history_document\', \'blind\', {delay:0.2});whatIsTheDivStatus(\'history_document\', \'divStatus_all_history_div\');loadSpecificTab(\'history_document\',\''.$pathScriptTab.'\');return false;">'; -$left_html .= '<span id="divStatus_all_history_div" style="color:#1C99C5;"><i class="fa fa-plus-square-o"></i></span>'; -$left_html .= '<b> '. _ALL_HISTORY .'</b>'; -$left_html .= '</span>'; -$left_html .= '<iframe src="" name="history_document" width="100%" height="620px" align="left" scrolling="yes" frameborder="0" id="history_document" style="display:none;"></iframe>'; - -$left_html .= '</dd>'; - -//Onglet notes -if ($core->is_module_loaded('notes')) { - - $pathScriptTab = $_SESSION['config']['businessappurl'] . 'index.php?display=true&module=notes&page=notes&identifier=' . $res_id . '&origin=document&coll_id=' . $coll_id . '&load&size=full'; - $left_html .= '<dt id="notes_tab" style="padding-top: 6px;" onclick="loadSpecificTab(\'list_notes_doc\',\'' . $pathScriptTab . '\');return false;">' . _NOTES . '<span id="notes_tab_img"></span><span id="notes_tab_badge"></span></dt><dd id="page_notes" style="overflow-x: hidden;"><h2>' . _NOTES . '</h2><iframe name="list_notes_doc" id="list_notes_doc" src="" frameborder="0" scrolling="yes" width="99%" height="570px"></iframe></dd> '; - - //LOAD TOOLBAR BADGE - $toolbarBagde_script = $_SESSION['config']['businessappurl'] . 'index.php?display=true&module=notes&page=load_toolbar_notes&origin=parent&resId='.$res_id.'&collId='.$coll_id; - $js .='loadToolbarBadge(\'notes_tab\',\''.$toolbarBagde_script.'\');'; -} - -/* Partie droite */ -$right_html = ''; -$visa = new visa(); -$tab_path_rep_file = $visa->get_rep_path($res_id, $coll_id); - $cptAttach = count($tab_path_rep_file); - if ($cptAttach < 6) { - $viewMode = 'extended'; - } elseif ($cptAttach < 10) { - $viewMode = 'small'; - } else { - $viewMode = 'verysmall'; - } - for ($i = 0; $i < $cptAttach; $i++) { - $num_rep = $i + 1; - if ($viewMode == 'verysmall') { - $titleRep = $i + 1; - } elseif ($viewMode == 'small') { - $titleRep = substr($_SESSION['attachment_types'][$tab_path_rep_file[$i]['attachment_type']], 0, 10); - } else { - if (strlen($tab_path_rep_file[$i]['title']) > 15) - $titleRep = substr($_SESSION['attachment_types'][$tab_path_rep_file[$i]['attachment_type']], 0, 15) . '...'; - else - $titleRep = $_SESSION['attachment_types'][$tab_path_rep_file[$i]['attachment_type']]; - } - if ($tab_path_rep_file[$i]['attachment_type'] == 'signed_response') { - $titleRep = '<i style="color:#fdd16c" class="fa fa-certificate fa-lg fa-fw"></i>' . $titleRep; - } - $pathScriptTab = $_SESSION['config']['businessappurl'] . 'index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master=' . $res_id . '&id=' . $tab_path_rep_file[$i]['res_id']; - $right_html .= '<dt style="padding-top: 6px;" title="' - . $tab_path_rep_file[$i]['title'] . '" id="ans_' . $num_rep . '_' . $tab_path_rep_file[$i]['res_id'] . '" onclick="loadSpecificTab(\'viewframevalidRep' . $num_rep . '_' . $tab_path_rep_file[$i]['res_id'] . '\',\'' . $pathScriptTab . '\');updateFunctionModifRep(\'' - . $tab_path_rep_file[$i]['res_id'] . '\', ' . $num_rep . ', ' . $tab_path_rep_file[$i]['is_version'] . ');">' . $titleRep - . ' <sup><span class="" style="" id=""></span></sup></dt><dd id="content_' . $num_rep . '_' . $tab_path_rep_file[$i]['res_id'] . '">'; - if($i==0){ - $right_html .= '<iframe src="'.$pathScriptTab.'" name="viewframevalidRep' . $num_rep . '" id="viewframevalidRep' . $num_rep . '_' . $tab_path_rep_file[$i]['res_id'] . '" scrolling="auto" frameborder="0" style="width:100%;height:100%;" ></iframe>'; - - } else { - $right_html .= '<iframe src="" name="viewframevalidRep' . $num_rep . '" id="viewframevalidRep' . $num_rep . '_' . $tab_path_rep_file[$i]['res_id'] . '" scrolling="auto" frameborder="0" style="width:100%;height:100%;" ></iframe>'; - - } - $right_html .= '</dd>'; - //$right_html .= '<script>console.log('.$cptAttach.');</script>'; - - } - - $pathScriptTab = $_SESSION['config']['businessappurl'] . 'index.php?display=true&module=attachments&page=frame_list_attachments&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder'; - - $right_html .= '<dt title="' . _ATTACHED_DOC .'" id="attachments_tab" style="padding-top: 6px;" onclick="loadSpecificTab(\'list_attach\',\''.$pathScriptTab.'\');$(\'cur_idAffich\').value=0;updateFunctionModifRep(0,0,0);">PJ<span id="attachments_tab_img"></span><span id="attachments_tab_badge"></span></dt><dd id="page_pj">'; - - //LOAD TOOLBAR BADGE - $toolbarBagde_script = $_SESSION['config']['businessappurl'] . 'index.php?display=true&module=attachments&page=load_toolbar_attachments&origin=parent&resId='.$res_id.'&collId='.$coll_id; - $js .='loadToolbarBadge(\'attachments_tab\',\''.$toolbarBagde_script.'\');'; - - if ($core_tools->is_module_loaded('attachments')) { - require 'modules/templates/class/templates_controler.php'; - $templatesControler = new templates_controler(); - $templates = array(); - $templates = $templatesControler->getAllTemplatesForProcess($curdest); - $_SESSION['destination_entity'] = $curdest; - //var_dump($templates); - $right_html .= '<div id="list_answers_div" onmouseover="this.style.cursor=\'pointer\';" style="width:100%;height:100%;">'; - $right_html .= '<div class="block" style="margin-top:-2px;height:95%;">'; - $right_html .= '<div id="processframe" name="processframe" style="height:100%;">'; - $right_html .= '<center><h2>' . _PJ . ', ' . _ATTACHEMENTS . '</h2></center>'; - - $right_html .= '<div class="ref-unit">'; - - $right_html .= '<center>'; - if ($core_tools->is_module_loaded('templates')) { - $right_html .= '<input type="button" name="attach" id="attach" class="button" value="' - . _CREATE_PJ - .'" onclick="showAttachmentsForm(\'' . $_SESSION['config']['businessappurl'] - . 'index.php?display=true&module=attachments&page=attachments_content\')" />'; - } - $right_html .= '</center><iframe name="list_attach" id="list_attach" src="" ' - . 'frameborder="0" width="100%" scrolling="yes" height="600px" scrolling="yes" ></iframe>'; - $right_html .= '</div>'; - $right_html .= '</div>'; - $right_html .= '</div>'; - //$right_html .= '<hr />'; - $right_html .= '</div>'; - } - - - $right_html .= '</dd>'; - - - $valid_but = 'valid_action_form( \'index_file\', \'index.php?display=true&page=manage_action&module=core\', \''.$_REQUEST['action'].'\', \''.$res_id.'\', \'res_letterbox\', \'null\', \''.$coll_id.'\', \'page\');'; - -//echo "{status : 1,avancement:'".$avancement_html."',circuit:'".$circuit_html."',notes_dt:'".$notes_html_dt."',notes_dd:'".$notes_html_dd."'}"; -echo "{status : 1,left_html:'".addslashes($left_html)."',right_html:'".addslashes($right_html)."',valid_button:'".addslashes($valid_but)."',id_rep:'".$tab_path_rep_file[0]['res_id']."',is_vers_rep:'".$tab_path_rep_file[0]['is_version']."',exec_js:'".addslashes($js)."'}"; -exit(); diff --git a/modules/visa/visa_mail.php b/modules/visa/visa_mail.php index 1c344e5eb3a864fc991968d6174294178e14a247..3291dd53deefb88d50bca611507310f11f99853f 100644 --- a/modules/visa/visa_mail.php +++ b/modules/visa/visa_mail.php @@ -49,372 +49,7 @@ function writeLogIndex($EventInfo) function get_form_txt($values, $path_manage_action, $id_action, $table, $module, $coll_id, $mode ) { - //DECLARATIONS - include('apps'.DIRECTORY_SEPARATOR.$_SESSION['config']['app_id'].DIRECTORY_SEPARATOR.'definition_mail_categories.php'); - require_once "modules" . DIRECTORY_SEPARATOR . "visa" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_modules_tools.php"; - require_once("core" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_security.php"); - require_once("apps" . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_business_app_tools.php"); - require_once("modules" . DIRECTORY_SEPARATOR . "basket" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_modules_tools.php"); - require_once("apps" . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_types.php"); - require_once("core" . DIRECTORY_SEPARATOR . "class" . DIRECTORY_SEPARATOR . "class_request.php"); - - //INSTANTIATE - $sec = new security(); - $core_tools = new core_tools(); - $b = new basket(); - $type = new types(); - $business = new business_app_tools(); - $visa = new visa(); - $db = new Database(); - - //INITIALIZE - $frm_str = ''; - $_SESSION['stockCheckbox']= ''; - unset($_SESSION['m_admin']['contact']); - $_SESSION['req'] = "action"; - $res_id = $values[0]; - $_SESSION['doc_id'] = $res_id; - $_SESSION['current_basket']['lastBasketFromAction'] = $_SESSION['current_basket']['id']; - $view = $sec->retrieve_view_from_coll_id($coll_id); - $stmt = $db->query("select alt_identifier,category_id, status from " . $view . " where res_id = ?", array($res_id)); - $resChrono = $stmt->fetchObject(); - $chrono_number = $resChrono->alt_identifier; - $cat_id = $resChrono->category_id; - //LAUNCH DOCLOCKER - $docLockerCustomPath = 'apps/maarch_entreprise/actions/docLocker.php'; - $docLockerPath = $_SESSION['config']['businessappurl'] . '/actions/docLocker.php'; - - if (is_file($docLockerCustomPath)){ - require_once $docLockerCustomPath; - }else if (is_file($docLockerPath)){ - require_once $docLockerPath; - }else{ - exit("can't find docLocker.php"); - } - - $docLocker = new docLocker($res_id); - if (!$docLocker->canOpen()) { - $docLockerscriptError = '<script>'; - $docLockerscriptError .= 'destroyModal("modal_' . $id_action . '");'; - $docLockerscriptError .= 'alert("' . _DOC_LOCKER_RES_ID . '' . $res_id . '' . _DOC_LOCKER_USER . ' ' . $_SESSION['userLock'] . '");'; - $docLockerscriptError .= '</script>'; - return $docLockerscriptError; - } - - // DocLocker constantly - $frm_str .= '<script>'; - $frm_str .= 'docLockInterval = setInterval("new Ajax.Request(\'' . $_SESSION['config']['businessappurl'] . 'index.php?display=true&dir=actions&page=docLocker\',{ method:\'post\', parameters: {\'AJAX_CALL\': true, \'lock\': true, \'res_id\': ' . $res_id . '} });", 5000);'; - $frm_str .= '</script>'; - - $docLocker->lock(); - - //MODAL CONTENT - $frm_str .= '<h2 class="tit" id="action_title">' . _VISA_MAIL . ' ' . _NUM . '<span id="numIdDocPage">'; - - if(_ID_TO_DISPLAY == 'res_id'){ - $frm_str .= $res_id; - } else if (_ID_TO_DISPLAY == 'chrono_number'){ - $frm_str .= $chrono_number; - } - - $frm_str .='</span>'; - - $frm_str .= '</h2>'; - $frm_str .='<i onmouseover="this.style.cursor=\'pointer\';" ' . 'onclick="new Ajax.Request(\'' . $_SESSION['config']['businessappurl'] . 'index.php?display=true&dir=actions&page=docLocker\',{ method:\'post\', parameters: {\'AJAX_CALL\': true, \'unlock\': true, \'res_id\': ' . $res_id . '}, onSuccess: function(answer){var cur_url=window.location.href; if (cur_url.indexOf(\'&directLinkToAction\') != -1) cur_url=cur_url.replace(\'&directLinkToAction\',\'\');window.location.href=cur_url;} });javascript:$(\'baskets\').style.visibility=\'visible\';destroyModal(\'modal_'.$id_action.'\');reinit();" class="fa fa-times-circle fa-2x closeModale" title="'._CLOSE.'"/>'; - $frm_str .= '</i>'; - $frm_str .= '<div>'; - $pathScriptTab = $_SESSION['config']['businessappurl'].'index.php?display=true&page=show_visaListDocBasket_tab&module=visa&resId='. $res_id.'&collId='.$coll_id.'&view='.$view; - $frm_str .= '<i id="firstFrame" class="fa fa-arrow-circle-o-right fa-2x" style="margin-left: 13.8%;cursor: pointer" onclick="loadSpecificTab(\'show_visaListDocBasket_tab\',\''.$pathScriptTab.'\');manageFrame(this)"></i>'; - $frm_str .= '<i id="secondFrame" class="fa fa-arrow-circle-o-left fa-2x" style="margin-left: 40.9%;cursor: pointer" onclick="manageFrame(this)"></i>'; - $frm_str .= '<i id="thirdFrame" class="fa fa-arrow-circle-o-right fa-2x" style="margin-left: 0.6%;cursor: pointer" onclick="manageFrame(this)"></i>'; - $frm_str .= '</div>'; - - //List of documents - $frm_str .= '<div id="visa_listDoc" style="display:none;">'; - $frm_str .= '<iframe src="" name="show_visaListDocBasket_tab" id="show_visaListDocBasket_tab" scrolling="auto" frameborder="0" style="width:100%;height:100%;" ></iframe></dd>'; - - $frm_str .= '</div>'; - - $frm_str .= '<div id="visa_left" style="display:none;">'; - - //TODO BEGIN OF CLEAN - $frm_str .= '<dl id="tabricatorLeft" >'; - - //Onglet document - if ($cat_id != 'outgoing'){ - $pathScriptTab = $_SESSION['config']['businessappurl'].'index.php?display=true&dir=indexing_searching&page=view_resource_controler&visu&id='. $res_id.'&collid='.$coll_id; - $frm_str .= '<dt id="onglet_entrant" style="padding-top: 6px;" onclick="loadSpecificTab(\'viewframevalidDoc\',\''.$pathScriptTab.'\');return false;">'._INCOMING.' <sup><span id="" style="'.$style2.'" class="'.$class.'"></span></sup></dt><dd style="overflow-y: hidden;">'; - $frm_str .= '<iframe src="" name="viewframevalidDoc" id="viewframevalidDoc" scrolling="auto" frameborder="0" style="width:100%;height:100%;" ></iframe></dd>'; - - $frm_str .= '</dd>'; - $frm_str .= '<script>$$(\'#onglet_entrant\')[0].click();</script>'; - }else{ - $frm_str .= '<script>$$(\'#visa_tab\')[0].click();</script>'; - } - - - //Onglet Circuit - $pathScriptTab = $_SESSION['config']['businessappurl'] . 'index.php?display=true&page=show_visa_tab&module=visa&resId='.$res_id.'&collId='.$coll_id.'&visaStep=true&destination='.$data['destination']['value']; - $frm_str .= '<dt id="visa_tab" style="padding-top: 6px;" onclick="loadSpecificTab(\'workflow_visa\',\''.$pathScriptTab.'\');return false;">'._VISA_WORKFLOW.'<span id="visa_tab_img"></span><span id="visa_tab_badge"></span></dt><dd id="page_circuit" style="overflow-x: hidden;">'; - $frm_str .= '<h2>'._VISA_WORKFLOW.'</h2>'; - $frm_str .= '<iframe src="" name="workflow_visa" width="100%" height="620px" align="left" scrolling="yes" frameborder="0" id="workflow_visa"></iframe>'; - $frm_str .= '</dd>'; - //LOAD TOOLBAR BADGE - $toolbarBagde_script = $_SESSION['config']['businessappurl'] . 'index.php?display=true&module=visa&page=load_toolbar_visa&resId='.$res_id.'&collId='.$coll_id; - $frm_str .='<script>loadToolbarBadge(\'visa_tab\',\''.$toolbarBagde_script.'\');</script>'; - - - //Onglet Avancement - $pathScriptTab = $_SESSION['config']['businessappurl'].'index.php?display=true&dir=indexing_searching&page=document_workflow_history&id='. $res_id .'&coll_id='. $coll_id.'&load&size=full'; - $frm_str .= '<dt id="onglet_avancement" style="padding-top: 6px;" onclick="loadSpecificTab(\'workflow_history_document\',\''.$pathScriptTab.'\');return false;">Avancement <sup><span id="" style="'.$style2.'" class="'.$class.'"></span></sup></dt><dd id="page_avancement" style="overflow-x: hidden;">'; - $frm_str .= '<h2>'. _WF .'</h2>'; - $frm_str .= '<iframe src="" name="workflow_history_document" width="100%" height="620px" align="left" scrolling="yes" frameborder="0" id="workflow_history_document"></iframe>'; - $frm_str .= '<br/>'; - $frm_str .= '<br/>'; - - $pathScriptTab = $_SESSION['config']['businessappurl'].'index.php?display=true&dir=indexing_searching&page=document_history&id='. $res_id .'&coll_id='. $coll_id.'&load&size=full'; - $frm_str .= '<span style="cursor: pointer;" onmouseover="this.style.cursor=\'pointer\';" onclick="new Effect.toggle(\'history_document\', \'blind\', {delay:0.2});whatIsTheDivStatus(\'history_document\', \'divStatus_all_history_div\');loadSpecificTab(\'history_document\',\''.$pathScriptTab.'\');return false;">'; - $frm_str .= '<span id="divStatus_all_history_div" style="color:#1C99C5;"><i class="fa fa-plus-square-o"></i></span>'; - $frm_str .= '<b> '. _ALL_HISTORY .'</b>'; - $frm_str .= '</span>'; - $frm_str .= '<iframe src="" name="history_document" width="100%" height="620px" align="left" scrolling="yes" frameborder="0" id="history_document" style="display:none;"></iframe>'; - - $frm_str .= '</dd>'; - - //Onglet notes - if ($core->is_module_loaded('notes')) { - - $pathScriptTab = $_SESSION['config']['businessappurl'] . 'index.php?display=true&module=notes&page=notes&identifier=' . $res_id . '&origin=document&coll_id=' . $coll_id . '&load&size=full'; - $frm_str .= '<dt id="notes_tab" style="padding-top: 6px;" onclick="loadSpecificTab(\'list_notes_doc\',\'' . $pathScriptTab . '\');return false;">' . _NOTES . '<span id="notes_tab_img"></span><span id="notes_tab_badge"></span></dt><dd id="page_notes" style="overflow-x: hidden;"><h2>' . _NOTES . '</h2><iframe name="list_notes_doc" id="list_notes_doc" src="" frameborder="0" scrolling="yes" width="99%" height="570px"></iframe></dd> '; - - //LOAD TOOLBAR BADGE - $toolbarBagde_script = $_SESSION['config']['businessappurl'] . 'index.php?display=true&module=notes&page=load_toolbar_notes&resId='.$res_id.'&collId='.$coll_id; - $frm_str .='<script>loadToolbarBadge(\'notes_tab\',\''.$toolbarBagde_script.'\');</script>'; - } - $frm_str .= '</dl>'; - $frm_str .= '</div>'; - - $frm_str .= '<div id="visa_right" style="display:none;">'; - $frm_str .= '<div style="height:100%;">'; - $frm_str .= '<dl id="tabricatorRight" >'; - $tab_path_rep_file = $visa->get_rep_path($res_id, $coll_id); - $cptAttach = count($tab_path_rep_file); - if ($cptAttach < 6) { - $viewMode = 'extended'; - } elseif ($cptAttach < 10) { - $viewMode = 'small'; - } else { - $viewMode = 'verysmall'; - } - for ($i = 0; $i < $cptAttach; $i++) { - $num_rep = $i + 1; - if ($viewMode == 'verysmall') { - $titleRep = $i + 1; - } elseif ($viewMode == 'small') { - $titleRep = substr($_SESSION['attachment_types'][$tab_path_rep_file[$i]['attachment_type']], 0, 10); - } else { - if (strlen($tab_path_rep_file[$i]['title']) > 15){ - $titleRep = substr($_SESSION['attachment_types'][$tab_path_rep_file[$i]['attachment_type']], 0, 15) . '...'; - }else{ - $titleRep = $_SESSION['attachment_types'][$tab_path_rep_file[$i]['attachment_type']]; - } - } - if ($tab_path_rep_file[$i]['attachment_type'] == 'signed_response') { - $titleRep = '<sup><i style="color:#fdd16c" class="fa fa-certificate fa-lg fa-fw"></i></sup>' . $titleRep; - } - $pathScriptTab = $_SESSION['config']['businessappurl'] . 'index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master=' . $res_id . '&id=' . $tab_path_rep_file[$i]['res_id']; - $frm_str .= '<dt style="padding-top: 6px;" title="' - . $tab_path_rep_file[$i]['title'] . '" id="ans_' . $num_rep . '_' . $tab_path_rep_file[$i]['res_id'] . '" onclick="loadSpecificTab(\'viewframevalidRep' . $num_rep . '_' . $tab_path_rep_file[$i]['res_id'] . '\',\'' . $pathScriptTab . '\');updateFunctionModifRep(\'' - . $tab_path_rep_file[$i]['res_id'] . '\', ' . $num_rep . ', ' . $tab_path_rep_file[$i]['is_version'] . ');">' . $titleRep - . ' <sup><span class="" style="" id=""></span></sup></dt><dd id="content_' . $num_rep . '_' . $tab_path_rep_file[$i]['res_id'] . '">'; - $frm_str .= '<iframe src="" name="viewframevalidRep' . $num_rep . '" id="viewframevalidRep' . $num_rep . '_' . $tab_path_rep_file[$i]['res_id'] . '" scrolling="auto" frameborder="0" style="width:100%;height:100%;" ></iframe>'; - $frm_str .= '</dd>'; - //$frm_str .= '<script>console.log('.$cptAttach.');</script>'; - if($i==0){ - $frm_str .= '<script>$$(\'#ans_' . $num_rep . '_' . $tab_path_rep_file[$i]['res_id'] . '\')[0].click();</script>'; - } - - } - - $pathScriptTab = $_SESSION['config']['businessappurl'] . 'index.php?display=true&module=attachments&page=frame_list_attachments&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder'; - - $frm_str .= '<dt title="' . _ATTACHED_DOC .'" id="attachments_tab" style="padding-top: 6px;" onclick="loadSpecificTab(\'list_attach\',\''.$pathScriptTab.'\');$(\'cur_idAffich\').value=0;updateFunctionModifRep(0,0,0);">PJ<span id="attachments_tab_img"></span><span id="attachments_tab_badge"></span></dt><dd id="page_pj">'; - - //LOAD TOOLBAR BADGE - $toolbarBagde_script = $_SESSION['config']['businessappurl'] . 'index.php?display=true&module=attachments&page=load_toolbar_attachments&resId='.$res_id.'&collId='.$coll_id; - $frm_str .='<script>loadToolbarBadge(\'attachments_tab\',\''.$toolbarBagde_script.'\');</script>'; - - if ($core_tools->is_module_loaded('attachments')) { - require 'modules/templates/class/templates_controler.php'; - $templatesControler = new templates_controler(); - $templates = array(); - $templates = $templatesControler->getAllTemplatesForProcess($curdest); - $_SESSION['destination_entity'] = $curdest; - //var_dump($templates); - $frm_str .= '<div id="list_answers_div" onmouseover="this.style.cursor=\'pointer\';" style="width:100%;height:100%;">'; - $frm_str .= '<div class="block" style="margin-top:-2px;height:95%;">'; - $frm_str .= '<div id="processframe" name="processframe" style="height:100%;">'; - $frm_str .= '<center><h2>' . _PJ . ', ' . _ATTACHEMENTS . '</h2></center>'; - - $frm_str .= '<div class="ref-unit">'; - - $frm_str .= '<center>'; - if ($core_tools->is_module_loaded('templates')) { - $frm_str .= '<input type="button" name="attach" id="attach" class="button" value="' - . _CREATE_PJ - .'" onclick="showAttachmentsForm(\'' . $_SESSION['config']['businessappurl'] - . 'index.php?display=true&module=attachments&page=attachments_content\')" />'; - } - $frm_str .= '</center><iframe name="list_attach" id="list_attach" src="" ' - . 'frameborder="0" width="100%" scrolling="yes" height="600px" scrolling="yes" ></iframe>'; - $frm_str .= '</div>'; - $frm_str .= '</div>'; - $frm_str .= '</div>'; - //$frm_str .= '<hr />'; - $frm_str .= '</div>'; - } - - - $frm_str .= '</dd>'; - - - $frm_str .= '</dl>'; - $frm_str .= '<div class="toolbar">'; - $frm_str .= '<table style="width:100%;">'; - - $frm_str .= '<tr>'; - $frm_str .= '<td>'; - $frm_str .= '<form name="index_file" method="post" id="index_file" action="#" class="forms " style="text-align:left;">'; - $frm_str .= 'Consigne <input type="text" value="'.$visa->getConsigne($res_id, $coll_id, $_SESSION['user']['UserId']).'" style="width:50%;" readonly class="readonly"/><br/>'; - - //GET ACTION LIST BY AJAX REQUEST - $frm_str .= '<span id="actionSpan"></span>'; - $frm_str .= '<script>'; - $frm_str .= 'change_category_actions(\'' - . $_SESSION['config']['businessappurl'] - . 'index.php?display=true&dir=indexing_searching&page=change_category_actions' - . '&resId=' . $res_id . '&collId=' . $coll_id . '\',\'' . $res_id . '\',\'' . $coll_id . '\',\''.$cat_id.'\');'; - $frm_str .= '</script>'; - $frm_str .= '<input type="button" name="send" id="send_action" value="'._VALIDATE.'" class="button" onclick="new Ajax.Request(\'' - . $_SESSION['config']['businessappurl'] . 'index.php?display=true&dir=actions&page=docLocker\',{ method:\'post\', parameters: {\'AJAX_CALL\': true, \'unlock\': true, \'res_id\': ' . $res_id . '} });valid_action_form( \'index_file\', \''.$path_manage_action.'\', \''. $id_action.'\', \''.$res_id.'\', \''.$table.'\', \''.$module.'\', \''.$coll_id.'\', \''.$mode.'\');"/> '; - // - - /*$frm_str .= '<b>'._ACTIONS.' : </b>'; - $actions = $b->get_actions_from_current_basket($res_id, $coll_id, 'PAGE_USE'); - if(count($actions) > 0) - { - $frm_str .='<select name="chosen_action" id="chosen_action">'; - $frm_str .='<option value="">'._CHOOSE_ACTION.'</option>'; - for($ind_act = 0; $ind_act < count($actions);$ind_act++) - { - if (!($actions[$ind_act]['VALUE'] == "end_action" && $visa->getCurrentStep($res_id, $coll_id, 'VISA_CIRCUIT') == $visa->nbVisa($res_id, $coll_id))){ - $frm_str .='<option value="'.$actions[$ind_act]['VALUE'].'"'; - if($ind_act==0) - { - $frm_str .= 'selected="selected"'; - } - $frm_str .= '>'.$actions[$ind_act]['LABEL'].'</option>'; - } - } - $frm_str .='</select> '; - $table = $sec->retrieve_table_from_coll($coll_id); - $frm_str .= '<input type="button" name="send" id="send_action" value="'._VALIDATE.'" class="button" onclick="new Ajax.Request(\'' - . $_SESSION['config']['businessappurl'] . 'index.php?display=true&dir=actions&page=docLocker\',{ method:\'post\', parameters: {\'AJAX_CALL\': true, \'unlock\': true, \'res_id\': ' . $res_id . '} });valid_action_form( \'index_file\', \''.$path_manage_action.'\', \''. $id_action.'\', \''.$res_id.'\', \''.$table.'\', \''.$module.'\', \''.$coll_id.'\', \''.$mode.'\');"/> '; - }*/ - - - $frm_str .= '<input type="hidden" name="cur_rep" id="cur_rep" value="'.$tab_path_rep_file[0]['res_id'].'" >'; - $frm_str .= '<input type="hidden" name="cur_idAffich" id="cur_idAffich" value="1" >'; - $frm_str .= '<input type="hidden" name="cur_resId" id="cur_resId" value="'.$res_id.'" >'; - $frm_str .= '<input type="hidden" name="list_docs" id="list_docs" value="'.$list_docs.'" >'; - - $frm_str .= '<input type="hidden" name="values" id="values" value="'.$res_id.'" />'; - $frm_str .= '<input type="hidden" name="action_id" id="action_id" value="'.$id_action.'" />'; - $frm_str .= '<input type="hidden" name="mode" id="mode" value="'.$mode.'" />'; - $frm_str .= '<input type="hidden" name="table" id="table" value="'.$table.'" />'; - $frm_str .= '<input type="hidden" name="coll_id" id="coll_id" value="'.$coll_id.'" />'; - $frm_str .= '<input type="hidden" name="module" id="module" value="'.$module.'" />'; - $frm_str .= '<input type="hidden" name="category_id" id="category_id" value="'.$cat_id.'" />'; - $frm_str .= '<input type="hidden" name="req" id="req" value="second_request" />'; - - - //$frm_str .= '<input type="hidden" name="next_resId" id="next_resId" value="'.$nextId.'" >'; - $frm_str .= '</form>'; - $frm_str .= '</td>'; - $frm_str .= '<td style="width:25%;">'; - //if ($core->test_service('sign_document', 'visa', false) && $currentStatus == 'ESIG') { - if ($core->test_service('sign_document', 'visa', false) ) { - $color = ' style="float:left;color:#666;" '; - $img = '<img id="sign_link_img" src="'.$_SESSION['config']['businessappurl'].'static.php?filename=sign.png" title="Signer ces projets de réponse (sans certificat)" />'; - if ($tab_path_rep_file[0]['attachment_type'] == 'signed_response'){ - $color = ' style="float:left;color:green;cursor:not-allowed;" '; - $img = '<img id="sign_link_img" src="'.$_SESSION['config']['businessappurl'].'static.php?filename=sign_valid.png" title="Enlever la signature" />'; - } - - if ($_SESSION['modules_loaded']['visa']['showAppletSign'] == "true"){ - $frm_str .= '<a href="javascript://" id="sign_link_certif" '.$color.' onclick="'; - if ($tab_path_rep_file[0]['attachment_type'] != 'signed_response') $frm_str .= 'signFile('.$tab_path_rep_file[0]['res_id'].','.$tab_path_rep_file[0]['is_version'].',0);'; - $frm_str .= '"><i class="fm fm-file-fingerprint fm-3x" title="Signer ces projets de réponse (avec certificat)"></i></a>'; - } - if ($tab_path_rep_file[0]['attachment_type'] != 'signed_response'){ - $frm_str .= ' <a href="javascript://" id="sign_link" '.$color.' onclick="'; - $frm_str .= 'signFile('.$tab_path_rep_file[0]['res_id'].','.$tab_path_rep_file[0]['is_version'].',2);'; - }else{ - $frm_str .= ' <a target="list_attach" href="'; - $frm_str .= 'index.php?display=true&module=attachments&page=del_attachment&relation=1&id='.$tab_path_rep_file[0]['res_id']; - } - $frm_str .= '" id="sign_link" '.$color.'>'.$img.'</a>'; - } - - $displayModif = ' style="float:right;" '; - if ($tab_path_rep_file[0]['attachment_type'] == 'signed_response') - $displayModif = ' style="float:right;display:none;" '; - - $frm_str .= ' <a href="javascript://" id="update_rep_link" '.$displayModif.'onclick="'; - - /*if ($tab_path_rep_file[0]['attachment_type'] == 'outgoing_mail'){ - $frm_str .= 'window.open(\'' - . $_SESSION['config']['businessappurl'] . 'index.php?display=true' - . '&module=content_management&page=applet_popup_launcher&objectType=resourceEdit' - . '&objectId=' - . $tab_path_rep_file[0]['res_id'] - . '&objectTable=' - . $table - . '\', \'\', \'height=200, width=250,scrollbars=no,resizable=no,directories=no,toolbar=no\');'; - } - else*/ - if ($tab_path_rep_file[0]['is_version'] == 0 || $tab_path_rep_file[0]['is_version'] == 2) { - $frm_str .= 'modifyAttachmentsForm(\''.$_SESSION['config']['businessappurl'] - . 'index.php?display=true&module=attachments&page=attachments_content&id=' - . $tab_path_rep_file[0]['res_id'] . '&relation=1&fromDetail=\',\'98%\',\'auto\');'; - } else { - $frm_str .= 'modifyAttachmentsForm(\''.$_SESSION['config']['businessappurl'] - . 'index.php?display=true&module=attachments&page=attachments_content&id=' - . $tab_path_rep_file[0]['res_id'] . '&relation=2&fromDetail=\',\'98%\',\'auto\');'; - } - $frm_str .= '"><i class="fa fa-pencil-square-o fa-3x" title="Modifier la réponse"></i></a>'; - - $frm_str .= '</td>'; - $frm_str .= '</tr>'; - $frm_str .= '</table>'; - - $frm_str .= '</div>'; - $frm_str .= '</div>'; - - $frm_str .= '<div id="modalPIN">'; - $frm_str .= '<p id="badPin" style="display:none;color:red;font-weight:bold;text-align:center;margin-top: -15px">'. _BAD_PIN .'</p>'; - $frm_str .= '<label for="valuePIN">Saisissez votre code PIN</label>'; - $frm_str .= '<input type="password" name="valuePIN" id="valuePIN" onKeyPress="if (event.keyCode == 13) signFile('.$tab_path_rep_file[0]['res_id'].','.$tab_path_rep_file[0]['is_version'].',\'\', $(\'valuePIN\').value);"/><br/>'; - $frm_str .= '<input type="button" name="sendPIN" id="sendPIN" value="'._VALIDATE.'" class="button" onclick="signFile('.$tab_path_rep_file[0]['res_id'].','.$tab_path_rep_file[0]['is_version'].',\'\', $(\'valuePIN\').value);" />'; - $frm_str .= ' <input type="button" name="cancelPIN" id="cancelPIN" value="'._CANCEL.'" class="button" onclick="$(\'badPin\').style.display = \'none\';$(\'modalPIN\').style.display = \'none\';" />'; - $frm_str .= '</div>'; - - /*** Extra javascript ***/ - $frm_str .= '<script type="text/javascript">launchTabri();window.scrollTo(0,0);$(\'divList\').style.display = \'none\';'; - $frm_str .='var height = (parseInt($(\'visa_left\').parentElement.style.height.replace(/px/,""))-65)+"px";$(\'visa_listDoc\').style.height=height;$(\'visa_left\').style.height=height;$(\'visa_right\').style.height=height;$(\'tabricatorRight\').style.height=(parseInt($(\'tabricatorRight\').offsetHeight)-20)+"px";height = (parseInt($(\'tabricatorRight\').offsetHeight)-150)+"px";$(\'list_attach\').style.height=height;'; - $frm_str .= '$(\'visa_left\').style.display=\'block\';$(\'visa_right\').style.display=\'block\';manageFrame(\'firstFrame\');'; - $frm_str .='</script>'; - return addslashes($frm_str); + //Keep this file because of manage action } /** @@ -474,39 +109,6 @@ function get_value_fields($values, $field) function manage_form($arr_id, $history, $id_action, $label_action, $status, $coll_id, $table, $values_form ) { $res_id = $arr_id[0]; - - $act_chosen = get_value_fields($values_form, 'chosen_action'); - - /*if ($act_chosen == "end_action"){ - require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_security.php"); - require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_request.php"); - $sec = new security(); - - - $replaceValues = array(); - array_push( - $replaceValues, - array( - 'column' => 'process_date', - 'value' => 'CURRENT_TIMESTAMP', - 'type' => 'date', - ) - ); - $where = 'res_id = ? and item_id = ? and difflist_type = ?'; - $array_what[] = $res_id; - $array_what[] = $_SESSION['user']['UserId']; - $array_what[] = 'VISA_CIRCUIT'; - - $request = new request(); - $table = 'listinstance'; - $request->PDOupdate($table, $replaceValues, $where, $array_what, $_SESSION['config']['databasetype']); - - $circuit_visa = new visa(); - if ($circuit_visa->allUserVised($res_id, $coll_id, 'VISA_CIRCUIT')){ - $up_request = "UPDATE res_letterbox SET status='ESIG' WHERE res_id = $res_id"; - $db = new Database(); - $db->query("UPDATE res_letterbox SET status='ESIG' WHERE res_id = ?", array($res_id)); - } - }*/ + return array('result' => $res_id.'#', 'history_msg' => ''); } diff --git a/package.json b/package.json index 342915691aff90a2da41e05b098aac94cbb5a73d..c99e457318e24639794ef52bded94bbe5980330a 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "angular-in-memory-web-api": "~0.2.5", "browserify": "^13.0.1", "typescript": "^2.3.0", - "uglifyjs": "^2.4.10", + "uglify-js": "^3.0.9", "@types/jquery": "^2.0.40", "@types/node": "^7.0.8" },