diff --git a/server/src/uds/static/modern/main.js b/server/src/uds/static/modern/main.js
index 3e25bc94..0568e571 100644
--- a/server/src/uds/static/modern/main.js
+++ b/server/src/uds/static/modern/main.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{6498:(We,ye,C)=>{C.d(ye,{z:()=>g});var c=C(4893),o=C(2313);let g=(()=>{class Y{constructor(q){this.sanitizer=q}transform(q,De){return q=(q=(q=q.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(q)}}return Y.\u0275fac=function(q){return new(q||Y)(c.Y36(o.H7,16))},Y.\u0275pipe=c.Yjl({name:"safeHtml",type:Y,pure:!0}),Y})()},5928:(We,ye,C)=>{C.d(ye,{h:()=>Be});var c=C(8966),o=C(8306),g=C(4986),Y=C(5963),q=C(4893),De=C(9808),Ee=C(7423),ue=C(7918),te=C(6498);function se(K,et){if(1&K){const Ze=q.EpF();q.TgZ(0,"button",3),q.NdJ("click",function(){return q.CHM(Ze),q.oxw().close()}),q.TgZ(1,"uds-translate"),q._uU(2,"Close"),q.qZA(),q._uU(3),q.qZA()}if(2&K){const Ze=q.oxw();q.xp6(3),q.Oqu(Ze.extra)}}function de(K,et){if(1&K){const Ze=q.EpF();q.TgZ(0,"button",3),q.NdJ("click",function(){return q.CHM(Ze),q.oxw().yes()}),q.TgZ(1,"uds-translate"),q._uU(2,"Yes"),q.qZA()()}}function X(K,et){if(1&K){const Ze=q.EpF();q.TgZ(0,"button",3),q.NdJ("click",function(){return q.CHM(Ze),q.oxw().no()}),q.TgZ(1,"uds-translate"),q._uU(2,"No"),q.qZA()()}}var le=(()=>{return(K=le||(le={}))[K.alert=0]="alert",K[K.yesno=1]="yesno",le;var K})();let ke=(()=>{class K{constructor(Ze,Qe){this.dialogRef=Ze,this.data=Qe,this.subscription=null,this.resetCallbacks(),this.yesno=new o.y(me=>{this.yes=()=>{me.next(!0),me.complete()},this.no=()=>{me.next(!1),me.complete()},this.close=()=>{this.doClose(),me.next(!1),me.complete()};const z=this;return{unsubscribe:()=>z.resetCallbacks()}})}resetCallbacks(){this.yes=this.no=()=>this.close(),this.close=()=>this.doClose()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}doClose(){this.dialogRef.close()}setExtra(Ze){this.extra=" ("+Math.floor(Ze/1e3)+" "+django.gettext("seconds")+") "}initAlert(){this.data.autoclose>0?(this.dialogRef.afterClosed().subscribe(Ze=>{this.closed()}),this.setExtra(this.data.autoclose),this.subscription=function ce(K=0,et=g.z){return K<0&&(K=0),(0,Y.H)(K,K,et)}(1e3).subscribe(Ze=>{const Qe=this.data.autoclose-1e3*(Ze+1);this.setExtra(Qe),Qe<=0&&this.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(Ze=>{this.closed()}),this.subscription=this.data.checkClose.subscribe(Ze=>{window.setTimeout(()=>{this.doClose()})}))}initYesNo(){}ngOnInit(){this.data.type===le.yesno?this.initYesNo():this.initAlert()}}return K.\u0275fac=function(Ze){return new(Ze||K)(q.Y36(c.so),q.Y36(c.WI))},K.\u0275cmp=q.Xpm({type:K,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(Ze,Qe){1&Ze&&(q._UZ(0,"h4",0),q.ALo(1,"safeHtml"),q._UZ(2,"mat-dialog-content",1),q.ALo(3,"safeHtml"),q.TgZ(4,"mat-dialog-actions"),q.YNc(5,se,4,1,"button",2),q.YNc(6,de,3,0,"button",2),q.YNc(7,X,3,0,"button",2),q.qZA()),2&Ze&&(q.Q6J("innerHtml",q.lcZ(1,5,Qe.data.title),q.oJD),q.xp6(2),q.Q6J("innerHTML",q.lcZ(3,7,Qe.data.body),q.oJD),q.xp6(3),q.Q6J("ngIf",0===Qe.data.type),q.xp6(1),q.Q6J("ngIf",1===Qe.data.type),q.xp6(1),q.Q6J("ngIf",1===Qe.data.type))},directives:[c.uh,c.xY,c.H8,De.O5,Ee.lW,c.ZT,ue.P],pipes:[te.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),K})(),Be=(()=>{class K{constructor(Ze){this.dialog=Ze}alert(Ze,Qe,me=0,z=null){const Q=window.innerWidth<800?"80%":"40%";return this.dialog.open(ke,{width:Q,data:{title:Ze,body:Qe,autoclose:me,checkClose:z,type:le.alert},disableClose:!0})}yesno(Ze,Qe){const me=window.innerWidth<800?"80%":"40%";return this.dialog.open(ke,{width:me,data:{title:Ze,body:Qe,type:le.yesno},disableClose:!0}).componentInstance.yesno}}return K.\u0275fac=function(Ze){return new(Ze||K)(q.LFG(c.uw))},K.\u0275prov=q.Yz7({token:K,factory:K.\u0275fac}),K})()},2870:(We,ye,C)=>{C.d(ye,{S:()=>o});var c=C(8306);let o=(()=>{class g{constructor(ce){this.api=ce,this.delay=ce.config.launcher_wait_time}launchURL(ce){let q="init";const De=Ee=>{let ue=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof Ee?ue=Ee:403===Ee.status&&(ue=django.gettext("Your session has expired. Please, login again")),window.setTimeout(()=>{this.showAlert(django.gettext("Error"),ue,5e3),403===Ee.status&&window.setTimeout(()=>{this.api.logout()},5e3)})};if("udsa://"===ce.substring(0,7)){const Ee=ce.split("//")[1].split("/"),ue=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new c.y(te=>{let se=0;const de=()=>{ue.componentInstance&&this.api.status(Ee[0],Ee[1]).subscribe(le=>{"ready"===le.status?(se?Date.now()-se>5*this.delay&&(ue.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),ue.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(se=Date.now(),ue.componentInstance.data.title=django.gettext("Service ready"),ue.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(de,this.delay)):"accessed"===le.status?(ue.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),te.next(!0),te.complete()):"running"===le.status?window.setTimeout(de,this.delay):(te.next(!0),te.complete(),De())},le=>{te.next(!0),te.complete(),De(le)})},X=()=>{if("init"===q)window.setTimeout(X,this.delay);else{if("error"===q||"stop"===q)return;window.setTimeout(de)}};window.setTimeout(X)}));this.api.enabler(Ee[0],Ee[1]).subscribe(te=>{if(te.error)q="error",this.api.gui.alert(django.gettext("Error launching service"),te.error);else{if(te.url.startsWith("/"))return ue.componentInstance&&ue.componentInstance.close(),q="stop",void this.launchURL(te.url);"https:"===window.location.protocol&&(te.url=te.url.replace("uds://","udss://")),q="enabled",this.doLaunch(te.url)}},te=>{this.api.logout()})}else{const Ee=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new c.y(ue=>{const te=()=>{Ee.componentInstance&&this.api.transportUrl(ce).subscribe(se=>{if(se.url)if(ue.next(!0),ue.complete(),-1!==se.url.indexOf("o_s_w=")){const de=/(.*)&o_s_w=.*/.exec(se.url);window.location.href=de[1]}else{let de="global";if(-1!==se.url.indexOf("o_n_w=")){const X=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(se.url);X&&(de=X[2],se.url=X[1])}g.transportsWindow[de]&&g.transportsWindow[de].close(),g.transportsWindow[de]=window.open(se.url,"uds_trans_"+de)}else se.running?window.setTimeout(te,this.delay):(ue.next(!0),ue.complete(),De(se.error))},se=>{ue.next(!0),ue.complete(),De(se)})};window.setTimeout(te)}))}}showAlert(ce,q,De,Ee=null){return this.api.gui.alert(django.gettext("Launching service"),'
'+ce+'
'+q+"
",De,Ee)}doLaunch(ce){let q=document.getElementById("hiddenUdsLauncherIFrame");if(null===q){const De=document.createElement("div");De.id="testID",De.innerHTML='',document.body.appendChild(De),q=document.getElementById("hiddenUdsLauncherIFrame")}q.contentWindow.location.href=ce}}return g.transportsWindow={},g})()},4902:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{G:()=>LoginComponent});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4893),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2382),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7322),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7531),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9808),_angular_material_select__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4107),_angular_material_core__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(508),_angular_material_button__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7423),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(We,ye){if(1&We&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&We){const C=ye.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",C.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",C.name," ")}}function LoginComponent_div_22_Template(We,ye){if(1&We){const C=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9)(1,"mat-form-field",17)(2,"mat-label")(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(o){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(C),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(o.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()()}if(2&We){const C=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",C.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",C.auths)}}let LoginComponent=(()=>{class LoginComponent{constructor(We){this.api=We,this.title="UDS Enterprise",this.title=We.config.site_name,this.auths=We.config.authenticators.slice(0),this.auths.sort((ye,C)=>ye.priority-C.priority)}ngOnInit(){document.getElementById("loginform").action=this.api.config.urls.login;const ye=document.getElementById("token");ye.name=this.api.csrfField,ye.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),""+this.api.errors.join("
")+"
")}changeAuth(auth){this.auth.value=auth;const doCustomAuth=data=>{eval(data)};for(const We of this.auths)We.id===auth&&We.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(We.id).subscribe(ye=>doCustomAuth(ye)))}launch(){return document.getElementById("loginform").submit(),!0}}return LoginComponent.\u0275fac=function We(ye){return new(ye||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function We(ye,C){1&ye&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return C.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1)(2,"input",2)(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4)(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8)(10,"div",9)(11,"mat-form-field",10)(12,"mat-label")(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9)(17,"mat-form-field",10)(18,"mat-label")(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14)(24,"button",15)(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()),2&ye&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",C.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",C.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",C.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,C.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_select__WEBPACK_IMPORTED_MODULE_7__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_8__.ey,_angular_material_button__WEBPACK_IMPORTED_MODULE_9__.lW],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0000001f,0 1px 5px #0003;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent})()},7918:(We,ye,C)=>{C.d(ye,{P:()=>o});var c=C(4893);let o=(()=>{class g{constructor(ce){this.el=ce}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}return g.\u0275fac=function(ce){return new(ce||g)(c.Y36(c.SBq))},g.\u0275dir=c.lG2({type:g,selectors:[["uds-translate"]]}),g})()},3513:(We,ye,C)=>{C.d(ye,{n:()=>c});class c{constructor(g){this.user=g.user,this.role=g.role,this.admin=g.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}get isRestricted(){return"restricted"===this.role}}},7540:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{n:()=>UDSApiService});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4893),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(520),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5928),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9525);const DARK_THEME="dark-theme",LIGHT_THEME="light-theme";let UDSApiService=(()=>{class UDSApiService{constructor(We,ye,C){this.http=We,this.gui=ye,this.router=C,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get staffInfo(){return udsData.info}get plugins(){return udsData.plugins}get actors(){return udsData.actors}get errors(){return udsData.errors}enabler(We,ye){const C=this.config.urls.enabler.replace("param1",We).replace("param2",ye);return this.http.get(C)}status(We,ye){const C=this.config.urls.status.replace("param1",We).replace("param2",ye);return this.http.get(C)}action(We,ye){const C=this.config.urls.action.replace("param1",ye).replace("param2",We);return this.http.get(C)}transportUrl(We){return this.http.get(We)}galleryImageURL(We){return this.config.urls.galleryImage.replace("param1",We)}transportIconURL(We){return this.config.urls.transportIcon.replace("param1",We)}staticURL(We){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+We:"/static/"+We}getServicesInformation(){return this.http.get(this.config.urls.services)}getErrorInformation(We){return this.http.get(this.config.urls.error.replace("9999",We))}executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}gotoAdmin(){window.location.href=this.config.urls.admin}logout(){window.location.href=this.config.urls.logout}launchURL(We){this.plugin.launchURL(We)}getAuthCustomHtml(We){return this.http.get(this.config.urls.customAuth+We,{responseType:"text"})}switchTheme(We){const ye=document.getElementsByTagName("html")[0];[DARK_THEME,LIGHT_THEME].forEach(C=>{ye.classList.contains(C)&&ye.classList.remove(C)}),ye.classList.add(We?DARK_THEME:LIGHT_THEME)}}return UDSApiService.\u0275fac=function We(ye){return new(ye||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService})()},2340:(We,ye,C)=>{C.d(ye,{N:()=>c});const c={production:!0}},9563:(We,ye,C)=>{var c=C(2313),o=C(4893),g=C(3191),Y=C(7579),ce=C(9841),q=C(7272),De=C(8306),Ee=C(5698),ue=C(5684),te=C(8372),se=C(4004),de=C(8675),X=C(2722),le=C(925);let ke=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275mod=o.oAB({type:R}),R.\u0275inj=o.cJS({}),R})();const Be=new Set;let K,et=(()=>{class R{constructor(m){this._platform=m,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Qe}matchMedia(m){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ze(R){if(!Be.has(R))try{K||(K=document.createElement("style"),K.setAttribute("type","text/css"),document.head.appendChild(K)),K.sheet&&(K.sheet.insertRule(`@media ${R} {body{ }}`,0),Be.add(R))}catch(Ce){console.error(Ce)}}(m),this._matchMedia(m)}}return R.\u0275fac=function(m){return new(m||R)(o.LFG(le.t4))},R.\u0275prov=o.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function Qe(R){return{matches:"all"===R||""===R,media:R,addListener:()=>{},removeListener:()=>{}}}let me=(()=>{class R{constructor(m,d){this._mediaMatcher=m,this._zone=d,this._queries=new Map,this._destroySubject=new Y.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(m){return z((0,g.Eq)(m)).some(a=>this._registerQuery(a).mql.matches)}observe(m){const a=z((0,g.Eq)(m)).map(v=>this._registerQuery(v).observable);let l=(0,ce.a)(a);return l=(0,q.z)(l.pipe((0,Ee.q)(1)),l.pipe((0,ue.T)(1),(0,te.b)(0))),l.pipe((0,se.U)(v=>{const k={matches:!1,breakpoints:{}};return v.forEach(({matches:G,query:ie})=>{k.matches=k.matches||G,k.breakpoints[ie]=G}),k}))}_registerQuery(m){if(this._queries.has(m))return this._queries.get(m);const d=this._mediaMatcher.matchMedia(m),l={observable:new De.y(v=>{const k=G=>this._zone.run(()=>v.next(G));return d.addListener(k),()=>{d.removeListener(k)}}).pipe((0,de.O)(d),(0,se.U)(({matches:v})=>({query:m,matches:v})),(0,X.R)(this._destroySubject)),mql:d};return this._queries.set(m,l),l}}return R.\u0275fac=function(m){return new(m||R)(o.LFG(et),o.LFG(o.R0b))},R.\u0275prov=o.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function z(R){return R.map(Ce=>Ce.split(",")).reduce((Ce,m)=>Ce.concat(m)).map(Ce=>Ce.trim())}var pe=C(520),Te=C(9525),Ne=C(7540);let ve=(()=>{class R{constructor(m){this.api=m}canActivate(m,d){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}return R.\u0275fac=function(m){return new(m||R)(o.LFG(Ne.n))},R.\u0275prov=o.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();var Me=C(4902),xe=C(7918),Ae=C(9808);function tt(R,Ce){if(1&R){const m=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw().download(l.url)}),o.TgZ(1,"div",7),o._UZ(2,"img",8),o.qZA(),o.TgZ(3,"div",9),o._uU(4),o.qZA(),o.TgZ(5,"div",10),o._uU(6),o.qZA()()}if(2&R){const m=Ce.$implicit,d=o.oxw();o.Tol(d.css(m)),o.xp6(2),o.Q6J("src",d.img(m.name),o.LSH),o.xp6(2),o.lnq(" ",d.legacy(m)," ",m.name," (",m.url.split(".").pop(),") "),o.xp6(2),o.hij(" ",m.description," ")}}let Fe=(()=>{class R{constructor(m){this.api=m}ngOnInit(){}download(m){window.location.href=m}img(m){return this.api.staticURL("modern/img/"+m+".png")}css(m){const d=["plugin"];return m.legacy&&d.push("legacy"),d}legacy(m){return m.legacy?"Legacy":""}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Ne.n))},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1")(4,"uds-translate"),o._uU(5,"UDS Client"),o.qZA()()()(),o.TgZ(6,"div",3),o.YNc(7,tt,7,7,"div",4),o.qZA(),o.TgZ(8,"div",5)(9,"ul")(10,"li")(11,"uds-translate"),o._uU(12,"Download UDS client for your platform"),o.qZA()()()()()),2&m&&(o.xp6(7),o.Q6J("ngForOf",d.api.plugins))},directives:[xe.P,Ae.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem #00000040,0 10px 10px #00000038;background-color:#0000001a}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem} .dark-theme uds-client-download{color:#fff!important} .dark-theme .plugin.legacy{background-color:#a9a9a9} .dark-theme .plugin:hover{background-color:#ffffff1a}"]}),R})();var bt=C(6498);function mt(R,Ce){if(1&R){const m=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw().download(l.url)}),o.TgZ(1,"div",7),o._UZ(2,"img",8),o.qZA(),o._UZ(3,"div",9),o.ALo(4,"safeHtml"),o._UZ(5,"div",10),o.ALo(6,"safeHtml"),o.qZA()}if(2&R){const m=Ce.$implicit,d=o.oxw();o.Tol(d.css(m.name)),o.xp6(2),o.Q6J("src",d.img(m.name),o.LSH),o.xp6(1),o.Q6J("innerHTML",o.lcZ(4,5,m.name),o.oJD),o.xp6(2),o.Q6J("innerHTML",o.lcZ(6,7,m.description),o.oJD)}}let Jt=(()=>{class R{constructor(m){this.api=m}ngOnInit(){this.actors=[];const m=[];this.api.actors.forEach(d=>{d.name.includes("legacy")?m.push(d):this.actors.push(d)}),m.forEach(d=>{this.actors.push(d)})}download(m){window.location.href=m}img(m){const d=m.split(".").pop().toLowerCase();let a="Linux";return"exe"===d?a="Windows":"pkg"===d&&(a="MacOS"),this.api.staticURL("modern/img/"+a+".png")}css(m){const d=["actor"];return m.toLowerCase().includes("legacy")&&d.push("legacy"),d}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Ne.n))},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1")(4,"uds-translate"),o._uU(5,"Downloads"),o.qZA()()()(),o.TgZ(6,"div",3),o.YNc(7,mt,7,9,"div",4),o.qZA(),o.TgZ(8,"div",5)(9,"ul")(10,"li")(11,"uds-translate"),o._uU(12,"Always download the UDS actor matching your platform"),o.qZA()(),o.TgZ(13,"li")(14,"uds-translate"),o._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),o.qZA()()()()()),2&m&&(o.xp6(7),o.Q6J("ngForOf",d.actors))},directives:[xe.P,Ae.sg],pipes:[bt.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem #00000040,0 10px 10px #00000038;background-color:#0000001a}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:700;overflow:hidden} .dark-theme uds-downloads{color:#fff!important} .dark-theme .actor.legacy{background-color:#464646}"]}),R})();var yt=C(4968),Rt=C(9300),Wt=C(1884),Pt=C(8505),dn=C(7322),Vt=C(7531);const xt=["input"];let on=(()=>{class R{constructor(){this.updateEvent=new o.vpe}ngAfterViewInit(){(0,yt.R)(this.input.nativeElement,"keyup").pipe((0,Rt.h)(Boolean),(0,te.b)(600),(0,Wt.x)(),(0,Pt.b)(()=>this.update(this.input.nativeElement.value))).subscribe()}update(m){this.updateEvent.emit(m.toLowerCase())}}return R.\u0275fac=function(m){return new(m||R)},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-filter"]],viewQuery:function(m,d){if(1&m&&o.Gf(xt,7),2&m){let a;o.iGM(a=o.CRH())&&(d.input=a.first)}},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-label")(3,"uds-translate"),o._uU(4,"Filter"),o.qZA()(),o._UZ(5,"input",2,3),o.TgZ(7,"i",4),o._uU(8,"search"),o.qZA()()())},directives:[dn.KE,dn.hX,xe.P,Vt.Nt,dn.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),R})();var Xe=C(727),je=C(449);let J=0;const Z=new o.OlP("CdkAccordion");let He=(()=>{class R{constructor(){this._stateChanges=new Y.x,this._openCloseAllActions=new Y.x,this.id="cdk-accordion-"+J++,this._multi=!1}get multi(){return this._multi}set multi(m){this._multi=(0,g.Ig)(m)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(m){this._stateChanges.next(m)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return R.\u0275fac=function(m){return new(m||R)},R.\u0275dir=o.lG2({type:R,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[o._Bn([{provide:Z,useExisting:R}]),o.TTD]}),R})(),Ge=0,lt=(()=>{class R{constructor(m,d,a){this.accordion=m,this._changeDetectorRef=d,this._expansionDispatcher=a,this._openCloseAllSubscription=Xe.w0.EMPTY,this.closed=new o.vpe,this.opened=new o.vpe,this.destroyed=new o.vpe,this.expandedChange=new o.vpe,this.id="cdk-accordion-child-"+Ge++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=a.listen((l,v)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===v&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(m){m=(0,g.Ig)(m),this._expanded!==m&&(this._expanded=m,this.expandedChange.emit(m),m?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(m){this._disabled=(0,g.Ig)(m)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(m=>{this.disabled||(this.expanded=m)})}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Z,12),o.Y36(o.sBO),o.Y36(je.A8))},R.\u0275dir=o.lG2({type:R,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[o._Bn([{provide:Z,useValue:void 0}])]}),R})(),St=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275mod=o.oAB({type:R}),R.\u0275inj=o.cJS({}),R})();var jt=C(7429),Ct=C(508),Nt=C(5664),at=C(1159),Pe=C(6360),E=C(515),S=C(6451),D=C(1777);const P=["body"];function L(R,Ce){}const re=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],be=["mat-expansion-panel-header","*","mat-action-row"];function Ue(R,Ce){if(1&R&&o._UZ(0,"span",2),2&R){const m=o.oxw();o.Q6J("@indicatorRotate",m._getExpandedState())}}const ze=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],_t=["mat-panel-title","mat-panel-description","*"],ct=new o.OlP("MAT_ACCORDION"),Ot="225ms cubic-bezier(0.4,0.0,0.2,1)",nn={indicatorRotate:(0,D.X$)("indicatorRotate",[(0,D.SB)("collapsed, void",(0,D.oB)({transform:"rotate(0deg)"})),(0,D.SB)("expanded",(0,D.oB)({transform:"rotate(180deg)"})),(0,D.eR)("expanded <=> collapsed, void => collapsed",(0,D.jt)(Ot))]),bodyExpansion:(0,D.X$)("bodyExpansion",[(0,D.SB)("collapsed, void",(0,D.oB)({height:"0px",visibility:"hidden"})),(0,D.SB)("expanded",(0,D.oB)({height:"*",visibility:"visible"})),(0,D.eR)("expanded <=> collapsed, void => collapsed",(0,D.jt)(Ot))])};let Yt=(()=>{class R{constructor(m){this._template=m}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(o.Rgc))},R.\u0275dir=o.lG2({type:R,selectors:[["ng-template","matExpansionPanelContent",""]]}),R})(),hn=0;const dt=new o.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let vt=(()=>{class R extends lt{constructor(m,d,a,l,v,k,G){super(m,d,a),this._viewContainerRef=l,this._animationMode=k,this._hideToggle=!1,this.afterExpand=new o.vpe,this.afterCollapse=new o.vpe,this._inputChanges=new Y.x,this._headerId="mat-expansion-panel-header-"+hn++,this._bodyAnimationDone=new Y.x,this.accordion=m,this._document=v,this._bodyAnimationDone.pipe((0,Wt.x)((ie,oe)=>ie.fromState===oe.fromState&&ie.toState===oe.toState)).subscribe(ie=>{"void"!==ie.fromState&&("expanded"===ie.toState?this.afterExpand.emit():"collapsed"===ie.toState&&this.afterCollapse.emit())}),G&&(this.hideToggle=G.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(m){this._hideToggle=(0,g.Ig)(m)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(m){this._togglePosition=m}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,de.O)(null),(0,Rt.h)(()=>this.expanded&&!this._portal),(0,Ee.q)(1)).subscribe(()=>{this._portal=new jt.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(m){this._inputChanges.next(m)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const m=this._document.activeElement,d=this._body.nativeElement;return m===d||d.contains(m)}return!1}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(ct,12),o.Y36(o.sBO),o.Y36(je.A8),o.Y36(o.s_b),o.Y36(Ae.K0),o.Y36(Pe.Qb,8),o.Y36(dt,8))},R.\u0275cmp=o.Xpm({type:R,selectors:[["mat-expansion-panel"]],contentQueries:function(m,d,a){if(1&m&&o.Suo(a,Yt,5),2&m){let l;o.iGM(l=o.CRH())&&(d._lazyContent=l.first)}},viewQuery:function(m,d){if(1&m&&o.Gf(P,5),2&m){let a;o.iGM(a=o.CRH())&&(d._body=a.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(m,d){2&m&&o.ekj("mat-expanded",d.expanded)("_mat-animation-noopable","NoopAnimations"===d._animationMode)("mat-expansion-panel-spacing",d._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[o._Bn([{provide:ct,useValue:void 0}]),o.qOj,o.TTD],ngContentSelectors:be,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(m,d){1&m&&(o.F$t(re),o.Hsn(0),o.TgZ(1,"div",0,1),o.NdJ("@bodyExpansion.done",function(l){return d._bodyAnimationDone.next(l)}),o.TgZ(3,"div",2),o.Hsn(4,1),o.YNc(5,L,0,0,"ng-template",3),o.qZA(),o.Hsn(6,2),o.qZA()),2&m&&(o.xp6(1),o.Q6J("@bodyExpansion",d._getExpandedState())("id",d.id),o.uIk("aria-labelledby",d._headerId),o.xp6(4),o.Q6J("cdkPortalOutlet",d._portal))},directives:[jt.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[nn.bodyExpansion]},changeDetection:0}),R})();class we{}const V=(0,Ct.sb)(we);let j=(()=>{class R extends V{constructor(m,d,a,l,v,k,G){super(),this.panel=m,this._element=d,this._focusMonitor=a,this._changeDetectorRef=l,this._animationMode=k,this._parentChangeSubscription=Xe.w0.EMPTY;const ie=m.accordion?m.accordion._stateChanges.pipe((0,Rt.h)(oe=>!(!oe.hideToggle&&!oe.togglePosition))):E.E;this.tabIndex=parseInt(G||"")||0,this._parentChangeSubscription=(0,S.T)(m.opened,m.closed,ie,m._inputChanges.pipe((0,Rt.h)(oe=>!!(oe.hideToggle||oe.disabled||oe.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),m.closed.pipe((0,Rt.h)(()=>m._containsFocus())).subscribe(()=>a.focusVia(d,"program")),v&&(this.expandedHeight=v.expandedHeight,this.collapsedHeight=v.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const m=this._isExpanded();return m&&this.expandedHeight?this.expandedHeight:!m&&this.collapsedHeight?this.collapsedHeight:null}_keydown(m){switch(m.keyCode){case at.L_:case at.K5:(0,at.Vb)(m)||(m.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(m))}}focus(m,d){m?this._focusMonitor.focusVia(this._element,m,d):this._element.nativeElement.focus(d)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(m=>{m&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(vt,1),o.Y36(o.SBq),o.Y36(Nt.tE),o.Y36(o.sBO),o.Y36(dt,8),o.Y36(Pe.Qb,8),o.$8M("tabindex"))},R.\u0275cmp=o.Xpm({type:R,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(m,d){1&m&&o.NdJ("click",function(){return d._toggle()})("keydown",function(l){return d._keydown(l)}),2&m&&(o.uIk("id",d.panel._headerId)("tabindex",d.tabIndex)("aria-controls",d._getPanelId())("aria-expanded",d._isExpanded())("aria-disabled",d.panel.disabled),o.Udp("height",d._getHeaderHeight()),o.ekj("mat-expanded",d._isExpanded())("mat-expansion-toggle-indicator-after","after"===d._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===d._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===d._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[o.qOj],ngContentSelectors:_t,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(m,d){1&m&&(o.F$t(ze),o.TgZ(0,"span",0),o.Hsn(1),o.Hsn(2,1),o.Hsn(3,2),o.qZA(),o.YNc(4,Ue,1,1,"span",1)),2&m&&(o.xp6(4),o.Q6J("ngIf",d._showToggle()))},directives:[Ae.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[nn.indicatorRotate]},changeDetection:0}),R})(),$=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275dir=o.lG2({type:R,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),R})(),he=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275dir=o.lG2({type:R,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),R})(),Se=(()=>{class R extends He{constructor(){super(...arguments),this._ownHeaders=new o.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(m){this._hideToggle=(0,g.Ig)(m)}ngAfterContentInit(){this._headers.changes.pipe((0,de.O)(this._headers)).subscribe(m=>{this._ownHeaders.reset(m.filter(d=>d.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Nt.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(m){this._keyManager.onKeydown(m)}_handleHeaderFocus(m){this._keyManager.updateActiveItem(m)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return R.\u0275fac=function(){let Ce;return function(d){return(Ce||(Ce=o.n5z(R)))(d||R)}}(),R.\u0275dir=o.lG2({type:R,selectors:[["mat-accordion"]],contentQueries:function(m,d,a){if(1&m&&o.Suo(a,j,5),2&m){let l;o.iGM(l=o.CRH())&&(d._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(m,d){2&m&&o.ekj("mat-accordion-multi",d.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[o._Bn([{provide:ct,useExisting:R}]),o.qOj]}),R})(),st=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275mod=o.oAB({type:R}),R.\u0275inj=o.cJS({imports:[[Ae.ez,Ct.BQ,St,jt.eL]]}),R})();var At=C(9646),Kt=C(3101),Zt=C(3900),Dt=C(4986),Rn=C(4482),Ve=C(5403),_e=C(5032),rt=C(5577);function kt(R,Ce){return Ce?m=>(0,q.z)(Ce.pipe((0,Ee.q)(1),function ne(){return(0,Rn.e)((R,Ce)=>{R.subscribe((0,Ve.x)(Ce,_e.Z))})}()),m.pipe(kt(R))):(0,rt.z)((m,d)=>R(m,d).pipe((0,Ee.q)(1),function Ie(R){return(0,se.U)(()=>R)}(m)))}var $t=C(5963);function Cn(R,Ce=Dt.z){const m=(0,$t.H)(R,Ce);return kt(()=>m)}var en=C(9776),kn=C(226),En=C(495);const jn=["mat-menu-item",""];function si(R,Ce){1&R&&(o.O4$(),o.TgZ(0,"svg",2),o._UZ(1,"polygon",3),o.qZA())}const Wn=["*"];function Ci(R,Ce){if(1&R){const m=o.EpF();o.TgZ(0,"div",0),o.NdJ("keydown",function(a){return o.CHM(m),o.oxw()._handleKeydown(a)})("click",function(){return o.CHM(m),o.oxw().closed.emit("click")})("@transformMenu.start",function(a){return o.CHM(m),o.oxw()._onAnimationStart(a)})("@transformMenu.done",function(a){return o.CHM(m),o.oxw()._onAnimationDone(a)}),o.TgZ(1,"div",1),o.Hsn(2),o.qZA()()}if(2&R){const m=o.oxw();o.Q6J("id",m.panelId)("ngClass",m._classList)("@transformMenu",m._panelAnimationState),o.uIk("aria-label",m.ariaLabel||null)("aria-labelledby",m.ariaLabelledby||null)("aria-describedby",m.ariaDescribedby||null)}}const ai={transformMenu:(0,D.X$)("transformMenu",[(0,D.SB)("void",(0,D.oB)({opacity:0,transform:"scale(0.8)"})),(0,D.eR)("void => enter",(0,D.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,D.oB)({opacity:1,transform:"scale(1)"}))),(0,D.eR)("* => void",(0,D.jt)("100ms 25ms linear",(0,D.oB)({opacity:0})))]),fadeInItems:(0,D.X$)("fadeInItems",[(0,D.SB)("showing",(0,D.oB)({opacity:1})),(0,D.eR)("void => *",[(0,D.oB)({opacity:0}),(0,D.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ji=new o.OlP("MatMenuContent"),An=new o.OlP("MAT_MENU_PANEL"),ui=(0,Ct.Kr)((0,Ct.Id)(class{}));let tn=(()=>{class R extends ui{constructor(m,d,a,l,v){var k;super(),this._elementRef=m,this._document=d,this._focusMonitor=a,this._parentMenu=l,this._changeDetectorRef=v,this.role="menuitem",this._hovered=new Y.x,this._focused=new Y.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(k=null==l?void 0:l.addItem)||void 0===k||k.call(l,this)}focus(m,d){this._focusMonitor&&m?this._focusMonitor.focusVia(this._getHostElement(),m,d):this._getHostElement().focus(d),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(m){this.disabled&&(m.preventDefault(),m.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var m;const d=this._elementRef.nativeElement.cloneNode(!0),a=d.querySelectorAll("mat-icon, .material-icons");for(let l=0;l{class R{constructor(m,d,a,l){this._elementRef=m,this._ngZone=d,this._defaultOptions=a,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new o.n_E,this._tabSubscription=Xe.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Y.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+zt++}get xPosition(){return this._xPosition}set xPosition(m){this._xPosition=m,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(m){this._yPosition=m,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(m){this._overlapTrigger=(0,g.Ig)(m)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(m){this._hasBackdrop=(0,g.Ig)(m)}set panelClass(m){const d=this._previousPanelClass;d&&d.length&&d.split(" ").forEach(a=>{this._classList[a]=!1}),this._previousPanelClass=m,m&&m.length&&(m.split(" ").forEach(a=>{this._classList[a]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(m){this.panelClass=m}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Nt.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,de.O)(this._directDescendantItems),(0,Zt.w)(m=>(0,S.T)(...m.map(d=>d._focused)))).subscribe(m=>this._keyManager.updateActiveItem(m)),this._directDescendantItems.changes.subscribe(m=>{var d;const a=this._keyManager;if("enter"===this._panelAnimationState&&(null===(d=a.activeItem)||void 0===d?void 0:d._hasFocus())){const l=m.toArray(),v=Math.max(0,Math.min(l.length-1,a.activeItemIndex||0));l[v]&&!l[v].disabled?a.setActiveItem(v):a.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,de.O)(this._directDescendantItems),(0,Zt.w)(d=>(0,S.T)(...d.map(a=>a._hovered))))}addItem(m){}removeItem(m){}_handleKeydown(m){const d=m.keyCode,a=this._keyManager;switch(d){case at.hY:(0,at.Vb)(m)||(m.preventDefault(),this.closed.emit("keydown"));break;case at.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case at.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(d===at.LH||d===at.JH)&&a.setFocusOrigin("keyboard"),void a.onKeydown(m)}m.stopPropagation()}focusFirstItem(m="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Ee.q)(1)).subscribe(()=>this._focusFirstItem(m)):this._focusFirstItem(m)}_focusFirstItem(m){const d=this._keyManager;if(d.setFocusOrigin(m).setFirstItemActive(),!d.activeItem&&this._directDescendantItems.length){let a=this._directDescendantItems.first._getHostElement().parentElement;for(;a;){if("menu"===a.getAttribute("role")){a.focus();break}a=a.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(m){const d=Math.min(this._baseElevation+m,24),a=`${this._elevationPrefix}${d}`,l=Object.keys(this._classList).find(v=>v.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(m=this.xPosition,d=this.yPosition){var a;const l=this._classList;l["mat-menu-before"]="before"===m,l["mat-menu-after"]="after"===m,l["mat-menu-above"]="above"===d,l["mat-menu-below"]="below"===d,null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(m){this._animationDone.next(m),this._isAnimating=!1}_onAnimationStart(m){this._isAnimating=!0,"enter"===m.toState&&0===this._keyManager.activeItemIndex&&(m.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,de.O)(this._allItems)).subscribe(m=>{this._directDescendantItems.reset(m.filter(d=>d._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Yn),o.Y36(o.sBO))},R.\u0275dir=o.lG2({type:R,contentQueries:function(m,d,a){if(1&m&&(o.Suo(a,ji,5),o.Suo(a,tn,5),o.Suo(a,tn,4)),2&m){let l;o.iGM(l=o.CRH())&&(d.lazyContent=l.first),o.iGM(l=o.CRH())&&(d._allItems=l),o.iGM(l=o.CRH())&&(d.items=l)}},viewQuery:function(m,d){if(1&m&&o.Gf(o.Rgc,5),2&m){let a;o.iGM(a=o.CRH())&&(d.templateRef=a.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),R})(),Xn=(()=>{class R extends di{constructor(m,d,a,l){super(m,d,a,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Yn),o.Y36(o.sBO))},R.\u0275cmp=o.Xpm({type:R,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(m,d){2&m&&o.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[o._Bn([{provide:An,useExisting:R}]),o.qOj],ngContentSelectors:Wn,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(m,d){1&m&&(o.F$t(),o.YNc(0,Ci,3,6,"ng-template"))},directives:[Ae.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[ai.transformMenu,ai.fadeInItems]},changeDetection:0}),R})();const Oi=new o.OlP("mat-menu-scroll-strategy"),gn={provide:Oi,deps:[en.aV],useFactory:function Gn(R){return()=>R.scrollStrategies.reposition()}},Nn=(0,le.i$)({passive:!0});let ei=(()=>{class R{constructor(m,d,a,l,v,k,G,ie,oe){this._overlay=m,this._element=d,this._viewContainerRef=a,this._menuItemInstance=k,this._dir=G,this._focusMonitor=ie,this._ngZone=oe,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Xe.w0.EMPTY,this._hoverSubscription=Xe.w0.EMPTY,this._menuCloseSubscription=Xe.w0.EMPTY,this._handleTouchStart=Oe=>{(0,Nt.yG)(Oe)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new o.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=v instanceof di?v:void 0,d.nativeElement.addEventListener("touchstart",this._handleTouchStart,Nn),k&&(k._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(m){this.menu=m}get menu(){return this._menu}set menu(m){m!==this._menu&&(this._menu=m,this._menuCloseSubscription.unsubscribe(),m&&(this._menuCloseSubscription=m.close.subscribe(d=>{this._destroyMenu(d),("click"===d||"tab"===d)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(d)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Nn),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const m=this._createOverlay(),d=m.getConfig(),a=d.positionStrategy;this._setPosition(a),d.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,m.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof di&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,X.R)(this.menu.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(m,d){this._focusMonitor&&m?this._focusMonitor.focusVia(this._element,m,d):this._element.nativeElement.focus(d)}updatePosition(){var m;null===(m=this._overlayRef)||void 0===m||m.updatePosition()}_destroyMenu(m){if(!this._overlayRef||!this.menuOpen)return;const d=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===m||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,d instanceof di?(d._resetAnimation(),d.lazyContent?d._animationDone.pipe((0,Rt.h)(a=>"void"===a.toState),(0,Ee.q)(1),(0,X.R)(d.lazyContent._attached)).subscribe({next:()=>d.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),d.lazyContent&&d.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let m=0,d=this.menu.parentMenu;for(;d;)m++,d=d.parentMenu;this.menu.setElevation(m)}}_setIsMenuOpen(m){this._menuOpen=m,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(m)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const m=this._getOverlayConfig();this._subscribeToPositions(m.positionStrategy),this._overlayRef=this._overlay.create(m),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new en.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(m){this.menu.setPositionClasses&&m.positionChanges.subscribe(d=>{const a="start"===d.connectionPair.overlayX?"after":"before",l="top"===d.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(a,l)):this.menu.setPositionClasses(a,l)})}_setPosition(m){let[d,a]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,v]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[k,G]=[l,v],[ie,oe]=[d,a],Oe=0;this.triggersSubmenu()?(oe=d="before"===this.menu.xPosition?"start":"end",a=ie="end"===d?"start":"end",Oe="bottom"===l?8:-8):this.menu.overlapTrigger||(k="top"===l?"bottom":"top",G="top"===v?"bottom":"top"),m.withPositions([{originX:d,originY:k,overlayX:ie,overlayY:l,offsetY:Oe},{originX:a,originY:k,overlayX:oe,overlayY:l,offsetY:Oe},{originX:d,originY:G,overlayX:ie,overlayY:v,offsetY:-Oe},{originX:a,originY:G,overlayX:oe,overlayY:v,offsetY:-Oe}])}_menuClosingActions(){const m=this._overlayRef.backdropClick(),d=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,At.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Rt.h)(v=>v!==this._menuItemInstance),(0,Rt.h)(()=>this._menuOpen)):(0,At.of)();return(0,S.T)(m,a,l,d)}_handleMousedown(m){(0,Nt.X6)(m)||(this._openedBy=0===m.button?"mouse":void 0,this.triggersSubmenu()&&m.preventDefault())}_handleKeydown(m){const d=m.keyCode;(d===at.K5||d===at.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(d===at.SV&&"ltr"===this.dir||d===at.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(m){this.triggersSubmenu()?(m.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Rt.h)(m=>m===this._menuItemInstance&&!m.disabled),Cn(0,Kt.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof di&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ee.q)(1),Cn(0,Kt.E),(0,X.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new jt.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(en.aV),o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(Oi),o.Y36(An,8),o.Y36(tn,10),o.Y36(kn.Is,8),o.Y36(Nt.tE),o.Y36(o.R0b))},R.\u0275dir=o.lG2({type:R,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(m,d){1&m&&o.NdJ("click",function(l){return d._handleClick(l)})("mousedown",function(l){return d._handleMousedown(l)})("keydown",function(l){return d._handleKeydown(l)}),2&m&&o.uIk("aria-expanded",d.menuOpen||null)("aria-controls",d.menuOpen?d.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),R})(),un=(()=>{class R extends ei{}return R.\u0275fac=function(){let Ce;return function(d){return(Ce||(Ce=o.n5z(R)))(d||R)}}(),R.\u0275dir=o.lG2({type:R,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[o.qOj]}),R})(),ir=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275mod=o.oAB({type:R}),R.\u0275inj=o.cJS({providers:[gn],imports:[[Ae.ez,Ct.BQ,Ct.si,en.U8],En.ZD,Ct.BQ]}),R})();const Ar={tooltipState:(0,D.X$)("state",[(0,D.SB)("initial, void, hidden",(0,D.oB)({opacity:0,transform:"scale(0)"})),(0,D.SB)("visible",(0,D.oB)({transform:"scale(1)"})),(0,D.eR)("* => visible",(0,D.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,D.F4)([(0,D.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,D.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,D.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,D.eR)("* => hidden",(0,D.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,D.oB)({opacity:0})))])},Zi="tooltip-panel",Ki=(0,le.i$)({passive:!0}),Ii=new o.OlP("mat-tooltip-scroll-strategy"),rr={provide:Ii,deps:[en.aV],useFactory:function dr(R){return()=>R.scrollStrategies.reposition({scrollThrottle:20})}},hr=new o.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function fr(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let kr=(()=>{class R{constructor(m,d,a,l,v,k,G,ie,oe,Oe,Ke,gt){this._overlay=m,this._elementRef=d,this._scrollDispatcher=a,this._viewContainerRef=l,this._ngZone=v,this._platform=k,this._ariaDescriber=G,this._focusMonitor=ie,this._dir=Oe,this._defaultOptions=Ke,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Y.x,this._scrollStrategy=oe,this._document=gt,Ke&&(Ke.position&&(this.position=Ke.position),Ke.touchGestures&&(this.touchGestures=Ke.touchGestures)),Oe.change.pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(m){var d;m!==this._position&&(this._position=m,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(d=this._tooltipInstance)||void 0===d||d.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(m){this._disabled=(0,g.Ig)(m),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(m){this._showDelay=(0,g.su)(m)}get hideDelay(){return this._hideDelay}set hideDelay(m){this._hideDelay=(0,g.su)(m),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(m){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=m?String(m).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(m){this._tooltipClass=m,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,X.R)(this._destroyed)).subscribe(m=>{m?"keyboard"===m&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const m=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([d,a])=>{m.removeEventListener(d,a,Ki)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(m,this.message,"tooltip"),this._focusMonitor.stopMonitoring(m)}show(m=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const d=this._createOverlay();this._detach(),this._portal=this._portal||new jt.C5(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=d.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe((0,X.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(m)}hide(m=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(m)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var m;if(this._overlayRef)return this._overlayRef;const d=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(d);return a.positionChanges.pipe((0,X.R)(this._destroyed)).subscribe(l=>{this._updateCurrentPositionClass(l.connectionPair),this._tooltipInstance&&l.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:`${this._cssClassPrefix}-${Zi}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,X.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,X.R)(this._destroyed)).subscribe(()=>{var l;return null===(l=this._tooltipInstance)||void 0===l?void 0:l._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,X.R)(this._destroyed)).subscribe(l=>{this._isTooltipVisible()&&l.keyCode===at.hY&&!(0,at.Vb)(l)&&(l.preventDefault(),l.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(m=this._defaultOptions)||void 0===m?void 0:m.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(m){const d=m.getConfig().positionStrategy,a=this._getOrigin(),l=this._getOverlayPosition();d.withPositions([this._addOffset(Object.assign(Object.assign({},a.main),l.main)),this._addOffset(Object.assign(Object.assign({},a.fallback),l.fallback))])}_addOffset(m){return m}_getOrigin(){const m=!this._dir||"ltr"==this._dir.value,d=this.position;let a;"above"==d||"below"==d?a={originX:"center",originY:"above"==d?"top":"bottom"}:"before"==d||"left"==d&&m||"right"==d&&!m?a={originX:"start",originY:"center"}:("after"==d||"right"==d&&m||"left"==d&&!m)&&(a={originX:"end",originY:"center"});const{x:l,y:v}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:l,originY:v}}}_getOverlayPosition(){const m=!this._dir||"ltr"==this._dir.value,d=this.position;let a;"above"==d?a={overlayX:"center",overlayY:"bottom"}:"below"==d?a={overlayX:"center",overlayY:"top"}:"before"==d||"left"==d&&m||"right"==d&&!m?a={overlayX:"end",overlayY:"center"}:("after"==d||"right"==d&&m||"left"==d&&!m)&&(a={overlayX:"start",overlayY:"center"});const{x:l,y:v}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:l,overlayY:v}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ee.q)(1),(0,X.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(m){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=m,this._tooltipInstance._markForCheck())}_invertPosition(m,d){return"above"===this.position||"below"===this.position?"top"===d?d="bottom":"bottom"===d&&(d="top"):"end"===m?m="start":"start"===m&&(m="end"),{x:m,y:d}}_updateCurrentPositionClass(m){const{overlayY:d,originX:a,originY:l}=m;let v;if(v="center"===d?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===d&&"top"===l?"above":"below",v!==this._currentPosition){const k=this._overlayRef;if(k){const G=`${this._cssClassPrefix}-${Zi}-`;k.removePanelClass(G+this._currentPosition),k.addPanelClass(G+v)}this._currentPosition=v}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const m=[];if(this._platformSupportsMouseEvents())m.push(["mouseleave",d=>{var a;const l=d.relatedTarget;(!l||!(null===(a=this._overlayRef)||void 0===a?void 0:a.overlayElement.contains(l)))&&this.hide()}],["wheel",d=>this._wheelListener(d)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const d=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};m.push(["touchend",d],["touchcancel",d])}this._addListeners(m),this._passiveListeners.push(...m)}_addListeners(m){m.forEach(([d,a])=>{this._elementRef.nativeElement.addEventListener(d,a,Ki)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(m){if(this._isTooltipVisible()){const d=this._document.elementFromPoint(m.clientX,m.clientY),a=this._elementRef.nativeElement;d!==a&&!a.contains(d)&&this.hide()}}_disableNativeGesturesIfNecessary(){const m=this.touchGestures;if("off"!==m){const d=this._elementRef.nativeElement,a=d.style;("on"===m||"INPUT"!==d.nodeName&&"TEXTAREA"!==d.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===m||!d.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}return R.\u0275fac=function(m){o.$Z()},R.\u0275dir=o.lG2({type:R,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),R})(),uo=(()=>{class R extends kr{constructor(m,d,a,l,v,k,G,ie,oe,Oe,Ke,gt){super(m,d,a,l,v,k,G,ie,oe,Oe,Ke,gt),this._tooltipComponent=Fr}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(en.aV),o.Y36(o.SBq),o.Y36(En.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(le.t4),o.Y36(Nt.$s),o.Y36(Nt.tE),o.Y36(Ii),o.Y36(kn.Is,8),o.Y36(hr,8),o.Y36(Ae.K0))},R.\u0275dir=o.lG2({type:R,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[o.qOj]}),R})(),pr=(()=>{class R{constructor(m){this._changeDetectorRef=m,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Y.x}show(m){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},m)}hide(m){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},m)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_animationStart(){this._closeOnInteraction=!1}_animationDone(m){const d=m.toState;"hidden"===d&&!this.isVisible()&&this._onHide.next(),("visible"===d||"hidden"===d)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:m}){(!m||!this._triggerElement.contains(m))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(o.sBO))},R.\u0275dir=o.lG2({type:R}),R})(),Fr=(()=>{class R extends pr{constructor(m,d){super(m),this._breakpointObserver=d,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(o.sBO),o.Y36(me))},R.\u0275cmp=o.Xpm({type:R,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(m,d){1&m&&o.NdJ("mouseleave",function(l){return d._handleMouseLeave(l)}),2&m&&o.Udp("zoom","visible"===d._visibility?1:null)},features:[o.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(m,d){if(1&m&&(o.TgZ(0,"div",0),o.NdJ("@state.start",function(){return d._animationStart()})("@state.done",function(l){return d._animationDone(l)}),o.ALo(1,"async"),o._uU(2),o.qZA()),2&m){let a;o.ekj("mat-tooltip-handset",null==(a=o.lcZ(1,5,d._isHandset))?null:a.matches),o.Q6J("ngClass",d.tooltipClass)("@state",d._visibility),o.xp6(2),o.Oqu(d.message)}},directives:[Ae.mk],pipes:[Ae.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}\n"],encapsulation:2,data:{animation:[Ar.tooltipState]},changeDetection:0}),R})(),mr=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275mod=o.oAB({type:R}),R.\u0275inj=o.cJS({providers:[rr],imports:[[Nt.rt,Ae.ez,en.U8,Ct.BQ],Ct.BQ,En.ZD]}),R})();var qi=C(7423);function Tr(R,Ce){if(1&R){const m=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw(2).launch(l)}),o.TgZ(1,"div",15),o._UZ(2,"img",9),o._uU(3),o.qZA()()}if(2&R){const m=Ce.$implicit,d=o.oxw(2);o.xp6(2),o.Q6J("src",d.getTransportIcon(m.id),o.LSH),o.xp6(1),o.hij(" ",m.name," ")}}function or(R,Ce){if(1&R){const m=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){return o.CHM(m),o.oxw(2).action("release")}),o.TgZ(1,"i",16),o._uU(2,"delete"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4," Release service"),o.qZA()()}}function gr(R,Ce){if(1&R){const m=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){return o.CHM(m),o.oxw(2).action("reset")}),o.TgZ(1,"i",16),o._uU(2,"refresh"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4," Reset service"),o.qZA()()}}function sr(R,Ce){if(1&R&&(o.TgZ(0,"button",17)(1,"uds-translate"),o._uU(2,"Connections"),o.qZA()()),2&R){o.oxw();const m=o.MAs(2);o.Q6J("matMenuTriggerFor",m)}}function Kr(R,Ce){if(1&R&&(o.TgZ(0,"button",17)(1,"uds-translate"),o._uU(2,"Actions"),o.qZA()()),2&R){o.oxw();const m=o.MAs(5);o.Q6J("matMenuTriggerFor",m)}}function _r(R,Ce){if(1&R&&(o.TgZ(0,"button",18)(1,"i",16),o._uU(2,"menu"),o.qZA()()),2&R){o.oxw();const m=o.MAs(9);o.Q6J("matMenuTriggerFor",m)}}function Lr(R,Ce){if(1&R){const m=o.EpF();o.TgZ(0,"div")(1,"mat-menu",null,1),o.YNc(3,Tr,4,2,"button",2),o.qZA(),o.TgZ(4,"mat-menu",null,3),o.YNc(6,or,5,0,"button",4),o.YNc(7,gr,5,0,"button",4),o.qZA(),o.TgZ(8,"mat-menu",null,5),o.YNc(10,sr,3,1,"button",6),o.YNc(11,Kr,3,1,"button",6),o.qZA(),o.TgZ(12,"div",7)(13,"div",8),o.NdJ("click",function(){return o.CHM(m),o.oxw().launch(null)}),o._UZ(14,"img",9),o.qZA(),o.TgZ(15,"div",10)(16,"span",11),o._uU(17),o.qZA()(),o.TgZ(18,"div",12),o.YNc(19,_r,3,1,"button",13),o.qZA()()()}if(2&R){const m=o.oxw();o.xp6(3),o.Q6J("ngForOf",m.service.transports),o.xp6(3),o.Q6J("ngIf",m.service.allow_users_remove),o.xp6(1),o.Q6J("ngIf",m.service.allow_users_reset),o.xp6(3),o.Q6J("ngIf",m.showTransportsMenu()),o.xp6(1),o.Q6J("ngIf",m.hasActions()),o.xp6(1),o.Q6J("ngClass",m.serviceClass)("matTooltipDisabled",""===m.serviceTooltip)("matTooltip",m.serviceTooltip),o.xp6(2),o.Q6J("src",m.serviceImage,o.LSH),o.xp6(2),o.Q6J("ngClass",m.serviceNameClass),o.xp6(1),o.Oqu(m.serviceName),o.xp6(2),o.Q6J("ngIf",m.hasMenu())}}let gi=(()=>{class R{constructor(m){this.api=m}get serviceImage(){return this.api.galleryImageURL(this.service.imageId)}get serviceName(){let m=this.service.visual_name;return m.length>32&&(m=m.substring(0,29)+"..."),m}get serviceTooltip(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}get serviceClass(){const m=["service"];return null!=this.service.to_be_replaced?m.push("tobereplaced"):this.service.maintenance?m.push("maintenance"):this.service.not_accesible?m.push("forbidden"):this.service.in_use&&m.push("inuse"),m.length>1&&m.push("alert"),m}get serviceNameClass(){const m=[],d=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return d>=16&&m.push("small-"+d.toString()),m}ngOnInit(){}getTransportIcon(m){return this.api.transportIconURL(m)}hasActions(){return this.service.allow_users_remove||this.service.allow_users_reset}showTransportsMenu(){return this.service.transports.length>1&&this.service.show_transports}hasMenu(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}notifyNotLaunching(m){this.api.gui.alert(''+django.gettext("Launcher")+"
",m)}launch(m){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){const d=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching(''+django.gettext("This service is currently not accesible due to schedule restrictions.")+'
'+d+'
')}else(null===m||!1===this.service.show_transports)&&(m=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(m.link)}action(m){const d=("release"===m?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,a="release"===m?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(d,django.gettext("Are you sure?")).subscribe(l=>{l&&this.api.action(m,this.service.id).subscribe(v=>{v&&this.api.gui.alert(d,a)})})}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Ne.n))},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","","class","service-menu",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",1,"service-menu",3,"matMenuTriggerFor"]],template:function(m,d){1&m&&o.YNc(0,Lr,20,12,"div",0),2&m&&o.Q6J("ngIf",d.service.transports.length>0)},directives:[Ae.O5,Xn,Ae.sg,tn,xe.P,un,Ae.mk,uo,qi.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;border-radius:1rem;box-shadow:0 12px 18px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:#00000038;display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service-menu[_ngcontent-%COMP%]{border-radius:.6rem!important}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #00000040,0 10px 10px #00000038}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;background-color:#fffc}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:Material Icons;font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"} .dark-theme .menu .mat-icon-button{background-color:#0003!important}']}),R})();function vr(R,Ce){1&R&&o._UZ(0,"uds-service",8),2&R&&o.Q6J("service",Ce.$implicit)}function Mi(R,Ce){if(1&R&&(o.TgZ(0,"mat-expansion-panel",1)(1,"mat-expansion-panel-header",2)(2,"mat-panel-title")(3,"div",3),o._UZ(4,"img",4),o._uU(5),o.qZA()(),o.TgZ(6,"mat-panel-description",5),o._uU(7),o.qZA()(),o.TgZ(8,"div",6),o.YNc(9,vr,1,1,"uds-service",7),o.qZA()()),2&R){const m=o.oxw();o.Q6J("expanded",m.expanded),o.xp6(1),o.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),o.xp6(3),o.Q6J("src",m.groupImage,o.LSH),o.xp6(1),o.hij(" ",m.group.name,""),o.xp6(2),o.hij(" ",m.group.comments," "),o.xp6(2),o.Q6J("ngForOf",m.sortedServices)}}let qr=(()=>{class R{constructor(m){this.api=m,this.expanded=!1}ngOnInit(){}get groupImage(){return this.api.galleryImageURL(this.group.imageUuid)}get hasVisibleServices(){return this.services.length>0}get sortedServices(){return this.services.sort((m,d)=>m.name>d.name?1:m.name{class R{constructor(m){this.api=m}ngOnInit(){}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Ne.n))},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(m,d){1&m&&o.YNc(0,Bi,38,4,"div",0),2&m&&o.Q6J("ngIf",d.api.staffInfo)},directives:[Ae.O5,xe.P,Se,vt,j,he,$,Ae.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4} .dark-theme .staff-info{margin-top:1rem;padding:1rem;background-color:#0f0f0f} .dark-theme .staff-panel{background-color:#2b2b2b}"]}),R})();function Qr(R,Ce){if(1&R){const m=o.EpF();o.TgZ(0,"uds-filter",3),o.NdJ("updateEvent",function(a){return o.CHM(m),o.oxw().update(a)}),o.qZA()}}function Pi(R,Ce){if(1&R&&o._UZ(0,"uds-services-group",4),2&R){const m=Ce.$implicit,d=Ce.index;o.Q6J("services",m.services)("group",m.group)("expanded",0===d)}}function ar(R,Ce){if(1&R){const m=o.EpF();o.TgZ(0,"uds-filter",3),o.NdJ("updateEvent",function(a){return o.CHM(m),o.oxw().update(a)}),o.qZA()}}class Br{constructor(Ce){this.group=Ce,this.services=[]}}let ni=(()=>{class R{constructor(m){this.api=m,this.servicesInformation={autorun:!1,ip:"",nets:"",services:[],transports:""}}update(m){this.updateServices(m)}ngOnInit(){this.api.config.urls.launch?this.api.logout():this.loadServices()}autorun(){if(this.servicesInformation.autorun&&1===this.servicesInformation.services.length){if(!this.servicesInformation.services[0].maintenance)return this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(this.servicesInformation.services[0].transports[0].link),!0;this.api.gui.alert(django.gettext("Warning"),django.gettext("Service is in maintenance and cannot be executed"))}return!1}loadServices(){this.api.user.isRestricted&&this.api.logout(),this.api.getServicesInformation().subscribe(m=>{this.servicesInformation=m,this.autorun(),this.updateServices()})}updateServices(m=""){this.group=[];let d=null;this.servicesInformation.services.filter(a=>!m||a.visual_name.toLowerCase().includes(m)||a.group.name.toLowerCase().includes(m)).sort((a,l)=>a.group.priority!==l.group.priority?a.group.priority-l.group.priority:a.group.id>l.group.id?1:a.group.id{(null===d||a.group.id!==d.group.id)&&(null!==d&&this.group.push(d),d=new Br(a.group)),d.services.push(a)}),null!==d&&this.group.push(d)}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Ne.n))},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-services-page"]],decls:6,vars:3,consts:[[3,"updateEvent",4,"ngIf"],[1,"services-groups"],[3,"services","group","expanded",4,"ngFor","ngForOf"],[3,"updateEvent"],[3,"services","group","expanded"]],template:function(m,d){1&m&&(o.YNc(0,Qr,1,0,"uds-filter",0),o.TgZ(1,"div",1)(2,"mat-accordion"),o.YNc(3,Pi,1,3,"uds-services-group",2),o.qZA()(),o.YNc(4,ar,1,0,"uds-filter",0),o._UZ(5,"uds-staff-info")),2&m&&(o.Q6J("ngIf",d.servicesInformation.services.length>=d.api.config.min_for_filter&&d.api.config.site_filter_on_top),o.xp6(3),o.Q6J("ngForOf",d.group),o.xp6(1),o.Q6J("ngIf",d.servicesInformation.services.length>=d.api.config.min_for_filter&&!d.api.config.site_filter_on_top))},directives:[Ae.O5,on,Se,Ae.sg,qr,Ji],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),R})(),lr=(()=>{class R{constructor(m,d){this.api=m,this.route=d}ngOnInit(){this.getError()}getError(){const m=this.route.snapshot.paramMap.get("id");"19"===m&&(this.returnUrl="/mfa"),this.error="",this.api.getErrorInformation(m).subscribe(d=>{this.error=d.error})}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Ne.n),o.Y36(Te.gz))},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-error"]],decls:14,vars:2,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn",3,"routerLink"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1),o.O4$(),o.TgZ(2,"svg",2),o._UZ(3,"path",3),o.qZA(),o.TgZ(4,"svg",4),o._UZ(5,"path",5),o.qZA()(),o.kcU(),o.TgZ(6,"h1",6)(7,"uds-translate"),o._uU(8,"An error has occurred"),o.qZA()(),o.TgZ(9,"p",7),o._uU(10),o.qZA(),o.TgZ(11,"a",8)(12,"uds-translate"),o._uU(13,"Return"),o.qZA()()()),2&m&&(o.xp6(10),o.hij(" ",d.error," "),o.xp6(1),o.Q6J("routerLink",d.returnUrl))},directives:[xe.P,qi.zs,Te.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),R})(),Tn=(()=>{class R{constructor(m){this.api=m,this.year=(new Date).getFullYear()}ngOnInit(){this.year<2021&&(this.year=2021)}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Ne.n))},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-about"]],decls:46,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"h1"),o._uU(2),o.qZA(),o.TgZ(3,"h3")(4,"a",1),o._uU(5),o.qZA()(),o.TgZ(6,"h4")(7,"uds-translate"),o._uU(8,"You can access UDS Open Source code at"),o.qZA(),o._uU(9,"\xa0"),o.TgZ(10,"a",2),o._uU(11,"OpenUDS github repository"),o.qZA()(),o.TgZ(12,"div",3)(13,"h2")(14,"uds-translate"),o._uU(15,"UDS has been developed using these components:"),o.qZA()(),o.TgZ(16,"ul")(17,"li")(18,"a",4),o._uU(19,"Python"),o.qZA()(),o.TgZ(20,"li")(21,"a",5),o._uU(22,"TypeScript"),o.qZA()(),o.TgZ(23,"li")(24,"a",6),o._uU(25,"Django"),o.qZA()(),o.TgZ(26,"li")(27,"a",7),o._uU(28,"Angular"),o.qZA()(),o.TgZ(29,"li")(30,"a",8),o._uU(31,"Guacamole"),o.qZA()(),o.TgZ(32,"li")(33,"a",9),o._uU(34,"weasyprint"),o.qZA()(),o.TgZ(35,"li")(36,"a",10),o._uU(37,"Crystal project icons"),o.qZA()(),o.TgZ(38,"li")(39,"a",11),o._uU(40,"Flattr Icons"),o.qZA()()(),o.TgZ(41,"p")(42,"small"),o._uU(43,"* "),o.TgZ(44,"uds-translate"),o._uU(45,"If you find that we missed any component, please let us know"),o.qZA()()()()()),2&m&&(o.xp6(2),o.AsE("Universal Desktop Services ",d.api.config.version," build ",d.api.config.version_stamp,""),o.xp6(3),o.hij(" \xa9 2012-",d.year," Virtual Cable S.L.U."))},directives:[xe.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:400}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px} .dark-theme .about{color:#fff!important} .dark-theme ul li a{color:#fff!important;background-color:inherit!important} .dark-theme ul li a:hover{color:#3e6b2d!important}"]}),R})(),Xi=(()=>{class R{constructor(m){this.api=m}ngOnInit(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Ne.n))},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1)(2,"h1")(3,"uds-translate"),o._uU(4,"UDS Service launcher"),o.qZA()(),o.TgZ(5,"h4")(6,"uds-translate"),o._uU(7,"The service you have requested is being launched."),o.qZA()(),o.TgZ(8,"h5")(9,"uds-translate"),o._uU(10,"Please, note that reloading this page will not work."),o.qZA()(),o.TgZ(11,"h5")(12,"uds-translate"),o._uU(13,"To relaunch service, you will have to do it from origin."),o.qZA()(),o.TgZ(14,"h6")(15,"uds-translate"),o._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),o.qZA()(),o.TgZ(17,"h6")(18,"uds-translate"),o._uU(19,"You can obtain it from the"),o.qZA(),o._uU(20,"\xa0"),o.TgZ(21,"a",2)(22,"uds-translate"),o._uU(23,"UDS Client download page"),o.qZA()()()()())},directives:[xe.P,Te.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:#00000038;padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:400}"]}),R})();var ii=C(2382),Kn=C(7144);const cr=["input"],xr=function(R){return{enterDuration:R}},A=["*"],N=new o.OlP("mat-checkbox-default-options",{providedIn:"root",factory:T});function T(){return{color:"accent",clickAction:"check-indeterminate"}}let H=0;const ae=T(),$e={provide:ii.JU,useExisting:(0,o.Gpc)(()=>_n),multi:!0};class nt{}const ht=(0,Ct.sb)((0,Ct.pj)((0,Ct.Kr)((0,Ct.Id)(class{constructor(R){this._elementRef=R}}))));let _n=(()=>{class R extends ht{constructor(m,d,a,l,v,k,G){super(m),this._changeDetectorRef=d,this._focusMonitor=a,this._ngZone=l,this._animationMode=k,this._options=G,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++H,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new o.vpe,this.indeterminateChange=new o.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||ae,this.color=this.defaultColor=this._options.color||ae.color,this.tabIndex=parseInt(v)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(m){this._required=(0,g.Ig)(m)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(m=>{m||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(m){m!=this.checked&&(this._checked=m,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(m){const d=(0,g.Ig)(m);d!==this.disabled&&(this._disabled=d,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(m){const d=m!=this._indeterminate;this._indeterminate=(0,g.Ig)(m),d&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(m){this.checked=!!m}registerOnChange(m){this._controlValueAccessorChangeFn=m}registerOnTouched(m){this._onTouched=m}setDisabledState(m){this.disabled=m}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(m){let d=this._currentCheckState,a=this._elementRef.nativeElement;if(d!==m&&(this._currentAnimationClass.length>0&&a.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(d,m),this._currentCheckState=m,this._currentAnimationClass.length>0)){a.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{a.classList.remove(l)},1e3)})}}_emitChangeEvent(){const m=new nt;m.source=this,m.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(m),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(m){var d;const a=null===(d=this._options)||void 0===d?void 0:d.clickAction;m.stopPropagation(),this.disabled||"noop"===a?!this.disabled&&"noop"===a&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==a&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(m,d){m?this._focusMonitor.focusVia(this._inputElement,m,d):this._inputElement.nativeElement.focus(d)}_onInteractionEvent(m){m.stopPropagation()}_getAnimationClassForCheckStateTransition(m,d){if("NoopAnimations"===this._animationMode)return"";let a="";switch(m){case 0:if(1===d)a="unchecked-checked";else{if(3!=d)return"";a="unchecked-indeterminate"}break;case 2:a=1===d?"unchecked-checked":"unchecked-indeterminate";break;case 1:a=2===d?"checked-unchecked":"checked-indeterminate";break;case 3:a=1===d?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${a}`}_syncIndeterminate(m){const d=this._inputElement;d&&(d.nativeElement.indeterminate=m)}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(Nt.tE),o.Y36(o.R0b),o.$8M("tabindex"),o.Y36(Pe.Qb,8),o.Y36(N,8))},R.\u0275cmp=o.Xpm({type:R,selectors:[["mat-checkbox"]],viewQuery:function(m,d){if(1&m&&(o.Gf(cr,5),o.Gf(Ct.wG,5)),2&m){let a;o.iGM(a=o.CRH())&&(d._inputElement=a.first),o.iGM(a=o.CRH())&&(d.ripple=a.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(m,d){2&m&&(o.Ikx("id",d.id),o.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),o.ekj("mat-checkbox-indeterminate",d.indeterminate)("mat-checkbox-checked",d.checked)("mat-checkbox-disabled",d.disabled)("mat-checkbox-label-before","before"==d.labelPosition)("_mat-animation-noopable","NoopAnimations"===d._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[o._Bn([$e]),o.qOj],ngContentSelectors:A,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(m,d){if(1&m&&(o.F$t(),o.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),o.NdJ("change",function(l){return d._onInteractionEvent(l)})("click",function(l){return d._onInputClick(l)}),o.qZA(),o.TgZ(5,"span",5),o._UZ(6,"span",6),o.qZA(),o._UZ(7,"span",7),o.TgZ(8,"span",8),o.O4$(),o.TgZ(9,"svg",9),o._UZ(10,"path",10),o.qZA(),o.kcU(),o._UZ(11,"span",11),o.qZA()(),o.TgZ(12,"span",12,13),o.NdJ("cdkObserveContent",function(){return d._onLabelTextChange()}),o.TgZ(14,"span",14),o._uU(15,"\xa0"),o.qZA(),o.Hsn(16),o.qZA()()),2&m){const a=o.MAs(1),l=o.MAs(13);o.uIk("for",d.inputId),o.xp6(2),o.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),o.xp6(1),o.Q6J("id",d.inputId)("required",d.required)("checked",d.checked)("disabled",d.disabled)("tabIndex",d.tabIndex),o.uIk("value",d.value)("name",d.name)("aria-label",d.ariaLabel||null)("aria-labelledby",d.ariaLabelledby)("aria-checked",d._getAriaChecked())("aria-describedby",d.ariaDescribedby),o.xp6(2),o.Q6J("matRippleTrigger",a)("matRippleDisabled",d._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",o.VKq(19,xr,"NoopAnimations"===d._animationMode?0:150))}},directives:[Ct.wG,Kn.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),R})(),Ht=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275mod=o.oAB({type:R}),R.\u0275inj=o.cJS({}),R})(),Bn=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275mod=o.oAB({type:R}),R.\u0275inj=o.cJS({imports:[[Ct.si,Ct.BQ,Kn.Q8,Ht],Ct.BQ,Ht]}),R})();const On=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:ni,canActivate:[ve]},{path:"login",component:Me.G},{path:"login/:id",component:Me.G},{path:"mfa",component:(()=>{class R{constructor(m){this.api=m}ngOnInit(){document.getElementById("mfaform").action=this.api.config.urls.mfa,this.api.user.isLogged&&this.api.router.navigate(["/"]),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),""+this.api.errors.join("
")+"
")}launch(){return document.getElementById("mfaform").submit(),!0}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Ne.n))},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-mfa"]],decls:24,vars:5,consts:[["id","mfaform","method","post",3,"ngSubmit"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],["id","remember","name","remember"],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"mfa-html-container"],[1,"mfa-html",3,"innerHtml"]],template:function(m,d){1&m&&(o.TgZ(0,"form",0),o.NdJ("ngSubmit",function(){return d.launch()}),o.TgZ(1,"div",1)(2,"div",2),o._UZ(3,"img",3),o.qZA(),o.TgZ(4,"div",4)(5,"uds-translate"),o._uU(6,"Login Verification"),o.qZA()(),o.TgZ(7,"div",5)(8,"div",6)(9,"mat-form-field",7)(10,"mat-label"),o._uU(11),o.qZA(),o._UZ(12,"input",8),o.qZA()(),o.TgZ(13,"div",6)(14,"mat-checkbox",9)(15,"uds-translate"),o._uU(16,"Remember Me"),o.qZA()()(),o.TgZ(17,"div",10)(18,"button",11)(19,"uds-translate"),o._uU(20,"Submit"),o.qZA()()()()()(),o.TgZ(21,"div",12),o._UZ(22,"div",13),o.ALo(23,"safeHtml"),o.qZA()),2&m&&(o.xp6(3),o.Q6J("src",d.api.staticURL("modern/img/login-img.png"),o.LSH),o.xp6(8),o.hij(" ",d.api.config.mfa.label," "),o.xp6(11),o.Q6J("innerHtml",o.lcZ(23,3,d.api.config.mfa.html),o.oJD))},directives:[ii._Y,ii.JL,ii.F,xe.P,dn.KE,dn.hX,Vt.Nt,_n,qi.lW],pipes:[bt.z],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0000001f,0 1px 5px #0003;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}.mfa-info[_ngcontent-%COMP%]{margin:1rem}.mfa-html-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;margin:1rem}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),R})()},{path:"client-download",component:Fe},{path:"downloads",component:Jt,canActivate:[ve]},{path:"error/:id",component:lr},{path:"about",component:Tn},{path:"ticket/launcher",component:Xi},{path:"**",redirectTo:"services"}];let Vn=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275mod=o.oAB({type:R}),R.\u0275inj=o.cJS({imports:[[Te.Bz.forRoot(On,{relativeLinkResolution:"legacy"})],Te.Bz]}),R})();var Ai=C(8966),er=C(4107);const Ri=["*",[["mat-toolbar-row"]]],ki=["*","mat-toolbar-row"],x=(0,Ct.pj)(class{constructor(R){this._elementRef=R}});let M=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275dir=o.lG2({type:R,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),R})(),y=(()=>{class R extends x{constructor(m,d,a){super(m),this._platform=d,this._document=a}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(o.SBq),o.Y36(le.t4),o.Y36(Ae.K0))},R.\u0275cmp=o.Xpm({type:R,selectors:[["mat-toolbar"]],contentQueries:function(m,d,a){if(1&m&&o.Suo(a,M,5),2&m){let l;o.iGM(l=o.CRH())&&(d._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(m,d){2&m&&o.ekj("mat-toolbar-multiple-rows",d._toolbarRows.length>0)("mat-toolbar-single-row",0===d._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[o.qOj],ngContentSelectors:ki,decls:2,vars:0,template:function(m,d){1&m&&(o.F$t(Ri),o.Hsn(0),o.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),R})(),Ye=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275mod=o.oAB({type:R}),R.\u0275inj=o.cJS({imports:[[Ct.BQ],Ct.BQ]}),R})(),Et=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275mod=o.oAB({type:R}),R.\u0275inj=o.cJS({providers:[{provide:dn.o2,useValue:{floatLabel:"always"}}],imports:[ii.u5,Ye,qi.ot,ir,mr,st,Ai.Is,dn.lN,Vt.c,er.LD,Bn]}),R})();function Dn(R,Ce){if(1&R){const m=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw(2).changeLang(l)}),o._uU(1),o.qZA()}if(2&R){const m=Ce.$implicit;o.xp6(1),o.Oqu(m.name)}}function _i(R,Ce){if(1&R){const m=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){return o.CHM(m),o.oxw(2).admin()}),o.TgZ(1,"i",23),o._uU(2,"dashboard"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4,"Dashboard"),o.qZA()()}}function Gi(R,Ce){1&R&&(o.TgZ(0,"button",28)(1,"i",23),o._uU(2,"file_download"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4,"Downloads"),o.qZA()())}function Fi(R,Ce){if(1&R&&(o.TgZ(0,"button",14),o._uU(1),o.qZA()),2&R){o.oxw();const m=o.MAs(8),d=o.oxw();o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.Oqu(d.api.user.user)}}function ot(R,Ce){if(1&R&&(o.TgZ(0,"button",25),o._uU(1),o.TgZ(2,"i",23),o._uU(3,"arrow_drop_down"),o.qZA()()),2&R){o.oxw();const m=o.MAs(8),d=o.oxw();o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.hij("",d.api.user.user," ")}}function sn(R,Ce){if(1&R){const m=o.EpF();o.ynx(0),o.TgZ(1,"form",1),o._UZ(2,"input",2)(3,"input",3),o.qZA(),o.TgZ(4,"mat-menu",null,4),o.YNc(6,Dn,2,1,"button",5),o.qZA(),o.TgZ(7,"mat-menu",null,6),o.YNc(9,_i,5,0,"button",7),o.YNc(10,Gi,5,0,"button",8),o.TgZ(11,"button",9),o.NdJ("click",function(){return o.CHM(m),o.oxw().logout()}),o.TgZ(12,"i",10),o._uU(13,"exit_to_app"),o.qZA(),o.TgZ(14,"uds-translate"),o._uU(15,"Logout"),o.qZA()()(),o.TgZ(16,"mat-menu",11,12),o.YNc(18,Fi,2,2,"button",13),o.TgZ(19,"button",14),o._uU(20),o.qZA(),o.TgZ(21,"button",15)(22,"uds-translate"),o._uU(23,"UDS Client"),o.qZA()(),o.TgZ(24,"button",16)(25,"uds-translate"),o._uU(26,"About"),o.qZA()()(),o.TgZ(27,"mat-toolbar",17)(28,"button",18),o._UZ(29,"img",19),o._uU(30),o.qZA(),o._UZ(31,"span",20),o.TgZ(32,"div",21)(33,"button",22)(34,"i",23),o._uU(35,"file_download"),o.qZA(),o.TgZ(36,"uds-translate"),o._uU(37,"UDS Client"),o.qZA()(),o.TgZ(38,"button",24)(39,"i",23),o._uU(40,"info"),o.qZA(),o.TgZ(41,"uds-translate"),o._uU(42,"About"),o.qZA()(),o.TgZ(43,"button",25),o._uU(44),o.TgZ(45,"i",23),o._uU(46,"arrow_drop_down"),o.qZA()(),o.YNc(47,ot,4,2,"button",26),o.qZA(),o.TgZ(48,"div",27)(49,"button",25)(50,"i",23),o._uU(51,"menu"),o.qZA()()()(),o.BQk()}if(2&R){const m=o.MAs(5),d=o.MAs(17),a=o.oxw();o.xp6(1),o.s9C("action",a.api.config.urls.changeLang,o.LSH),o.xp6(1),o.s9C("name",a.api.csrfField),o.s9C("value",a.api.csrfToken),o.xp6(1),o.s9C("value",a.lang.id),o.xp6(3),o.Q6J("ngForOf",a.langs),o.xp6(3),o.Q6J("ngIf",a.api.user.isStaff),o.xp6(1),o.Q6J("ngIf",a.api.user.isStaff),o.xp6(8),o.Q6J("ngIf",a.api.user.isLogged),o.xp6(1),o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.hij("",a.lang.name," "),o.xp6(9),o.Q6J("src",a.api.staticURL("modern/img/udsicon.png"),o.LSH),o.xp6(1),o.hij(" ",a.api.config.site_logo_name," "),o.xp6(13),o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.hij("",a.lang.name," "),o.xp6(3),o.Q6J("ngIf",a.api.user.isLogged),o.xp6(2),o.Q6J("matMenuTriggerFor",d)}}let Jr=(()=>{class R{constructor(m){this.api=m,this.style="";const d=m.config.language;this.langs=[];for(const a of m.config.available_languages)a.id===d?this.lang=a:this.langs.push(a)}ngOnInit(){}changeLang(m){return this.lang=m,document.getElementById("id_language").attributes.value.value=m.id,document.getElementById("form_language").submit(),!1}admin(){this.api.gotoAdmin()}logout(){this.api.logout()}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Ne.n))},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(m,d){1&m&&o.YNc(0,sn,52,16,"ng-container",0),2&m&&o.Q6J("ngIf",""===d.api.config.urls.launch)},directives:[Ae.O5,ii._Y,ii.JL,ii.F,Xn,Ae.sg,tn,xe.P,Te.rH,un,y,qi.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),R})(),qn=(()=>{class R{constructor(m){this.api=m}ngOnInit(){}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Ne.n))},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(m,d){1&m&&(o.TgZ(0,"div")(1,"a",0),o._uU(2),o.qZA()()),2&m&&(o.xp6(1),o.Q6J("href",d.api.config.site_copyright_link,o.LSH),o.xp6(1),o.Oqu(d.api.config.site_copyright_info))},styles:[""]}),R})(),bo=(()=>{class R{constructor(m){this.api=m,this.title="UDS",this.blackTheme=!1}handleKeyboardEvent(m){m.altKey&&m.ctrlKey&&"b"===m.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}return R.\u0275fac=function(m){return new(m||R)(o.Y36(Ne.n))},R.\u0275cmp=o.Xpm({type:R,selectors:[["uds-root"]],hostBindings:function(m,d){1&m&&o.NdJ("keydown",function(l){return d.handleKeyboardEvent(l)},!1,o.evT)},decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(m,d){1&m&&(o._UZ(0,"uds-navbar"),o.TgZ(1,"div",0)(2,"div",1),o._UZ(3,"router-outlet"),o.qZA(),o.TgZ(4,"div",2),o._UZ(5,"uds-footer"),o.qZA()())},directives:[Jr,Te.lC,qn],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),R})();var yr=C(5928);let Vi=(()=>{class R{}return R.\u0275fac=function(m){return new(m||R)},R.\u0275mod=o.oAB({type:R,bootstrap:[bo]}),R.\u0275inj=o.cJS({providers:[Ne.n,yr.h],imports:[[c.b2,ke,pe.JF,Vn,Pe.PW,Et]]}),R})();C(2340).N.production&&(0,o.G48)(),c.q6().bootstrapModule(Vi).catch(R=>console.log(R))},1135:(We,ye,C)=>{C.d(ye,{X:()=>o});var c=C(7579);class o extends c.x{constructor(Y){super(),this._value=Y}get value(){return this.getValue()}_subscribe(Y){const ce=super._subscribe(Y);return!ce.closed&&Y.next(this._value),ce}getValue(){const{hasError:Y,thrownError:ce,_value:q}=this;if(Y)throw ce;return this._throwIfClosed(),q}next(Y){super.next(this._value=Y)}}},8306:(We,ye,C)=>{C.d(ye,{y:()=>te});var c=C(930),o=C(727),g=C(8822),Y=C(4671);var De=C(2416),Ee=C(576),ue=C(2806);let te=(()=>{class le{constructor(Be){Be&&(this._subscribe=Be)}lift(Be){const K=new le;return K.source=this,K.operator=Be,K}subscribe(Be,K,et){const Ze=function X(le){return le&&le instanceof c.Lv||function de(le){return le&&(0,Ee.m)(le.next)&&(0,Ee.m)(le.error)&&(0,Ee.m)(le.complete)}(le)&&(0,o.Nn)(le)}(Be)?Be:new c.Hp(Be,K,et);return(0,ue.x)(()=>{const{operator:Qe,source:me}=this;Ze.add(Qe?Qe.call(Ze,me):me?this._subscribe(Ze):this._trySubscribe(Ze))}),Ze}_trySubscribe(Be){try{return this._subscribe(Be)}catch(K){Be.error(K)}}forEach(Be,K){return new(K=se(K))((et,Ze)=>{const Qe=new c.Hp({next:me=>{try{Be(me)}catch(z){Ze(z),Qe.unsubscribe()}},error:Ze,complete:et});this.subscribe(Qe)})}_subscribe(Be){var K;return null===(K=this.source)||void 0===K?void 0:K.subscribe(Be)}[g.L](){return this}pipe(...Be){return function q(le){return 0===le.length?Y.y:1===le.length?le[0]:function(Be){return le.reduce((K,et)=>et(K),Be)}}(Be)(this)}toPromise(Be){return new(Be=se(Be))((K,et)=>{let Ze;this.subscribe(Qe=>Ze=Qe,Qe=>et(Qe),()=>K(Ze))})}}return le.create=ke=>new le(ke),le})();function se(le){var ke;return null!==(ke=null!=le?le:De.v.Promise)&&void 0!==ke?ke:Promise}},7579:(We,ye,C)=>{C.d(ye,{x:()=>De});var c=C(8306),o=C(727);const Y=(0,C(3888).d)(ue=>function(){ue(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=C(8737),q=C(2806);let De=(()=>{class ue extends c.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(se){const de=new Ee(this,this);return de.operator=se,de}_throwIfClosed(){if(this.closed)throw new Y}next(se){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const de=this.observers.slice();for(const X of de)X.next(se)}})}error(se){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=se;const{observers:de}=this;for(;de.length;)de.shift().error(se)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:se}=this;for(;se.length;)se.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var se;return(null===(se=this.observers)||void 0===se?void 0:se.length)>0}_trySubscribe(se){return this._throwIfClosed(),super._trySubscribe(se)}_subscribe(se){return this._throwIfClosed(),this._checkFinalizedStatuses(se),this._innerSubscribe(se)}_innerSubscribe(se){const{hasError:de,isStopped:X,observers:le}=this;return de||X?o.Lc:(le.push(se),new o.w0(()=>(0,ce.P)(le,se)))}_checkFinalizedStatuses(se){const{hasError:de,thrownError:X,isStopped:le}=this;de?se.error(X):le&&se.complete()}asObservable(){const se=new c.y;return se.source=this,se}}return ue.create=(te,se)=>new Ee(te,se),ue})();class Ee extends De{constructor(te,se){super(),this.destination=te,this.source=se}next(te){var se,de;null===(de=null===(se=this.destination)||void 0===se?void 0:se.next)||void 0===de||de.call(se,te)}error(te){var se,de;null===(de=null===(se=this.destination)||void 0===se?void 0:se.error)||void 0===de||de.call(se,te)}complete(){var te,se;null===(se=null===(te=this.destination)||void 0===te?void 0:te.complete)||void 0===se||se.call(te)}_subscribe(te){var se,de;return null!==(de=null===(se=this.source)||void 0===se?void 0:se.subscribe(te))&&void 0!==de?de:o.Lc}}},930:(We,ye,C)=>{C.d(ye,{Hp:()=>Be,Lv:()=>de});var c=C(576),o=C(727),g=C(2416),Y=C(7849),ce=C(5032);const q=ue("C",void 0,void 0);function ue(me,z,Q){return{kind:me,value:z,error:Q}}var te=C(3410),se=C(2806);class de extends o.w0{constructor(z){super(),this.isStopped=!1,z?(this.destination=z,(0,o.Nn)(z)&&z.add(this)):this.destination=Qe}static create(z,Q,pe){return new Be(z,Q,pe)}next(z){this.isStopped?Ze(function Ee(me){return ue("N",me,void 0)}(z),this):this._next(z)}error(z){this.isStopped?Ze(function De(me){return ue("E",void 0,me)}(z),this):(this.isStopped=!0,this._error(z))}complete(){this.isStopped?Ze(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(z){this.destination.next(z)}_error(z){try{this.destination.error(z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const X=Function.prototype.bind;function le(me,z){return X.call(me,z)}class ke{constructor(z){this.partialObserver=z}next(z){const{partialObserver:Q}=this;if(Q.next)try{Q.next(z)}catch(pe){K(pe)}}error(z){const{partialObserver:Q}=this;if(Q.error)try{Q.error(z)}catch(pe){K(pe)}else K(z)}complete(){const{partialObserver:z}=this;if(z.complete)try{z.complete()}catch(Q){K(Q)}}}class Be extends de{constructor(z,Q,pe){let Te;if(super(),(0,c.m)(z)||!z)Te={next:null!=z?z:void 0,error:null!=Q?Q:void 0,complete:null!=pe?pe:void 0};else{let Ne;this&&g.v.useDeprecatedNextContext?(Ne=Object.create(z),Ne.unsubscribe=()=>this.unsubscribe(),Te={next:z.next&&le(z.next,Ne),error:z.error&&le(z.error,Ne),complete:z.complete&&le(z.complete,Ne)}):Te=z}this.destination=new ke(Te)}}function K(me){g.v.useDeprecatedSynchronousErrorHandling?(0,se.O)(me):(0,Y.h)(me)}function Ze(me,z){const{onStoppedNotification:Q}=g.v;Q&&te.z.setTimeout(()=>Q(me,z))}const Qe={closed:!0,next:ce.Z,error:function et(me){throw me},complete:ce.Z}},727:(We,ye,C)=>{C.d(ye,{Lc:()=>q,w0:()=>ce,Nn:()=>De});var c=C(576);const g=(0,C(3888).d)(ue=>function(se){ue(this),this.message=se?`${se.length} errors occurred during unsubscription:\n${se.map((de,X)=>`${X+1}) ${de.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=se});var Y=C(8737);class ce{constructor(te){this.initialTeardown=te,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let te;if(!this.closed){this.closed=!0;const{_parentage:se}=this;if(se)if(this._parentage=null,Array.isArray(se))for(const le of se)le.remove(this);else se.remove(this);const{initialTeardown:de}=this;if((0,c.m)(de))try{de()}catch(le){te=le instanceof g?le.errors:[le]}const{_teardowns:X}=this;if(X){this._teardowns=null;for(const le of X)try{Ee(le)}catch(ke){te=null!=te?te:[],ke instanceof g?te=[...te,...ke.errors]:te.push(ke)}}if(te)throw new g(te)}}add(te){var se;if(te&&te!==this)if(this.closed)Ee(te);else{if(te instanceof ce){if(te.closed||te._hasParent(this))return;te._addParent(this)}(this._teardowns=null!==(se=this._teardowns)&&void 0!==se?se:[]).push(te)}}_hasParent(te){const{_parentage:se}=this;return se===te||Array.isArray(se)&&se.includes(te)}_addParent(te){const{_parentage:se}=this;this._parentage=Array.isArray(se)?(se.push(te),se):se?[se,te]:te}_removeParent(te){const{_parentage:se}=this;se===te?this._parentage=null:Array.isArray(se)&&(0,Y.P)(se,te)}remove(te){const{_teardowns:se}=this;se&&(0,Y.P)(se,te),te instanceof ce&&te._removeParent(this)}}ce.EMPTY=(()=>{const ue=new ce;return ue.closed=!0,ue})();const q=ce.EMPTY;function De(ue){return ue instanceof ce||ue&&"closed"in ue&&(0,c.m)(ue.remove)&&(0,c.m)(ue.add)&&(0,c.m)(ue.unsubscribe)}function Ee(ue){(0,c.m)(ue)?ue():ue.unsubscribe()}},2416:(We,ye,C)=>{C.d(ye,{v:()=>c});const c={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(We,ye,C)=>{C.d(ye,{a:()=>te});var c=C(8306),o=C(4742),g=C(2076),Y=C(4671),ce=C(3268),q=C(3269),De=C(1810),Ee=C(5403),ue=C(9672);function te(...X){const le=(0,q.yG)(X),ke=(0,q.jO)(X),{args:Be,keys:K}=(0,o.D)(X);if(0===Be.length)return(0,g.D)([],le);const et=new c.y(function se(X,le,ke=Y.y){return Be=>{de(le,()=>{const{length:K}=X,et=new Array(K);let Ze=K,Qe=K;for(let me=0;me{const z=(0,g.D)(X[me],le);let Q=!1;z.subscribe((0,Ee.x)(Be,pe=>{et[me]=pe,Q||(Q=!0,Qe--),Qe||Be.next(ke(et.slice()))},()=>{--Ze||Be.complete()}))},Be)},Be)}}(Be,le,K?Ze=>(0,De.n)(K,Ze):Y.y));return ke?et.pipe((0,ce.Z)(ke)):et}function de(X,le,ke){X?(0,ue.f)(ke,X,le):le()}},7272:(We,ye,C)=>{C.d(ye,{z:()=>ce});var c=C(8189),g=C(3269),Y=C(2076);function ce(...q){return function o(){return(0,c.J)(1)}()((0,Y.D)(q,(0,g.yG)(q)))}},9770:(We,ye,C)=>{C.d(ye,{P:()=>g});var c=C(8306),o=C(8421);function g(Y){return new c.y(ce=>{(0,o.Xf)(Y()).subscribe(ce)})}},515:(We,ye,C)=>{C.d(ye,{E:()=>o});const o=new(C(8306).y)(ce=>ce.complete())},2076:(We,ye,C)=>{C.d(ye,{D:()=>pe});var c=C(8421),o=C(9672),g=C(4482),Y=C(5403);function ce(Te,Ne=0){return(0,g.e)((ve,Me)=>{ve.subscribe((0,Y.x)(Me,xe=>(0,o.f)(Me,Te,()=>Me.next(xe),Ne),()=>(0,o.f)(Me,Te,()=>Me.complete(),Ne),xe=>(0,o.f)(Me,Te,()=>Me.error(xe),Ne)))})}function q(Te,Ne=0){return(0,g.e)((ve,Me)=>{Me.add(Te.schedule(()=>ve.subscribe(Me),Ne))})}var ue=C(8306),se=C(2202),de=C(576);function le(Te,Ne){if(!Te)throw new Error("Iterable cannot be null");return new ue.y(ve=>{(0,o.f)(ve,Ne,()=>{const Me=Te[Symbol.asyncIterator]();(0,o.f)(ve,Ne,()=>{Me.next().then(xe=>{xe.done?ve.complete():ve.next(xe.value)})},0,!0)})})}var ke=C(3670),Be=C(8239),K=C(1144),et=C(6495),Ze=C(2206),Qe=C(4532),me=C(3260);function pe(Te,Ne){return Ne?function Q(Te,Ne){if(null!=Te){if((0,ke.c)(Te))return function De(Te,Ne){return(0,c.Xf)(Te).pipe(q(Ne),ce(Ne))}(Te,Ne);if((0,K.z)(Te))return function te(Te,Ne){return new ue.y(ve=>{let Me=0;return Ne.schedule(function(){Me===Te.length?ve.complete():(ve.next(Te[Me++]),ve.closed||this.schedule())})})}(Te,Ne);if((0,Be.t)(Te))return function Ee(Te,Ne){return(0,c.Xf)(Te).pipe(q(Ne),ce(Ne))}(Te,Ne);if((0,Ze.D)(Te))return le(Te,Ne);if((0,et.T)(Te))return function X(Te,Ne){return new ue.y(ve=>{let Me;return(0,o.f)(ve,Ne,()=>{Me=Te[se.h](),(0,o.f)(ve,Ne,()=>{let xe,Ae;try{({value:xe,done:Ae}=Me.next())}catch(tt){return void ve.error(tt)}Ae?ve.complete():ve.next(xe)},0,!0)}),()=>(0,de.m)(null==Me?void 0:Me.return)&&Me.return()})}(Te,Ne);if((0,me.L)(Te))return function z(Te,Ne){return le((0,me.Q)(Te),Ne)}(Te,Ne)}throw(0,Qe.z)(Te)}(Te,Ne):(0,c.Xf)(Te)}},4968:(We,ye,C)=>{C.d(ye,{R:()=>te});var c=C(8421),o=C(8306),g=C(5577),Y=C(1144),ce=C(576),q=C(3268);const De=["addListener","removeListener"],Ee=["addEventListener","removeEventListener"],ue=["on","off"];function te(ke,Be,K,et){if((0,ce.m)(K)&&(et=K,K=void 0),et)return te(ke,Be,K).pipe((0,q.Z)(et));const[Ze,Qe]=function le(ke){return(0,ce.m)(ke.addEventListener)&&(0,ce.m)(ke.removeEventListener)}(ke)?Ee.map(me=>z=>ke[me](Be,z,K)):function de(ke){return(0,ce.m)(ke.addListener)&&(0,ce.m)(ke.removeListener)}(ke)?De.map(se(ke,Be)):function X(ke){return(0,ce.m)(ke.on)&&(0,ce.m)(ke.off)}(ke)?ue.map(se(ke,Be)):[];if(!Ze&&(0,Y.z)(ke))return(0,g.z)(me=>te(me,Be,K))((0,c.Xf)(ke));if(!Ze)throw new TypeError("Invalid event target");return new o.y(me=>{const z=(...Q)=>me.next(1Qe(z)})}function se(ke,Be){return K=>et=>ke[K](Be,et)}},8421:(We,ye,C)=>{C.d(ye,{Xf:()=>X});var c=C(655),o=C(1144),g=C(8239),Y=C(8306),ce=C(3670),q=C(2206),De=C(4532),Ee=C(6495),ue=C(3260),te=C(576),se=C(7849),de=C(8822);function X(me){if(me instanceof Y.y)return me;if(null!=me){if((0,ce.c)(me))return function le(me){return new Y.y(z=>{const Q=me[de.L]();if((0,te.m)(Q.subscribe))return Q.subscribe(z);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(me);if((0,o.z)(me))return function ke(me){return new Y.y(z=>{for(let Q=0;Q{me.then(Q=>{z.closed||(z.next(Q),z.complete())},Q=>z.error(Q)).then(null,se.h)})}(me);if((0,q.D)(me))return et(me);if((0,Ee.T)(me))return function K(me){return new Y.y(z=>{for(const Q of me)if(z.next(Q),z.closed)return;z.complete()})}(me);if((0,ue.L)(me))return function Ze(me){return et((0,ue.Q)(me))}(me)}throw(0,De.z)(me)}function et(me){return new Y.y(z=>{(function Qe(me,z){var Q,pe,Te,Ne;return(0,c.mG)(this,void 0,void 0,function*(){try{for(Q=(0,c.KL)(me);!(pe=yield Q.next()).done;)if(z.next(pe.value),z.closed)return}catch(ve){Te={error:ve}}finally{try{pe&&!pe.done&&(Ne=Q.return)&&(yield Ne.call(Q))}finally{if(Te)throw Te.error}}z.complete()})})(me,z).catch(Q=>z.error(Q))})}},6451:(We,ye,C)=>{C.d(ye,{T:()=>q});var c=C(8189),o=C(8421),g=C(515),Y=C(3269),ce=C(2076);function q(...De){const Ee=(0,Y.yG)(De),ue=(0,Y._6)(De,1/0),te=De;return te.length?1===te.length?(0,o.Xf)(te[0]):(0,c.J)(ue)((0,ce.D)(te,Ee)):g.E}},9646:(We,ye,C)=>{C.d(ye,{of:()=>g});var c=C(3269),o=C(2076);function g(...Y){const ce=(0,c.yG)(Y);return(0,o.D)(Y,ce)}},5963:(We,ye,C)=>{C.d(ye,{H:()=>ce});var c=C(8306),o=C(4986),g=C(3532);function ce(q=0,De,Ee=o.P){let ue=-1;return null!=De&&((0,g.K)(De)?Ee=De:ue=De),new c.y(te=>{let se=function Y(q){return q instanceof Date&&!isNaN(q)}(q)?+q-Ee.now():q;se<0&&(se=0);let de=0;return Ee.schedule(function(){te.closed||(te.next(de++),0<=ue?this.schedule(void 0,ue):te.complete())},se)})}},5403:(We,ye,C)=>{C.d(ye,{x:()=>o});var c=C(930);function o(Y,ce,q,De,Ee){return new g(Y,ce,q,De,Ee)}class g extends c.Lv{constructor(ce,q,De,Ee,ue,te){super(ce),this.onFinalize=ue,this.shouldUnsubscribe=te,this._next=q?function(se){try{q(se)}catch(de){ce.error(de)}}:super._next,this._error=Ee?function(se){try{Ee(se)}catch(de){ce.error(de)}finally{this.unsubscribe()}}:super._error,this._complete=De?function(){try{De()}catch(se){ce.error(se)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var ce;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(ce=this.onFinalize)||void 0===ce||ce.call(this))}}}},4351:(We,ye,C)=>{C.d(ye,{b:()=>g});var c=C(5577),o=C(576);function g(Y,ce){return(0,o.m)(ce)?(0,c.z)(Y,ce,1):(0,c.z)(Y,1)}},8372:(We,ye,C)=>{C.d(ye,{b:()=>Y});var c=C(4986),o=C(4482),g=C(5403);function Y(ce,q=c.z){return(0,o.e)((De,Ee)=>{let ue=null,te=null,se=null;const de=()=>{if(ue){ue.unsubscribe(),ue=null;const le=te;te=null,Ee.next(le)}};function X(){const le=se+ce,ke=q.now();if(ke{te=le,se=q.now(),ue||(ue=q.schedule(X,ce),Ee.add(ue))},()=>{de(),Ee.complete()},void 0,()=>{te=ue=null}))})}},1884:(We,ye,C)=>{C.d(ye,{x:()=>Y});var c=C(4671),o=C(4482),g=C(5403);function Y(q,De=c.y){return q=null!=q?q:ce,(0,o.e)((Ee,ue)=>{let te,se=!0;Ee.subscribe((0,g.x)(ue,de=>{const X=De(de);(se||!q(te,X))&&(se=!1,te=X,ue.next(de))}))})}function ce(q,De){return q===De}},9300:(We,ye,C)=>{C.d(ye,{h:()=>g});var c=C(4482),o=C(5403);function g(Y,ce){return(0,c.e)((q,De)=>{let Ee=0;q.subscribe((0,o.x)(De,ue=>Y.call(ce,ue,Ee++)&&De.next(ue)))})}},4004:(We,ye,C)=>{C.d(ye,{U:()=>g});var c=C(4482),o=C(5403);function g(Y,ce){return(0,c.e)((q,De)=>{let Ee=0;q.subscribe((0,o.x)(De,ue=>{De.next(Y.call(ce,ue,Ee++))}))})}},8189:(We,ye,C)=>{C.d(ye,{J:()=>g});var c=C(5577),o=C(4671);function g(Y=1/0){return(0,c.z)(o.y,Y)}},5577:(We,ye,C)=>{C.d(ye,{z:()=>Ee});var c=C(4004),o=C(8421),g=C(4482),Y=C(9672),ce=C(5403),De=C(576);function Ee(ue,te,se=1/0){return(0,De.m)(te)?Ee((de,X)=>(0,c.U)((le,ke)=>te(de,le,X,ke))((0,o.Xf)(ue(de,X))),se):("number"==typeof te&&(se=te),(0,g.e)((de,X)=>function q(ue,te,se,de,X,le,ke,Be){const K=[];let et=0,Ze=0,Qe=!1;const me=()=>{Qe&&!K.length&&!et&&te.complete()},z=pe=>et{le&&te.next(pe),et++;let Te=!1;(0,o.Xf)(se(pe,Ze++)).subscribe((0,ce.x)(te,Ne=>{null==X||X(Ne),le?z(Ne):te.next(Ne)},()=>{Te=!0},void 0,()=>{if(Te)try{for(et--;K.length&&etQ(Ne)):Q(Ne)}me()}catch(Ne){te.error(Ne)}}))};return ue.subscribe((0,ce.x)(te,z,()=>{Qe=!0,me()})),()=>{null==Be||Be()}}(de,X,ue,se)))}},5684:(We,ye,C)=>{C.d(ye,{T:()=>o});var c=C(9300);function o(g){return(0,c.h)((Y,ce)=>g<=ce)}},8675:(We,ye,C)=>{C.d(ye,{O:()=>Y});var c=C(7272),o=C(3269),g=C(4482);function Y(...ce){const q=(0,o.yG)(ce);return(0,g.e)((De,Ee)=>{(q?(0,c.z)(ce,De,q):(0,c.z)(ce,De)).subscribe(Ee)})}},3900:(We,ye,C)=>{C.d(ye,{w:()=>Y});var c=C(8421),o=C(4482),g=C(5403);function Y(ce,q){return(0,o.e)((De,Ee)=>{let ue=null,te=0,se=!1;const de=()=>se&&!ue&&Ee.complete();De.subscribe((0,g.x)(Ee,X=>{null==ue||ue.unsubscribe();let le=0;const ke=te++;(0,c.Xf)(ce(X,ke)).subscribe(ue=(0,g.x)(Ee,Be=>Ee.next(q?q(X,Be,ke,le++):Be),()=>{ue=null,de()}))},()=>{se=!0,de()}))})}},5698:(We,ye,C)=>{C.d(ye,{q:()=>Y});var c=C(515),o=C(4482),g=C(5403);function Y(ce){return ce<=0?()=>c.E:(0,o.e)((q,De)=>{let Ee=0;q.subscribe((0,g.x)(De,ue=>{++Ee<=ce&&(De.next(ue),ce<=Ee&&De.complete())}))})}},2722:(We,ye,C)=>{C.d(ye,{R:()=>ce});var c=C(4482),o=C(5403),g=C(8421),Y=C(5032);function ce(q){return(0,c.e)((De,Ee)=>{(0,g.Xf)(q).subscribe((0,o.x)(Ee,()=>Ee.complete(),Y.Z)),!Ee.closed&&De.subscribe(Ee)})}},8505:(We,ye,C)=>{C.d(ye,{b:()=>ce});var c=C(576),o=C(4482),g=C(5403),Y=C(4671);function ce(q,De,Ee){const ue=(0,c.m)(q)||De||Ee?{next:q,error:De,complete:Ee}:q;return ue?(0,o.e)((te,se)=>{var de;null===(de=ue.subscribe)||void 0===de||de.call(ue);let X=!0;te.subscribe((0,g.x)(se,le=>{var ke;null===(ke=ue.next)||void 0===ke||ke.call(ue,le),se.next(le)},()=>{var le;X=!1,null===(le=ue.complete)||void 0===le||le.call(ue),se.complete()},le=>{var ke;X=!1,null===(ke=ue.error)||void 0===ke||ke.call(ue,le),se.error(le)},()=>{var le,ke;X&&(null===(le=ue.unsubscribe)||void 0===le||le.call(ue)),null===(ke=ue.finalize)||void 0===ke||ke.call(ue)}))}):Y.y}},4408:(We,ye,C)=>{C.d(ye,{o:()=>ce});var c=C(727);class o extends c.w0{constructor(De,Ee){super()}schedule(De,Ee=0){return this}}const g={setInterval(...q){const{delegate:De}=g;return((null==De?void 0:De.setInterval)||setInterval)(...q)},clearInterval(q){const{delegate:De}=g;return((null==De?void 0:De.clearInterval)||clearInterval)(q)},delegate:void 0};var Y=C(8737);class ce extends o{constructor(De,Ee){super(De,Ee),this.scheduler=De,this.work=Ee,this.pending=!1}schedule(De,Ee=0){if(this.closed)return this;this.state=De;const ue=this.id,te=this.scheduler;return null!=ue&&(this.id=this.recycleAsyncId(te,ue,Ee)),this.pending=!0,this.delay=Ee,this.id=this.id||this.requestAsyncId(te,this.id,Ee),this}requestAsyncId(De,Ee,ue=0){return g.setInterval(De.flush.bind(De,this),ue)}recycleAsyncId(De,Ee,ue=0){if(null!=ue&&this.delay===ue&&!1===this.pending)return Ee;g.clearInterval(Ee)}execute(De,Ee){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ue=this._execute(De,Ee);if(ue)return ue;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(De,Ee){let te,ue=!1;try{this.work(De)}catch(se){ue=!0,te=se||new Error("Scheduled action threw falsy error")}if(ue)return this.unsubscribe(),te}unsubscribe(){if(!this.closed){const{id:De,scheduler:Ee}=this,{actions:ue}=Ee;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Y.P)(ue,this),null!=De&&(this.id=this.recycleAsyncId(Ee,De,null)),this.delay=null,super.unsubscribe()}}}},640:(We,ye,C)=>{C.d(ye,{v:()=>g});const c={now:()=>(c.delegate||Date).now(),delegate:void 0};class o{constructor(ce,q=o.now){this.schedulerActionCtor=ce,this.now=q}schedule(ce,q=0,De){return new this.schedulerActionCtor(this,ce).schedule(De,q)}}o.now=c.now;class g extends o{constructor(ce,q=o.now){super(ce,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(ce){const{actions:q}=this;if(this._active)return void q.push(ce);let De;this._active=!0;do{if(De=ce.execute(ce.state,ce.delay))break}while(ce=q.shift());if(this._active=!1,De){for(;ce=q.shift();)ce.unsubscribe();throw De}}}},3101:(We,ye,C)=>{C.d(ye,{E:()=>le});var c=C(4408);let g,o=1;const Y={};function ce(Be){return Be in Y&&(delete Y[Be],!0)}const q={setImmediate(Be){const K=o++;return Y[K]=!0,g||(g=Promise.resolve()),g.then(()=>ce(K)&&Be()),K},clearImmediate(Be){ce(Be)}},{setImmediate:Ee,clearImmediate:ue}=q,te={setImmediate(...Be){const{delegate:K}=te;return((null==K?void 0:K.setImmediate)||Ee)(...Be)},clearImmediate(Be){const{delegate:K}=te;return((null==K?void 0:K.clearImmediate)||ue)(Be)},delegate:void 0};var de=C(640);const le=new class X extends de.v{flush(K){this._active=!0;const et=this._scheduled;this._scheduled=void 0;const{actions:Ze}=this;let Qe;K=K||Ze.shift();do{if(Qe=K.execute(K.state,K.delay))break}while((K=Ze[0])&&K.id===et&&Ze.shift());if(this._active=!1,Qe){for(;(K=Ze[0])&&K.id===et&&Ze.shift();)K.unsubscribe();throw Qe}}}(class se extends c.o{constructor(K,et){super(K,et),this.scheduler=K,this.work=et}requestAsyncId(K,et,Ze=0){return null!==Ze&&Ze>0?super.requestAsyncId(K,et,Ze):(K.actions.push(this),K._scheduled||(K._scheduled=te.setImmediate(K.flush.bind(K,void 0))))}recycleAsyncId(K,et,Ze=0){if(null!=Ze&&Ze>0||null==Ze&&this.delay>0)return super.recycleAsyncId(K,et,Ze);K.actions.some(Qe=>Qe.id===et)||(te.clearImmediate(et),K._scheduled=void 0)}})},4986:(We,ye,C)=>{C.d(ye,{z:()=>g,P:()=>Y});var c=C(4408);const g=new(C(640).v)(c.o),Y=g},3410:(We,ye,C)=>{C.d(ye,{z:()=>c});const c={setTimeout(...o){const{delegate:g}=c;return((null==g?void 0:g.setTimeout)||setTimeout)(...o)},clearTimeout(o){const{delegate:g}=c;return((null==g?void 0:g.clearTimeout)||clearTimeout)(o)},delegate:void 0}},2202:(We,ye,C)=>{C.d(ye,{h:()=>o});const o=function c(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(We,ye,C)=>{C.d(ye,{L:()=>c});const c="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:(We,ye,C)=>{C.d(ye,{jO:()=>Y,yG:()=>ce,_6:()=>q});var c=C(576),o=C(3532);function g(De){return De[De.length-1]}function Y(De){return(0,c.m)(g(De))?De.pop():void 0}function ce(De){return(0,o.K)(g(De))?De.pop():void 0}function q(De,Ee){return"number"==typeof g(De)?De.pop():Ee}},4742:(We,ye,C)=>{C.d(ye,{D:()=>ce});const{isArray:c}=Array,{getPrototypeOf:o,prototype:g,keys:Y}=Object;function ce(De){if(1===De.length){const Ee=De[0];if(c(Ee))return{args:Ee,keys:null};if(function q(De){return De&&"object"==typeof De&&o(De)===g}(Ee)){const ue=Y(Ee);return{args:ue.map(te=>Ee[te]),keys:ue}}}return{args:De,keys:null}}},8737:(We,ye,C)=>{function c(o,g){if(o){const Y=o.indexOf(g);0<=Y&&o.splice(Y,1)}}C.d(ye,{P:()=>c})},3888:(We,ye,C)=>{function c(o){const Y=o(ce=>{Error.call(ce),ce.stack=(new Error).stack});return Y.prototype=Object.create(Error.prototype),Y.prototype.constructor=Y,Y}C.d(ye,{d:()=>c})},1810:(We,ye,C)=>{function c(o,g){return o.reduce((Y,ce,q)=>(Y[ce]=g[q],Y),{})}C.d(ye,{n:()=>c})},2806:(We,ye,C)=>{C.d(ye,{x:()=>g,O:()=>Y});var c=C(2416);let o=null;function g(ce){if(c.v.useDeprecatedSynchronousErrorHandling){const q=!o;if(q&&(o={errorThrown:!1,error:null}),ce(),q){const{errorThrown:De,error:Ee}=o;if(o=null,De)throw Ee}}else ce()}function Y(ce){c.v.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=ce)}},9672:(We,ye,C)=>{function c(o,g,Y,ce=0,q=!1){const De=g.schedule(function(){Y(),q?o.add(this.schedule(null,ce)):this.unsubscribe()},ce);if(o.add(De),!q)return De}C.d(ye,{f:()=>c})},4671:(We,ye,C)=>{function c(o){return o}C.d(ye,{y:()=>c})},1144:(We,ye,C)=>{C.d(ye,{z:()=>c});const c=o=>o&&"number"==typeof o.length&&"function"!=typeof o},2206:(We,ye,C)=>{C.d(ye,{D:()=>o});var c=C(576);function o(g){return Symbol.asyncIterator&&(0,c.m)(null==g?void 0:g[Symbol.asyncIterator])}},576:(We,ye,C)=>{function c(o){return"function"==typeof o}C.d(ye,{m:()=>c})},3670:(We,ye,C)=>{C.d(ye,{c:()=>g});var c=C(8822),o=C(576);function g(Y){return(0,o.m)(Y[c.L])}},6495:(We,ye,C)=>{C.d(ye,{T:()=>g});var c=C(2202),o=C(576);function g(Y){return(0,o.m)(null==Y?void 0:Y[c.h])}},8239:(We,ye,C)=>{C.d(ye,{t:()=>o});var c=C(576);function o(g){return(0,c.m)(null==g?void 0:g.then)}},3260:(We,ye,C)=>{C.d(ye,{Q:()=>g,L:()=>Y});var c=C(655),o=C(576);function g(ce){return(0,c.FC)(this,arguments,function*(){const De=ce.getReader();try{for(;;){const{value:Ee,done:ue}=yield(0,c.qq)(De.read());if(ue)return yield(0,c.qq)(void 0);yield yield(0,c.qq)(Ee)}}finally{De.releaseLock()}})}function Y(ce){return(0,o.m)(null==ce?void 0:ce.getReader)}},3532:(We,ye,C)=>{C.d(ye,{K:()=>o});var c=C(576);function o(g){return g&&(0,c.m)(g.schedule)}},4482:(We,ye,C)=>{C.d(ye,{A:()=>o,e:()=>g});var c=C(576);function o(Y){return(0,c.m)(null==Y?void 0:Y.lift)}function g(Y){return ce=>{if(o(ce))return ce.lift(function(q){try{return Y(q,this)}catch(De){this.error(De)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(We,ye,C)=>{C.d(ye,{Z:()=>Y});var c=C(4004);const{isArray:o}=Array;function Y(ce){return(0,c.U)(q=>function g(ce,q){return o(q)?ce(...q):ce(q)}(ce,q))}},5032:(We,ye,C)=>{function c(){}C.d(ye,{Z:()=>c})},7849:(We,ye,C)=>{C.d(ye,{h:()=>g});var c=C(2416),o=C(3410);function g(Y){o.z.setTimeout(()=>{const{onUnhandledError:ce}=c.v;if(!ce)throw Y;ce(Y)})}},4532:(We,ye,C)=>{function c(o){return new TypeError(`You provided ${null!==o&&"object"==typeof o?"an invalid object":`'${o}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(ye,{z:()=>c})},655:(We,ye,C)=>{function Ee(ve,Me,xe,Ae){return new(xe||(xe=Promise))(function(Fe,bt){function mt(Rt){try{yt(Ae.next(Rt))}catch(Wt){bt(Wt)}}function Jt(Rt){try{yt(Ae.throw(Rt))}catch(Wt){bt(Wt)}}function yt(Rt){Rt.done?Fe(Rt.value):function tt(Fe){return Fe instanceof xe?Fe:new xe(function(bt){bt(Fe)})}(Rt.value).then(mt,Jt)}yt((Ae=Ae.apply(ve,Me||[])).next())})}function K(ve){return this instanceof K?(this.v=ve,this):new K(ve)}function et(ve,Me,xe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var tt,Ae=xe.apply(ve,Me||[]),Fe=[];return tt={},bt("next"),bt("throw"),bt("return"),tt[Symbol.asyncIterator]=function(){return this},tt;function bt(Pt){Ae[Pt]&&(tt[Pt]=function(dn){return new Promise(function(Vt,xt){Fe.push([Pt,dn,Vt,xt])>1||mt(Pt,dn)})})}function mt(Pt,dn){try{!function Jt(Pt){Pt.value instanceof K?Promise.resolve(Pt.value.v).then(yt,Rt):Wt(Fe[0][2],Pt)}(Ae[Pt](dn))}catch(Vt){Wt(Fe[0][3],Vt)}}function yt(Pt){mt("next",Pt)}function Rt(Pt){mt("throw",Pt)}function Wt(Pt,dn){Pt(dn),Fe.shift(),Fe.length&&mt(Fe[0][0],Fe[0][1])}}function Qe(ve){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var xe,Me=ve[Symbol.asyncIterator];return Me?Me.call(ve):(ve=function de(ve){var Me="function"==typeof Symbol&&Symbol.iterator,xe=Me&&ve[Me],Ae=0;if(xe)return xe.call(ve);if(ve&&"number"==typeof ve.length)return{next:function(){return ve&&Ae>=ve.length&&(ve=void 0),{value:ve&&ve[Ae++],done:!ve}}};throw new TypeError(Me?"Object is not iterable.":"Symbol.iterator is not defined.")}(ve),xe={},Ae("next"),Ae("throw"),Ae("return"),xe[Symbol.asyncIterator]=function(){return this},xe);function Ae(Fe){xe[Fe]=ve[Fe]&&function(bt){return new Promise(function(mt,Jt){!function tt(Fe,bt,mt,Jt){Promise.resolve(Jt).then(function(yt){Fe({value:yt,done:mt})},bt)}(mt,Jt,(bt=ve[Fe](bt)).done,bt.value)})}}}C.d(ye,{mG:()=>Ee,qq:()=>K,FC:()=>et,KL:()=>Qe})},1777:(We,ye,C)=>{C.d(ye,{l3:()=>g,_j:()=>c,LC:()=>o,ZN:()=>et,jt:()=>ce,pV:()=>X,F4:()=>te,IO:()=>ke,vP:()=>De,SB:()=>ue,oB:()=>Ee,eR:()=>se,X$:()=>Y,ZE:()=>Ze,k1:()=>Qe});class c{}class o{}const g="*";function Y(me,z){return{type:7,name:me,definitions:z,options:{}}}function ce(me,z=null){return{type:4,styles:z,timings:me}}function De(me,z=null){return{type:2,steps:me,options:z}}function Ee(me){return{type:6,styles:me,offset:null}}function ue(me,z,Q){return{type:0,name:me,styles:z,options:Q}}function te(me){return{type:5,steps:me}}function se(me,z,Q=null){return{type:1,expr:me,animation:z,options:Q}}function X(me=null){return{type:9,options:me}}function ke(me,z,Q=null){return{type:11,selector:me,animation:z,options:Q}}function K(me){Promise.resolve(null).then(me)}class et{constructor(z=0,Q=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=z+Q}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}onStart(z){this._onStartFns.push(z)}onDone(z){this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){K(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(z=>z()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(z){this._position=this.totalTime?z*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(z){const Q="start"==z?this._onStartFns:this._onDoneFns;Q.forEach(pe=>pe()),Q.length=0}}class Ze{constructor(z){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=z;let Q=0,pe=0,Te=0;const Ne=this.players.length;0==Ne?K(()=>this._onFinish()):this.players.forEach(ve=>{ve.onDone(()=>{++Q==Ne&&this._onFinish()}),ve.onDestroy(()=>{++pe==Ne&&this._onDestroy()}),ve.onStart(()=>{++Te==Ne&&this._onStart()})}),this.totalTime=this.players.reduce((ve,Me)=>Math.max(ve,Me.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}init(){this.players.forEach(z=>z.init())}onStart(z){this._onStartFns.push(z)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(z=>z()),this._onStartFns=[])}onDone(z){this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(z=>z.play())}pause(){this.players.forEach(z=>z.pause())}restart(){this.players.forEach(z=>z.restart())}finish(){this._onFinish(),this.players.forEach(z=>z.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(z=>z.destroy()),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}reset(){this.players.forEach(z=>z.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(z){const Q=z*this.totalTime;this.players.forEach(pe=>{const Te=pe.totalTime?Math.min(1,Q/pe.totalTime):1;pe.setPosition(Te)})}getPosition(){const z=this.players.reduce((Q,pe)=>null===Q||pe.totalTime>Q.totalTime?pe:Q,null);return null!=z?z.getPosition():0}beforeDestroy(){this.players.forEach(z=>{z.beforeDestroy&&z.beforeDestroy()})}triggerCallback(z){const Q="start"==z?this._onStartFns:this._onDoneFns;Q.forEach(pe=>pe()),Q.length=0}}const Qe="!"},5664:(We,ye,C)=>{C.d(ye,{rt:()=>we,s1:()=>tt,$s:()=>ve,Em:()=>Fe,tE:()=>nn,qV:()=>He,qm:()=>Le,ic:()=>mt,Kd:()=>ze,X6:()=>at,yG:()=>Pe});var c=C(9808),o=C(4893),g=C(925),Y=C(7579),ce=C(727),q=C(1135),De=C(9646),Ee=C(1159),ue=C(8505),te=C(8372),se=C(9300),de=C(4004),X=C(5698),le=C(5684),ke=C(1884),Be=C(2722),K=C(3191),et=C(7144);function z(V,j){return(V.getAttribute(j)||"").match(/\S+/g)||[]}const pe="cdk-describedby-message",Te="cdk-describedby-host";let Ne=0,ve=(()=>{class V{constructor($,he){this._platform=he,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ne++,this._document=$}describe($,he,Se){if(!this._canBeDescribed($,he))return;const st=Me(he,Se);"string"!=typeof he?(xe(he),this._messageRegistry.set(st,{messageElement:he,referenceCount:0})):this._messageRegistry.has(st)||this._createMessageElement(he,Se),this._isElementDescribedByMessage($,st)||this._addMessageReference($,st)}removeDescription($,he,Se){var st;if(!he||!this._isElementNode($))return;const At=Me(he,Se);if(this._isElementDescribedByMessage($,At)&&this._removeMessageReference($,At),"string"==typeof he){const Kt=this._messageRegistry.get(At);Kt&&0===Kt.referenceCount&&this._deleteMessageElement(At)}0===(null===(st=this._messagesContainer)||void 0===st?void 0:st.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var $;const he=this._document.querySelectorAll(`[${Te}="${this._id}"]`);for(let Se=0;Se0!=Se.indexOf(pe));$.setAttribute("aria-describedby",he.join(" "))}_addMessageReference($,he){const Se=this._messageRegistry.get(he);(function Qe(V,j,$){const he=z(V,j);he.some(Se=>Se.trim()==$.trim())||(he.push($.trim()),V.setAttribute(j,he.join(" ")))})($,"aria-describedby",Se.messageElement.id),$.setAttribute(Te,this._id),Se.referenceCount++}_removeMessageReference($,he){const Se=this._messageRegistry.get(he);Se.referenceCount--,function me(V,j,$){const Se=z(V,j).filter(st=>st!=$.trim());Se.length?V.setAttribute(j,Se.join(" ")):V.removeAttribute(j)}($,"aria-describedby",Se.messageElement.id),$.removeAttribute(Te)}_isElementDescribedByMessage($,he){const Se=z($,"aria-describedby"),st=this._messageRegistry.get(he),At=st&&st.messageElement.id;return!!At&&-1!=Se.indexOf(At)}_canBeDescribed($,he){if(!this._isElementNode($))return!1;if(he&&"object"==typeof he)return!0;const Se=null==he?"":`${he}`.trim(),st=$.getAttribute("aria-label");return!(!Se||st&&st.trim()===Se)}_isElementNode($){return $.nodeType===this._document.ELEMENT_NODE}}return V.\u0275fac=function($){return new($||V)(o.LFG(c.K0),o.LFG(g.t4))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function Me(V,j){return"string"==typeof V?`${j||""}/${V}`:V}function xe(V){V.id||(V.id=`${pe}-${Ne++}`)}class Ae{constructor(j){this._items=j,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Y.x,this._typeaheadSubscription=ce.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=$=>$.disabled,this._pressedLetters=[],this.tabOut=new Y.x,this.change=new Y.x,j instanceof o.n_E&&j.changes.subscribe($=>{if(this._activeItem){const Se=$.toArray().indexOf(this._activeItem);Se>-1&&Se!==this._activeItemIndex&&(this._activeItemIndex=Se)}})}skipPredicate(j){return this._skipPredicateFn=j,this}withWrap(j=!0){return this._wrap=j,this}withVerticalOrientation(j=!0){return this._vertical=j,this}withHorizontalOrientation(j){return this._horizontal=j,this}withAllowedModifierKeys(j){return this._allowedModifierKeys=j,this}withTypeAhead(j=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ue.b)($=>this._pressedLetters.push($)),(0,te.b)(j),(0,se.h)(()=>this._pressedLetters.length>0),(0,de.U)(()=>this._pressedLetters.join(""))).subscribe($=>{const he=this._getItemsArray();for(let Se=1;Se!j[st]||this._allowedModifierKeys.indexOf(st)>-1);switch($){case Ee.Mf:return void this.tabOut.next();case Ee.JH:if(this._vertical&&Se){this.setNextItemActive();break}return;case Ee.LH:if(this._vertical&&Se){this.setPreviousItemActive();break}return;case Ee.SV:if(this._horizontal&&Se){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Ee.oh:if(this._horizontal&&Se){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Ee.Sd:if(this._homeAndEnd&&Se){this.setFirstItemActive();break}return;case Ee.uR:if(this._homeAndEnd&&Se){this.setLastItemActive();break}return;default:return void((Se||(0,Ee.Vb)(j,"shiftKey"))&&(j.key&&1===j.key.length?this._letterKeyStream.next(j.key.toLocaleUpperCase()):($>=Ee.A&&$<=Ee.Z||$>=Ee.xE&&$<=Ee.aO)&&this._letterKeyStream.next(String.fromCharCode($))))}this._pressedLetters=[],j.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(j){const $=this._getItemsArray(),he="number"==typeof j?j:$.indexOf(j),Se=$[he];this._activeItem=null==Se?null:Se,this._activeItemIndex=he}_setActiveItemByDelta(j){this._wrap?this._setActiveInWrapMode(j):this._setActiveInDefaultMode(j)}_setActiveInWrapMode(j){const $=this._getItemsArray();for(let he=1;he<=$.length;he++){const Se=(this._activeItemIndex+j*he+$.length)%$.length;if(!this._skipPredicateFn($[Se]))return void this.setActiveItem(Se)}}_setActiveInDefaultMode(j){this._setActiveItemByIndex(this._activeItemIndex+j,j)}_setActiveItemByIndex(j,$){const he=this._getItemsArray();if(he[j]){for(;this._skipPredicateFn(he[j]);)if(!he[j+=$])return;this.setActiveItem(j)}}_getItemsArray(){return this._items instanceof o.n_E?this._items.toArray():this._items}}class tt extends Ae{setActiveItem(j){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(j),this.activeItem&&this.activeItem.setActiveStyles()}}class Fe extends Ae{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(j){return this._origin=j,this}setActiveItem(j){super.setActiveItem(j),this.activeItem&&this.activeItem.focus(this._origin)}}let mt=(()=>{class V{constructor($){this._platform=$}isDisabled($){return $.hasAttribute("disabled")}isVisible($){return function yt(V){return!!(V.offsetWidth||V.offsetHeight||"function"==typeof V.getClientRects&&V.getClientRects().length)}($)&&"visible"===getComputedStyle($).visibility}isTabbable($){if(!this._platform.isBrowser)return!1;const he=function Jt(V){try{return V.frameElement}catch(j){return null}}(function J(V){return V.ownerDocument&&V.ownerDocument.defaultView||window}($));if(he&&(-1===on(he)||!this.isVisible(he)))return!1;let Se=$.nodeName.toLowerCase(),st=on($);return $.hasAttribute("contenteditable")?-1!==st:!("iframe"===Se||"object"===Se||this._platform.WEBKIT&&this._platform.IOS&&!function Xe(V){let j=V.nodeName.toLowerCase(),$="input"===j&&V.type;return"text"===$||"password"===$||"select"===j||"textarea"===j}($))&&("audio"===Se?!!$.hasAttribute("controls")&&-1!==st:"video"===Se?-1!==st&&(null!==st||this._platform.FIREFOX||$.hasAttribute("controls")):$.tabIndex>=0)}isFocusable($,he){return function je(V){return!function Wt(V){return function dn(V){return"input"==V.nodeName.toLowerCase()}(V)&&"hidden"==V.type}(V)&&(function Rt(V){let j=V.nodeName.toLowerCase();return"input"===j||"select"===j||"button"===j||"textarea"===j}(V)||function Pt(V){return function Vt(V){return"a"==V.nodeName.toLowerCase()}(V)&&V.hasAttribute("href")}(V)||V.hasAttribute("contenteditable")||xt(V))}($)&&!this.isDisabled($)&&((null==he?void 0:he.ignoreVisibility)||this.isVisible($))}}return V.\u0275fac=function($){return new($||V)(o.LFG(g.t4))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function xt(V){if(!V.hasAttribute("tabindex")||void 0===V.tabIndex)return!1;let j=V.getAttribute("tabindex");return!(!j||isNaN(parseInt(j,10)))}function on(V){if(!xt(V))return null;const j=parseInt(V.getAttribute("tabindex")||"",10);return isNaN(j)?-1:j}class Z{constructor(j,$,he,Se,st=!1){this._element=j,this._checker=$,this._ngZone=he,this._document=Se,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,st||this.attachAnchors()}get enabled(){return this._enabled}set enabled(j){this._enabled=j,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(j,this._startAnchor),this._toggleAnchorTabIndex(j,this._endAnchor))}destroy(){const j=this._startAnchor,$=this._endAnchor;j&&(j.removeEventListener("focus",this.startAnchorListener),j.remove()),$&&($.removeEventListener("focus",this.endAnchorListener),$.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusInitialElement(j)))})}focusFirstTabbableElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusFirstTabbableElement(j)))})}focusLastTabbableElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusLastTabbableElement(j)))})}_getRegionBoundary(j){const $=this._element.querySelectorAll(`[cdk-focus-region-${j}], [cdkFocusRegion${j}], [cdk-focus-${j}]`);return"start"==j?$.length?$[0]:this._getFirstTabbableElement(this._element):$.length?$[$.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(j){const $=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if($){if(!this._checker.isFocusable($)){const he=this._getFirstTabbableElement($);return null==he||he.focus(j),!!he}return $.focus(j),!0}return this.focusFirstTabbableElement(j)}focusFirstTabbableElement(j){const $=this._getRegionBoundary("start");return $&&$.focus(j),!!$}focusLastTabbableElement(j){const $=this._getRegionBoundary("end");return $&&$.focus(j),!!$}hasAttached(){return this._hasAttached}_getFirstTabbableElement(j){if(this._checker.isFocusable(j)&&this._checker.isTabbable(j))return j;const $=j.children;for(let he=0;he<$.length;he++){const Se=$[he].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($[he]):null;if(Se)return Se}return null}_getLastTabbableElement(j){if(this._checker.isFocusable(j)&&this._checker.isTabbable(j))return j;const $=j.children;for(let he=$.length-1;he>=0;he--){const Se=$[he].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($[he]):null;if(Se)return Se}return null}_createAnchor(){const j=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,j),j.classList.add("cdk-visually-hidden"),j.classList.add("cdk-focus-trap-anchor"),j.setAttribute("aria-hidden","true"),j}_toggleAnchorTabIndex(j,$){j?$.setAttribute("tabindex","0"):$.removeAttribute("tabindex")}toggleAnchors(j){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(j,this._startAnchor),this._toggleAnchorTabIndex(j,this._endAnchor))}_executeOnStable(j){this._ngZone.isStable?j():this._ngZone.onStable.pipe((0,X.q)(1)).subscribe(j)}}let He=(()=>{class V{constructor($,he,Se){this._checker=$,this._ngZone=he,this._document=Se}create($,he=!1){return new Z($,this._checker,this._ngZone,this._document,he)}}return V.\u0275fac=function($){return new($||V)(o.LFG(mt),o.LFG(o.R0b),o.LFG(c.K0))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function at(V){return 0===V.buttons||0===V.offsetX&&0===V.offsetY}function Pe(V){const j=V.touches&&V.touches[0]||V.changedTouches&&V.changedTouches[0];return!(!j||-1!==j.identifier||null!=j.radiusX&&1!==j.radiusX||null!=j.radiusY&&1!==j.radiusY)}const E=new o.OlP("cdk-input-modality-detector-options"),S={ignoreKeys:[Ee.zL,Ee.jx,Ee.b2,Ee.MW,Ee.JU]},P=(0,g.i$)({passive:!0,capture:!0});let L=(()=>{class V{constructor($,he,Se,st){this._platform=$,this._mostRecentTarget=null,this._modality=new q.X(null),this._lastTouchMs=0,this._onKeydown=At=>{var Kt,Zt;(null===(Zt=null===(Kt=this._options)||void 0===Kt?void 0:Kt.ignoreKeys)||void 0===Zt?void 0:Zt.some(Dt=>Dt===At.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,g.sA)(At))},this._onMousedown=At=>{Date.now()-this._lastTouchMs<650||(this._modality.next(at(At)?"keyboard":"mouse"),this._mostRecentTarget=(0,g.sA)(At))},this._onTouchstart=At=>{Pe(At)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,g.sA)(At))},this._options=Object.assign(Object.assign({},S),st),this.modalityDetected=this._modality.pipe((0,le.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ke.x)()),$.isBrowser&&he.runOutsideAngular(()=>{Se.addEventListener("keydown",this._onKeydown,P),Se.addEventListener("mousedown",this._onMousedown,P),Se.addEventListener("touchstart",this._onTouchstart,P)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,P),document.removeEventListener("mousedown",this._onMousedown,P),document.removeEventListener("touchstart",this._onTouchstart,P))}}return V.\u0275fac=function($){return new($||V)(o.LFG(g.t4),o.LFG(o.R0b),o.LFG(c.K0),o.LFG(E,8))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const re=new o.OlP("liveAnnouncerElement",{providedIn:"root",factory:function be(){return null}}),Ue=new o.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ze=(()=>{class V{constructor($,he,Se,st){this._ngZone=he,this._defaultOptions=st,this._document=Se,this._liveElement=$||this._createLiveElement()}announce($,...he){const Se=this._defaultOptions;let st,At;return 1===he.length&&"number"==typeof he[0]?At=he[0]:[st,At]=he,this.clear(),clearTimeout(this._previousTimeout),st||(st=Se&&Se.politeness?Se.politeness:"polite"),null==At&&Se&&(At=Se.duration),this._liveElement.setAttribute("aria-live",st),this._ngZone.runOutsideAngular(()=>new Promise(Kt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=$,Kt(),"number"==typeof At&&(this._previousTimeout=setTimeout(()=>this.clear(),At))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var $;clearTimeout(this._previousTimeout),null===($=this._liveElement)||void 0===$||$.remove(),this._liveElement=null}_createLiveElement(){const $="cdk-live-announcer-element",he=this._document.getElementsByClassName($),Se=this._document.createElement("div");for(let st=0;st{class V{constructor($,he,Se,st,At){this._ngZone=$,this._platform=he,this._inputModalityDetector=Se,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Y.x,this._rootNodeFocusAndBlurListener=Kt=>{const Zt=(0,g.sA)(Kt),Dt="focus"===Kt.type?this._onFocus:this._onBlur;for(let Rn=Zt;Rn;Rn=Rn.parentElement)Dt.call(this,Kt,Rn)},this._document=st,this._detectionMode=(null==At?void 0:At.detectionMode)||0}monitor($,he=!1){const Se=(0,K.fI)($);if(!this._platform.isBrowser||1!==Se.nodeType)return(0,De.of)(null);const st=(0,g.kV)(Se)||this._getDocument(),At=this._elementInfo.get(Se);if(At)return he&&(At.checkChildren=!0),At.subject;const Kt={checkChildren:he,subject:new Y.x,rootNode:st};return this._elementInfo.set(Se,Kt),this._registerGlobalListeners(Kt),Kt.subject}stopMonitoring($){const he=(0,K.fI)($),Se=this._elementInfo.get(he);Se&&(Se.subject.complete(),this._setClasses(he),this._elementInfo.delete(he),this._removeGlobalListeners(Se))}focusVia($,he,Se){const st=(0,K.fI)($);st===this._getDocument().activeElement?this._getClosestElementsInfo(st).forEach(([Kt,Zt])=>this._originChanged(Kt,he,Zt)):(this._setOrigin(he),"function"==typeof st.focus&&st.focus(Se))}ngOnDestroy(){this._elementInfo.forEach(($,he)=>this.stopMonitoring(he))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin($){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch($)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch($){return 1===this._detectionMode||!!(null==$?void 0:$.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses($,he){$.classList.toggle("cdk-focused",!!he),$.classList.toggle("cdk-touch-focused","touch"===he),$.classList.toggle("cdk-keyboard-focused","keyboard"===he),$.classList.toggle("cdk-mouse-focused","mouse"===he),$.classList.toggle("cdk-program-focused","program"===he)}_setOrigin($,he=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$,this._originFromTouchInteraction="touch"===$&&he,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($,he){const Se=this._elementInfo.get(he),st=(0,g.sA)($);!Se||!Se.checkChildren&&he!==st||this._originChanged(he,this._getFocusOrigin(st),Se)}_onBlur($,he){const Se=this._elementInfo.get(he);!Se||Se.checkChildren&&$.relatedTarget instanceof Node&&he.contains($.relatedTarget)||(this._setClasses(he),this._emitOrigin(Se.subject,null))}_emitOrigin($,he){this._ngZone.run(()=>$.next(he))}_registerGlobalListeners($){if(!this._platform.isBrowser)return;const he=$.rootNode,Se=this._rootNodeFocusListenerCount.get(he)||0;Se||this._ngZone.runOutsideAngular(()=>{he.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ot),he.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ot)}),this._rootNodeFocusListenerCount.set(he,Se+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Be.R)(this._stopInputModalityDetector)).subscribe(st=>{this._setOrigin(st,!0)}))}_removeGlobalListeners($){const he=$.rootNode;if(this._rootNodeFocusListenerCount.has(he)){const Se=this._rootNodeFocusListenerCount.get(he);Se>1?this._rootNodeFocusListenerCount.set(he,Se-1):(he.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ot),he.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ot),this._rootNodeFocusListenerCount.delete(he))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($,he,Se){this._setClasses($,he),this._emitOrigin(Se.subject,he),this._lastFocusOrigin=he}_getClosestElementsInfo($){const he=[];return this._elementInfo.forEach((Se,st)=>{(st===$||Se.checkChildren&&st.contains($))&&he.push([st,Se])}),he}}return V.\u0275fac=function($){return new($||V)(o.LFG(o.R0b),o.LFG(g.t4),o.LFG(L),o.LFG(c.K0,8),o.LFG(ct,8))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const hn="cdk-high-contrast-black-on-white",dt="cdk-high-contrast-white-on-black",vt="cdk-high-contrast-active";let Le=(()=>{class V{constructor($,he){this._platform=$,this._document=he}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const $=this._document.createElement("div");$.style.backgroundColor="rgb(1,2,3)",$.style.position="absolute",this._document.body.appendChild($);const he=this._document.defaultView||window,Se=he&&he.getComputedStyle?he.getComputedStyle($):null,st=(Se&&Se.backgroundColor||"").replace(/ /g,"");switch($.remove(),st){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const $=this._document.body.classList;$.remove(vt),$.remove(hn),$.remove(dt),this._hasCheckedHighContrastMode=!0;const he=this.getHighContrastMode();1===he?($.add(vt),$.add(hn)):2===he&&($.add(vt),$.add(dt))}}}return V.\u0275fac=function($){return new($||V)(o.LFG(g.t4),o.LFG(c.K0))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),we=(()=>{class V{constructor($){$._applyBodyHighContrastModeCssClasses()}}return V.\u0275fac=function($){return new($||V)(o.LFG(Le))},V.\u0275mod=o.oAB({type:V}),V.\u0275inj=o.cJS({imports:[[et.Q8]]}),V})()},226:(We,ye,C)=>{C.d(ye,{vT:()=>ue,Is:()=>De});var c=C(4893),o=C(9808);const g=new c.OlP("cdk-dir-doc",{providedIn:"root",factory:function Y(){return(0,c.f3M)(o.K0)}}),ce=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let De=(()=>{class te{constructor(de){if(this.value="ltr",this.change=new c.vpe,de){const le=de.documentElement?de.documentElement.dir:null;this.value=function q(te){const se=(null==te?void 0:te.toLowerCase())||"";return"auto"===se&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?ce.test(navigator.language)?"rtl":"ltr":"rtl"===se?"rtl":"ltr"}((de.body?de.body.dir:null)||le||"ltr")}}ngOnDestroy(){this.change.complete()}}return te.\u0275fac=function(de){return new(de||te)(c.LFG(g,8))},te.\u0275prov=c.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),ue=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275mod=c.oAB({type:te}),te.\u0275inj=c.cJS({}),te})()},3191:(We,ye,C)=>{C.d(ye,{Eq:()=>ce,Ig:()=>o,HM:()=>q,fI:()=>De,su:()=>g});var c=C(4893);function o(ue){return null!=ue&&"false"!=`${ue}`}function g(ue,te=0){return function Y(ue){return!isNaN(parseFloat(ue))&&!isNaN(Number(ue))}(ue)?Number(ue):te}function ce(ue){return Array.isArray(ue)?ue:[ue]}function q(ue){return null==ue?"":"string"==typeof ue?ue:`${ue}px`}function De(ue){return ue instanceof c.SBq?ue.nativeElement:ue}},449:(We,ye,C)=>{C.d(ye,{Ov:()=>Ee,A8:()=>te});var c=C(7579),o=C(4893);class Ee{constructor(X=!1,le,ke=!0){this._multiple=X,this._emitChanges=ke,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new c.x,le&&le.length&&(X?le.forEach(Be=>this._markSelected(Be)):this._markSelected(le[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...X){this._verifyValueAssignment(X),X.forEach(le=>this._markSelected(le)),this._emitChangeEvent()}deselect(...X){this._verifyValueAssignment(X),X.forEach(le=>this._unmarkSelected(le)),this._emitChangeEvent()}toggle(X){this.isSelected(X)?this.deselect(X):this.select(X)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(X){return this._selection.has(X)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(X){this._multiple&&this.selected&&this._selected.sort(X)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(X){this.isSelected(X)||(this._multiple||this._unmarkAll(),this._selection.add(X),this._emitChanges&&this._selectedToEmit.push(X))}_unmarkSelected(X){this.isSelected(X)&&(this._selection.delete(X),this._emitChanges&&this._deselectedToEmit.push(X))}_unmarkAll(){this.isEmpty()||this._selection.forEach(X=>this._unmarkSelected(X))}_verifyValueAssignment(X){}}let te=(()=>{class de{constructor(){this._listeners=[]}notify(le,ke){for(let Be of this._listeners)Be(le,ke)}listen(le){return this._listeners.push(le),()=>{this._listeners=this._listeners.filter(ke=>le!==ke)}}ngOnDestroy(){this._listeners=[]}}return de.\u0275fac=function(le){return new(le||de)},de.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})()},1159:(We,ye,C)=>{C.d(ye,{A:()=>Pt,zL:()=>Ee,jx:()=>De,JH:()=>Qe,uR:()=>ke,K5:()=>ce,hY:()=>se,Sd:()=>Be,oh:()=>K,b2:()=>Xn,MW:()=>ze,aO:()=>mt,SV:()=>Ze,JU:()=>q,L_:()=>de,Mf:()=>g,LH:()=>et,Z:()=>Ue,xE:()=>Te,Vb:()=>Oi});const g=9,ce=13,q=16,De=17,Ee=18,se=27,de=32,ke=35,Be=36,K=37,et=38,Ze=39,Qe=40,Te=48,mt=57,Pt=65,Ue=90,ze=91,Xn=224;function Oi(Gn,...gn){return gn.length?gn.some(hi=>Gn[hi]):Gn.altKey||Gn.shiftKey||Gn.ctrlKey||Gn.metaKey}},7144:(We,ye,C)=>{C.d(ye,{wD:()=>Ee,Q8:()=>ue});var c=C(3191),o=C(4893),g=C(8306),Y=C(7579),ce=C(8372);let q=(()=>{class te{create(de){return"undefined"==typeof MutationObserver?null:new MutationObserver(de)}}return te.\u0275fac=function(de){return new(de||te)},te.\u0275prov=o.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),De=(()=>{class te{constructor(de){this._mutationObserverFactory=de,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((de,X)=>this._cleanupObserver(X))}observe(de){const X=(0,c.fI)(de);return new g.y(le=>{const Be=this._observeElement(X).subscribe(le);return()=>{Be.unsubscribe(),this._unobserveElement(X)}})}_observeElement(de){if(this._observedElements.has(de))this._observedElements.get(de).count++;else{const X=new Y.x,le=this._mutationObserverFactory.create(ke=>X.next(ke));le&&le.observe(de,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(de,{observer:le,stream:X,count:1})}return this._observedElements.get(de).stream}_unobserveElement(de){this._observedElements.has(de)&&(this._observedElements.get(de).count--,this._observedElements.get(de).count||this._cleanupObserver(de))}_cleanupObserver(de){if(this._observedElements.has(de)){const{observer:X,stream:le}=this._observedElements.get(de);X&&X.disconnect(),le.complete(),this._observedElements.delete(de)}}}return te.\u0275fac=function(de){return new(de||te)(o.LFG(q))},te.\u0275prov=o.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),Ee=(()=>{class te{constructor(de,X,le){this._contentObserver=de,this._elementRef=X,this._ngZone=le,this.event=new o.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(de){this._disabled=(0,c.Ig)(de),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(de){this._debounce=(0,c.su)(de),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const de=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?de.pipe((0,ce.b)(this.debounce)):de).subscribe(this.event)})}_unsubscribe(){var de;null===(de=this._currentSubscription)||void 0===de||de.unsubscribe()}}return te.\u0275fac=function(de){return new(de||te)(o.Y36(De),o.Y36(o.SBq),o.Y36(o.R0b))},te.\u0275dir=o.lG2({type:te,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),te})(),ue=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275mod=o.oAB({type:te}),te.\u0275inj=o.cJS({providers:[q]}),te})()},9776:(We,ye,C)=>{C.d(ye,{pI:()=>St,xu:()=>lt,aV:()=>Z,X_:()=>Ne,Xj:()=>bt,U8:()=>Nt});var c=C(495),o=C(9808),g=C(4893),Y=C(3191),ce=C(925),q=C(226),De=C(7429),Ee=C(7579),ue=C(727),te=C(6451),se=C(4482),de=C(5403),le=C(5698),ke=C(2722),Be=C(1159);const K=(0,ce.Mq)();class et{constructor(E,S){this._viewportRuler=E,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=S}attach(){}enable(){if(this._canBeEnabled()){const E=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=E.style.left||"",this._previousHTMLStyles.top=E.style.top||"",E.style.left=(0,Y.HM)(-this._previousScrollPosition.left),E.style.top=(0,Y.HM)(-this._previousScrollPosition.top),E.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const E=this._document.documentElement,D=E.style,P=this._document.body.style,L=D.scrollBehavior||"",re=P.scrollBehavior||"";this._isEnabled=!1,D.left=this._previousHTMLStyles.left,D.top=this._previousHTMLStyles.top,E.classList.remove("cdk-global-scrollblock"),K&&(D.scrollBehavior=P.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K&&(D.scrollBehavior=L,P.scrollBehavior=re)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const S=this._document.body,D=this._viewportRuler.getViewportSize();return S.scrollHeight>D.height||S.scrollWidth>D.width}}class Qe{constructor(E,S,D,P){this._scrollDispatcher=E,this._ngZone=S,this._viewportRuler=D,this._config=P,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(E){this._overlayRef=E}enable(){if(this._scrollSubscription)return;const E=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=E.subscribe(()=>{const S=this._viewportRuler.getViewportScrollPosition().top;Math.abs(S-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=E.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class me{enable(){}disable(){}attach(){}}function z(Pe,E){return E.some(S=>Pe.bottomS.bottom||Pe.rightS.right)}function Q(Pe,E){return E.some(S=>Pe.topS.bottom||Pe.leftS.right)}class pe{constructor(E,S,D,P){this._scrollDispatcher=E,this._viewportRuler=S,this._ngZone=D,this._config=P,this._scrollSubscription=null}attach(E){this._overlayRef=E}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const S=this._overlayRef.overlayElement.getBoundingClientRect(),{width:D,height:P}=this._viewportRuler.getViewportSize();z(S,[{width:D,height:P,bottom:P,right:D,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Te=(()=>{class Pe{constructor(S,D,P,L){this._scrollDispatcher=S,this._viewportRuler=D,this._ngZone=P,this.noop=()=>new me,this.close=re=>new Qe(this._scrollDispatcher,this._ngZone,this._viewportRuler,re),this.block=()=>new et(this._viewportRuler,this._document),this.reposition=re=>new pe(this._scrollDispatcher,this._viewportRuler,this._ngZone,re),this._document=L}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(c.mF),g.LFG(c.rL),g.LFG(g.R0b),g.LFG(o.K0))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();class Ne{constructor(E){if(this.scrollStrategy=new me,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,E){const S=Object.keys(E);for(const D of S)void 0!==E[D]&&(this[D]=E[D])}}}class xe{constructor(E,S){this.connectionPair=E,this.scrollableViewProperties=S}}class Fe{constructor(E,S,D,P,L,re,be,Ue,ze){this._portalOutlet=E,this._host=S,this._pane=D,this._config=P,this._ngZone=L,this._keyboardDispatcher=re,this._document=be,this._location=Ue,this._outsideClickDispatcher=ze,this._backdropElement=null,this._backdropClick=new Ee.x,this._attachments=new Ee.x,this._detachments=new Ee.x,this._locationChanges=ue.w0.EMPTY,this._backdropClickHandler=_t=>this._backdropClick.next(_t),this._keydownEvents=new Ee.x,this._outsidePointerEvents=new Ee.x,P.scrollStrategy&&(this._scrollStrategy=P.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=P.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(E){let S=this._portalOutlet.attach(E);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,le.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),S}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const E=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),E}dispose(){var E;const S=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(E=this._host)||void 0===E||E.remove(),this._previousHostParent=this._pane=this._host=null,S&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(E){E!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=E,this.hasAttached()&&(E.attach(this),this.updatePosition()))}updateSize(E){this._config=Object.assign(Object.assign({},this._config),E),this._updateElementSize()}setDirection(E){this._config=Object.assign(Object.assign({},this._config),{direction:E}),this._updateElementDirection()}addPanelClass(E){this._pane&&this._toggleClasses(this._pane,E,!0)}removePanelClass(E){this._pane&&this._toggleClasses(this._pane,E,!1)}getDirection(){const E=this._config.direction;return E?"string"==typeof E?E:E.value:"ltr"}updateScrollStrategy(E){E!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=E,this.hasAttached()&&(E.attach(this),E.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const E=this._pane.style;E.width=(0,Y.HM)(this._config.width),E.height=(0,Y.HM)(this._config.height),E.minWidth=(0,Y.HM)(this._config.minWidth),E.minHeight=(0,Y.HM)(this._config.minHeight),E.maxWidth=(0,Y.HM)(this._config.maxWidth),E.maxHeight=(0,Y.HM)(this._config.maxHeight)}_togglePointerEvents(E){this._pane.style.pointerEvents=E?"":"none"}_attachBackdrop(){const E="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(E)})}):this._backdropElement.classList.add(E)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const E=this._backdropElement;if(!E)return;let S;const D=()=>{E&&(E.removeEventListener("click",this._backdropClickHandler),E.removeEventListener("transitionend",D),this._disposeBackdrop(E)),this._config.backdropClass&&this._toggleClasses(E,this._config.backdropClass,!1),clearTimeout(S)};E.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{E.addEventListener("transitionend",D)}),E.style.pointerEvents="none",S=this._ngZone.runOutsideAngular(()=>setTimeout(D,500))}_toggleClasses(E,S,D){const P=(0,Y.Eq)(S||[]).filter(L=>!!L);P.length&&(D?E.classList.add(...P):E.classList.remove(...P))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const E=this._ngZone.onStable.pipe((0,ke.R)((0,te.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),E.unsubscribe())})})}_disposeScrollStrategy(){const E=this._scrollStrategy;E&&(E.disable(),E.detach&&E.detach())}_disposeBackdrop(E){E&&(E.remove(),this._backdropElement===E&&(this._backdropElement=null))}}let bt=(()=>{class Pe{constructor(S,D){this._platform=D,this._document=S}ngOnDestroy(){var S;null===(S=this._containerElement)||void 0===S||S.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const S="cdk-overlay-container";if(this._platform.isBrowser||(0,ce.Oy)()){const P=this._document.querySelectorAll(`.${S}[platform="server"], .${S}[platform="test"]`);for(let L=0;L{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const E=this._originRect,S=this._overlayRect,D=this._viewportRect,P=this._containerRect,L=[];let re;for(let be of this._preferredPositions){let Ue=this._getOriginPoint(E,P,be),ze=this._getOverlayPoint(Ue,S,be),_t=this._getOverlayFit(ze,S,D,be);if(_t.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(be,Ue);this._canFitWithFlexibleDimensions(_t,ze,D)?L.push({position:be,origin:Ue,overlayRect:S,boundingBoxRect:this._calculateBoundingBoxRect(Ue,be)}):(!re||re.overlayFit.visibleArea<_t.visibleArea)&&(re={overlayFit:_t,overlayPoint:ze,originPoint:Ue,position:be,overlayRect:S})}if(L.length){let be=null,Ue=-1;for(const ze of L){const _t=ze.boundingBoxRect.width*ze.boundingBoxRect.height*(ze.position.weight||1);_t>Ue&&(Ue=_t,be=ze)}return this._isPushed=!1,void this._applyPosition(be.position,be.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(re.position,re.originPoint);this._applyPosition(re.position,re.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Rt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const E=this._lastPosition;if(E){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const S=this._getOriginPoint(this._originRect,this._containerRect,E);this._applyPosition(E,S)}else this.apply()}withScrollableContainers(E){return this._scrollables=E,this}withPositions(E){return this._preferredPositions=E,-1===E.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(E){return this._viewportMargin=E,this}withFlexibleDimensions(E=!0){return this._hasFlexibleDimensions=E,this}withGrowAfterOpen(E=!0){return this._growAfterOpen=E,this}withPush(E=!0){return this._canPush=E,this}withLockedPosition(E=!0){return this._positionLocked=E,this}setOrigin(E){return this._origin=E,this}withDefaultOffsetX(E){return this._offsetX=E,this}withDefaultOffsetY(E){return this._offsetY=E,this}withTransformOriginOn(E){return this._transformOriginSelector=E,this}_getOriginPoint(E,S,D){let P,L;if("center"==D.originX)P=E.left+E.width/2;else{const re=this._isRtl()?E.right:E.left,be=this._isRtl()?E.left:E.right;P="start"==D.originX?re:be}return S.left<0&&(P-=S.left),L="center"==D.originY?E.top+E.height/2:"top"==D.originY?E.top:E.bottom,S.top<0&&(L-=S.top),{x:P,y:L}}_getOverlayPoint(E,S,D){let P,L;return P="center"==D.overlayX?-S.width/2:"start"===D.overlayX?this._isRtl()?-S.width:0:this._isRtl()?0:-S.width,L="center"==D.overlayY?-S.height/2:"top"==D.overlayY?0:-S.height,{x:E.x+P,y:E.y+L}}_getOverlayFit(E,S,D,P){const L=Pt(S);let{x:re,y:be}=E,Ue=this._getOffset(P,"x"),ze=this._getOffset(P,"y");Ue&&(re+=Ue),ze&&(be+=ze);let Ot=0-be,nn=be+L.height-D.height,Yt=this._subtractOverflows(L.width,0-re,re+L.width-D.width),hn=this._subtractOverflows(L.height,Ot,nn),dt=Yt*hn;return{visibleArea:dt,isCompletelyWithinViewport:L.width*L.height===dt,fitsInViewportVertically:hn===L.height,fitsInViewportHorizontally:Yt==L.width}}_canFitWithFlexibleDimensions(E,S,D){if(this._hasFlexibleDimensions){const P=D.bottom-S.y,L=D.right-S.x,re=Wt(this._overlayRef.getConfig().minHeight),be=Wt(this._overlayRef.getConfig().minWidth),ze=E.fitsInViewportHorizontally||null!=be&&be<=L;return(E.fitsInViewportVertically||null!=re&&re<=P)&&ze}return!1}_pushOverlayOnScreen(E,S,D){if(this._previousPushAmount&&this._positionLocked)return{x:E.x+this._previousPushAmount.x,y:E.y+this._previousPushAmount.y};const P=Pt(S),L=this._viewportRect,re=Math.max(E.x+P.width-L.width,0),be=Math.max(E.y+P.height-L.height,0),Ue=Math.max(L.top-D.top-E.y,0),ze=Math.max(L.left-D.left-E.x,0);let _t=0,ct=0;return _t=P.width<=L.width?ze||-re:E.xYt&&!this._isInitialRender&&!this._growAfterOpen&&(re=E.y-Yt/2)}if("end"===S.overlayX&&!P||"start"===S.overlayX&&P)Ot=D.width-E.x+this._viewportMargin,_t=E.x-this._viewportMargin;else if("start"===S.overlayX&&!P||"end"===S.overlayX&&P)ct=E.x,_t=D.right-E.x;else{const nn=Math.min(D.right-E.x+D.left,E.x),Yt=this._lastBoundingBoxSize.width;_t=2*nn,ct=E.x-nn,_t>Yt&&!this._isInitialRender&&!this._growAfterOpen&&(ct=E.x-Yt/2)}return{top:re,left:ct,bottom:be,right:Ot,width:_t,height:L}}_setBoundingBoxStyles(E,S){const D=this._calculateBoundingBoxRect(E,S);!this._isInitialRender&&!this._growAfterOpen&&(D.height=Math.min(D.height,this._lastBoundingBoxSize.height),D.width=Math.min(D.width,this._lastBoundingBoxSize.width));const P={};if(this._hasExactPosition())P.top=P.left="0",P.bottom=P.right=P.maxHeight=P.maxWidth="",P.width=P.height="100%";else{const L=this._overlayRef.getConfig().maxHeight,re=this._overlayRef.getConfig().maxWidth;P.height=(0,Y.HM)(D.height),P.top=(0,Y.HM)(D.top),P.bottom=(0,Y.HM)(D.bottom),P.width=(0,Y.HM)(D.width),P.left=(0,Y.HM)(D.left),P.right=(0,Y.HM)(D.right),P.alignItems="center"===S.overlayX?"center":"end"===S.overlayX?"flex-end":"flex-start",P.justifyContent="center"===S.overlayY?"center":"bottom"===S.overlayY?"flex-end":"flex-start",L&&(P.maxHeight=(0,Y.HM)(L)),re&&(P.maxWidth=(0,Y.HM)(re))}this._lastBoundingBoxSize=D,Rt(this._boundingBox.style,P)}_resetBoundingBoxStyles(){Rt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Rt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(E,S){const D={},P=this._hasExactPosition(),L=this._hasFlexibleDimensions,re=this._overlayRef.getConfig();if(P){const _t=this._viewportRuler.getViewportScrollPosition();Rt(D,this._getExactOverlayY(S,E,_t)),Rt(D,this._getExactOverlayX(S,E,_t))}else D.position="static";let be="",Ue=this._getOffset(S,"x"),ze=this._getOffset(S,"y");Ue&&(be+=`translateX(${Ue}px) `),ze&&(be+=`translateY(${ze}px)`),D.transform=be.trim(),re.maxHeight&&(P?D.maxHeight=(0,Y.HM)(re.maxHeight):L&&(D.maxHeight="")),re.maxWidth&&(P?D.maxWidth=(0,Y.HM)(re.maxWidth):L&&(D.maxWidth="")),Rt(this._pane.style,D)}_getExactOverlayY(E,S,D){let P={top:"",bottom:""},L=this._getOverlayPoint(S,this._overlayRect,E);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,D)),"bottom"===E.overlayY?P.bottom=this._document.documentElement.clientHeight-(L.y+this._overlayRect.height)+"px":P.top=(0,Y.HM)(L.y),P}_getExactOverlayX(E,S,D){let re,P={left:"",right:""},L=this._getOverlayPoint(S,this._overlayRect,E);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,D)),re=this._isRtl()?"end"===E.overlayX?"left":"right":"end"===E.overlayX?"right":"left","right"===re?P.right=this._document.documentElement.clientWidth-(L.x+this._overlayRect.width)+"px":P.left=(0,Y.HM)(L.x),P}_getScrollVisibility(){const E=this._getOriginRect(),S=this._pane.getBoundingClientRect(),D=this._scrollables.map(P=>P.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Q(E,D),isOriginOutsideView:z(E,D),isOverlayClipped:Q(S,D),isOverlayOutsideView:z(S,D)}}_subtractOverflows(E,...S){return S.reduce((D,P)=>D-Math.max(P,0),E)}_getNarrowedViewportRect(){const E=this._document.documentElement.clientWidth,S=this._document.documentElement.clientHeight,D=this._viewportRuler.getViewportScrollPosition();return{top:D.top+this._viewportMargin,left:D.left+this._viewportMargin,right:D.left+E-this._viewportMargin,bottom:D.top+S-this._viewportMargin,width:E-2*this._viewportMargin,height:S-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(E,S){return"x"===S?null==E.offsetX?this._offsetX:E.offsetX:null==E.offsetY?this._offsetY:E.offsetY}_validatePositions(){}_addPanelClasses(E){this._pane&&(0,Y.Eq)(E).forEach(S=>{""!==S&&-1===this._appliedPanelClasses.indexOf(S)&&(this._appliedPanelClasses.push(S),this._pane.classList.add(S))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(E=>{this._pane.classList.remove(E)}),this._appliedPanelClasses=[])}_getOriginRect(){const E=this._origin;if(E instanceof g.SBq)return E.nativeElement.getBoundingClientRect();if(E instanceof Element)return E.getBoundingClientRect();const S=E.width||0,D=E.height||0;return{top:E.y,bottom:E.y+D,left:E.x,right:E.x+S,height:D,width:S}}}function Rt(Pe,E){for(let S in E)E.hasOwnProperty(S)&&(Pe[S]=E[S]);return Pe}function Wt(Pe){if("number"!=typeof Pe&&null!=Pe){const[E,S]=Pe.split(Jt);return S&&"px"!==S?null:parseFloat(E)}return Pe||null}function Pt(Pe){return{top:Math.floor(Pe.top),right:Math.floor(Pe.right),bottom:Math.floor(Pe.bottom),left:Math.floor(Pe.left),width:Math.floor(Pe.width),height:Math.floor(Pe.height)}}const dn="cdk-global-overlay-wrapper";class Vt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(E){const S=E.getConfig();this._overlayRef=E,this._width&&!S.width&&E.updateSize({width:this._width}),this._height&&!S.height&&E.updateSize({height:this._height}),E.hostElement.classList.add(dn),this._isDisposed=!1}top(E=""){return this._bottomOffset="",this._topOffset=E,this._alignItems="flex-start",this}left(E=""){return this._rightOffset="",this._leftOffset=E,this._justifyContent="flex-start",this}bottom(E=""){return this._topOffset="",this._bottomOffset=E,this._alignItems="flex-end",this}right(E=""){return this._leftOffset="",this._rightOffset=E,this._justifyContent="flex-end",this}width(E=""){return this._overlayRef?this._overlayRef.updateSize({width:E}):this._width=E,this}height(E=""){return this._overlayRef?this._overlayRef.updateSize({height:E}):this._height=E,this}centerHorizontally(E=""){return this.left(E),this._justifyContent="center",this}centerVertically(E=""){return this.top(E),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const E=this._overlayRef.overlayElement.style,S=this._overlayRef.hostElement.style,D=this._overlayRef.getConfig(),{width:P,height:L,maxWidth:re,maxHeight:be}=D,Ue=!("100%"!==P&&"100vw"!==P||re&&"100%"!==re&&"100vw"!==re),ze=!("100%"!==L&&"100vh"!==L||be&&"100%"!==be&&"100vh"!==be);E.position=this._cssPosition,E.marginLeft=Ue?"0":this._leftOffset,E.marginTop=ze?"0":this._topOffset,E.marginBottom=this._bottomOffset,E.marginRight=this._rightOffset,Ue?S.justifyContent="flex-start":"center"===this._justifyContent?S.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?S.justifyContent="flex-end":"flex-end"===this._justifyContent&&(S.justifyContent="flex-start"):S.justifyContent=this._justifyContent,S.alignItems=ze?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const E=this._overlayRef.overlayElement.style,S=this._overlayRef.hostElement,D=S.style;S.classList.remove(dn),D.justifyContent=D.alignItems=E.marginTop=E.marginBottom=E.marginLeft=E.marginRight=E.position="",this._overlayRef=null,this._isDisposed=!0}}let xt=(()=>{class Pe{constructor(S,D,P,L){this._viewportRuler=S,this._document=D,this._platform=P,this._overlayContainer=L}global(){return new Vt}flexibleConnectedTo(S){return new yt(S,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(c.rL),g.LFG(o.K0),g.LFG(ce.t4),g.LFG(bt))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),on=(()=>{class Pe{constructor(S){this._attachedOverlays=[],this._document=S}ngOnDestroy(){this.detach()}add(S){this.remove(S),this._attachedOverlays.push(S)}remove(S){const D=this._attachedOverlays.indexOf(S);D>-1&&this._attachedOverlays.splice(D,1),0===this._attachedOverlays.length&&this.detach()}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(o.K0))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Xe=(()=>{class Pe extends on{constructor(S,D){super(S),this._ngZone=D,this._keydownListener=P=>{const L=this._attachedOverlays;for(let re=L.length-1;re>-1;re--)if(L[re]._keydownEvents.observers.length>0){const be=L[re]._keydownEvents;this._ngZone?this._ngZone.run(()=>be.next(P)):be.next(P);break}}}add(S){super.add(S),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(o.K0),g.LFG(g.R0b,8))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),je=(()=>{class Pe extends on{constructor(S,D,P){super(S),this._platform=D,this._ngZone=P,this._cursorStyleIsSet=!1,this._pointerDownListener=L=>{this._pointerDownEventTarget=(0,ce.sA)(L)},this._clickListener=L=>{const re=(0,ce.sA)(L),be="click"===L.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:re;this._pointerDownEventTarget=null;const Ue=this._attachedOverlays.slice();for(let ze=Ue.length-1;ze>-1;ze--){const _t=Ue[ze];if(_t._outsidePointerEvents.observers.length<1||!_t.hasAttached())continue;if(_t.overlayElement.contains(re)||_t.overlayElement.contains(be))break;const ct=_t._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ct.next(L)):ct.next(L)}}}add(S){if(super.add(S),!this._isAttached){const D=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(D)):this._addEventListeners(D),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=D.style.cursor,D.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const S=this._document.body;S.removeEventListener("pointerdown",this._pointerDownListener,!0),S.removeEventListener("click",this._clickListener,!0),S.removeEventListener("auxclick",this._clickListener,!0),S.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(S.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(S){S.addEventListener("pointerdown",this._pointerDownListener,!0),S.addEventListener("click",this._clickListener,!0),S.addEventListener("auxclick",this._clickListener,!0),S.addEventListener("contextmenu",this._clickListener,!0)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(o.K0),g.LFG(ce.t4),g.LFG(g.R0b,8))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),J=0,Z=(()=>{class Pe{constructor(S,D,P,L,re,be,Ue,ze,_t,ct,Ot){this.scrollStrategies=S,this._overlayContainer=D,this._componentFactoryResolver=P,this._positionBuilder=L,this._keyboardDispatcher=re,this._injector=be,this._ngZone=Ue,this._document=ze,this._directionality=_t,this._location=ct,this._outsideClickDispatcher=Ot}create(S){const D=this._createHostElement(),P=this._createPaneElement(D),L=this._createPortalOutlet(P),re=new Ne(S);return re.direction=re.direction||this._directionality.value,new Fe(L,D,P,re,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(S){const D=this._document.createElement("div");return D.id="cdk-overlay-"+J++,D.classList.add("cdk-overlay-pane"),S.appendChild(D),D}_createHostElement(){const S=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(S),S}_createPortalOutlet(S){return this._appRef||(this._appRef=this._injector.get(g.z2F)),new De.u0(S,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(Te),g.LFG(bt),g.LFG(g._Vd),g.LFG(xt),g.LFG(Xe),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(o.K0),g.LFG(q.Is),g.LFG(o.Ye),g.LFG(je))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const He=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Ge=new g.OlP("cdk-connected-overlay-scroll-strategy");let lt=(()=>{class Pe{constructor(S){this.elementRef=S}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.Y36(g.SBq))},Pe.\u0275dir=g.lG2({type:Pe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Pe})(),St=(()=>{class Pe{constructor(S,D,P,L,re){this._overlay=S,this._dir=re,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ue.w0.EMPTY,this._attachSubscription=ue.w0.EMPTY,this._detachSubscription=ue.w0.EMPTY,this._positionSubscription=ue.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new g.vpe,this.positionChange=new g.vpe,this.attach=new g.vpe,this.detach=new g.vpe,this.overlayKeydown=new g.vpe,this.overlayOutsideClick=new g.vpe,this._templatePortal=new De.UE(D,P),this._scrollStrategyFactory=L,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(S){this._offsetX=S,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(S){this._offsetY=S,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(S){this._hasBackdrop=(0,Y.Ig)(S)}get lockPosition(){return this._lockPosition}set lockPosition(S){this._lockPosition=(0,Y.Ig)(S)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(S){this._flexibleDimensions=(0,Y.Ig)(S)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(S){this._growAfterOpen=(0,Y.Ig)(S)}get push(){return this._push}set push(S){this._push=(0,Y.Ig)(S)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(S){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),S.origin&&this.open&&this._position.apply()),S.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=He);const S=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=S.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=S.detachments().subscribe(()=>this.detach.emit()),S.keydownEvents().subscribe(D=>{this.overlayKeydown.next(D),D.keyCode===Be.hY&&!this.disableClose&&!(0,Be.Vb)(D)&&(D.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(D=>{this.overlayOutsideClick.next(D)})}_buildConfig(){const S=this._position=this.positionStrategy||this._createPositionStrategy(),D=new Ne({direction:this._dir,positionStrategy:S,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(D.width=this.width),(this.height||0===this.height)&&(D.height=this.height),(this.minWidth||0===this.minWidth)&&(D.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(D.minHeight=this.minHeight),this.backdropClass&&(D.backdropClass=this.backdropClass),this.panelClass&&(D.panelClass=this.panelClass),D}_updatePositionStrategy(S){const D=this.positions.map(P=>({originX:P.originX,originY:P.originY,overlayX:P.overlayX,overlayY:P.overlayY,offsetX:P.offsetX||this.offsetX,offsetY:P.offsetY||this.offsetY,panelClass:P.panelClass||void 0}));return S.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(D).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const S=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(S),S}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof lt?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(S=>{this.backdropClick.emit(S)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function X(Pe,E=!1){return(0,se.e)((S,D)=>{let P=0;S.subscribe((0,de.x)(D,L=>{const re=Pe(L,P++);(re||E)&&D.next(L),!re&&D.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(S=>{this.positionChange.emit(S),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.Y36(Z),g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(Ge),g.Y36(q.Is,8))},Pe.\u0275dir=g.lG2({type:Pe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[g.TTD]}),Pe})();const Ct={provide:Ge,deps:[Z],useFactory:function jt(Pe){return()=>Pe.scrollStrategies.reposition()}};let Nt=(()=>{class Pe{}return Pe.\u0275fac=function(S){return new(S||Pe)},Pe.\u0275mod=g.oAB({type:Pe}),Pe.\u0275inj=g.cJS({providers:[Z,Ct],imports:[[q.vT,De.eL,c.Cl],c.Cl]}),Pe})()},925:(We,ye,C)=>{C.d(ye,{t4:()=>Y,sA:()=>Qe,ht:()=>Ze,kV:()=>et,Oy:()=>me,qK:()=>Ee,i$:()=>se,Mq:()=>le});var c=C(4893),o=C(9808);let g;try{g="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(z){g=!1}let q,Y=(()=>{class z{constructor(pe){this._platformId=pe,this.isBrowser=this._platformId?(0,o.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!g)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return z.\u0275fac=function(pe){return new(pe||z)(c.LFG(c.Lbi))},z.\u0275prov=c.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const De=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ee(){if(q)return q;if("object"!=typeof document||!document)return q=new Set(De),q;let z=document.createElement("input");return q=new Set(De.filter(Q=>(z.setAttribute("type",Q),z.type===Q))),q}let ue,X,Be;function se(z){return function te(){if(null==ue&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ue=!0}))}finally{ue=ue||!1}return ue}()?z:!!z.capture}function le(){if(null==X){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return X=!1,X;if("scrollBehavior"in document.documentElement.style)X=!0;else{const z=Element.prototype.scrollTo;X=!!z&&!/\{\s*\[native code\]\s*\}/.test(z.toString())}}return X}function et(z){if(function K(){if(null==Be){const z="undefined"!=typeof document?document.head:null;Be=!(!z||!z.createShadowRoot&&!z.attachShadow)}return Be}()){const Q=z.getRootNode?z.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Q instanceof ShadowRoot)return Q}return null}function Ze(){let z="undefined"!=typeof document&&document?document.activeElement:null;for(;z&&z.shadowRoot;){const Q=z.shadowRoot.activeElement;if(Q===z)break;z=Q}return z}function Qe(z){return z.composedPath?z.composedPath()[0]:z.target}function me(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(We,ye,C)=>{C.d(ye,{en:()=>X,Pl:()=>Ze,C5:()=>te,u0:()=>ke,eL:()=>me,UE:()=>se});var c=C(4893),o=C(9808);class ue{attach(pe){return this._attachedHost=pe,pe.attach(this)}detach(){let pe=this._attachedHost;null!=pe&&(this._attachedHost=null,pe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(pe){this._attachedHost=pe}}class te extends ue{constructor(pe,Te,Ne,ve){super(),this.component=pe,this.viewContainerRef=Te,this.injector=Ne,this.componentFactoryResolver=ve}}class se extends ue{constructor(pe,Te,Ne){super(),this.templateRef=pe,this.viewContainerRef=Te,this.context=Ne}get origin(){return this.templateRef.elementRef}attach(pe,Te=this.context){return this.context=Te,super.attach(pe)}detach(){return this.context=void 0,super.detach()}}class de extends ue{constructor(pe){super(),this.element=pe instanceof c.SBq?pe.nativeElement:pe}}class X{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(pe){return pe instanceof te?(this._attachedPortal=pe,this.attachComponentPortal(pe)):pe instanceof se?(this._attachedPortal=pe,this.attachTemplatePortal(pe)):this.attachDomPortal&&pe instanceof de?(this._attachedPortal=pe,this.attachDomPortal(pe)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(pe){this._disposeFn=pe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ke extends X{constructor(pe,Te,Ne,ve,Me){super(),this.outletElement=pe,this._componentFactoryResolver=Te,this._appRef=Ne,this._defaultInjector=ve,this.attachDomPortal=xe=>{const Ae=xe.element,tt=this._document.createComment("dom-portal");Ae.parentNode.insertBefore(tt,Ae),this.outletElement.appendChild(Ae),this._attachedPortal=xe,super.setDisposeFn(()=>{tt.parentNode&&tt.parentNode.replaceChild(Ae,tt)})},this._document=Me}attachComponentPortal(pe){const Ne=(pe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(pe.component);let ve;return pe.viewContainerRef?(ve=pe.viewContainerRef.createComponent(Ne,pe.viewContainerRef.length,pe.injector||pe.viewContainerRef.injector),this.setDisposeFn(()=>ve.destroy())):(ve=Ne.create(pe.injector||this._defaultInjector),this._appRef.attachView(ve.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ve.hostView),ve.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ve)),this._attachedPortal=pe,ve}attachTemplatePortal(pe){let Te=pe.viewContainerRef,Ne=Te.createEmbeddedView(pe.templateRef,pe.context);return Ne.rootNodes.forEach(ve=>this.outletElement.appendChild(ve)),Ne.detectChanges(),this.setDisposeFn(()=>{let ve=Te.indexOf(Ne);-1!==ve&&Te.remove(ve)}),this._attachedPortal=pe,Ne}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(pe){return pe.hostView.rootNodes[0]}}let Ze=(()=>{class Q extends X{constructor(Te,Ne,ve){super(),this._componentFactoryResolver=Te,this._viewContainerRef=Ne,this._isInitialized=!1,this.attached=new c.vpe,this.attachDomPortal=Me=>{const xe=Me.element,Ae=this._document.createComment("dom-portal");Me.setAttachedHost(this),xe.parentNode.insertBefore(Ae,xe),this._getRootNode().appendChild(xe),this._attachedPortal=Me,super.setDisposeFn(()=>{Ae.parentNode&&Ae.parentNode.replaceChild(xe,Ae)})},this._document=ve}get portal(){return this._attachedPortal}set portal(Te){this.hasAttached()&&!Te&&!this._isInitialized||(this.hasAttached()&&super.detach(),Te&&super.attach(Te),this._attachedPortal=Te||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Te){Te.setAttachedHost(this);const Ne=null!=Te.viewContainerRef?Te.viewContainerRef:this._viewContainerRef,Me=(Te.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Te.component),xe=Ne.createComponent(Me,Ne.length,Te.injector||Ne.injector);return Ne!==this._viewContainerRef&&this._getRootNode().appendChild(xe.hostView.rootNodes[0]),super.setDisposeFn(()=>xe.destroy()),this._attachedPortal=Te,this._attachedRef=xe,this.attached.emit(xe),xe}attachTemplatePortal(Te){Te.setAttachedHost(this);const Ne=this._viewContainerRef.createEmbeddedView(Te.templateRef,Te.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Te,this._attachedRef=Ne,this.attached.emit(Ne),Ne}_getRootNode(){const Te=this._viewContainerRef.element.nativeElement;return Te.nodeType===Te.ELEMENT_NODE?Te:Te.parentNode}}return Q.\u0275fac=function(Te){return new(Te||Q)(c.Y36(c._Vd),c.Y36(c.s_b),c.Y36(o.K0))},Q.\u0275dir=c.lG2({type:Q,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[c.qOj]}),Q})(),me=(()=>{class Q{}return Q.\u0275fac=function(Te){return new(Te||Q)},Q.\u0275mod=c.oAB({type:Q}),Q.\u0275inj=c.cJS({}),Q})()},495:(We,ye,C)=>{C.d(ye,{ZD:()=>on,mF:()=>mt,Cl:()=>Xe,rL:()=>Rt});var c=C(3191),o=C(4893),g=C(4408),Y=C(727);const ce={schedule(je){let J=requestAnimationFrame,Z=cancelAnimationFrame;const{delegate:He}=ce;He&&(J=He.requestAnimationFrame,Z=He.cancelAnimationFrame);const Ge=J(lt=>{Z=void 0,je(lt)});return new Y.w0(()=>null==Z?void 0:Z(Ge))},requestAnimationFrame(...je){const{delegate:J}=ce;return((null==J?void 0:J.requestAnimationFrame)||requestAnimationFrame)(...je)},cancelAnimationFrame(...je){const{delegate:J}=ce;return((null==J?void 0:J.cancelAnimationFrame)||cancelAnimationFrame)(...je)},delegate:void 0};var De=C(640);new class Ee extends De.v{flush(J){this._active=!0;const Z=this._scheduled;this._scheduled=void 0;const{actions:He}=this;let Ge;J=J||He.shift();do{if(Ge=J.execute(J.state,J.delay))break}while((J=He[0])&&J.id===Z&&He.shift());if(this._active=!1,Ge){for(;(J=He[0])&&J.id===Z&&He.shift();)J.unsubscribe();throw Ge}}}(class q extends g.o{constructor(J,Z){super(J,Z),this.scheduler=J,this.work=Z}requestAsyncId(J,Z,He=0){return null!==He&&He>0?super.requestAsyncId(J,Z,He):(J.actions.push(this),J._scheduled||(J._scheduled=ce.requestAnimationFrame(()=>J.flush(void 0))))}recycleAsyncId(J,Z,He=0){if(null!=He&&He>0||null==He&&this.delay>0)return super.recycleAsyncId(J,Z,He);J.actions.some(Ge=>Ge.id===Z)||(ce.cancelAnimationFrame(Z),J._scheduled=void 0)}});var se=C(7579),de=C(9646),X=C(8306),le=C(4968),Be=(C(3101),C(4986)),K=C(4482),et=C(8421),Ze=C(5403),me=C(5963);function z(je,J=Be.z){return function Qe(je){return(0,K.e)((J,Z)=>{let He=!1,Ge=null,lt=null,St=!1;const jt=()=>{if(null==lt||lt.unsubscribe(),lt=null,He){He=!1;const Nt=Ge;Ge=null,Z.next(Nt)}St&&Z.complete()},Ct=()=>{lt=null,St&&Z.complete()};J.subscribe((0,Ze.x)(Z,Nt=>{He=!0,Ge=Nt,lt||(0,et.Xf)(je(Nt)).subscribe(lt=(0,Ze.x)(Z,jt,Ct))},()=>{St=!0,(!He||!lt||lt.closed)&&Z.complete()}))})}(()=>(0,me.H)(je,J))}var Q=C(9300),pe=C(9808),Te=C(925),Ne=C(226);let mt=(()=>{class je{constructor(Z,He,Ge){this._ngZone=Z,this._platform=He,this._scrolled=new se.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ge}register(Z){this.scrollContainers.has(Z)||this.scrollContainers.set(Z,Z.elementScrolled().subscribe(()=>this._scrolled.next(Z)))}deregister(Z){const He=this.scrollContainers.get(Z);He&&(He.unsubscribe(),this.scrollContainers.delete(Z))}scrolled(Z=20){return this._platform.isBrowser?new X.y(He=>{this._globalSubscription||this._addGlobalListener();const Ge=Z>0?this._scrolled.pipe(z(Z)).subscribe(He):this._scrolled.subscribe(He);return this._scrolledCount++,()=>{Ge.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,de.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Z,He)=>this.deregister(He)),this._scrolled.complete()}ancestorScrolled(Z,He){const Ge=this.getAncestorScrollContainers(Z);return this.scrolled(He).pipe((0,Q.h)(lt=>!lt||Ge.indexOf(lt)>-1))}getAncestorScrollContainers(Z){const He=[];return this.scrollContainers.forEach((Ge,lt)=>{this._scrollableContainsElement(lt,Z)&&He.push(lt)}),He}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Z,He){let Ge=(0,c.fI)(He),lt=Z.getElementRef().nativeElement;do{if(Ge==lt)return!0}while(Ge=Ge.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Z=this._getWindow();return(0,le.R)(Z.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return je.\u0275fac=function(Z){return new(Z||je)(o.LFG(o.R0b),o.LFG(Te.t4),o.LFG(pe.K0,8))},je.\u0275prov=o.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),Rt=(()=>{class je{constructor(Z,He,Ge){this._platform=Z,this._change=new se.x,this._changeListener=lt=>{this._change.next(lt)},this._document=Ge,He.runOutsideAngular(()=>{if(Z.isBrowser){const lt=this._getWindow();lt.addEventListener("resize",this._changeListener),lt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Z=this._getWindow();Z.removeEventListener("resize",this._changeListener),Z.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Z={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Z}getViewportRect(){const Z=this.getViewportScrollPosition(),{width:He,height:Ge}=this.getViewportSize();return{top:Z.top,left:Z.left,bottom:Z.top+Ge,right:Z.left+He,height:Ge,width:He}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Z=this._document,He=this._getWindow(),Ge=Z.documentElement,lt=Ge.getBoundingClientRect();return{top:-lt.top||Z.body.scrollTop||He.scrollY||Ge.scrollTop||0,left:-lt.left||Z.body.scrollLeft||He.scrollX||Ge.scrollLeft||0}}change(Z=20){return Z>0?this._change.pipe(z(Z)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Z=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Z.innerWidth,height:Z.innerHeight}:{width:0,height:0}}}return je.\u0275fac=function(Z){return new(Z||je)(o.LFG(Te.t4),o.LFG(o.R0b),o.LFG(pe.K0,8))},je.\u0275prov=o.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),on=(()=>{class je{}return je.\u0275fac=function(Z){return new(Z||je)},je.\u0275mod=o.oAB({type:je}),je.\u0275inj=o.cJS({}),je})(),Xe=(()=>{class je{}return je.\u0275fac=function(Z){return new(Z||je)},je.\u0275mod=o.oAB({type:je}),je.\u0275inj=o.cJS({imports:[[Ne.vT,on],Ne.vT,on]}),je})()},9808:(We,ye,C)=>{C.d(ye,{mr:()=>Ze,Ov:()=>hr,ez:()=>Nr,K0:()=>De,Do:()=>me,V_:()=>te,Ye:()=>z,S$:()=>K,mk:()=>tn,sg:()=>zt,O5:()=>Oi,RF:()=>Nn,n9:()=>ei,ED:()=>un,b0:()=>Qe,lw:()=>Ee,EM:()=>Tn,JF:()=>xr,NF:()=>Pi,w_:()=>q,bD:()=>zi,q:()=>g,Mx:()=>ui,HT:()=>ce});var c=C(4893);let o=null;function g(){return o}function ce(A){o||(o=A)}class q{}const De=new c.OlP("DocumentToken");let Ee=(()=>{class A{historyGo(T){throw new Error("Not implemented")}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=c.Yz7({token:A,factory:function(){return function ue(){return(0,c.LFG)(se)}()},providedIn:"platform"}),A})();const te=new c.OlP("Location Initialized");let se=(()=>{class A extends Ee{constructor(T){super(),this._doc=T,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return g().getBaseHref(this._doc)}onPopState(T){const H=g().getGlobalEventTarget(this._doc,"window");return H.addEventListener("popstate",T,!1),()=>H.removeEventListener("popstate",T)}onHashChange(T){const H=g().getGlobalEventTarget(this._doc,"window");return H.addEventListener("hashchange",T,!1),()=>H.removeEventListener("hashchange",T)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(T){this.location.pathname=T}pushState(T,H,ae){de()?this._history.pushState(T,H,ae):this.location.hash=ae}replaceState(T,H,ae){de()?this._history.replaceState(T,H,ae):this.location.hash=ae}forward(){this._history.forward()}back(){this._history.back()}historyGo(T=0){this._history.go(T)}getState(){return this._history.state}}return A.\u0275fac=function(T){return new(T||A)(c.LFG(De))},A.\u0275prov=c.Yz7({token:A,factory:function(){return function X(){return new se((0,c.LFG)(De))}()},providedIn:"platform"}),A})();function de(){return!!window.history.pushState}function le(A,N){if(0==A.length)return N;if(0==N.length)return A;let T=0;return A.endsWith("/")&&T++,N.startsWith("/")&&T++,2==T?A+N.substring(1):1==T?A+N:A+"/"+N}function ke(A){const N=A.match(/#|\?|$/),T=N&&N.index||A.length;return A.slice(0,T-("/"===A[T-1]?1:0))+A.slice(T)}function Be(A){return A&&"?"!==A[0]?"?"+A:A}let K=(()=>{class A{historyGo(T){throw new Error("Not implemented")}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=c.Yz7({token:A,factory:function(){return function et(A){const N=(0,c.LFG)(De).location;return new Qe((0,c.LFG)(Ee),N&&N.origin||"")}()},providedIn:"root"}),A})();const Ze=new c.OlP("appBaseHref");let Qe=(()=>{class A extends K{constructor(T,H){if(super(),this._platformLocation=T,this._removeListenerFns=[],null==H&&(H=this._platformLocation.getBaseHrefFromDOM()),null==H)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=H}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}prepareExternalUrl(T){return le(this._baseHref,T)}path(T=!1){const H=this._platformLocation.pathname+Be(this._platformLocation.search),ae=this._platformLocation.hash;return ae&&T?`${H}${ae}`:H}pushState(T,H,ae,$e){const nt=this.prepareExternalUrl(ae+Be($e));this._platformLocation.pushState(T,H,nt)}replaceState(T,H,ae,$e){const nt=this.prepareExternalUrl(ae+Be($e));this._platformLocation.replaceState(T,H,nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){var H,ae;null===(ae=(H=this._platformLocation).historyGo)||void 0===ae||ae.call(H,T)}}return A.\u0275fac=function(T){return new(T||A)(c.LFG(Ee),c.LFG(Ze,8))},A.\u0275prov=c.Yz7({token:A,factory:A.\u0275fac}),A})(),me=(()=>{class A extends K{constructor(T,H){super(),this._platformLocation=T,this._baseHref="",this._removeListenerFns=[],null!=H&&(this._baseHref=H)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}path(T=!1){let H=this._platformLocation.hash;return null==H&&(H="#"),H.length>0?H.substring(1):H}prepareExternalUrl(T){const H=le(this._baseHref,T);return H.length>0?"#"+H:H}pushState(T,H,ae,$e){let nt=this.prepareExternalUrl(ae+Be($e));0==nt.length&&(nt=this._platformLocation.pathname),this._platformLocation.pushState(T,H,nt)}replaceState(T,H,ae,$e){let nt=this.prepareExternalUrl(ae+Be($e));0==nt.length&&(nt=this._platformLocation.pathname),this._platformLocation.replaceState(T,H,nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){var H,ae;null===(ae=(H=this._platformLocation).historyGo)||void 0===ae||ae.call(H,T)}}return A.\u0275fac=function(T){return new(T||A)(c.LFG(Ee),c.LFG(Ze,8))},A.\u0275prov=c.Yz7({token:A,factory:A.\u0275fac}),A})(),z=(()=>{class A{constructor(T,H){this._subject=new c.vpe,this._urlChangeListeners=[],this._platformStrategy=T;const ae=this._platformStrategy.getBaseHref();this._platformLocation=H,this._baseHref=ke(Te(ae)),this._platformStrategy.onPopState($e=>{this._subject.emit({url:this.path(!0),pop:!0,state:$e.state,type:$e.type})})}path(T=!1){return this.normalize(this._platformStrategy.path(T))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(T,H=""){return this.path()==this.normalize(T+Be(H))}normalize(T){return A.stripTrailingSlash(function pe(A,N){return A&&N.startsWith(A)?N.substring(A.length):N}(this._baseHref,Te(T)))}prepareExternalUrl(T){return T&&"/"!==T[0]&&(T="/"+T),this._platformStrategy.prepareExternalUrl(T)}go(T,H="",ae=null){this._platformStrategy.pushState(ae,"",T,H),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Be(H)),ae)}replaceState(T,H="",ae=null){this._platformStrategy.replaceState(ae,"",T,H),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Be(H)),ae)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(T=0){var H,ae;null===(ae=(H=this._platformStrategy).historyGo)||void 0===ae||ae.call(H,T)}onUrlChange(T){this._urlChangeListeners.push(T),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(H=>{this._notifyUrlChangeListeners(H.url,H.state)}))}_notifyUrlChangeListeners(T="",H){this._urlChangeListeners.forEach(ae=>ae(T,H))}subscribe(T,H,ae){return this._subject.subscribe({next:T,error:H,complete:ae})}}return A.normalizeQueryParams=Be,A.joinWithSlash=le,A.stripTrailingSlash=ke,A.\u0275fac=function(T){return new(T||A)(c.LFG(K),c.LFG(Ee))},A.\u0275prov=c.Yz7({token:A,factory:function(){return function Q(){return new z((0,c.LFG)(K),(0,c.LFG)(Ee))}()},providedIn:"root"}),A})();function Te(A){return A.replace(/\/index.html$/,"")}function ui(A,N){N=encodeURIComponent(N);for(const T of A.split(";")){const H=T.indexOf("="),[ae,$e]=-1==H?[T,""]:[T.slice(0,H),T.slice(H+1)];if(ae.trim()===N)return decodeURIComponent($e)}return null}let tn=(()=>{class A{constructor(T,H,ae,$e){this._iterableDiffers=T,this._keyValueDiffers=H,this._ngEl=ae,this._renderer=$e,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(T){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof T?T.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(T){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof T?T.split(/\s+/):T,this._rawClass&&((0,c.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const T=this._iterableDiffer.diff(this._rawClass);T&&this._applyIterableChanges(T)}else if(this._keyValueDiffer){const T=this._keyValueDiffer.diff(this._rawClass);T&&this._applyKeyValueChanges(T)}}_applyKeyValueChanges(T){T.forEachAddedItem(H=>this._toggleClass(H.key,H.currentValue)),T.forEachChangedItem(H=>this._toggleClass(H.key,H.currentValue)),T.forEachRemovedItem(H=>{H.previousValue&&this._toggleClass(H.key,!1)})}_applyIterableChanges(T){T.forEachAddedItem(H=>{if("string"!=typeof H.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,c.AaK)(H.item)}`);this._toggleClass(H.item,!0)}),T.forEachRemovedItem(H=>this._toggleClass(H.item,!1))}_applyClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(H=>this._toggleClass(H,!0)):Object.keys(T).forEach(H=>this._toggleClass(H,!!T[H])))}_removeClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(H=>this._toggleClass(H,!1)):Object.keys(T).forEach(H=>this._toggleClass(H,!1)))}_toggleClass(T,H){(T=T.trim())&&T.split(/\s+/g).forEach(ae=>{H?this._renderer.addClass(this._ngEl.nativeElement,ae):this._renderer.removeClass(this._ngEl.nativeElement,ae)})}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.ZZ4),c.Y36(c.aQg),c.Y36(c.SBq),c.Y36(c.Qsj))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),A})();class mi{constructor(N,T,H,ae){this.$implicit=N,this.ngForOf=T,this.index=H,this.count=ae}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let zt=(()=>{class A{constructor(T,H,ae){this._viewContainer=T,this._template=H,this._differs=ae,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(T){this._ngForOf=T,this._ngForOfDirty=!0}set ngForTrackBy(T){this._trackByFn=T}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(T){T&&(this._template=T)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const T=this._ngForOf;!this._differ&&T&&(this._differ=this._differs.find(T).create(this.ngForTrackBy))}if(this._differ){const T=this._differ.diff(this._ngForOf);T&&this._applyChanges(T)}}_applyChanges(T){const H=this._viewContainer;T.forEachOperation((ae,$e,nt)=>{if(null==ae.previousIndex)H.createEmbeddedView(this._template,new mi(ae.item,this._ngForOf,-1,-1),null===nt?void 0:nt);else if(null==nt)H.remove(null===$e?void 0:$e);else if(null!==$e){const ht=H.get($e);H.move(ht,nt),di(ht,ae)}});for(let ae=0,$e=H.length;ae<$e;ae++){const ht=H.get(ae).context;ht.index=ae,ht.count=$e,ht.ngForOf=this._ngForOf}T.forEachIdentityChange(ae=>{di(H.get(ae.currentIndex),ae)})}static ngTemplateContextGuard(T,H){return!0}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(c.ZZ4))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),A})();function di(A,N){A.context.$implicit=N.item}let Oi=(()=>{class A{constructor(T,H){this._viewContainer=T,this._context=new Gn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=H}set ngIf(T){this._context.$implicit=this._context.ngIf=T,this._updateView()}set ngIfThen(T){gn("ngIfThen",T),this._thenTemplateRef=T,this._thenViewRef=null,this._updateView()}set ngIfElse(T){gn("ngIfElse",T),this._elseTemplateRef=T,this._elseViewRef=null,this._updateView()}_updateView(){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)))}static ngTemplateContextGuard(T,H){return!0}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),A})();class Gn{constructor(){this.$implicit=null,this.ngIf=null}}function gn(A,N){if(N&&!N.createEmbeddedView)throw new Error(`${A} must be a TemplateRef, but received '${(0,c.AaK)(N)}'.`)}class hi{constructor(N,T){this._viewContainerRef=N,this._templateRef=T,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(N){N&&!this._created?this.create():!N&&this._created&&this.destroy()}}let Nn=(()=>{class A{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(T){this._ngSwitch=T,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(T){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(T)}_matchCase(T){const H=T==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||H,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),H}_updateDefaultCases(T){if(this._defaultViews&&T!==this._defaultUsed){this._defaultUsed=T;for(let H=0;H{class A{constructor(T,H,ae){this.ngSwitch=ae,ae._addCase(),this._view=new hi(T,H)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(Nn,9))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),A})(),un=(()=>{class A{constructor(T,H,ae){ae._addDefault(new hi(T,H))}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(Nn,9))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngSwitchDefault",""]]}),A})();class ti{createSubscription(N,T){return N.subscribe({next:T,error:H=>{throw H}})}dispose(N){N.unsubscribe()}onDestroy(N){N.unsubscribe()}}class Ii{createSubscription(N,T){return N.then(T,H=>{throw H})}dispose(N){}onDestroy(N){}}const dr=new Ii,rr=new ti;let hr=(()=>{class A{constructor(T){this._ref=T,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(T){return this._obj?T!==this._obj?(this._dispose(),this.transform(T)):this._latestValue:(T&&this._subscribe(T),this._latestValue)}_subscribe(T){this._obj=T,this._strategy=this._selectStrategy(T),this._subscription=this._strategy.createSubscription(T,H=>this._updateLatestValue(T,H))}_selectStrategy(T){if((0,c.QGY)(T))return dr;if((0,c.F4k)(T))return rr;throw function Sn(A,N){return new c.vHH(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(T,H){T===this._obj&&(this._latestValue=H,this._ref.markForCheck())}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.sBO,16))},A.\u0275pipe=c.Yjl({name:"async",type:A,pure:!1}),A})(),Nr=(()=>{class A{}return A.\u0275fac=function(T){return new(T||A)},A.\u0275mod=c.oAB({type:A}),A.\u0275inj=c.cJS({}),A})();const zi="browser";function Pi(A){return A===zi}let Tn=(()=>{class A{}return A.\u0275prov=(0,c.Yz7)({token:A,providedIn:"root",factory:()=>new Xi((0,c.LFG)(De),window)}),A})();class Xi{constructor(N,T){this.document=N,this.window=T,this.offset=()=>[0,0]}setOffset(N){this.offset=Array.isArray(N)?()=>N:N}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(N){this.supportsScrolling()&&this.window.scrollTo(N[0],N[1])}scrollToAnchor(N){if(!this.supportsScrolling())return;const T=function Kn(A,N){const T=A.getElementById(N)||A.getElementsByName(N)[0];if(T)return T;if("function"==typeof A.createTreeWalker&&A.body&&(A.body.createShadowRoot||A.body.attachShadow)){const H=A.createTreeWalker(A.body,NodeFilter.SHOW_ELEMENT);let ae=H.currentNode;for(;ae;){const $e=ae.shadowRoot;if($e){const nt=$e.getElementById(N)||$e.querySelector(`[name="${N}"]`);if(nt)return nt}ae=H.nextNode()}}return null}(this.document,N);T&&(this.scrollToElement(T),T.focus())}setHistoryScrollRestoration(N){if(this.supportScrollRestoration()){const T=this.window.history;T&&T.scrollRestoration&&(T.scrollRestoration=N)}}scrollToElement(N){const T=N.getBoundingClientRect(),H=T.left+this.window.pageXOffset,ae=T.top+this.window.pageYOffset,$e=this.offset();this.window.scrollTo(H-$e[0],ae-$e[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const N=ii(this.window.history)||ii(Object.getPrototypeOf(this.window.history));return!(!N||!N.writable&&!N.set)}catch(N){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(N){return!1}}}function ii(A){return Object.getOwnPropertyDescriptor(A,"scrollRestoration")}class xr{}},520:(We,ye,C)=>{C.d(ye,{eN:()=>Fe,JF:()=>Pe});var c=C(9808),o=C(4893),g=C(9646),Y=C(8306),ce=C(4351),q=C(9300),De=C(4004);class Ee{}class ue{}class te{constructor(P){this.normalizedNames=new Map,this.lazyUpdate=null,P?this.lazyInit="string"==typeof P?()=>{this.headers=new Map,P.split("\n").forEach(L=>{const re=L.indexOf(":");if(re>0){const be=L.slice(0,re),Ue=be.toLowerCase(),ze=L.slice(re+1).trim();this.maybeSetNormalizedName(be,Ue),this.headers.has(Ue)?this.headers.get(Ue).push(ze):this.headers.set(Ue,[ze])}})}:()=>{this.headers=new Map,Object.keys(P).forEach(L=>{let re=P[L];const be=L.toLowerCase();"string"==typeof re&&(re=[re]),re.length>0&&(this.headers.set(be,re),this.maybeSetNormalizedName(L,be))})}:this.headers=new Map}has(P){return this.init(),this.headers.has(P.toLowerCase())}get(P){this.init();const L=this.headers.get(P.toLowerCase());return L&&L.length>0?L[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(P){return this.init(),this.headers.get(P.toLowerCase())||null}append(P,L){return this.clone({name:P,value:L,op:"a"})}set(P,L){return this.clone({name:P,value:L,op:"s"})}delete(P,L){return this.clone({name:P,value:L,op:"d"})}maybeSetNormalizedName(P,L){this.normalizedNames.has(L)||this.normalizedNames.set(L,P)}init(){this.lazyInit&&(this.lazyInit instanceof te?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(P=>this.applyUpdate(P)),this.lazyUpdate=null))}copyFrom(P){P.init(),Array.from(P.headers.keys()).forEach(L=>{this.headers.set(L,P.headers.get(L)),this.normalizedNames.set(L,P.normalizedNames.get(L))})}clone(P){const L=new te;return L.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,L.lazyUpdate=(this.lazyUpdate||[]).concat([P]),L}applyUpdate(P){const L=P.name.toLowerCase();switch(P.op){case"a":case"s":let re=P.value;if("string"==typeof re&&(re=[re]),0===re.length)return;this.maybeSetNormalizedName(P.name,L);const be=("a"===P.op?this.headers.get(L):void 0)||[];be.push(...re),this.headers.set(L,be);break;case"d":const Ue=P.value;if(Ue){let ze=this.headers.get(L);if(!ze)return;ze=ze.filter(_t=>-1===Ue.indexOf(_t)),0===ze.length?(this.headers.delete(L),this.normalizedNames.delete(L)):this.headers.set(L,ze)}else this.headers.delete(L),this.normalizedNames.delete(L)}}forEach(P){this.init(),Array.from(this.normalizedNames.keys()).forEach(L=>P(this.normalizedNames.get(L),this.headers.get(L)))}}class se{encodeKey(P){return ke(P)}encodeValue(P){return ke(P)}decodeKey(P){return decodeURIComponent(P)}decodeValue(P){return decodeURIComponent(P)}}const X=/%(\d[a-f0-9])/gi,le={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ke(D){return encodeURIComponent(D).replace(X,(P,L)=>{var re;return null!==(re=le[L])&&void 0!==re?re:P})}function Be(D){return`${D}`}class K{constructor(P={}){if(this.updates=null,this.cloneFrom=null,this.encoder=P.encoder||new se,P.fromString){if(P.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function de(D,P){const L=new Map;return D.length>0&&D.replace(/^\?/,"").split("&").forEach(be=>{const Ue=be.indexOf("="),[ze,_t]=-1==Ue?[P.decodeKey(be),""]:[P.decodeKey(be.slice(0,Ue)),P.decodeValue(be.slice(Ue+1))],ct=L.get(ze)||[];ct.push(_t),L.set(ze,ct)}),L}(P.fromString,this.encoder)}else P.fromObject?(this.map=new Map,Object.keys(P.fromObject).forEach(L=>{const re=P.fromObject[L];this.map.set(L,Array.isArray(re)?re:[re])})):this.map=null}has(P){return this.init(),this.map.has(P)}get(P){this.init();const L=this.map.get(P);return L?L[0]:null}getAll(P){return this.init(),this.map.get(P)||null}keys(){return this.init(),Array.from(this.map.keys())}append(P,L){return this.clone({param:P,value:L,op:"a"})}appendAll(P){const L=[];return Object.keys(P).forEach(re=>{const be=P[re];Array.isArray(be)?be.forEach(Ue=>{L.push({param:re,value:Ue,op:"a"})}):L.push({param:re,value:be,op:"a"})}),this.clone(L)}set(P,L){return this.clone({param:P,value:L,op:"s"})}delete(P,L){return this.clone({param:P,value:L,op:"d"})}toString(){return this.init(),this.keys().map(P=>{const L=this.encoder.encodeKey(P);return this.map.get(P).map(re=>L+"="+this.encoder.encodeValue(re)).join("&")}).filter(P=>""!==P).join("&")}clone(P){const L=new K({encoder:this.encoder});return L.cloneFrom=this.cloneFrom||this,L.updates=(this.updates||[]).concat(P),L}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(P=>this.map.set(P,this.cloneFrom.map.get(P))),this.updates.forEach(P=>{switch(P.op){case"a":case"s":const L=("a"===P.op?this.map.get(P.param):void 0)||[];L.push(Be(P.value)),this.map.set(P.param,L);break;case"d":if(void 0===P.value){this.map.delete(P.param);break}{let re=this.map.get(P.param)||[];const be=re.indexOf(Be(P.value));-1!==be&&re.splice(be,1),re.length>0?this.map.set(P.param,re):this.map.delete(P.param)}}}),this.cloneFrom=this.updates=null)}}class Ze{constructor(){this.map=new Map}set(P,L){return this.map.set(P,L),this}get(P){return this.map.has(P)||this.map.set(P,P.defaultValue()),this.map.get(P)}delete(P){return this.map.delete(P),this}has(P){return this.map.has(P)}keys(){return this.map.keys()}}function me(D){return"undefined"!=typeof ArrayBuffer&&D instanceof ArrayBuffer}function z(D){return"undefined"!=typeof Blob&&D instanceof Blob}function Q(D){return"undefined"!=typeof FormData&&D instanceof FormData}class Te{constructor(P,L,re,be){let Ue;if(this.url=L,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=P.toUpperCase(),function Qe(D){switch(D){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||be?(this.body=void 0!==re?re:null,Ue=be):Ue=re,Ue&&(this.reportProgress=!!Ue.reportProgress,this.withCredentials=!!Ue.withCredentials,Ue.responseType&&(this.responseType=Ue.responseType),Ue.headers&&(this.headers=Ue.headers),Ue.context&&(this.context=Ue.context),Ue.params&&(this.params=Ue.params)),this.headers||(this.headers=new te),this.context||(this.context=new Ze),this.params){const ze=this.params.toString();if(0===ze.length)this.urlWithParams=L;else{const _t=L.indexOf("?");this.urlWithParams=L+(-1===_t?"?":_thn.set(dt,P.setHeaders[dt]),Ot)),P.setParams&&(nn=Object.keys(P.setParams).reduce((hn,dt)=>hn.set(dt,P.setParams[dt]),nn)),new Te(re,be,ze,{params:nn,headers:Ot,context:Yt,reportProgress:ct,responseType:Ue,withCredentials:_t})}}var Ne=(()=>((Ne=Ne||{})[Ne.Sent=0]="Sent",Ne[Ne.UploadProgress=1]="UploadProgress",Ne[Ne.ResponseHeader=2]="ResponseHeader",Ne[Ne.DownloadProgress=3]="DownloadProgress",Ne[Ne.Response=4]="Response",Ne[Ne.User=5]="User",Ne))();class ve{constructor(P,L=200,re="OK"){this.headers=P.headers||new te,this.status=void 0!==P.status?P.status:L,this.statusText=P.statusText||re,this.url=P.url||null,this.ok=this.status>=200&&this.status<300}}class Me extends ve{constructor(P={}){super(P),this.type=Ne.ResponseHeader}clone(P={}){return new Me({headers:P.headers||this.headers,status:void 0!==P.status?P.status:this.status,statusText:P.statusText||this.statusText,url:P.url||this.url||void 0})}}class xe extends ve{constructor(P={}){super(P),this.type=Ne.Response,this.body=void 0!==P.body?P.body:null}clone(P={}){return new xe({body:void 0!==P.body?P.body:this.body,headers:P.headers||this.headers,status:void 0!==P.status?P.status:this.status,statusText:P.statusText||this.statusText,url:P.url||this.url||void 0})}}class Ae extends ve{constructor(P){super(P,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${P.url||"(unknown url)"}`:`Http failure response for ${P.url||"(unknown url)"}: ${P.status} ${P.statusText}`,this.error=P.error||null}}function tt(D,P){return{body:P,headers:D.headers,context:D.context,observe:D.observe,params:D.params,reportProgress:D.reportProgress,responseType:D.responseType,withCredentials:D.withCredentials}}let Fe=(()=>{class D{constructor(L){this.handler=L}request(L,re,be={}){let Ue;if(L instanceof Te)Ue=L;else{let ct,Ot;ct=be.headers instanceof te?be.headers:new te(be.headers),be.params&&(Ot=be.params instanceof K?be.params:new K({fromObject:be.params})),Ue=new Te(L,re,void 0!==be.body?be.body:null,{headers:ct,context:be.context,params:Ot,reportProgress:be.reportProgress,responseType:be.responseType||"json",withCredentials:be.withCredentials})}const ze=(0,g.of)(Ue).pipe((0,ce.b)(ct=>this.handler.handle(ct)));if(L instanceof Te||"events"===be.observe)return ze;const _t=ze.pipe((0,q.h)(ct=>ct instanceof xe));switch(be.observe||"body"){case"body":switch(Ue.responseType){case"arraybuffer":return _t.pipe((0,De.U)(ct=>{if(null!==ct.body&&!(ct.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ct.body}));case"blob":return _t.pipe((0,De.U)(ct=>{if(null!==ct.body&&!(ct.body instanceof Blob))throw new Error("Response is not a Blob.");return ct.body}));case"text":return _t.pipe((0,De.U)(ct=>{if(null!==ct.body&&"string"!=typeof ct.body)throw new Error("Response is not a string.");return ct.body}));default:return _t.pipe((0,De.U)(ct=>ct.body))}case"response":return _t;default:throw new Error(`Unreachable: unhandled observe type ${be.observe}}`)}}delete(L,re={}){return this.request("DELETE",L,re)}get(L,re={}){return this.request("GET",L,re)}head(L,re={}){return this.request("HEAD",L,re)}jsonp(L,re){return this.request("JSONP",L,{params:(new K).append(re,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(L,re={}){return this.request("OPTIONS",L,re)}patch(L,re,be={}){return this.request("PATCH",L,tt(be,re))}post(L,re,be={}){return this.request("POST",L,tt(be,re))}put(L,re,be={}){return this.request("PUT",L,tt(be,re))}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(Ee))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();class bt{constructor(P,L){this.next=P,this.interceptor=L}handle(P){return this.interceptor.intercept(P,this.next)}}const mt=new o.OlP("HTTP_INTERCEPTORS");let Jt=(()=>{class D{intercept(L,re){return re.handle(L)}}return D.\u0275fac=function(L){return new(L||D)},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();const Xe=/^\)\]\}',?\n/;let J=(()=>{class D{constructor(L){this.xhrFactory=L}handle(L){if("JSONP"===L.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Y.y(re=>{const be=this.xhrFactory.build();if(be.open(L.method,L.urlWithParams),L.withCredentials&&(be.withCredentials=!0),L.headers.forEach((dt,vt)=>be.setRequestHeader(dt,vt.join(","))),L.headers.has("Accept")||be.setRequestHeader("Accept","application/json, text/plain, */*"),!L.headers.has("Content-Type")){const dt=L.detectContentTypeHeader();null!==dt&&be.setRequestHeader("Content-Type",dt)}if(L.responseType){const dt=L.responseType.toLowerCase();be.responseType="json"!==dt?dt:"text"}const Ue=L.serializeBody();let ze=null;const _t=()=>{if(null!==ze)return ze;const dt=be.statusText||"OK",vt=new te(be.getAllResponseHeaders()),Le=function je(D){return"responseURL"in D&&D.responseURL?D.responseURL:/^X-Request-URL:/m.test(D.getAllResponseHeaders())?D.getResponseHeader("X-Request-URL"):null}(be)||L.url;return ze=new Me({headers:vt,status:be.status,statusText:dt,url:Le}),ze},ct=()=>{let{headers:dt,status:vt,statusText:Le,url:we}=_t(),V=null;204!==vt&&(V=void 0===be.response?be.responseText:be.response),0===vt&&(vt=V?200:0);let j=vt>=200&&vt<300;if("json"===L.responseType&&"string"==typeof V){const $=V;V=V.replace(Xe,"");try{V=""!==V?JSON.parse(V):null}catch(he){V=$,j&&(j=!1,V={error:he,text:V})}}j?(re.next(new xe({body:V,headers:dt,status:vt,statusText:Le,url:we||void 0})),re.complete()):re.error(new Ae({error:V,headers:dt,status:vt,statusText:Le,url:we||void 0}))},Ot=dt=>{const{url:vt}=_t(),Le=new Ae({error:dt,status:be.status||0,statusText:be.statusText||"Unknown Error",url:vt||void 0});re.error(Le)};let nn=!1;const Yt=dt=>{nn||(re.next(_t()),nn=!0);let vt={type:Ne.DownloadProgress,loaded:dt.loaded};dt.lengthComputable&&(vt.total=dt.total),"text"===L.responseType&&!!be.responseText&&(vt.partialText=be.responseText),re.next(vt)},hn=dt=>{let vt={type:Ne.UploadProgress,loaded:dt.loaded};dt.lengthComputable&&(vt.total=dt.total),re.next(vt)};return be.addEventListener("load",ct),be.addEventListener("error",Ot),be.addEventListener("timeout",Ot),be.addEventListener("abort",Ot),L.reportProgress&&(be.addEventListener("progress",Yt),null!==Ue&&be.upload&&be.upload.addEventListener("progress",hn)),be.send(Ue),re.next({type:Ne.Sent}),()=>{be.removeEventListener("error",Ot),be.removeEventListener("abort",Ot),be.removeEventListener("load",ct),be.removeEventListener("timeout",Ot),L.reportProgress&&(be.removeEventListener("progress",Yt),null!==Ue&&be.upload&&be.upload.removeEventListener("progress",hn)),be.readyState!==be.DONE&&be.abort()}})}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(c.JF))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();const Z=new o.OlP("XSRF_COOKIE_NAME"),He=new o.OlP("XSRF_HEADER_NAME");class Ge{}let lt=(()=>{class D{constructor(L,re,be){this.doc=L,this.platform=re,this.cookieName=be,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const L=this.doc.cookie||"";return L!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,c.Mx)(L,this.cookieName),this.lastCookieString=L),this.lastToken}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(c.K0),o.LFG(o.Lbi),o.LFG(Z))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),St=(()=>{class D{constructor(L,re){this.tokenService=L,this.headerName=re}intercept(L,re){const be=L.url.toLowerCase();if("GET"===L.method||"HEAD"===L.method||be.startsWith("http://")||be.startsWith("https://"))return re.handle(L);const Ue=this.tokenService.getToken();return null!==Ue&&!L.headers.has(this.headerName)&&(L=L.clone({headers:L.headers.set(this.headerName,Ue)})),re.handle(L)}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(Ge),o.LFG(He))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),jt=(()=>{class D{constructor(L,re){this.backend=L,this.injector=re,this.chain=null}handle(L){if(null===this.chain){const re=this.injector.get(mt,[]);this.chain=re.reduceRight((be,Ue)=>new bt(be,Ue),this.backend)}return this.chain.handle(L)}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(ue),o.LFG(o.zs3))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),at=(()=>{class D{static disable(){return{ngModule:D,providers:[{provide:St,useClass:Jt}]}}static withOptions(L={}){return{ngModule:D,providers:[L.cookieName?{provide:Z,useValue:L.cookieName}:[],L.headerName?{provide:He,useValue:L.headerName}:[]]}}}return D.\u0275fac=function(L){return new(L||D)},D.\u0275mod=o.oAB({type:D}),D.\u0275inj=o.cJS({providers:[St,{provide:mt,useExisting:St,multi:!0},{provide:Ge,useClass:lt},{provide:Z,useValue:"XSRF-TOKEN"},{provide:He,useValue:"X-XSRF-TOKEN"}]}),D})(),Pe=(()=>{class D{}return D.\u0275fac=function(L){return new(L||D)},D.\u0275mod=o.oAB({type:D}),D.\u0275inj=o.cJS({providers:[Fe,{provide:Ee,useClass:jt},J,{provide:ue,useExisting:J}],imports:[[at.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),D})()},4893:(We,ye,C)=>{C.d(ye,{deG:()=>Im,tb:()=>am,AFp:()=>im,ip1:()=>nm,CZH:()=>jc,hGG:()=>VC,z2F:()=>Kc,sBO:()=>DC,Sil:()=>rC,_Vd:()=>Ra,EJc:()=>nC,SBq:()=>Ws,qLn:()=>ca,vpe:()=>co,tBr:()=>ra,XFs:()=>S,OlP:()=>yi,zs3:()=>zr,ZZ4:()=>tu,aQg:()=>nu,soG:()=>Gc,YKP:()=>gp,h0i:()=>fs,PXZ:()=>gC,R0b:()=>Yr,FiY:()=>As,Lbi:()=>sm,g9A:()=>om,n_E:()=>Fa,Qsj:()=>qb,FYo:()=>hp,JOm:()=>ro,q3G:()=>bi,tp0:()=>Ts,Rgc:()=>qs,dDg:()=>dm,GfV:()=>fp,s_b:()=>Na,ifc:()=>Ot,eFA:()=>pm,G48:()=>EC,Gpc:()=>Be,f3M:()=>Mu,_c5:()=>BC,VLi:()=>fC,c2e:()=>lm,zSh:()=>Gl,wAp:()=>qt,vHH:()=>Qe,EiD:()=>Uu,mCW:()=>Ss,qzn:()=>Go,JVY:()=>cg,pB0:()=>fg,eBb:()=>dg,L6k:()=>ug,LAX:()=>hg,cg1:()=>bc,kL8:()=>Lf,yhl:()=>Pu,dqk:()=>vt,sIi:()=>Bs,CqO:()=>zh,QGY:()=>sc,F4k:()=>jh,RDi:()=>N,AaK:()=>X,z3N:()=>_o,qOj:()=>Kl,TTD:()=>zi,_Bn:()=>cp,xp6:()=>Cd,uIk:()=>Jl,Tol:()=>hf,Gre:()=>Af,ekj:()=>fc,Suo:()=>Fp,Xpm:()=>Dt,lG2:()=>$t,Yz7:()=>J,cJS:()=>He,oAB:()=>Ie,Yjl:()=>Cn,Y36:()=>Us,_UZ:()=>oc,BQk:()=>wa,ynx:()=>Ma,qZA:()=>Da,TgZ:()=>Ea,EpF:()=>Hh,n5z:()=>pu,Ikx:()=>vc,LFG:()=>Ni,$8M:()=>$a,$Z:()=>Vh,NdJ:()=>ac,CRH:()=>Lp,kcU:()=>Mo,O4$:()=>eo,oxw:()=>Wh,ALo:()=>Ap,lcZ:()=>Tp,Hsn:()=>Zh,F$t:()=>Yh,Q6J:()=>ic,s9C:()=>uc,VKq:()=>bp,iGM:()=>Rp,MAs:()=>xh,evT:()=>Ku,CHM:()=>Jr,oJD:()=>Hu,LSH:()=>ol,Udp:()=>hc,WFA:()=>lc,d8E:()=>yc,YNc:()=>Th,_uU:()=>yf,Oqu:()=>mc,hij:()=>Ta,AsE:()=>gc,lnq:()=>_c,Gf:()=>kp});var c=C(7579),o=C(727),g=C(8306),Y=C(6451),ce=C(2076),q=C(5698),De=C(930),Ee=C(4482);function te(e,t,...n){return!0===t?(e(),null):!1===t?null:t(...n).pipe((0,q.q)(1)).subscribe(()=>e())}function se(e){for(let t in e)if(e[t]===se)return t;throw Error("Could not find renamed property on target object.")}function de(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function X(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(X).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function le(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ke=se({__forward_ref__:se});function Be(e){return e.__forward_ref__=Be,e.toString=function(){return X(this())},e}function K(e){return et(e)?e():e}function et(e){return"function"==typeof e&&e.hasOwnProperty(ke)&&e.__forward_ref__===Be}class Qe extends Error{constructor(t,n){super(function me(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function z(e){return"string"==typeof e?e:null==e?"":String(e)}function Q(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():z(e)}function ve(e,t){const n=t?` in ${t}`:"";throw new Qe(-201,`No provider for ${Q(e)} found${n}`)}function Vt(e,t){null==e&&function xt(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function J(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function He(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ge(e){return lt(e,Nt)||lt(e,Pe)}function lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ct(e){return e&&(e.hasOwnProperty(at)||e.hasOwnProperty(E))?e[at]:null}const Nt=se({\u0275prov:se}),at=se({\u0275inj:se}),Pe=se({ngInjectableDef:se}),E=se({ngInjectorDef:se});var S=(()=>((S=S||{})[S.Default=0]="Default",S[S.Host=1]="Host",S[S.Self=2]="Self",S[S.SkipSelf=4]="SkipSelf",S[S.Optional=8]="Optional",S))();let D;function L(e){const t=D;return D=e,t}function re(e,t,n){const i=Ge(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&S.Optional?null:void 0!==t?t:void ve(X(e),"Injector")}function Ue(e){return{toString:e}.toString()}var ze=(()=>((ze=ze||{})[ze.OnPush=0]="OnPush",ze[ze.Default=1]="Default",ze))(),Ot=(()=>{return(e=Ot||(Ot={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ot;var e})();const nn="undefined"!=typeof globalThis&&globalThis,Yt="undefined"!=typeof window&&window,hn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,vt=nn||"undefined"!=typeof global&&global||Yt||hn,V={},j=[],$=se({\u0275cmp:se}),he=se({\u0275dir:se}),Se=se({\u0275pipe:se}),st=se({\u0275mod:se}),At=se({\u0275fac:se}),Kt=se({__NG_ELEMENT_ID__:se});let Zt=0;function Dt(e){return Ue(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ze.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||j,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ot.Emulated,id:"c",styles:e.styles||j,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,s=e.features,u=e.pipes;return i.id+=Zt++,i.inputs=kt(e.inputs,n),i.outputs=kt(e.outputs),s&&s.forEach(p=>p(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Ve):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(_e):null,i})}function Ve(e){return en(e)||function kn(e){return e[he]||null}(e)}function _e(e){return function En(e){return e[Se]||null}(e)}const ne={};function Ie(e){return Ue(()=>{const t={type:e.type,bootstrap:e.bootstrap||j,declarations:e.declarations||j,imports:e.imports||j,exports:e.exports||j,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ne[e.id]=e.type),t})}function kt(e,t){if(null==e)return V;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const $t=Dt;function Cn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function en(e){return e[$]||null}function jn(e,t){const n=e[st]||null;if(!n&&!0===t)throw new Error(`Type ${X(e)} does not have '\u0275mod' property.`);return n}function Zn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ei(e){return Array.isArray(e)&&!0===e[1]}function Zi(e){return 0!=(8&e.flags)}function Ki(e){return 2==(2&e.flags)}function Sn(e){return 1==(1&e.flags)}function ti(e){return null!==e.template}function Ii(e){return 0!=(512&e[2])}function wi(e,t){return e.hasOwnProperty(At)?e[At]:null}class Nr{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function zi(){return Bi}function Bi(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qr),Ji}function Ji(){const e=ar(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===V)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Qr(e,t,n,i){const r=ar(e)||function Br(e,t){return e[Pi]=t}(e,{previous:V,current:null}),s=r.current||(r.current={}),u=r.previous,p=this.declaredInputs[n],b=u[p];s[p]=new Nr(b&&b.currentValue,t,u===V),e[i]=t}zi.ngInherit=!0;const Pi="__ngSimpleChanges__";function ar(e){return e[Pi]||null}let A;function N(e){A=e}function T(){return void 0!==A?A:"undefined"!=typeof document?document:void 0}function ae(e){return!!e.listen}const $e={createRenderer:(e,t)=>T()};function ht(e){for(;Array.isArray(e);)e=e[0];return e}function fn(e,t){return ht(t[e])}function Ht(e,t){return ht(t[e.index])}function yn(e,t){return e.data[t]}function On(e,t){return e[t]}function Vn(e,t){const n=t[e];return Zn(n)?n:n[0]}function Ai(e){return 4==(4&e[2])}function er(e){return 128==(128&e[2])}function ki(e,t){return null==t?null:e[t]}function x(e){e[18]=0}function M(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const y={lFrame:Di(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function _i(){return y.bindingsEnabled}function ot(){return y.lFrame.lView}function sn(){return y.lFrame.tView}function Jr(e){return y.lFrame.contextLView=e,e[8]}function qn(){let e=bo();for(;null!==e&&64===e.type;)e=e.parent;return e}function bo(){return y.lFrame.currentTNode}function Vi(e,t){const n=y.lFrame;n.currentTNode=e,n.isParent=t}function Xr(){return y.lFrame.isParent}function R(){y.lFrame.isParent=!1}function d(){return y.isInCheckNoChangesMode}function a(e){y.isInCheckNoChangesMode=e}function l(){const e=y.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function v(){return y.lFrame.bindingIndex}function G(){return y.lFrame.bindingIndex++}function ie(e){const t=y.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ke(e,t){const n=y.lFrame;n.bindingIndex=n.bindingRootIndex=e,It(t)}function It(e){y.lFrame.currentDirectiveIndex=e}function Xt(e){const t=y.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function ln(){return y.lFrame.currentQueryIndex}function Ut(e){y.lFrame.currentQueryIndex=e}function rn(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Mn(e,t,n){if(n&S.SkipSelf){let r=t,s=e;for(;!(r=r.parent,null!==r||n&S.Host||(r=rn(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,e=s}const i=y.lFrame=ci();return i.currentTNode=t,i.lView=e,!0}function $n(e){const t=ci(),n=e[1];y.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ci(){const e=y.lFrame,t=null===e?null:e.child;return null===t?Di(e):t}function Di(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ri(){const e=y.lFrame;return y.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Sr=ri;function Ui(){const e=ri();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Un(){return y.lFrame.selectedIndex}function vi(e){y.lFrame.selectedIndex=e}function Hn(){const e=y.lFrame;return yn(e.tView,e.selectedIndex)}function eo(){y.lFrame.currentNamespace="svg"}function Mo(){!function ho(){y.lFrame.currentNamespace=null}()}function Lt(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[b]<0&&(e[18]+=65536),(p>11>16&&(3&e[2])===t){e[2]+=2048;try{s.call(p)}finally{}}}else try{s.call(p)}finally{}}class Or{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Ro(e,t,n){const i=ae(e);let r=0;for(;rt){u=s-1;break}}}for(;s>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let vs=!0;function ys(e){const t=vs;return vs=e,t}let w=0;function B(e,t){const n=ge(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,ee(i.data,e),ee(t,null),ee(i.blueprint,null));const r=qe(e,t),s=e.injectorIndex;if(Fo(r)){const u=Co(r),p=fo(r,t),b=p[1].data;for(let I=0;I<8;I++)t[s+I]=p[u+I]|b[u+I]}return t[s+8]=r,s}function ee(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ge(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function qe(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const s=r[1],u=s.type;if(i=2===u?s.declTNode:1===u?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Mt(e,t,n){!function O(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Kt)&&(i=n[Kt]),null==i&&(i=n[Kt]=w++);const r=255&i;t.data[e+(r>>5)]|=1<=0?255&t:Ur:t}(n);if("function"==typeof s){if(!Mn(t,e,i))return i&S.Host?Bt(r,n,i):xn(t,n,i,r);try{const u=s(i);if(null!=u||i&S.Optional)return u;ve(n)}finally{Sr()}}else if("number"==typeof s){let u=null,p=ge(e,t),b=-1,I=i&S.Host?t[16][6]:null;for((-1===p||i&S.SkipSelf)&&(b=-1===p?qe(e,t):t[p+8],-1!==b&&ea(i,!1)?(u=t[1],p=Co(b),t=fo(b,t)):p=-1);-1!==p;){const F=t[1];if(Ao(s,p,F.data)){const W=mo(p,t,n,u,i,I);if(W!==po)return W}b=t[p+8],-1!==b&&ea(i,t[1].data[p+8]===I)&&Ao(s,p,t)?(u=F,p=Co(b),t=fo(b,t)):p=-1}}}return xn(t,n,i,r)}const po={};function Ur(){return new Lo(qn(),ot())}function mo(e,t,n,i,r,s){const u=t[1],p=u.data[e+8],F=Ir(p,u,n,null==i?Ki(p)&&vs:i!=u&&0!=(3&p.type),r&S.Host&&s===p);return null!==F?Er(t,u,F,p):po}function Ir(e,t,n,i,r){const s=e.providerIndexes,u=t.data,p=1048575&s,b=e.directiveStart,F=s>>20,fe=r?p+F:e.directiveEnd;for(let Re=i?p:p+F;Re=b&&Je.type===n)return Re}if(r){const Re=u[b];if(Re&&ti(Re)&&Re.type===n)return b}return null}function Er(e,t,n,i){let r=e[n];const s=t.data;if(function Js(e){return e instanceof Or}(r)){const u=r;u.resolving&&function pe(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Qe(-200,`Circular dependency in DI detected for ${e}${n}`)}(Q(s[n]));const p=ys(u.canSeeViewProviders);u.resolving=!0;const b=u.injectImpl?L(u.injectImpl):null;Mn(e,i,S.Default);try{r=e[n]=u.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Ft(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const u=Bi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==b&&L(b),ys(p),u.resolving=!1,Sr()}}return r}function Ao(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[At]||Ga(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const s=r[At]||Ga(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Ga(e){return et(e)?()=>{const t=Ga(K(e));return t&&t()}:wi(e)}function $a(e){return function cn(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let r=0;for(;r{const i=function Wa(e){return function(...n){if(e){const i=e(...n);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const u=new r(...s);return p.annotation=u,p;function p(b,I,F){const W=b.hasOwnProperty(Bo)?b[Bo]:Object.defineProperty(b,Bo,{value:[]})[Bo];for(;W.length<=F;)W.push(null);return(W[F]=W[F]||[]).push(u),b}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class yi{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=J({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Im=new yi("AnalyzeForEntryComponents");function Pr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?to(n,t):t(n))}function gu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ta(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Es(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function km(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Za(e,t){const n=Ho(e,t);if(n>=0)return e[1|n]}function Ho(e,t){return function yu(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){const s=i+(r-i>>1),u=e[s<t?r=s:i=s+1}return~(r<({token:e})),-1),As=ws(Uo("Optional"),8),Ts=ws(Uo("SkipSelf"),4);let sa,aa;function zo(e){var t;return(null===(t=function Xa(){if(void 0===sa&&(sa=null,vt.trustedTypes))try{sa=vt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sa}())||void 0===t?void 0:t.createHTML(e))||e}function Su(e){var t;return(null===(t=function el(){if(void 0===aa&&(aa=null,vt.trustedTypes))try{aa=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return aa}())||void 0===t?void 0:t.createHTML(e))||e}class To{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rg extends To{getTypeName(){return"HTML"}}class og extends To{getTypeName(){return"Style"}}class sg extends To{getTypeName(){return"Script"}}class ag extends To{getTypeName(){return"URL"}}class lg extends To{getTypeName(){return"ResourceURL"}}function _o(e){return e instanceof To?e.changingThisBreaksApplicationSecurity:e}function Go(e,t){const n=Pu(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Pu(e){return e instanceof To&&e.getTypeName()||null}function cg(e){return new rg(e)}function ug(e){return new og(e)}function dg(e){return new sg(e)}function hg(e){return new ag(e)}function fg(e){return new lg(e)}class pg{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(zo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class mg{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=zo(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=zo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let r=n.length-1;0Ss(t.trim())).join(", ")),this.buf.push(" ",u,'="',Vu(b),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();tl.hasOwnProperty(n)&&!Fu.hasOwnProperty(n)&&(this.buf.push(""),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Vu(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Cg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Eg=/([^\#-~ |!])/g;function Vu(e){return e.replace(/&/g,"&").replace(Cg,function(t){return""+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Eg,function(t){return""+t.charCodeAt(0)+";"}).replace(//g,">")}let la;function Uu(e,t){let n=null;try{la=la||function Ru(e){const t=new mg(e);return function gg(){try{return!!(new window.DOMParser).parseFromString(zo(""),"text/html")}catch(e){return!1}}()?new pg(t):t}(e);let i=t?String(t):"";n=la.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=la.getInertBodyElement(i)}while(i!==s);return zo((new bg).sanitizeChildren(rl(n)||n))}finally{if(n){const i=rl(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function rl(e){return"content"in e&&function Dg(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var bi=(()=>((bi=bi||{})[bi.NONE=0]="NONE",bi[bi.HTML=1]="HTML",bi[bi.STYLE=2]="STYLE",bi[bi.SCRIPT=3]="SCRIPT",bi[bi.URL=4]="URL",bi[bi.RESOURCE_URL=5]="RESOURCE_URL",bi))();function Hu(e){const t=Is();return t?Su(t.sanitize(bi.HTML,e)||""):Go(e,"HTML")?Su(_o(e)):Uu(T(),z(e))}function ol(e){const t=Is();return t?t.sanitize(bi.URL,e)||"":Go(e,"URL")?_o(e):Ss(z(e))}function Is(){const e=ot();return e&&e[12]}const Gu="__ngContext__";function Wi(e,t){e[Gu]=t}function al(e){const t=function Ps(e){return e[Gu]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function cl(e){return e.ngOriginalError}function Vg(e,...t){e.error(...t)}class ca{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function Bg(e){return e&&e.ngErrorLogger||Vg}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&cl(t);for(;n&&cl(n);)n=cl(n);return n||null}}const Kg=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vt))();function Ku(e){return e.ownerDocument}function io(e){return e instanceof Function?e():e}var ro=(()=>((ro=ro||{})[ro.Important=1]="Important",ro[ro.DashCase=2]="DashCase",ro))();function dl(e,t){return undefined(e,t)}function Rs(e){const t=e[3];return Ei(t)?t[3]:t}function hl(e){return ed(e[13])}function fl(e){return ed(e[4])}function ed(e){for(;null!==e&&!Ei(e);)e=e[4];return e}function Wo(e,t,n,i,r){if(null!=i){let s,u=!1;Ei(i)?s=i:Zn(i)&&(u=!0,i=i[0]);const p=ht(i);0===e&&null!==n?null==r?sd(t,n,p):xo(t,n,p,r||null,!0):1===e&&null!==n?xo(t,n,p,r||null,!0):2===e?function fd(e,t,n){const i=ua(e,t);i&&function l_(e,t,n,i){ae(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,p,u):3===e&&t.destroyNode(p),null!=s&&function d_(e,t,n,i,r){const s=n[7];s!==ht(n)&&Wo(t,e,i,s,r);for(let p=10;p0&&(e[n-1][4]=i[4]);const s=ta(e,10+t);!function e_(e,t){ks(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const u=s[19];null!==u&&u.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function id(e,t){if(!(256&t[2])){const n=t[11];ae(n)&&n.destroyNode&&ks(e,t,n,3,null,null),function i_(e){let t=e[13];if(!t)return _l(e[1],e);for(;t;){let n=null;if(Zn(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Zn(t)&&_l(t[1],t),t=t[3];null===t&&(t=e),Zn(t)&&_l(t[1],t),n=t&&t[4]}t=n}}(t)}}function _l(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function a_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[r=I]():i[r=-I].unsubscribe(),s+=2}else{const u=i[r=n[s+1]];n[s].call(u)}if(null!==i){for(let s=r+1;ss?"":r[W+1].toLowerCase();const Re=8&i?fe:null;if(Re&&-1!==gd(Re,I,0)||2&i&&I!==fe){if(Hr(i))return!1;u=!0}}}}else{if(!u&&!Hr(i)&&!Hr(b))return!1;if(u&&Hr(b))continue;u=!1,i=b|1&i}}return Hr(i)||u}function Hr(e){return 0==(1&e)}function g_(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let s=!1;for(;r-1)for(n++;n0?'="'+p+'"':"")+"]"}else 8&i?r+="."+u:4&i&&(r+=" "+u);else""!==r&&!Hr(u)&&(t+=bd(s,r),r=""),i=u,s=s||!Hr(i);n++}return""!==r&&(t+=bd(s,r)),t}const an={};function Cd(e){Ed(sn(),ot(),Un()+e,d())}function Ed(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&pn(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Qn(t,s,0,n)}vi(n)}function fa(e,t){return e<<17|t<<2}function jr(e){return e>>17&32767}function El(e){return 2|e}function vo(e){return(131068&e)>>2}function Dl(e,t){return-131069&e|t<<2}function Ml(e){return 1|e}function Rd(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&Ed(e,t,20,d()),n(i,r)}finally{vi(s)}}function Fd(e,t,n){if(Zi(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(p)!=b&&p.push(b),p.push(i,r,u)}}function zd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Gd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function q_(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&Bl(n)}}function Bl(e){for(let i=hl(e);null!==i;i=fl(i))for(let r=10;r0&&Bl(s)}const n=e[1].components;if(null!==n)for(let i=0;i0&&Bl(r)}}function iv(e,t){const n=Vn(t,e),i=n[1];(function rv(e,t){for(let n=t.length;nPromise.resolve(null))();function Kd(e){return e[7]||(e[7]=[])}function qd(e){return e.cleanup||(e.cleanup=[])}function Qd(e,t,n){return(null===e||ti(e))&&(n=function _n(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Jd(e,t){const n=e[9],i=n?n.get(ca,null):null;i&&i.handleError(t)}function Xd(e,t,n,i,r){for(let s=0;sthis.processProvider(p,t,n)),to([t],p=>this.processInjectorType(p,[],s)),this.records.set(zl,qo(void 0,this));const u=this.records.get(Gl);this.scope=null!=u?u.value:null,this.source=r||("object"==typeof t?null:X(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Ds,i=S.Default){this.assertNotDestroyed();const r=Eu(this),s=L(void 0);try{if(!(i&S.SkipSelf)){let p=this.records.get(t);if(void 0===p){const b=function bv(e){return"function"==typeof e||"object"==typeof e&&e instanceof yi}(t)&&Ge(t);p=b&&this.injectableDefInScope(b)?qo(Wl(t),Ns):null,this.records.set(t,p)}if(null!=p)return this.hydrate(t,p)}return(i&S.Self?th():this.parent).get(t,n=i&S.Optional&&n===Ds?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[ia]=u[ia]||[]).unshift(X(t)),r)throw u;return function Wm(e,t,n,i){const r=e[ia];throw t[Cu]&&r.unshift(t[Cu]),e.message=function Ym(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=X(t);if(Array.isArray(t))r=t.map(X).join(" -> ");else if("object"==typeof t){let s=[];for(let u in t)if(t.hasOwnProperty(u)){let p=t[u];s.push(u+":"+("string"==typeof p?JSON.stringify(p):X(p)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(Hm,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[ia]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{L(s),Eu(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(X(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Qe(205,!1)}processInjectorType(t,n,i){if(!(t=K(t)))return!1;let r=Ct(t);const s=null==r&&t.ngModule||void 0,u=void 0===s?t:s,p=-1!==i.indexOf(u);if(void 0!==s&&(r=Ct(s)),null==r)return!1;if(null!=r.imports&&!p){let F;i.push(u);try{to(r.imports,W=>{this.processInjectorType(W,n,i)&&(void 0===F&&(F=[]),F.push(W))})}finally{}if(void 0!==F)for(let W=0;Wthis.processProvider(Je,fe,Re||j))}}this.injectorDefTypes.add(u);const b=wi(u)||(()=>new u);this.records.set(u,qo(b,Ns));const I=r.providers;if(null!=I&&!p){const F=t;to(I,W=>this.processProvider(W,F,I))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,i){let r=Qo(t=K(t))?t:K(t&&t.provide);const s=function pv(e,t,n){return oh(e)?qo(void 0,e.useValue):qo(rh(e),Ns)}(t);if(Qo(t)||!0!==t.multi)this.records.get(r);else{let u=this.records.get(r);u||(u=qo(void 0,Ns,!0),u.factory=()=>Qa(u.multi),this.records.set(r,u)),r=t,u.multi.push(t)}this.records.set(r,s)}hydrate(t,n){return n.value===Ns&&(n.value=dv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function yv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=K(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Wl(e){const t=Ge(e),n=null!==t?t.factory:wi(e);if(null!==n)return n;if(e instanceof yi)throw new Qe(204,!1);if(e instanceof Function)return function fv(e){const t=e.length;if(t>0)throw Es(t,"?"),new Qe(204,!1);const n=function St(e){const t=e&&(e[Nt]||e[Pe]);if(t){const n=function jt(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Qe(204,!1)}function rh(e,t,n){let i;if(Qo(e)){const r=K(e);return wi(r)||Wl(r)}if(oh(e))i=()=>K(e.useValue);else if(function gv(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Qa(e.deps||[]));else if(function mv(e){return!(!e||!e.useExisting)}(e))i=()=>Ni(K(e.useExisting));else{const r=K(e&&(e.useClass||e.provide));if(!function vv(e){return!!e.deps}(e))return wi(r)||Wl(r);i=()=>new r(...Qa(e.deps))}return i}function qo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function oh(e){return null!==e&&"object"==typeof e&&zm in e}function Qo(e){return"function"==typeof e}let zr=(()=>{class e{static create(n,i){var r;if(Array.isArray(n))return nh({name:""},i,n,"");{const s=null!==(r=n.name)&&void 0!==r?r:"";return nh({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=Ds,e.NULL=new eh,e.\u0275prov=J({token:e,providedIn:"any",factory:()=>Ni(zl)}),e.__NG_ELEMENT_ID__=-1,e})();function xv(e,t){Lt(al(e)[1],qn())}function Kl(e){let t=function _h(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let r;if(ti(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Qe(903,"");r=t.\u0275dir}if(r){if(n){i.push(r);const u=e;u.inputs=ql(e.inputs),u.declaredInputs=ql(e.declaredInputs),u.outputs=ql(e.outputs);const p=r.hostBindings;p&&Pv(e,p);const b=r.viewQuery,I=r.contentQueries;if(b&&Ov(e,b),I&&Iv(e,I),de(e.inputs,r.inputs),de(e.declaredInputs,r.declaredInputs),de(e.outputs,r.outputs),ti(r)&&r.data.animation){const F=e.data;F.animation=(F.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let u=0;u=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=ko(r.hostAttrs,n=ko(n,r.hostAttrs))}}(i)}function ql(e){return e===V?{}:e===j?[]:e}function Ov(e,t){const n=e.viewQuery;e.viewQuery=n?(i,r)=>{t(i,r),n(i,r)}:t}function Iv(e,t){const n=e.contentQueries;e.contentQueries=n?(i,r,s)=>{t(i,r,s),n(i,r,s)}:t}function Pv(e,t){const n=e.hostBindings;e.hostBindings=n?(i,r)=>{t(i,r),n(i,r)}:t}let ya=null;function Jo(){if(!ya){const e=vt.Symbol;if(e&&e.iterator)ya=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;np(ht(bn[i.index])):i.index;if(ae(n)){let bn=null;if(!p&&b&&(bn=function ly(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;sb?p[b]:null}"string"==typeof u&&(s+=2)}return null}(e,t,r,i.index)),null!==bn)(bn.__ngLastListenerFn__||bn).__ngNextListenerFn__=s,bn.__ngLastListenerFn__=s,Re=!1;else{s=cc(i,t,W,s,!1);const In=n.listen(wt,r,s);fe.push(s,In),F&&F.push(r,Gt,it,it+1)}}else s=cc(i,t,W,s,!0),wt.addEventListener(r,s,u),fe.push(s),F&&F.push(r,Gt,it,u)}else s=cc(i,t,W,s,!1);const Je=i.outputs;let ut;if(Re&&null!==Je&&(ut=Je[r])){const pt=ut.length;if(pt)for(let wt=0;wt0;)t=t[15],e--;return t}(e,y.lFrame.contextLView))[8]}(e)}function cy(e,t){let n=null;const i=function __(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let r=0;r=0}const Si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sf(e){return e.substring(Si.key,Si.keyEnd)}function af(e,t){const n=Si.textEnd;return n===t?-1:(t=Si.keyEnd=function gy(e,t,n){for(;t32;)t++;return t}(e,Si.key=t,n),cs(e,t,n))}function cs(e,t,n){for(;t=0;n=af(t,n))Dr(e,sf(t),!0)}function $r(e,t,n,i){const r=ot(),s=sn(),u=ie(2);s.firstUpdatePass&&pf(s,e,u,i),t!==an&&Yi(r,u,t)&&gf(s,s.data[Un()],r,r[11],e,r[u+1]=function Ay(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=X(_o(e)))),e}(t,n),i,u)}function Wr(e,t,n,i){const r=sn(),s=ie(2);r.firstUpdatePass&&pf(r,null,s,i);const u=ot();if(n!==an&&Yi(u,s,n)){const p=r.data[Un()];if(vf(p,i)&&!ff(r,s)){let b=i?p.classesWithoutHost:p.stylesWithoutHost;null!==b&&(n=le(b,n||"")),rc(r,p,u,n,i)}else!function wy(e,t,n,i,r,s,u,p){r===an&&(r=j);let b=0,I=0,F=0=e.expandoStartIndex}function pf(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[Un()],u=ff(e,n);vf(s,i)&&null===t&&!u&&(t=!1),t=function by(e,t,n,i){const r=Xt(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Hs(n=pc(null,e,t,n,i),t.attrs,i),s=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==r)if(n=pc(r,e,t,n,i),null===s){let b=function Cy(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==vo(i))return e[jr(i)]}(e,t,i);void 0!==b&&Array.isArray(b)&&(b=pc(null,e,t,b[1],i),b=Hs(b,t.attrs,i),function Ey(e,t,n,i){e[jr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,b))}else s=function Dy(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(I=!0)}else F=n;if(r)if(0!==b){const fe=jr(e[p+1]);e[i+1]=fa(fe,p),0!==fe&&(e[fe+1]=Dl(e[fe+1],i)),e[p+1]=function M_(e,t){return 131071&e|t<<17}(e[p+1],i)}else e[i+1]=fa(p,0),0!==p&&(e[p+1]=Dl(e[p+1],i)),p=i;else e[i+1]=fa(b,0),0===p?p=i:e[b+1]=Dl(e[b+1],i),b=i;I&&(e[i+1]=El(e[i+1])),rf(e,F,i,!0),rf(e,F,i,!1),function dy(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Ho(s,t)>=0&&(n[i+1]=Ml(n[i+1]))}(t,F,e,i,s),u=fa(p,b),s?t.classBindings=u:t.styleBindings=u}(r,s,t,n,u,i)}}function pc(e,t,n,i,r){let s=null;const u=n.directiveEnd;let p=n.directiveStylingLast;for(-1===p?p=n.directiveStart:p++;p0;){const b=e[r],I=Array.isArray(b),F=I?b[1]:b,W=null===F;let fe=n[r+1];fe===an&&(fe=W?j:void 0);let Re=W?Za(fe,i):F===i?fe:void 0;if(I&&!Aa(Re)&&(Re=Za(b,i)),Aa(Re)&&(p=Re,u))return p;const Je=e[r+1];r=u?jr(Je):vo(Je)}if(null!==t){let b=s?t.residualClasses:t.residualStyles;null!=b&&(p=Za(b,i))}return p}function Aa(e){return void 0!==e}function vf(e,t){return 0!=(e.flags&(t?16:32))}function yf(e,t=""){const n=ot(),i=sn(),r=e+20,s=i.firstCreatePass?Yo(i,r,1,t,null):i.data[r],u=n[r]=function pl(e,t){return ae(e)?e.createText(t):e.createTextNode(t)}(n[11],t);da(i,n,u,s),Vi(s,!1)}function mc(e){return Ta("",e,""),mc}function Ta(e,t,n){const i=ot(),r=es(i,e,t,n);return r!==an&&yo(i,Un(),r),Ta}function gc(e,t,n,i,r){const s=ot(),u=function ts(e,t,n,i,r,s){const p=So(e,v(),n,r);return ie(2),p?t+z(n)+i+z(r)+s:an}(s,e,t,n,i,r);return u!==an&&yo(s,Un(),u),gc}function _c(e,t,n,i,r,s,u){const p=ot(),b=ns(p,e,t,n,i,r,s,u);return b!==an&&yo(p,Un(),b),_c}function Af(e,t,n){Wr(Dr,lo,es(ot(),e,t,n),!0)}function vc(e,t,n){const i=ot();return Yi(i,G(),t)&&Mr(sn(),Hn(),i,e,t,i[11],n,!0),vc}function yc(e,t,n){const i=ot();if(Yi(i,G(),t)){const s=sn(),u=Hn();Mr(s,u,i,e,t,Qd(Xt(s.data),u,i),n,!0)}return yc}const Oo=void 0;var $y=["en",[["a","p"],["AM","PM"],Oo],[["AM","PM"],Oo,Oo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Oo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Oo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Oo,"{1} 'at' {0}",Oo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Gy(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let us={};function bc(e){const t=function Wy(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Nf(t);if(n)return n;const i=t.split("-")[0];if(n=Nf(i),n)return n;if("en"===i)return $y;throw new Error(`Missing locale data for the locale "${e}".`)}function Lf(e){return bc(e)[qt.PluralCase]}function Nf(e){return e in us||(us[e]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[e]),us[e]}var qt=(()=>((qt=qt||{})[qt.LocaleId=0]="LocaleId",qt[qt.DayPeriodsFormat=1]="DayPeriodsFormat",qt[qt.DayPeriodsStandalone=2]="DayPeriodsStandalone",qt[qt.DaysFormat=3]="DaysFormat",qt[qt.DaysStandalone=4]="DaysStandalone",qt[qt.MonthsFormat=5]="MonthsFormat",qt[qt.MonthsStandalone=6]="MonthsStandalone",qt[qt.Eras=7]="Eras",qt[qt.FirstDayOfWeek=8]="FirstDayOfWeek",qt[qt.WeekendRange=9]="WeekendRange",qt[qt.DateFormat=10]="DateFormat",qt[qt.TimeFormat=11]="TimeFormat",qt[qt.DateTimeFormat=12]="DateTimeFormat",qt[qt.NumberSymbols=13]="NumberSymbols",qt[qt.NumberFormats=14]="NumberFormats",qt[qt.CurrencyCode=15]="CurrencyCode",qt[qt.CurrencySymbol=16]="CurrencySymbol",qt[qt.CurrencyName=17]="CurrencyName",qt[qt.Currencies=18]="Currencies",qt[qt.Directionality=19]="Directionality",qt[qt.PluralCase=20]="PluralCase",qt[qt.ExtraData=21]="ExtraData",qt))();const xa="en-US";let Bf=xa;function Dc(e,t,n,i,r){if(e=K(e),Array.isArray(e))for(let s=0;s>20;if(Qo(e)||!e.multi){const Re=new Or(b,r,Us),Je=wc(p,t,r?F:F+fe,W);-1===Je?(Mt(B(I,u),s,p),Mc(s,e,t.length),t.push(p),I.directiveStart++,I.directiveEnd++,r&&(I.providerIndexes+=1048576),n.push(Re),u.push(Re)):(n[Je]=Re,u[Je]=Re)}else{const Re=wc(p,t,F+fe,W),Je=wc(p,t,F,F+fe),ut=Re>=0&&n[Re],pt=Je>=0&&n[Je];if(r&&!pt||!r&&!ut){Mt(B(I,u),s,p);const wt=function Gb(e,t,n,i,r){const s=new Or(e,n,Us);return s.multi=[],s.index=t,s.componentProviders=0,lp(s,r,i&&!n),s}(r?zb:jb,n.length,r,i,b);!r&&pt&&(n[Je].providerFactory=wt),Mc(s,e,t.length,0),t.push(p),I.directiveStart++,I.directiveEnd++,r&&(I.providerIndexes+=1048576),n.push(wt),u.push(wt)}else Mc(s,e,Re>-1?Re:Je,lp(n[r?Je:Re],b,!r&&i));!r&&i&&pt&&n[Je].componentProviders++}}}function Mc(e,t,n,i){const r=Qo(t),s=function _v(e){return!!e.useClass}(t);if(r||s){const b=(s?K(t.useClass):t).prototype.ngOnDestroy;if(b){const I=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const F=I.indexOf(n);-1===F?I.push(n,[i,b]):I[F+1].push(i,b)}else I.push(n,b)}}}function lp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function wc(e,t,n,i){for(let r=n;r{n.providersResolver=(i,r)=>function Hb(e,t,n){const i=sn();if(i.firstCreatePass){const r=ti(e);Dc(n,i.data,i.blueprint,r,!0),Dc(t,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,t)}}class up{}class Yb{resolveComponentFactory(t){throw function Wb(e){const t=Error(`No component factory found for ${X(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ra=(()=>{class e{}return e.NULL=new Yb,e})();function Zb(){return hs(qn(),ot())}function hs(e,t){return new Ws(Ht(e,t))}let Ws=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Zb,e})();function Kb(e){return e instanceof Ws?e.nativeElement:e}class hp{}let qb=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Jb(){const e=ot(),n=Vn(qn().index,e);return function Qb(e){return e[11]}(Zn(n)?n:e)}(),e})(),Xb=(()=>{class e{}return e.\u0275prov=J({token:e,providedIn:"root",factory:()=>null}),e})();class fp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const e0=new fp("13.2.5"),Tc={};function ka(e,t,n,i,r=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(ht(s)),Ei(s))for(let p=10;p-1&&(gl(t,i),ta(n,i))}this._attachedToViewContainer=!1}id(this._lView[1],this._lView)}onDestroy(t){Vd(this._lView[1],this._lView,null,t)}markForCheck(){Vl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Hl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function sv(e,t,n){a(!0);try{Hl(e,t,n)}finally{a(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Qe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function n_(e,t){ks(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Qe(902,"");this._appRef=t}}class t0 extends Ys{constructor(t){super(t),this._view=t}detectChanges(){Zd(this._view)}checkNoChanges(){!function av(e){a(!0);try{Zd(e)}finally{a(!1)}}(this._view)}get context(){return null}}class pp extends Ra{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=en(t);return new xc(n,this.ngModule)}}function mp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class xc extends up{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function E_(e){return e.map(C_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return mp(this.componentDef.inputs)}get outputs(){return mp(this.componentDef.outputs)}create(t,n,i,r){const s=(r=r||this.ngModule)?function r0(e,t){return{get:(n,i,r)=>{const s=e.get(n,Tc,r);return s!==Tc||i===Tc?s:t.get(n,i,r)}}}(t,r.injector):t,u=s.get(hp,$e),p=s.get(Xb,null),b=u.createRenderer(null,this.componentDef),I=this.componentDef.selectors[0][0]||"div",F=i?function Bd(e,t,n){if(ae(e))return e.selectRootElement(t,n===Ot.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(b,i,this.componentDef.encapsulation):ml(u.createRenderer(null,this.componentDef),I,function n0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(I)),W=this.componentDef.onPush?576:528,fe=function gh(e,t){return{components:[],scheduler:e||Kg,clean:lv,playerHandler:t||null,flags:0}}(),Re=ga(0,null,null,1,0,null,null,null,null,null),Je=Fs(null,Re,fe,W,null,null,u,b,p,s);let ut,pt;$n(Je);try{const wt=function ph(e,t,n,i,r,s){const u=n[1];n[20]=e;const b=Yo(u,20,2,"#host",null),I=b.mergedAttrs=t.hostAttrs;null!==I&&(va(b,I,!0),null!==e&&(Ro(r,e,I),null!==b.classes&&Cl(r,e,b.classes),null!==b.styles&&md(r,e,b.styles)));const F=i.createRenderer(e,t),W=Fs(n,Ld(t),null,t.onPush?64:16,n[20],b,i,F,s||null,null);return u.firstCreatePass&&(Mt(B(b,n),u,t.type),Gd(u,b),$d(b,n.length,1)),_a(n,W),n[20]=W}(F,this.componentDef,Je,u,b);if(F)if(i)Ro(b,F,["ng-version",e0.full]);else{const{attrs:it,classes:Gt}=function D_(e){const t=[],n=[];let i=1,r=2;for(;i0&&Cl(b,F,Gt.join(" "))}if(pt=yn(Re,20),void 0!==n){const it=pt.projection=[];for(let Gt=0;Gtb(u,t)),t.contentQueries){const b=qn();t.contentQueries(1,u,b.directiveStart)}const p=qn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(vi(p.index),jd(n[1],p,0,p.directiveStart,p.directiveEnd,t),zd(t,u)),u}(wt,this.componentDef,Je,fe,[xv]),Ls(Re,Je,null)}finally{Ui()}return new s0(this.componentType,ut,hs(pt,Je),Je,pt)}}class s0 extends class $b{}{constructor(t,n,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new t0(r),this.componentType=t}get injector(){return new Lo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class fs{}class gp{}const ps=new Map;class yp extends fs{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new pp(this);const i=jn(t);this._bootstrapComponents=io(i.bootstrap),this._r3Injector=ih(t,n,[{provide:fs,useValue:this},{provide:Ra,useValue:this.componentFactoryResolver}],X(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=zr.THROW_IF_NOT_FOUND,i=S.Default){return t===zr||t===fs||t===zl?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Sc extends gp{constructor(t){super(),this.moduleType=t,null!==jn(t)&&function l0(e){const t=new Set;!function n(i){const r=jn(i,!0),s=r.id;null!==s&&(function _p(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${X(t)} vs ${X(t.name)}`)}(s,ps.get(s),i),ps.set(s,i));const u=io(r.imports);for(const p of u)t.has(p)||(t.add(p),n(p))}(e)}(t)}create(t){return new yp(this.moduleType,t)}}function bp(e,t,n,i){return Cp(ot(),l(),e,t,n,i)}function Cp(e,t,n,i,r,s){const u=t+n;return Yi(e,u,r)?function so(e,t,n){return e[t]=n}(e,u+1,s?i.call(s,r):i(r)):function Zs(e,t){const n=e[t];return n===an?void 0:n}(e,u+1)}function Ap(e,t){const n=sn();let i;const r=e+20;n.firstCreatePass?(i=function v0(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=wi(i.type)),u=L(Us);try{const p=ys(!1),b=s();return ys(p),function Uv(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,ot(),r,b),b}finally{L(u)}}function Tp(e,t,n){const i=e+20,r=ot(),s=On(r,i);return function Ks(e,t){return e[1].data[t].pure}(r,i)?Cp(r,l(),t,s.transform,n,s):s.transform(n)}function Oc(e){return t=>{setTimeout(e,void 0,t)}}const co=class D0 extends c.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var r,s,u;let p=t,b=n||(()=>null),I=i;if(t&&"object"==typeof t){const W=t;p=null===(r=W.next)||void 0===r?void 0:r.bind(W),b=null===(s=W.error)||void 0===s?void 0:s.bind(W),I=null===(u=W.complete)||void 0===u?void 0:u.bind(W)}this.__isAsync&&(b=Oc(b),p&&(p=Oc(p)),I&&(I=Oc(I)));const F=super.subscribe({next:p,error:b,complete:I});return t instanceof o.w0&&t.add(F),F}};function M0(){return this._results[Jo()]()}class Fa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Jo(),i=Fa.prototype;i[n]||(i[n]=M0)}get changes(){return this._changes||(this._changes=new co)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const r=Pr(t);(this._changesDetected=!function Pm(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=T0,e})();const w0=qs,A0=class extends w0{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Fs(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(n)),Ls(n,i,t),new Ys(i)}};function T0(){return La(qn(),ot())}function La(e,t){return 4&e.type?new A0(t,e,hs(e,t)):null}let Na=(()=>{class e{}return e.__NG_ELEMENT_ID__=x0,e})();function x0(){return Op(qn(),ot())}const S0=Na,xp=class extends S0{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return hs(this._hostTNode,this._hostLView)}get injector(){return new Lo(this._hostTNode,this._hostLView)}get parentInjector(){const t=qe(this._hostTNode,this._hostLView);if(Fo(t)){const n=fo(t,this._hostLView),i=Co(t);return new Lo(n[1].data[i+8],n)}return new Lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Sp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const r=t.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(t,n,i,r,s){const u=t&&!function Cs(e){return"function"==typeof e}(t);let p;if(u)p=n;else{const W=n||{};p=W.index,i=W.injector,r=W.projectableNodes,s=W.ngModuleRef}const b=u?t:new xc(en(t)),I=i||this.parentInjector;if(!s&&null==b.ngModule){const fe=(u?I:this.parentInjector).get(fs,null);fe&&(s=fe)}const F=b.create(I,r,void 0,s);return this.insert(F.hostView,p),F}insert(t,n){const i=t._lView,r=i[1];if(function Ri(e){return Ei(e[3])}(i)){const F=this.indexOf(t);if(-1!==F)this.detach(F);else{const W=i[3],fe=new xp(W,W[6],W[3]);fe.detach(fe.indexOf(t))}}const s=this._adjustIndex(n),u=this._lContainer;!function r_(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i0)i.push(u[p/2]);else{const I=s[p+1],F=t[-b];for(let W=10;W{class e{constructor(n){this.appInits=n,this.resolve=Ua,this.reject=Ua,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:p,error:b})});n.push(u)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Ni(nm,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const im=new yi("AppId",{providedIn:"root",factory:function rm(){return`${zc()}${zc()}${zc()}`}});function zc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const om=new yi("Platform Initializer"),sm=new yi("Platform ID"),am=new yi("appBootstrapListener");let lm=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();const Gc=new yi("LocaleId",{providedIn:"root",factory:()=>Mu(Gc,S.Optional|S.SkipSelf)||function tC(){return"undefined"!=typeof $localize&&$localize.locale||xa}()}),nC=new yi("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class iC{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let rC=(()=>{class e{compileModuleSync(n){return new Sc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),s=io(jn(n).declarations).reduce((u,p)=>{const b=en(p);return b&&u.push(new xc(b)),u},[]);return new iC(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sC=(()=>Promise.resolve(0))();function $c(e){"undefined"==typeof Zone?sC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Yr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new co(!1),this.onMicrotaskEmpty=new co(!1),this.onStable=new co(!1),this.onError=new co(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function aC(){let e=vt.requestAnimationFrame,t=vt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function uC(e){const t=()=>{!function cC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(vt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Yc(e),e.isCheckStableRunning=!0,Wc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Yc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,u,p)=>{try{return cm(e),n.invokeTask(r,s,u,p)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),um(e)}},onInvoke:(n,i,r,s,u,p,b)=>{try{return cm(e),n.invoke(r,s,u,p,b)}finally{e.shouldCoalesceRunChangeDetection&&t(),um(e)}},onHasTask:(n,i,r,s)=>{n.hasTask(r,s),i===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Yc(e),Wc(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,r,s)=>(n.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Yr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Yr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){const s=this._inner,u=s.scheduleEventTask("NgZoneEvent: "+r,t,lC,Ua,Ua);try{return s.runTask(u,n,i)}finally{s.cancelTask(u)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const lC={};function Wc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Yc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function um(e){e._nesting--,Wc(e)}class dC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new co,this.onMicrotaskEmpty=new co,this.onStable=new co,this.onError=new co}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,r){return t.apply(n,i)}}let dm=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Yr.assertNotInAngularZone(),$c(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())$c(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:r})}whenStable(n,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,r){return[]}}return e.\u0275fac=function(n){return new(n||e)(Ni(Yr))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})(),hm=(()=>{class e{constructor(){this._applications=new Map,Zc.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Zc.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();class hC{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function fC(e){Zc=e}let Zr,Zc=new hC;const fm=new yi("AllowMultipleToken");class gC{constructor(t,n){this.name=t,this.token=n}}function pm(e,t,n=[]){const i=`Platform: ${t}`,r=new yi(i);return(s=[])=>{let u=mm();if(!u||u.injector.get(fm,!1))if(e)e(n.concat(s).concat({provide:r,useValue:!0}));else{const p=n.concat(s).concat({provide:r,useValue:!0},{provide:Gl,useValue:"platform"});!function _C(e){if(Zr&&!Zr.destroyed&&!Zr.injector.get(fm,!1))throw new Qe(400,"");Zr=e.get(gm);const t=e.get(om,null);t&&t.forEach(n=>n())}(zr.create({providers:p,name:i}))}return function vC(e){const t=mm();if(!t)throw new Qe(401,"");return t}()}}function mm(){return Zr&&!Zr.destroyed?Zr:null}let gm=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const p=function yC(e,t){let n;return n="noop"===e?new dC:("zone.js"===e?void 0:e)||new Yr({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),b=[{provide:Yr,useValue:p}];return p.run(()=>{const I=zr.create({providers:b,parent:this.injector,name:n.moduleType.name}),F=n.create(I),W=F.injector.get(ca,null);if(!W)throw new Qe(402,"");return p.runOutsideAngular(()=>{const fe=p.onError.subscribe({next:Re=>{W.handleError(Re)}});F.onDestroy(()=>{qc(this._modules,F),fe.unsubscribe()})}),function bC(e,t,n){try{const i=n();return sc(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(W,p,()=>{const fe=F.injector.get(jc);return fe.runInitializers(),fe.donePromise.then(()=>(function qy(e){Vt(e,"Expected localeId to be defined"),"string"==typeof e&&(Bf=e.toLowerCase().replace(/_/g,"-"))}(F.injector.get(Gc,xa)||xa),this._moduleDoBootstrap(F),F))})})}bootstrapModule(n,i=[]){const r=_m({},i);return function pC(e,t,n){const i=new Sc(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(n){const i=n.injector.get(Kc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new Qe(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Qe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Ni(zr))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();function _m(e,t){return Array.isArray(t)?t.reduce(_m,e):Object.assign(Object.assign({},e),t)}let Kc=(()=>{class e{constructor(n,i,r,s,u){this._zone=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const p=new g.y(I=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{I.next(this._stable),I.complete()})}),b=new g.y(I=>{let F;this._zone.runOutsideAngular(()=>{F=this._zone.onStable.subscribe(()=>{Yr.assertNotInAngularZone(),$c(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,I.next(!0))})})});const W=this._zone.onUnstable.subscribe(()=>{Yr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{I.next(!1)}))});return()=>{F.unsubscribe(),W.unsubscribe()}});this.isStable=(0,Y.T)(p,b.pipe(function ue(e={}){const{connector:t=(()=>new c.x),resetOnError:n=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return s=>{let u=null,p=null,b=null,I=0,F=!1,W=!1;const fe=()=>{null==p||p.unsubscribe(),p=null},Re=()=>{fe(),u=b=null,F=W=!1},Je=()=>{const ut=u;Re(),null==ut||ut.unsubscribe()};return(0,Ee.e)((ut,pt)=>{I++,!W&&!F&&fe();const wt=b=null!=b?b:t();pt.add(()=>{I--,0===I&&!W&&!F&&(p=te(Je,r))}),wt.subscribe(pt),u||(u=new De.Hp({next:it=>wt.next(it),error:it=>{W=!0,fe(),p=te(Re,n,it),wt.error(it)},complete:()=>{F=!0,fe(),p=te(Re,i),wt.complete()}}),(0,ce.D)(ut).subscribe(u))})(s)}}()))}bootstrap(n,i){if(!this._initStatus.done)throw new Qe(405,"");let r;r=n instanceof up?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(r.componentType);const s=function mC(e){return e.isBoundToModule}(r)?void 0:this._injector.get(fs),p=r.create(zr.NULL,[],i||r.selector,s),b=p.location.nativeElement,I=p.injector.get(dm,null),F=I&&p.injector.get(hm);return I&&F&&F.registerApplication(b,I),p.onDestroy(()=>{this.detachView(p.hostView),qc(this.components,p),F&&F.unregisterApplication(b)}),this._loadComponent(p),p}tick(){if(this._runningTick)throw new Qe(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;qc(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(am,[]).concat(this._bootstrapListeners).forEach(r=>r(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(Ni(Yr),Ni(zr),Ni(ca),Ni(Ra),Ni(jc))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function qc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let ym=!0;function EC(){ym=!1}let DC=(()=>{class e{}return e.__NG_ELEMENT_ID__=MC,e})();function MC(e){return function wC(e,t,n){if(Ki(e)&&!n){const i=Vn(e.index,t);return new Ys(i,i)}return 47&e.type?new Ys(t[16],t):null}(qn(),ot(),16==(16&e))}class Mm{constructor(){}supports(t){return Bs(t)}create(t){return new IC(t)}}const OC=(e,t)=>t;class IC{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||OC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,r=0,s=null;for(;n||i;){const u=!i||n&&n.currentIndex{u=this._trackByFn(r,p),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,p,u,r)),Object.is(n.item,p)||this._addIdentityChange(n,p)):(n=this._mismatch(n,p,u,r),i=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;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=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,r)):t=this._addAfter(new PC(n,i),s,r),t}_verifyReinsertion(t,n,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const r=null===n?this._itHead:n._next;return t._next=r,t._prev=n,null===r?this._itTail=t:r._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new wm),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wm),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}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class PC{constructor(t,n){this.item=t,this.trackById=n,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}}class RC{constructor(){this._head=null,this._tail=null}add(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)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class wm{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new RC,this.map.set(n,i)),i.add(t)}get(t,n){const r=this.map.get(t);return r?r.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Am(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i{if(n&&n.key===r)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,n);const s=r._prev,u=r._next;return s&&(s._next=u),u&&(u._prev=s),r._next=null,r._prev=null,r}const i=new FC(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;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}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class FC{constructor(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}}function xm(){return new tu([new Mm])}let tu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||xm()),deps:[[e,new Ts,new As]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new Qe(901,"")}}return e.\u0275prov=J({token:e,providedIn:"root",factory:xm}),e})();function Sm(){return new nu([new Tm])}let nu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Sm()),deps:[[e,new Ts,new As]]}}find(n){const i=this.factories.find(s=>s.supports(n));if(i)return i;throw new Qe(901,"")}}return e.\u0275prov=J({token:e,providedIn:"root",factory:Sm}),e})();const BC=pm(null,"core",[{provide:sm,useValue:"unknown"},{provide:gm,deps:[zr]},{provide:hm,deps:[]},{provide:lm,deps:[]}]);let VC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Ni(Kc))},e.\u0275mod=Ie({type:e}),e.\u0275inj=He({}),e})()},2382:(We,ye,C)=>{C.d(ye,{Zs:()=>T,sg:()=>or,u5:()=>Vn,Cf:()=>pe,JU:()=>ke,a5:()=>at,JL:()=>L,F:()=>gn,kI:()=>ve,_Y:()=>Sn});var c=C(4893),g=(C(9808),C(8306)),Y=C(4742),ce=C(8421),q=C(3269),De=C(5403),Ee=C(3268),ue=C(1810),se=C(2076),de=C(4004);const ke=new c.OlP("NgValueAccessor");function z(x){return null==x||0===x.length}function Q(x){return null!=x&&"number"==typeof x.length}const pe=new c.OlP("NgValidators"),Te=new c.OlP("NgAsyncValidators"),Ne=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[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])?)*$/;class ve{static min(M){return function Me(x){return M=>{if(z(M.value)||z(x))return null;const y=parseFloat(M.value);return!isNaN(y)&&y{if(z(M.value)||z(x))return null;const y=parseFloat(M.value);return!isNaN(y)&&y>x?{max:{max:x,actual:M.value}}:null}}(M)}static required(M){return Ae(M)}static requiredTrue(M){return tt(M)}static email(M){return function Fe(x){return z(x.value)||Ne.test(x.value)?null:{email:!0}}(M)}static minLength(M){return function bt(x){return M=>z(M.value)||!Q(M.value)?null:M.value.lengthQ(M.value)&&M.value.length>x?{maxlength:{requiredLength:x,actualLength:M.value.length}}:null}(M)}static pattern(M){return function Jt(x){if(!x)return yt;let M,y;return"string"==typeof x?(y="","^"!==x.charAt(0)&&(y+="^"),y+=x,"$"!==x.charAt(x.length-1)&&(y+="$"),M=new RegExp(y)):(y=x.toString(),M=x),U=>{if(z(U.value))return null;const Ye=U.value;return M.test(Ye)?null:{pattern:{requiredPattern:y,actualValue:Ye}}}}(M)}static nullValidator(M){return null}static compose(M){return on(M)}static composeAsync(M){return je(M)}}function Ae(x){return z(x.value)?{required:!0}:null}function tt(x){return!0===x.value?null:{required:!0}}function yt(x){return null}function Rt(x){return null!=x}function Wt(x){const M=(0,c.QGY)(x)?(0,se.D)(x):x;return(0,c.CqO)(M),M}function Pt(x){let M={};return x.forEach(y=>{M=null!=y?Object.assign(Object.assign({},M),y):M}),0===Object.keys(M).length?null:M}function dn(x,M){return M.map(y=>y(x))}function xt(x){return x.map(M=>function Vt(x){return!x.validate}(M)?M:y=>M.validate(y))}function on(x){if(!x)return null;const M=x.filter(Rt);return 0==M.length?null:function(y){return Pt(dn(y,M))}}function Xe(x){return null!=x?on(xt(x)):null}function je(x){if(!x)return null;const M=x.filter(Rt);return 0==M.length?null:function(y){return function te(...x){const M=(0,q.jO)(x),{args:y,keys:U}=(0,Y.D)(x),Ye=new g.y(Et=>{const{length:Dn}=y;if(!Dn)return void Et.complete();const _i=new Array(Dn);let Gi=Dn,Fi=Dn;for(let ot=0;ot{sn||(sn=!0,Fi--),_i[ot]=Jr},()=>Gi--,void 0,()=>{(!Gi||!sn)&&(Fi||Et.next(U?(0,ue.n)(U,_i):_i),Et.complete())}))}});return M?Ye.pipe((0,Ee.Z)(M)):Ye}(dn(y,M).map(Wt)).pipe((0,de.U)(Pt))}}function J(x){return null!=x?je(xt(x)):null}function Z(x,M){return null===x?[M]:Array.isArray(x)?[...x,M]:[x,M]}function He(x){return x._rawValidators}function Ge(x){return x._rawAsyncValidators}function lt(x){return x?Array.isArray(x)?x:[x]:[]}function St(x,M){return Array.isArray(x)?x.includes(M):x===M}function jt(x,M){const y=lt(M);return lt(x).forEach(Ye=>{St(y,Ye)||y.push(Ye)}),y}function Ct(x,M){return lt(M).filter(y=>!St(x,y))}class Nt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(M){this._rawValidators=M||[],this._composedValidatorFn=Xe(this._rawValidators)}_setAsyncValidators(M){this._rawAsyncValidators=M||[],this._composedAsyncValidatorFn=J(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(M){this._onDestroyCallbacks.push(M)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(M=>M()),this._onDestroyCallbacks=[]}reset(M){this.control&&this.control.reset(M)}hasError(M,y){return!!this.control&&this.control.hasError(M,y)}getError(M,y){return this.control?this.control.getError(M,y):null}}class at extends Nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Pe extends Nt{get formDirective(){return null}get path(){return null}}let L=(()=>{class x extends class E{constructor(M){this._cd=M}is(M){var y,U,Ye;return"submitted"===M?!!(null===(y=this._cd)||void 0===y?void 0:y.submitted):!!(null===(Ye=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===Ye?void 0:Ye[M])}}{constructor(y){super(y)}}return x.\u0275fac=function(y){return new(y||x)(c.Y36(Pe,10))},x.\u0275dir=c.lG2({type:x,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(y,U){2&y&&c.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[c.qOj]}),x})();function he(x,M){Kt(x,M),M.valueAccessor.writeValue(x.value),function Dt(x,M){M.valueAccessor.registerOnChange(y=>{x._pendingValue=y,x._pendingChange=!0,x._pendingDirty=!0,"change"===x.updateOn&&Ve(x,M)})}(x,M),function _e(x,M){const y=(U,Ye)=>{M.valueAccessor.writeValue(U),Ye&&M.viewToModelUpdate(U)};x.registerOnChange(y),M._registerOnDestroy(()=>{x._unregisterOnChange(y)})}(x,M),function Rn(x,M){M.valueAccessor.registerOnTouched(()=>{x._pendingTouched=!0,"blur"===x.updateOn&&x._pendingChange&&Ve(x,M),"submit"!==x.updateOn&&x.markAsTouched()})}(x,M),function At(x,M){if(M.valueAccessor.setDisabledState){const y=U=>{M.valueAccessor.setDisabledState(U)};x.registerOnDisabledChange(y),M._registerOnDestroy(()=>{x._unregisterOnDisabledChange(y)})}}(x,M)}function Se(x,M,y=!0){const U=()=>{};M.valueAccessor&&(M.valueAccessor.registerOnChange(U),M.valueAccessor.registerOnTouched(U)),Zt(x,M),x&&(M._invokeOnDestroyCallbacks(),x._registerOnCollectionChange(()=>{}))}function st(x,M){x.forEach(y=>{y.registerOnValidatorChange&&y.registerOnValidatorChange(M)})}function Kt(x,M){const y=He(x);null!==M.validator?x.setValidators(Z(y,M.validator)):"function"==typeof y&&x.setValidators([y]);const U=Ge(x);null!==M.asyncValidator?x.setAsyncValidators(Z(U,M.asyncValidator)):"function"==typeof U&&x.setAsyncValidators([U]);const Ye=()=>x.updateValueAndValidity();st(M._rawValidators,Ye),st(M._rawAsyncValidators,Ye)}function Zt(x,M){let y=!1;if(null!==x){if(null!==M.validator){const Ye=He(x);if(Array.isArray(Ye)&&Ye.length>0){const Et=Ye.filter(Dn=>Dn!==M.validator);Et.length!==Ye.length&&(y=!0,x.setValidators(Et))}}if(null!==M.asyncValidator){const Ye=Ge(x);if(Array.isArray(Ye)&&Ye.length>0){const Et=Ye.filter(Dn=>Dn!==M.asyncValidator);Et.length!==Ye.length&&(y=!0,x.setAsyncValidators(Et))}}}const U=()=>{};return st(M._rawValidators,U),st(M._rawAsyncValidators,U),y}function Ve(x,M){x._pendingDirty&&x.markAsDirty(),x.setValue(x._pendingValue,{emitModelToViewChange:!1}),M.viewToModelUpdate(x._pendingValue),x._pendingChange=!1}function ne(x,M){Kt(x,M)}function en(x,M){x._syncPendingControls(),M.forEach(y=>{const U=y.control;"submit"===U.updateOn&&U._pendingChange&&(y.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function En(x,M){const y=x.indexOf(M);y>-1&&x.splice(y,1)}const Wn="VALID",Ci="INVALID",ai="PENDING",pi="DISABLED";function ji(x){return(mn(x)?x.validators:x)||null}function zn(x){return Array.isArray(x)?Xe(x):x||null}function ft(x,M){return(mn(M)?M.asyncValidators:x)||null}function Qt(x){return Array.isArray(x)?J(x):x||null}function mn(x){return null!=x&&!Array.isArray(x)&&"object"==typeof x}const Fn=x=>x instanceof zt,li=x=>x instanceof di;function ui(x){return Fn(x)?x.value:x.getRawValue()}function tn(x,M){const y=li(x),U=x.controls;if(!(y?Object.keys(U):U).length)throw new c.vHH(1e3,"");if(!U[M])throw new c.vHH(1001,"")}function Yn(x,M){li(x),x._forEachChild((U,Ye)=>{if(void 0===M[Ye])throw new c.vHH(1002,"")})}class mi{constructor(M,y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=M,this._rawAsyncValidators=y,this._composedValidatorFn=zn(this._rawValidators),this._composedAsyncValidatorFn=Qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(M){this._rawValidators=this._composedValidatorFn=M}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(M){this._rawAsyncValidators=this._composedAsyncValidatorFn=M}get parent(){return this._parent}get valid(){return this.status===Wn}get invalid(){return this.status===Ci}get pending(){return this.status==ai}get disabled(){return this.status===pi}get enabled(){return this.status!==pi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(M){this._rawValidators=M,this._composedValidatorFn=zn(M)}setAsyncValidators(M){this._rawAsyncValidators=M,this._composedAsyncValidatorFn=Qt(M)}addValidators(M){this.setValidators(jt(M,this._rawValidators))}addAsyncValidators(M){this.setAsyncValidators(jt(M,this._rawAsyncValidators))}removeValidators(M){this.setValidators(Ct(M,this._rawValidators))}removeAsyncValidators(M){this.setAsyncValidators(Ct(M,this._rawAsyncValidators))}hasValidator(M){return St(this._rawValidators,M)}hasAsyncValidator(M){return St(this._rawAsyncValidators,M)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(M={}){this.touched=!0,this._parent&&!M.onlySelf&&this._parent.markAsTouched(M)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(M=>M.markAllAsTouched())}markAsUntouched(M={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(y=>{y.markAsUntouched({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}markAsDirty(M={}){this.pristine=!1,this._parent&&!M.onlySelf&&this._parent.markAsDirty(M)}markAsPristine(M={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(y=>{y.markAsPristine({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}markAsPending(M={}){this.status=ai,!1!==M.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!M.onlySelf&&this._parent.markAsPending(M)}disable(M={}){const y=this._parentMarkedDirty(M.onlySelf);this.status=pi,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},M),{onlySelf:!0}))}),this._updateValue(),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},M),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!0))}enable(M={}){const y=this._parentMarkedDirty(M.onlySelf);this.status=Wn,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},M),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},M),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(M){this._parent&&!M.onlySelf&&(this._parent.updateValueAndValidity(M),M.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(M){this._parent=M}updateValueAndValidity(M={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Wn||this.status===ai)&&this._runAsyncValidator(M.emitEvent)),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!M.onlySelf&&this._parent.updateValueAndValidity(M)}_updateTreeValidity(M={emitEvent:!0}){this._forEachChild(y=>y._updateTreeValidity(M)),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pi:Wn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(M){if(this.asyncValidator){this.status=ai,this._hasOwnPendingAsyncValidator=!0;const y=Wt(this.asyncValidator(this));this._asyncValidationSubscription=y.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:M})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(M,y={}){this.errors=M,this._updateControlsErrors(!1!==y.emitEvent)}get(M){return function Ln(x,M,y){if(null==M||(Array.isArray(M)||(M=M.split(y)),Array.isArray(M)&&0===M.length))return null;let U=x;return M.forEach(Ye=>{U=li(U)?U.controls.hasOwnProperty(Ye)?U.controls[Ye]:null:(x=>x instanceof Xn)(U)&&U.at(Ye)||null}),U}(this,M,".")}getError(M,y){const U=y?this.get(y):this;return U&&U.errors?U.errors[M]:null}hasError(M,y){return!!this.getError(M,y)}get root(){let M=this;for(;M._parent;)M=M._parent;return M}_updateControlsErrors(M){this.status=this._calculateStatus(),M&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(M)}_initObservables(){this.valueChanges=new c.vpe,this.statusChanges=new c.vpe}_calculateStatus(){return this._allControlsDisabled()?pi:this.errors?Ci:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ai)?ai:this._anyControlsHaveStatus(Ci)?Ci:Wn}_anyControlsHaveStatus(M){return this._anyControls(y=>y.status===M)}_anyControlsDirty(){return this._anyControls(M=>M.dirty)}_anyControlsTouched(){return this._anyControls(M=>M.touched)}_updatePristine(M={}){this.pristine=!this._anyControlsDirty(),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}_updateTouched(M={}){this.touched=this._anyControlsTouched(),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}_isBoxedValue(M){return"object"==typeof M&&null!==M&&2===Object.keys(M).length&&"value"in M&&"disabled"in M}_registerOnCollectionChange(M){this._onCollectionChange=M}_setUpdateStrategy(M){mn(M)&&null!=M.updateOn&&(this._updateOn=M.updateOn)}_parentMarkedDirty(M){return!M&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class zt extends mi{constructor(M=null,y,U){super(ji(y),ft(U,y)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(M),this._setUpdateStrategy(y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),mn(y)&&y.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(M)?M.value:M)}setValue(M,y={}){this.value=this._pendingValue=M,this._onChange.length&&!1!==y.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==y.emitViewToModelChange)),this.updateValueAndValidity(y)}patchValue(M,y={}){this.setValue(M,y)}reset(M=this.defaultValue,y={}){this._applyFormState(M),this.markAsPristine(y),this.markAsUntouched(y),this.setValue(this.value,y),this._pendingChange=!1}_updateValue(){}_anyControls(M){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(M){this._onChange.push(M)}_unregisterOnChange(M){En(this._onChange,M)}registerOnDisabledChange(M){this._onDisabledChange.push(M)}_unregisterOnDisabledChange(M){En(this._onDisabledChange,M)}_forEachChild(M){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(M){this._isBoxedValue(M)?(this.value=this._pendingValue=M.value,M.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=M}}class di extends mi{constructor(M,y,U){super(ji(y),ft(U,y)),this.controls=M,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(M,y){return this.controls[M]?this.controls[M]:(this.controls[M]=y,y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange),y)}addControl(M,y,U={}){this.registerControl(M,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(M,y={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}setControl(M,y,U={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],y&&this.registerControl(M,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(M){return this.controls.hasOwnProperty(M)&&this.controls[M].enabled}setValue(M,y={}){Yn(this,M),Object.keys(M).forEach(U=>{tn(this,U),this.controls[U].setValue(M[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(M,y={}){null!=M&&(Object.keys(M).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(M[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(M={},y={}){this._forEachChild((U,Ye)=>{U.reset(M[Ye],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(M,y,U)=>(M[U]=ui(y),M))}_syncPendingControls(){let M=this._reduceChildren(!1,(y,U)=>!!U._syncPendingControls()||y);return M&&this.updateValueAndValidity({onlySelf:!0}),M}_forEachChild(M){Object.keys(this.controls).forEach(y=>{const U=this.controls[y];U&&M(U,y)})}_setUpControls(){this._forEachChild(M=>{M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(M){for(const y of Object.keys(this.controls)){const U=this.controls[y];if(this.contains(y)&&M(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(M,y,U)=>((y.enabled||this.disabled)&&(M[U]=y.value),M))}_reduceChildren(M,y){let U=M;return this._forEachChild((Ye,Et)=>{U=y(U,Ye,Et)}),U}_allControlsDisabled(){for(const M of Object.keys(this.controls))if(this.controls[M].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Xn extends mi{constructor(M,y,U){super(ji(y),ft(U,y)),this.controls=M,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(M){return this.controls[M]}push(M,y={}){this.controls.push(M),this._registerControl(M),this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}insert(M,y,U={}){this.controls.splice(M,0,y),this._registerControl(y),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(M,y={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),this.controls.splice(M,1),this.updateValueAndValidity({emitEvent:y.emitEvent})}setControl(M,y,U={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),this.controls.splice(M,1),y&&(this.controls.splice(M,0,y),this._registerControl(y)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(M,y={}){Yn(this,M),M.forEach((U,Ye)=>{tn(this,Ye),this.at(Ye).setValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(M,y={}){null!=M&&(M.forEach((U,Ye)=>{this.at(Ye)&&this.at(Ye).patchValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(M=[],y={}){this._forEachChild((U,Ye)=>{U.reset(M[Ye],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(M=>ui(M))}clear(M={}){this.controls.length<1||(this._forEachChild(y=>y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:M.emitEvent}))}_syncPendingControls(){let M=this.controls.reduce((y,U)=>!!U._syncPendingControls()||y,!1);return M&&this.updateValueAndValidity({onlySelf:!0}),M}_forEachChild(M){this.controls.forEach((y,U)=>{M(y,U)})}_updateValue(){this.value=this.controls.filter(M=>M.enabled||this.disabled).map(M=>M.value)}_anyControls(M){return this.controls.some(y=>y.enabled&&M(y))}_setUpControls(){this._forEachChild(M=>this._registerControl(M))}_allControlsDisabled(){for(const M of this.controls)if(M.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(M){M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange)}}const Oi={provide:Pe,useExisting:(0,c.Gpc)(()=>gn)},Gn=(()=>Promise.resolve(null))();let gn=(()=>{class x extends Pe{constructor(y,U){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new c.vpe,this.form=new di({},Xe(y),J(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(y){Gn.then(()=>{const U=this._findContainer(y.path);y.control=U.registerControl(y.name,y.control),he(y.control,y),y.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(y)})}getControl(y){return this.form.get(y.path)}removeControl(y){Gn.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name),this._directives.delete(y)})}addFormGroup(y){Gn.then(()=>{const U=this._findContainer(y.path),Ye=new di({});ne(Ye,y),U.registerControl(y.name,Ye),Ye.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){Gn.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,U){Gn.then(()=>{this.form.get(y.path).setValue(U)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,en(this.form,this._directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(y){return y.pop(),y.length?this.form.get(y):this.form}}return x.\u0275fac=function(y){return new(y||x)(c.Y36(pe,10),c.Y36(Te,10))},x.\u0275dir=c.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(y,U){1&y&&c.NdJ("submit",function(Et){return U.onSubmit(Et)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([Oi]),c.qOj]}),x})(),Sn=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275dir=c.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),x})(),hr=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({}),x})();const Tr={provide:Pe,useExisting:(0,c.Gpc)(()=>or)};let or=(()=>{class x extends Pe{constructor(y,U){super(),this.validators=y,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new c.vpe,this._setValidators(y),this._setAsyncValidators(U)}ngOnChanges(y){this._checkFormPresent(),y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Zt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(y){const U=this.form.get(y.path);return he(U,y),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),U}getControl(y){return this.form.get(y.path)}removeControl(y){Se(y.control||null,y,!1),En(this.directives,y)}addFormGroup(y){this._setUpFormContainer(y)}removeFormGroup(y){this._cleanUpFormContainer(y)}getFormGroup(y){return this.form.get(y.path)}addFormArray(y){this._setUpFormContainer(y)}removeFormArray(y){this._cleanUpFormContainer(y)}getFormArray(y){return this.form.get(y.path)}updateModel(y,U){this.form.get(y.path).setValue(U)}onSubmit(y){return this.submitted=!0,en(this.form,this.directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_updateDomValue(){this.directives.forEach(y=>{const U=y.control,Ye=this.form.get(y.path);U!==Ye&&(Se(U||null,y),Fn(Ye)&&(he(Ye,y),y.control=Ye))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const U=this.form.get(y.path);ne(U,y),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const U=this.form.get(y.path);U&&function Ie(x,M){return Zt(x,M)}(U,y)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Kt(this.form,this),this._oldForm&&Zt(this._oldForm,this)}_checkFormPresent(){}}return x.\u0275fac=function(y){return new(y||x)(c.Y36(pe,10),c.Y36(Te,10))},x.\u0275dir=c.lG2({type:x,selectors:[["","formGroup",""]],hostBindings:function(y,U){1&y&&c.NdJ("submit",function(Et){return U.onSubmit(Et)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([Tr]),c.qOj,c.TTD]}),x})(),Tn=(()=>{class x{constructor(){this._validator=yt}ngOnChanges(y){if(this.inputName in y){const U=this.normalizeInput(y[this.inputName].currentValue);this._enabled=this.enabled(U),this._validator=this._enabled?this.createValidator(U):yt,this._onChange&&this._onChange()}}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}enabled(y){return null!=y}}return x.\u0275fac=function(y){return new(y||x)},x.\u0275dir=c.lG2({type:x,features:[c.TTD]}),x})();const xr={provide:pe,useExisting:(0,c.Gpc)(()=>N),multi:!0},A={provide:pe,useExisting:(0,c.Gpc)(()=>T),multi:!0};let N=(()=>{class x extends Tn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=y=>function ni(x){return null!=x&&!1!==x&&"false"!=`${x}`}(y),this.createValidator=y=>Ae}enabled(y){return y}}return x.\u0275fac=function(){let M;return function(U){return(M||(M=c.n5z(x)))(U||x)}}(),x.\u0275dir=c.lG2({type:x,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(y,U){2&y&&c.uIk("required",U._enabled?"":null)},inputs:{required:"required"},features:[c._Bn([xr]),c.qOj]}),x})(),T=(()=>{class x extends N{constructor(){super(...arguments),this.createValidator=y=>tt}}return x.\u0275fac=function(){let M;return function(U){return(M||(M=c.n5z(x)))(U||x)}}(),x.\u0275dir=c.lG2({type:x,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(y,U){2&y&&c.uIk("required",U._enabled?"":null)},features:[c._Bn([A]),c.qOj]}),x})(),On=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({imports:[[hr]]}),x})(),Vn=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({imports:[On]}),x})()},7423:(We,ye,C)=>{C.d(ye,{zs:()=>de,lW:()=>se,ot:()=>X});var c=C(4893),o=C(508),g=C(6360),Y=C(5664);const ce=["mat-button",""],q=["*"],ue=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],te=(0,o.pj)((0,o.Id)((0,o.Kr)(class{constructor(le){this._elementRef=le}})));let se=(()=>{class le extends te{constructor(Be,K,et){super(Be),this._focusMonitor=K,this._animationMode=et,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Ze of ue)this._hasHostAttributes(Ze)&&this._getHostElement().classList.add(Ze);Be.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(Be,K){Be?this._focusMonitor.focusVia(this._getHostElement(),Be,K):this._getHostElement().focus(K)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...Be){return Be.some(K=>this._getHostElement().hasAttribute(K))}}return le.\u0275fac=function(Be){return new(Be||le)(c.Y36(c.SBq),c.Y36(Y.tE),c.Y36(g.Qb,8))},le.\u0275cmp=c.Xpm({type:le,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(Be,K){if(1&Be&&c.Gf(o.wG,5),2&Be){let et;c.iGM(et=c.CRH())&&(K.ripple=et.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(Be,K){2&Be&&(c.uIk("disabled",K.disabled||null),c.ekj("_mat-animation-noopable","NoopAnimations"===K._animationMode)("mat-button-disabled",K.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[c.qOj],attrs:ce,ngContentSelectors:q,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Be,K){1&Be&&(c.F$t(),c.TgZ(0,"span",0),c.Hsn(1),c.qZA(),c._UZ(2,"span",1)(3,"span",2)),2&Be&&(c.xp6(2),c.ekj("mat-button-ripple-round",K.isRoundButton||K.isIconButton),c.Q6J("matRippleDisabled",K._isRippleDisabled())("matRippleCentered",K.isIconButton)("matRippleTrigger",K._getHostElement()))},directives:[o.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),le})(),de=(()=>{class le extends se{constructor(Be,K,et,Ze){super(K,Be,et),this._ngZone=Ze,this._haltDisabledEvents=Qe=>{this.disabled&&(Qe.preventDefault(),Qe.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return le.\u0275fac=function(Be){return new(Be||le)(c.Y36(Y.tE),c.Y36(c.SBq),c.Y36(g.Qb,8),c.Y36(c.R0b,8))},le.\u0275cmp=c.Xpm({type:le,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(Be,K){2&Be&&(c.uIk("tabindex",K.disabled?-1:K.tabIndex||0)("disabled",K.disabled||null)("aria-disabled",K.disabled.toString()),c.ekj("_mat-animation-noopable","NoopAnimations"===K._animationMode)("mat-button-disabled",K.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[c.qOj],attrs:ce,ngContentSelectors:q,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Be,K){1&Be&&(c.F$t(),c.TgZ(0,"span",0),c.Hsn(1),c.qZA(),c._UZ(2,"span",1)(3,"span",2)),2&Be&&(c.xp6(2),c.ekj("mat-button-ripple-round",K.isRoundButton||K.isIconButton),c.Q6J("matRippleDisabled",K._isRippleDisabled())("matRippleCentered",K.isIconButton)("matRippleTrigger",K._getHostElement()))},directives:[o.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),le})(),X=(()=>{class le{}return le.\u0275fac=function(Be){return new(Be||le)},le.\u0275mod=c.oAB({type:le}),le.\u0275inj=c.cJS({imports:[[o.si,o.BQ],o.BQ]}),le})()},508:(We,ye,C)=>{C.d(ye,{rD:()=>xt,K7:()=>ze,HF:()=>L,BQ:()=>me,ey:()=>Yt,Ng:()=>vt,wG:()=>E,si:()=>S,CB:()=>hn,jH:()=>dt,pj:()=>Ne,Kr:()=>ve,Id:()=>Te,FD:()=>xe,sb:()=>Me});var c=C(4893),o=C(226),Y=C(9808),ce=C(925),q=C(5664),De=C(3191),Ee=C(7579),ue=C(6360),te=C(1159);function X(Le,we){if(1&Le&&c._UZ(0,"mat-pseudo-checkbox",4),2&Le){const V=c.oxw();c.Q6J("state",V.selected?"checked":"unchecked")("disabled",V.disabled)}}function le(Le,we){if(1&Le&&(c.TgZ(0,"span",5),c._uU(1),c.qZA()),2&Le){const V=c.oxw();c.xp6(1),c.hij("(",V.group.label,")")}}const ke=["*"],Qe=new c.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ze(){return!0}});let me=(()=>{class Le{constructor(V,j,$){this._sanityChecks=j,this._document=$,this._hasDoneGlobalChecks=!1,V._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(V){return!(0,ce.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[V])}}return Le.\u0275fac=function(V){return new(V||Le)(c.LFG(q.qm),c.LFG(Qe,8),c.LFG(Y.K0))},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[o.vT],o.vT]}),Le})();function Te(Le){return class extends Le{constructor(...we){super(...we),this._disabled=!1}get disabled(){return this._disabled}set disabled(we){this._disabled=(0,De.Ig)(we)}}}function Ne(Le,we){return class extends Le{constructor(...V){super(...V),this.defaultColor=we,this.color=we}get color(){return this._color}set color(V){const j=V||this.defaultColor;j!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),j&&this._elementRef.nativeElement.classList.add(`mat-${j}`),this._color=j)}}}function ve(Le){return class extends Le{constructor(...we){super(...we),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(we){this._disableRipple=(0,De.Ig)(we)}}}function Me(Le,we=0){return class extends Le{constructor(...V){super(...V),this._tabIndex=we,this.defaultTabIndex=we}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(V){this._tabIndex=null!=V?(0,De.su)(V):this.defaultTabIndex}}}function xe(Le){return class extends Le{constructor(...we){super(...we),this.stateChanges=new Ee.x,this.errorState=!1}updateErrorState(){const we=this.errorState,he=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);he!==we&&(this.errorState=he,this.stateChanges.next())}}}let xt=(()=>{class Le{isErrorState(V,j){return!!(V&&V.invalid&&(V.touched||j&&j.submitted))}}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275prov=c.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();class Z{constructor(we,V,j){this._renderer=we,this.element=V,this.config=j,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const He={enterDuration:225,exitDuration:150},lt=(0,ce.i$)({passive:!0}),St=["mousedown","touchstart"],jt=["mouseup","mouseleave","touchend","touchcancel"];class Ct{constructor(we,V,j,$){this._target=we,this._ngZone=V,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,$.isBrowser&&(this._containerElement=(0,De.fI)(j))}fadeInRipple(we,V,j={}){const $=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),he=Object.assign(Object.assign({},He),j.animation);j.centered&&(we=$.left+$.width/2,V=$.top+$.height/2);const Se=j.radius||function at(Le,we,V){const j=Math.max(Math.abs(Le-V.left),Math.abs(Le-V.right)),$=Math.max(Math.abs(we-V.top),Math.abs(we-V.bottom));return Math.sqrt(j*j+$*$)}(we,V,$),st=we-$.left,At=V-$.top,Kt=he.enterDuration,Zt=document.createElement("div");Zt.classList.add("mat-ripple-element"),Zt.style.left=st-Se+"px",Zt.style.top=At-Se+"px",Zt.style.height=2*Se+"px",Zt.style.width=2*Se+"px",null!=j.color&&(Zt.style.backgroundColor=j.color),Zt.style.transitionDuration=`${Kt}ms`,this._containerElement.appendChild(Zt),function Nt(Le){window.getComputedStyle(Le).getPropertyValue("opacity")}(Zt),Zt.style.transform="scale(1)";const Dt=new Z(this,Zt,j);return Dt.state=0,this._activeRipples.add(Dt),j.persistent||(this._mostRecentTransientRipple=Dt),this._runTimeoutOutsideZone(()=>{const Rn=Dt===this._mostRecentTransientRipple;Dt.state=1,!j.persistent&&(!Rn||!this._isPointerDown)&&Dt.fadeOut()},Kt),Dt}fadeOutRipple(we){const V=this._activeRipples.delete(we);if(we===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!V)return;const j=we.element,$=Object.assign(Object.assign({},He),we.config.animation);j.style.transitionDuration=`${$.exitDuration}ms`,j.style.opacity="0",we.state=2,this._runTimeoutOutsideZone(()=>{we.state=3,j.remove()},$.exitDuration)}fadeOutAll(){this._activeRipples.forEach(we=>we.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(we=>{we.config.persistent||we.fadeOut()})}setupTriggerEvents(we){const V=(0,De.fI)(we);!V||V===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=V,this._registerEvents(St))}handleEvent(we){"mousedown"===we.type?this._onMousedown(we):"touchstart"===we.type?this._onTouchStart(we):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(jt),this._pointerUpEventsRegistered=!0)}_onMousedown(we){const V=(0,q.X6)(we),j=this._lastTouchStartEvent&&Date.now(){!we.config.persistent&&(1===we.state||we.config.terminateOnPointerUp&&0===we.state)&&we.fadeOut()}))}_runTimeoutOutsideZone(we,V=0){this._ngZone.runOutsideAngular(()=>setTimeout(we,V))}_registerEvents(we){this._ngZone.runOutsideAngular(()=>{we.forEach(V=>{this._triggerElement.addEventListener(V,this,lt)})})}_removeTriggerEvents(){this._triggerElement&&(St.forEach(we=>{this._triggerElement.removeEventListener(we,this,lt)}),this._pointerUpEventsRegistered&&jt.forEach(we=>{this._triggerElement.removeEventListener(we,this,lt)}))}}const Pe=new c.OlP("mat-ripple-global-options");let E=(()=>{class Le{constructor(V,j,$,he,Se){this._elementRef=V,this._animationMode=Se,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=he||{},this._rippleRenderer=new Ct(this,j,V,$)}get disabled(){return this._disabled}set disabled(V){V&&this.fadeOutAllNonPersistent(),this._disabled=V,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(V){this._trigger=V,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(V,j=0,$){return"number"==typeof V?this._rippleRenderer.fadeInRipple(V,j,Object.assign(Object.assign({},this.rippleConfig),$)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),V))}}return Le.\u0275fac=function(V){return new(V||Le)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(ce.t4),c.Y36(Pe,8),c.Y36(ue.Qb,8))},Le.\u0275dir=c.lG2({type:Le,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(V,j){2&V&&c.ekj("mat-ripple-unbounded",j.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Le})(),S=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[me],me]}),Le})(),D=(()=>{class Le{constructor(V){this._animationMode=V,this.state="unchecked",this.disabled=!1}}return Le.\u0275fac=function(V){return new(V||Le)(c.Y36(ue.Qb,8))},Le.\u0275cmp=c.Xpm({type:Le,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(V,j){2&V&&c.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===j.state)("mat-pseudo-checkbox-checked","checked"===j.state)("mat-pseudo-checkbox-disabled",j.disabled)("_mat-animation-noopable","NoopAnimations"===j._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(V,j){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Le})(),P=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[me]]}),Le})();const L=new c.OlP("MAT_OPTION_PARENT_COMPONENT"),ze=new c.OlP("MatOptgroup");let ct=0;class Ot{constructor(we,V=!1){this.source=we,this.isUserInput=V}}let nn=(()=>{class Le{constructor(V,j,$,he){this._element=V,this._changeDetectorRef=j,this._parent=$,this.group=he,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ct++,this.onSelectionChange=new c.vpe,this._stateChanges=new Ee.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(V){this._disabled=(0,De.Ig)(V)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(V,j){const $=this._getHostElement();"function"==typeof $.focus&&$.focus(j)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(V){(V.keyCode===te.K5||V.keyCode===te.L_)&&!(0,te.Vb)(V)&&(this._selectViaInteraction(),V.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const V=this.viewValue;V!==this._mostRecentViewValue&&(this._mostRecentViewValue=V,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(V=!1){this.onSelectionChange.emit(new Ot(this,V))}}return Le.\u0275fac=function(V){c.$Z()},Le.\u0275dir=c.lG2({type:Le,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Le})(),Yt=(()=>{class Le extends nn{constructor(V,j,$,he){super(V,j,$,he)}}return Le.\u0275fac=function(V){return new(V||Le)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(L,8),c.Y36(ze,8))},Le.\u0275cmp=c.Xpm({type:Le,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(V,j){1&V&&c.NdJ("click",function(){return j._selectViaInteraction()})("keydown",function(he){return j._handleKeydown(he)}),2&V&&(c.Ikx("id",j.id),c.uIk("tabindex",j._getTabIndex())("aria-selected",j._getAriaSelected())("aria-disabled",j.disabled.toString()),c.ekj("mat-selected",j.selected)("mat-option-multiple",j.multiple)("mat-active",j.active)("mat-option-disabled",j.disabled))},exportAs:["matOption"],features:[c.qOj],ngContentSelectors:ke,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(V,j){1&V&&(c.F$t(),c.YNc(0,X,1,2,"mat-pseudo-checkbox",0),c.TgZ(1,"span",1),c.Hsn(2),c.qZA(),c.YNc(3,le,2,1,"span",2),c._UZ(4,"div",3)),2&V&&(c.Q6J("ngIf",j.multiple),c.xp6(3),c.Q6J("ngIf",j.group&&j.group._inert),c.xp6(1),c.Q6J("matRippleTrigger",j._getHostElement())("matRippleDisabled",j.disabled||j.disableRipple))},directives:[D,Y.O5,E],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Le})();function hn(Le,we,V){if(V.length){let j=we.toArray(),$=V.toArray(),he=0;for(let Se=0;SeV+j?Math.max(0,Le-j+we):V}let vt=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[S,Y.ez,me,P]]}),Le})()},8966:(We,ye,C)=>{C.d(ye,{WI:()=>Me,uw:()=>Jt,H8:()=>Vt,ZT:()=>Wt,xY:()=>dn,Is:()=>on,so:()=>Ne,uh:()=>Pt});var c=C(9776),o=C(7429),g=C(4893),Y=C(508),ce=C(226),q=C(7579),De=C(9770),Ee=C(727),ue=C(9646),te=C(9300),se=C(5698),de=C(8675),X=C(925),le=C(9808),ke=C(1777),Be=C(5664),K=C(1159),et=C(6360);function Ze(Xe,je){}class Qe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const me={dialogContainer:(0,ke.X$)("dialogContainer",[(0,ke.SB)("void, exit",(0,ke.oB)({opacity:0,transform:"scale(0.7)"})),(0,ke.SB)("enter",(0,ke.oB)({transform:"none"})),(0,ke.eR)("* => enter",(0,ke.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ke.oB)({transform:"none",opacity:1}))),(0,ke.eR)("* => void, * => exit",(0,ke.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ke.oB)({opacity:0})))])};let Q=(()=>{class Xe extends o.en{constructor(J,Z,He,Ge,lt,St,jt,Ct){super(),this._elementRef=J,this._focusTrapFactory=Z,this._changeDetectorRef=He,this._config=lt,this._interactivityChecker=St,this._ngZone=jt,this._focusMonitor=Ct,this._animationStateChanged=new g.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Nt=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Nt)),this._ariaLabelledBy=lt.ariaLabelledBy||null,this._document=Ge}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(J){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(J)}attachTemplatePortal(J){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(J)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(J,Z){this._interactivityChecker.isFocusable(J)||(J.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{J.addEventListener("blur",()=>J.removeAttribute("tabindex")),J.addEventListener("mousedown",()=>J.removeAttribute("tabindex"))})),J.focus(Z)}_focusByCssSelector(J,Z){let He=this._elementRef.nativeElement.querySelector(J);He&&this._forceFocus(He,Z)}_trapFocus(){const J=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||J.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Z=>{Z||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const J=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&J&&"function"==typeof J.focus){const Z=(0,X.ht)(),He=this._elementRef.nativeElement;(!Z||Z===this._document.body||Z===He||He.contains(Z))&&(this._focusMonitor?(this._focusMonitor.focusVia(J,this._closeInteractionType),this._closeInteractionType=null):J.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,X.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const J=this._elementRef.nativeElement,Z=(0,X.ht)();return J===Z||J.contains(Z)}}return Xe.\u0275fac=function(J){return new(J||Xe)(g.Y36(g.SBq),g.Y36(Be.qV),g.Y36(g.sBO),g.Y36(le.K0,8),g.Y36(Qe),g.Y36(Be.ic),g.Y36(g.R0b),g.Y36(Be.tE))},Xe.\u0275dir=g.lG2({type:Xe,viewQuery:function(J,Z){if(1&J&&g.Gf(o.Pl,7),2&J){let He;g.iGM(He=g.CRH())&&(Z._portalOutlet=He.first)}},features:[g.qOj]}),Xe})(),pe=(()=>{class Xe extends Q{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:J,totalTime:Z}){"enter"===J?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Z})):"exit"===J&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Z}))}_onAnimationStart({toState:J,totalTime:Z}){"enter"===J?this._animationStateChanged.next({state:"opening",totalTime:Z}):("exit"===J||"void"===J)&&this._animationStateChanged.next({state:"closing",totalTime:Z})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Xe.\u0275fac=function(){let je;return function(Z){return(je||(je=g.n5z(Xe)))(Z||Xe)}}(),Xe.\u0275cmp=g.Xpm({type:Xe,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(J,Z){1&J&&g.WFA("@dialogContainer.start",function(Ge){return Z._onAnimationStart(Ge)})("@dialogContainer.done",function(Ge){return Z._onAnimationDone(Ge)}),2&J&&(g.Ikx("id",Z._id),g.uIk("role",Z._config.role)("aria-labelledby",Z._config.ariaLabel?null:Z._ariaLabelledBy)("aria-label",Z._config.ariaLabel)("aria-describedby",Z._config.ariaDescribedBy||null),g.d8E("@dialogContainer",Z._state))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(J,Z){1&J&&g.YNc(0,Ze,0,0,"ng-template",0)},directives:[o.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[me.dialogContainer]}}),Xe})(),Te=0;class Ne{constructor(je,J,Z="mat-dialog-"+Te++){this._overlayRef=je,this._containerInstance=J,this.id=Z,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new q.x,this._afterClosed=new q.x,this._beforeClosed=new q.x,this._state=0,J._id=Z,J._animationStateChanged.pipe((0,te.h)(He=>"opened"===He.state),(0,se.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),J._animationStateChanged.pipe((0,te.h)(He=>"closed"===He.state),(0,se.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),je.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),je.keydownEvents().pipe((0,te.h)(He=>He.keyCode===K.hY&&!this.disableClose&&!(0,K.Vb)(He))).subscribe(He=>{He.preventDefault(),ve(this,"keyboard")}),je.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():ve(this,"mouse")})}close(je){this._result=je,this._containerInstance._animationStateChanged.pipe((0,te.h)(J=>"closing"===J.state),(0,se.q)(1)).subscribe(J=>{this._beforeClosed.next(je),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),J.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(je){let J=this._getPositionStrategy();return je&&(je.left||je.right)?je.left?J.left(je.left):J.right(je.right):J.centerHorizontally(),je&&(je.top||je.bottom)?je.top?J.top(je.top):J.bottom(je.bottom):J.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(je="",J=""){return this._overlayRef.updateSize({width:je,height:J}),this._overlayRef.updatePosition(),this}addPanelClass(je){return this._overlayRef.addPanelClass(je),this}removePanelClass(je){return this._overlayRef.removePanelClass(je),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function ve(Xe,je,J){return void 0!==Xe._containerInstance&&(Xe._containerInstance._closeInteractionType=je),Xe.close(J)}const Me=new g.OlP("MatDialogData"),xe=new g.OlP("mat-dialog-default-options"),Ae=new g.OlP("mat-dialog-scroll-strategy"),bt={provide:Ae,deps:[c.aV],useFactory:function Fe(Xe){return()=>Xe.scrollStrategies.block()}};let mt=(()=>{class Xe{constructor(J,Z,He,Ge,lt,St,jt,Ct,Nt,at){this._overlay=J,this._injector=Z,this._defaultOptions=He,this._parentDialog=Ge,this._overlayContainer=lt,this._dialogRefConstructor=jt,this._dialogContainerType=Ct,this._dialogDataToken=Nt,this._animationMode=at,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new q.x,this._afterOpenedAtThisLevel=new q.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,De.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,de.O)(void 0))),this._scrollStrategy=St}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const J=this._parentDialog;return J?J._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(J,Z){if(Z=function yt(Xe,je){return Object.assign(Object.assign({},je),Xe)}(Z,this._defaultOptions||new Qe),Z.id&&this.getDialogById(Z.id),this._dialogAnimatingOpen)return this._lastDialogRef;const He=this._createOverlay(Z),Ge=this._attachDialogContainer(He,Z);if("NoopAnimations"!==this._animationMode){const St=Ge._animationStateChanged.subscribe(jt=>{"opening"===jt.state&&(this._dialogAnimatingOpen=!0),"opened"===jt.state&&(this._dialogAnimatingOpen=!1,St.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new Ee.w0),this._animationStateSubscriptions.add(St)}const lt=this._attachDialogContent(J,Ge,He,Z);return this._lastDialogRef=lt,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(lt),lt.afterClosed().subscribe(()=>this._removeOpenDialog(lt)),this.afterOpened.next(lt),Ge._initializeWithAttachedContent(),lt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(J){return this.openDialogs.find(Z=>Z.id===J)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(J){const Z=this._getOverlayConfig(J);return this._overlay.create(Z)}_getOverlayConfig(J){const Z=new c.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:J.scrollStrategy||this._scrollStrategy(),panelClass:J.panelClass,hasBackdrop:J.hasBackdrop,direction:J.direction,minWidth:J.minWidth,minHeight:J.minHeight,maxWidth:J.maxWidth,maxHeight:J.maxHeight,disposeOnNavigation:J.closeOnNavigation});return J.backdropClass&&(Z.backdropClass=J.backdropClass),Z}_attachDialogContainer(J,Z){const Ge=g.zs3.create({parent:Z&&Z.viewContainerRef&&Z.viewContainerRef.injector||this._injector,providers:[{provide:Qe,useValue:Z}]}),lt=new o.C5(this._dialogContainerType,Z.viewContainerRef,Ge,Z.componentFactoryResolver);return J.attach(lt).instance}_attachDialogContent(J,Z,He,Ge){const lt=new this._dialogRefConstructor(He,Z,Ge.id);if(J instanceof g.Rgc)Z.attachTemplatePortal(new o.UE(J,null,{$implicit:Ge.data,dialogRef:lt}));else{const St=this._createInjector(Ge,lt,Z),jt=Z.attachComponentPortal(new o.C5(J,Ge.viewContainerRef,St,Ge.componentFactoryResolver));lt.componentInstance=jt.instance}return lt.updateSize(Ge.width,Ge.height).updatePosition(Ge.position),lt}_createInjector(J,Z,He){const Ge=J&&J.viewContainerRef&&J.viewContainerRef.injector,lt=[{provide:this._dialogContainerType,useValue:He},{provide:this._dialogDataToken,useValue:J.data},{provide:this._dialogRefConstructor,useValue:Z}];return J.direction&&(!Ge||!Ge.get(ce.Is,null,g.XFs.Optional))&<.push({provide:ce.Is,useValue:{value:J.direction,change:(0,ue.of)()}}),g.zs3.create({parent:Ge||this._injector,providers:lt})}_removeOpenDialog(J){const Z=this.openDialogs.indexOf(J);Z>-1&&(this.openDialogs.splice(Z,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((He,Ge)=>{He?Ge.setAttribute("aria-hidden",He):Ge.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const J=this._overlayContainer.getContainerElement();if(J.parentElement){const Z=J.parentElement.children;for(let He=Z.length-1;He>-1;He--){let Ge=Z[He];Ge!==J&&"SCRIPT"!==Ge.nodeName&&"STYLE"!==Ge.nodeName&&!Ge.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Ge,Ge.getAttribute("aria-hidden")),Ge.setAttribute("aria-hidden","true"))}}}_closeDialogs(J){let Z=J.length;for(;Z--;)J[Z].close()}}return Xe.\u0275fac=function(J){g.$Z()},Xe.\u0275dir=g.lG2({type:Xe}),Xe})(),Jt=(()=>{class Xe extends mt{constructor(J,Z,He,Ge,lt,St,jt,Ct){super(J,Z,Ge,St,jt,lt,Ne,pe,Me,Ct)}}return Xe.\u0275fac=function(J){return new(J||Xe)(g.LFG(c.aV),g.LFG(g.zs3),g.LFG(le.Ye,8),g.LFG(xe,8),g.LFG(Ae),g.LFG(Xe,12),g.LFG(c.Xj),g.LFG(et.Qb,8))},Xe.\u0275prov=g.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),Rt=0,Wt=(()=>{class Xe{constructor(J,Z,He){this.dialogRef=J,this._elementRef=Z,this._dialog=He,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=xt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(J){const Z=J._matDialogClose||J._matDialogCloseResult;Z&&(this.dialogResult=Z.currentValue)}_onButtonClick(J){ve(this.dialogRef,0===J.screenX&&0===J.screenY?"keyboard":"mouse",this.dialogResult)}}return Xe.\u0275fac=function(J){return new(J||Xe)(g.Y36(Ne,8),g.Y36(g.SBq),g.Y36(Jt))},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(J,Z){1&J&&g.NdJ("click",function(Ge){return Z._onButtonClick(Ge)}),2&J&&g.uIk("aria-label",Z.ariaLabel||null)("type",Z.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[g.TTD]}),Xe})(),Pt=(()=>{class Xe{constructor(J,Z,He){this._dialogRef=J,this._elementRef=Z,this._dialog=He,this.id="mat-dialog-title-"+Rt++}ngOnInit(){this._dialogRef||(this._dialogRef=xt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const J=this._dialogRef._containerInstance;J&&!J._ariaLabelledBy&&(J._ariaLabelledBy=this.id)})}}return Xe.\u0275fac=function(J){return new(J||Xe)(g.Y36(Ne,8),g.Y36(g.SBq),g.Y36(Jt))},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(J,Z){2&J&&g.Ikx("id",Z.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Xe})(),dn=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Xe})(),Vt=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Xe})();function xt(Xe,je){let J=Xe.nativeElement.parentElement;for(;J&&!J.classList.contains("mat-dialog-container");)J=J.parentElement;return J?je.find(Z=>Z.id===J.id):null}let on=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275mod=g.oAB({type:Xe}),Xe.\u0275inj=g.cJS({providers:[Jt,bt],imports:[[c.U8,o.eL,Y.BQ],Y.BQ]}),Xe})()},7322:(We,ye,C)=>{C.d(ye,{G_:()=>Nt,o2:()=>Ct,KE:()=>at,Eo:()=>yt,lN:()=>Pe,hX:()=>on,R9:()=>He});var c=C(7144),o=C(9808),g=C(4893),Y=C(508),ce=C(3191),q=C(7579),De=C(6451),Ee=C(4968),ue=C(8675),te=C(2722),se=C(5698),de=C(1777),X=C(6360),le=C(226),ke=C(925);const Be=["connectionContainer"],K=["inputContainer"],et=["label"];function Ze(E,S){1&E&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15)(3,"div",16)(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15)(7,"div",16)(8,"div",17),g.qZA(),g.BQk())}function Qe(E,S){if(1&E){const D=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){return g.CHM(D),g.oxw().updateOutlineGap()}),g.Hsn(1,1),g.qZA()}if(2&E){const D=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=D.appearance)}}function me(E,S){if(1&E&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&E){const D=g.oxw(2);g.xp6(3),g.Oqu(D._control.placeholder)}}function z(E,S){1&E&&g.Hsn(0,3,["*ngSwitchCase","true"])}function Q(E,S){1&E&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function pe(E,S){if(1&E){const D=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){return g.CHM(D),g.oxw().updateOutlineGap()}),g.YNc(2,me,4,1,"ng-container",12),g.YNc(3,z,1,0,"ng-content",12),g.YNc(4,Q,2,0,"span",22),g.qZA()}if(2&E){const D=g.oxw();g.ekj("mat-empty",D._control.empty&&!D._shouldAlwaysFloat())("mat-form-field-empty",D._control.empty&&!D._shouldAlwaysFloat())("mat-accent","accent"==D.color)("mat-warn","warn"==D.color),g.Q6J("cdkObserveContentDisabled","outline"!=D.appearance)("id",D._labelId)("ngSwitch",D._hasLabel()),g.uIk("for",D._control.id)("aria-owns",D._control.id),g.xp6(2),g.Q6J("ngSwitchCase",!1),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngIf",!D.hideRequiredMarker&&D._control.required&&!D._control.disabled)}}function Te(E,S){1&E&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function Ne(E,S){if(1&E&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&E){const D=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==D.color)("mat-warn","warn"==D.color)}}function ve(E,S){if(1&E&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&E){const D=g.oxw();g.Q6J("@transitionMessages",D._subscriptAnimationState)}}function Me(E,S){if(1&E&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&E){const D=g.oxw(2);g.Q6J("id",D._hintLabelId),g.xp6(1),g.Oqu(D.hintLabel)}}function xe(E,S){if(1&E&&(g.TgZ(0,"div",27),g.YNc(1,Me,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&E){const D=g.oxw();g.Q6J("@transitionMessages",D._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",D.hintLabel)}}const Ae=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],tt=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],bt=new g.OlP("MatError"),Jt={transitionMessages:(0,de.X$)("transitionMessages",[(0,de.SB)("enter",(0,de.oB)({opacity:1,transform:"translateY(0%)"})),(0,de.eR)("void => enter",[(0,de.oB)({opacity:0,transform:"translateY(-5px)"}),(0,de.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let yt=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E}),E})();const Vt=new g.OlP("MatHint");let on=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E,selectors:[["mat-label"]]}),E})(),Xe=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E,selectors:[["mat-placeholder"]]}),E})();const je=new g.OlP("MatPrefix"),Z=new g.OlP("MatSuffix");let He=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E,selectors:[["","matSuffix",""]],features:[g._Bn([{provide:Z,useExisting:E}])]}),E})(),Ge=0;const jt=(0,Y.pj)(class{constructor(E){this._elementRef=E}},"primary"),Ct=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Nt=new g.OlP("MatFormField");let at=(()=>{class E extends jt{constructor(D,P,L,re,be,Ue,ze){super(D),this._changeDetectorRef=P,this._dir=L,this._defaults=re,this._platform=be,this._ngZone=Ue,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new q.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ge++,this._labelId="mat-form-field-label-"+Ge++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==ze,this.appearance=re&&re.appearance?re.appearance:"legacy",this._hideRequiredMarker=!(!re||null==re.hideRequiredMarker)&&re.hideRequiredMarker}get appearance(){return this._appearance}set appearance(D){const P=this._appearance;this._appearance=D||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&P!==D&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(D){this._hideRequiredMarker=(0,ce.Ig)(D)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(D){this._hintLabel=D,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(D){D!==this._floatLabel&&(this._floatLabel=D||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(D){this._explicitFormFieldControl=D}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const D=this._control;D.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${D.controlType}`),D.stateChanges.pipe((0,ue.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),D.ngControl&&D.ngControl.valueChanges&&D.ngControl.valueChanges.pipe((0,te.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,te.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,De.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,ue.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,ue.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,te.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(D){const P=this._control?this._control.ngControl:null;return P&&P[D]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,Ee.R)(this._label.nativeElement,"transitionend").pipe((0,se.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let D=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&D.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const P=this._hintChildren?this._hintChildren.find(re=>"start"===re.align):null,L=this._hintChildren?this._hintChildren.find(re=>"end"===re.align):null;P?D.push(P.id):this._hintLabel&&D.push(this._hintLabelId),L&&D.push(L.id)}else this._errorChildren&&D.push(...this._errorChildren.map(P=>P.id));this._control.setDescribedByIds(D)}}_validateControlChild(){}updateOutlineGap(){const D=this._label?this._label.nativeElement:null,P=this._connectionContainerRef.nativeElement,L=".mat-form-field-outline-start",re=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!D||!D.children.length||!D.textContent.trim()){const ct=P.querySelectorAll(`${L}, ${re}`);for(let Ot=0;Ot0?.75*hn+10:0}for(let ct=0;ct{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275mod=g.oAB({type:E}),E.\u0275inj=g.cJS({imports:[[o.ez,Y.BQ,c.Q8],Y.BQ]}),E})()},7531:(We,ye,C)=>{C.d(ye,{Nt:()=>Ze,c:()=>Qe});var c=C(3191),o=C(925),g=C(4893),Y=C(2382),ce=C(508),q=C(7322),De=C(7579),Ee=C(515);const ue=(0,o.i$)({passive:!0});let te=(()=>{class me{constructor(Q,pe){this._platform=Q,this._ngZone=pe,this._monitoredElements=new Map}monitor(Q){if(!this._platform.isBrowser)return Ee.E;const pe=(0,c.fI)(Q),Te=this._monitoredElements.get(pe);if(Te)return Te.subject;const Ne=new De.x,ve="cdk-text-field-autofilled",Me=xe=>{"cdk-text-field-autofill-start"!==xe.animationName||pe.classList.contains(ve)?"cdk-text-field-autofill-end"===xe.animationName&&pe.classList.contains(ve)&&(pe.classList.remove(ve),this._ngZone.run(()=>Ne.next({target:xe.target,isAutofilled:!1}))):(pe.classList.add(ve),this._ngZone.run(()=>Ne.next({target:xe.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{pe.addEventListener("animationstart",Me,ue),pe.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(pe,{subject:Ne,unlisten:()=>{pe.removeEventListener("animationstart",Me,ue)}}),Ne}stopMonitoring(Q){const pe=(0,c.fI)(Q),Te=this._monitoredElements.get(pe);Te&&(Te.unlisten(),Te.subject.complete(),pe.classList.remove("cdk-text-field-autofill-monitored"),pe.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(pe))}ngOnDestroy(){this._monitoredElements.forEach((Q,pe)=>this.stopMonitoring(pe))}}return me.\u0275fac=function(Q){return new(Q||me)(g.LFG(o.t4),g.LFG(g.R0b))},me.\u0275prov=g.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})(),X=(()=>{class me{}return me.\u0275fac=function(Q){return new(Q||me)},me.\u0275mod=g.oAB({type:me}),me.\u0275inj=g.cJS({}),me})();const ke=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),Be=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let K=0;const et=(0,ce.FD)(class{constructor(me,z,Q,pe){this._defaultErrorStateMatcher=me,this._parentForm=z,this._parentFormGroup=Q,this.ngControl=pe}});let Ze=(()=>{class me extends et{constructor(Q,pe,Te,Ne,ve,Me,xe,Ae,tt,Fe){super(Me,Ne,ve,Te),this._elementRef=Q,this._platform=pe,this._autofillMonitor=Ae,this._formField=Fe,this._uid="mat-input-"+K++,this.focused=!1,this.stateChanges=new De.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Jt=>(0,o.qK)().has(Jt));const bt=this._elementRef.nativeElement,mt=bt.nodeName.toLowerCase();this._inputValueAccessor=xe||bt,this._previousNativeValue=this.value,this.id=this.id,pe.IOS&&tt.runOutsideAngular(()=>{Q.nativeElement.addEventListener("keyup",Jt=>{const yt=Jt.target;!yt.value&&0===yt.selectionStart&&0===yt.selectionEnd&&(yt.setSelectionRange(1,1),yt.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===mt,this._isTextarea="textarea"===mt,this._isInFormField=!!Fe,this._isNativeSelect&&(this.controlType=bt.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Q){this._disabled=(0,c.Ig)(Q),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Q){this._id=Q||this._uid}get required(){var Q,pe,Te,Ne;return null!==(Ne=null!==(Q=this._required)&&void 0!==Q?Q:null===(Te=null===(pe=this.ngControl)||void 0===pe?void 0:pe.control)||void 0===Te?void 0:Te.hasValidator(Y.kI.required))&&void 0!==Ne&&Ne}set required(Q){this._required=(0,c.Ig)(Q)}get type(){return this._type}set type(Q){this._type=Q||"text",this._validateType(),!this._isTextarea&&(0,o.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Q){Q!==this.value&&(this._inputValueAccessor.value=Q,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Q){this._readonly=(0,c.Ig)(Q)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Q=>{this.autofilled=Q.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Q){this._elementRef.nativeElement.focus(Q)}_focusChanged(Q){Q!==this.focused&&(this.focused=Q,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var Q,pe;const Te=(null===(pe=null===(Q=this._formField)||void 0===Q?void 0:Q._hideControlPlaceholder)||void 0===pe?void 0:pe.call(Q))?null:this.placeholder;if(Te!==this._previousPlaceholder){const Ne=this._elementRef.nativeElement;this._previousPlaceholder=Te,Te?Ne.setAttribute("placeholder",Te):Ne.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Q=this._elementRef.nativeElement.value;this._previousNativeValue!==Q&&(this._previousNativeValue=Q,this.stateChanges.next())}_validateType(){Be.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Q=this._elementRef.nativeElement.validity;return Q&&Q.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Q=this._elementRef.nativeElement,pe=Q.options[0];return this.focused||Q.multiple||!this.empty||!!(Q.selectedIndex>-1&&pe&&pe.label)}return this.focused||!this.empty}setDescribedByIds(Q){Q.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Q.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Q=this._elementRef.nativeElement;return this._isNativeSelect&&(Q.multiple||Q.size>1)}}return me.\u0275fac=function(Q){return new(Q||me)(g.Y36(g.SBq),g.Y36(o.t4),g.Y36(Y.a5,10),g.Y36(Y.F,8),g.Y36(Y.sg,8),g.Y36(ce.rD),g.Y36(ke,10),g.Y36(te),g.Y36(g.R0b),g.Y36(q.G_,8))},me.\u0275dir=g.lG2({type:me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(Q,pe){1&Q&&g.NdJ("focus",function(){return pe._focusChanged(!0)})("blur",function(){return pe._focusChanged(!1)})("input",function(){return pe._onInput()}),2&Q&&(g.Ikx("disabled",pe.disabled)("required",pe.required),g.uIk("id",pe.id)("data-placeholder",pe.placeholder)("name",pe.name||null)("readonly",pe.readonly&&!pe._isNativeSelect||null)("aria-invalid",pe.empty&&pe.required?null:pe.errorState)("aria-required",pe.required),g.ekj("mat-input-server",pe._isServer)("mat-native-select-inline",pe._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[g._Bn([{provide:q.Eo,useExisting:me}]),g.qOj,g.TTD]}),me})(),Qe=(()=>{class me{}return me.\u0275fac=function(Q){return new(Q||me)},me.\u0275mod=g.oAB({type:me}),me.\u0275inj=g.cJS({providers:[ce.rD],imports:[[X,q.lN,ce.BQ],X,q.lN]}),me})()},4107:(We,ye,C)=>{C.d(ye,{gD:()=>Ct,LD:()=>Nt});var c=C(9776),o=C(9808),g=C(4893),Y=C(508),ce=C(7322),q=C(495),De=C(5664),Ee=C(3191),ue=C(449),te=C(1159),se=C(2382),de=C(7579),X=C(9770),le=C(6451),ke=C(8675),Be=C(3900),K=C(5698),et=C(9300),Ze=C(4004),Qe=C(1884),me=C(2722),z=C(1777),Q=C(226);const pe=["trigger"],Te=["panel"];function Ne(at,Pe){if(1&at&&(g.TgZ(0,"span",8),g._uU(1),g.qZA()),2&at){const E=g.oxw();g.xp6(1),g.Oqu(E.placeholder)}}function ve(at,Pe){if(1&at&&(g.TgZ(0,"span",12),g._uU(1),g.qZA()),2&at){const E=g.oxw(2);g.xp6(1),g.Oqu(E.triggerValue)}}function Me(at,Pe){1&at&&g.Hsn(0,0,["*ngSwitchCase","true"])}function xe(at,Pe){if(1&at&&(g.TgZ(0,"span",9),g.YNc(1,ve,2,1,"span",10),g.YNc(2,Me,1,0,"ng-content",11),g.qZA()),2&at){const E=g.oxw();g.Q6J("ngSwitch",!!E.customTrigger),g.xp6(2),g.Q6J("ngSwitchCase",!0)}}function Ae(at,Pe){if(1&at){const E=g.EpF();g.TgZ(0,"div",13)(1,"div",14,15),g.NdJ("@transformPanel.done",function(D){return g.CHM(E),g.oxw()._panelDoneAnimatingStream.next(D.toState)})("keydown",function(D){return g.CHM(E),g.oxw()._handleKeydown(D)}),g.Hsn(3,1),g.qZA()()}if(2&at){const E=g.oxw();g.Q6J("@transformPanelWrap",void 0),g.xp6(1),g.Gre("mat-select-panel ",E._getPanelTheme(),""),g.Udp("transform-origin",E._transformOrigin)("font-size",E._triggerFontSize,"px"),g.Q6J("ngClass",E.panelClass)("@transformPanel",E.multiple?"showing-multiple":"showing"),g.uIk("id",E.id+"-panel")("aria-multiselectable",E.multiple)("aria-label",E.ariaLabel||null)("aria-labelledby",E._getPanelAriaLabelledby())}}const tt=[[["mat-select-trigger"]],"*"],Fe=["mat-select-trigger","*"],bt={transformPanelWrap:(0,z.X$)("transformPanelWrap",[(0,z.eR)("* => void",(0,z.IO)("@transformPanel",[(0,z.pV)()],{optional:!0}))]),transformPanel:(0,z.X$)("transformPanel",[(0,z.SB)("void",(0,z.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,z.SB)("showing",(0,z.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,z.SB)("showing-multiple",(0,z.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,z.eR)("void => *",(0,z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,z.eR)("* => void",(0,z.jt)("100ms 25ms linear",(0,z.oB)({opacity:0})))])};let Rt=0;const Xe=new g.OlP("mat-select-scroll-strategy"),J=new g.OlP("MAT_SELECT_CONFIG"),Z={provide:Xe,deps:[c.aV],useFactory:function je(at){return()=>at.scrollStrategies.reposition()}};class He{constructor(Pe,E){this.source=Pe,this.value=E}}const Ge=(0,Y.Kr)((0,Y.sb)((0,Y.Id)((0,Y.FD)(class{constructor(at,Pe,E,S,D){this._elementRef=at,this._defaultErrorStateMatcher=Pe,this._parentForm=E,this._parentFormGroup=S,this.ngControl=D}})))),lt=new g.OlP("MatSelectTrigger");let jt=(()=>{class at extends Ge{constructor(E,S,D,P,L,re,be,Ue,ze,_t,ct,Ot,nn,Yt){var hn,dt,vt;super(L,P,be,Ue,_t),this._viewportRuler=E,this._changeDetectorRef=S,this._ngZone=D,this._dir=re,this._parentFormField=ze,this._liveAnnouncer=nn,this._defaultOptions=Yt,this._panelOpen=!1,this._compareWith=(Le,we)=>Le===we,this._uid="mat-select-"+Rt++,this._triggerAriaLabelledBy=null,this._destroy=new de.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Rt++,this._panelDoneAnimatingStream=new de.x,this._overlayPanelClass=(null===(hn=this._defaultOptions)||void 0===hn?void 0:hn.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(vt=null===(dt=this._defaultOptions)||void 0===dt?void 0:dt.disableOptionCentering)&&void 0!==vt&&vt,this.ariaLabel="",this.optionSelectionChanges=(0,X.P)(()=>{const Le=this.options;return Le?Le.changes.pipe((0,ke.O)(Le),(0,Be.w)(()=>(0,le.T)(...Le.map(we=>we.onSelectionChange)))):this._ngZone.onStable.pipe((0,K.q)(1),(0,Be.w)(()=>this.optionSelectionChanges))}),this.openedChange=new g.vpe,this._openedStream=this.openedChange.pipe((0,et.h)(Le=>Le),(0,Ze.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,et.h)(Le=>!Le),(0,Ze.U)(()=>{})),this.selectionChange=new g.vpe,this.valueChange=new g.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Yt?void 0:Yt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Yt.typeaheadDebounceInterval),this._scrollStrategyFactory=Ot,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ct)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(E){this._placeholder=E,this.stateChanges.next()}get required(){var E,S,D,P;return null!==(P=null!==(E=this._required)&&void 0!==E?E:null===(D=null===(S=this.ngControl)||void 0===S?void 0:S.control)||void 0===D?void 0:D.hasValidator(se.kI.required))&&void 0!==P&&P}set required(E){this._required=(0,Ee.Ig)(E),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(E){this._multiple=(0,Ee.Ig)(E)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(E){this._disableOptionCentering=(0,Ee.Ig)(E)}get compareWith(){return this._compareWith}set compareWith(E){this._compareWith=E,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(E){(E!==this._value||this._multiple&&Array.isArray(E))&&(this.options&&this._setSelectionByValue(E),this._value=E)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(E){this._typeaheadDebounceInterval=(0,Ee.su)(E)}get id(){return this._id}set id(E){this._id=E||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ue.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Qe.x)(),(0,me.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,me.R)(this._destroy)).subscribe(E=>{E.added.forEach(S=>S.select()),E.removed.forEach(S=>S.deselect())}),this.options.changes.pipe((0,ke.O)(null),(0,me.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const E=this._getTriggerAriaLabelledby();if(E!==this._triggerAriaLabelledBy){const S=this._elementRef.nativeElement;this._triggerAriaLabelledBy=E,E?S.setAttribute("aria-labelledby",E):S.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(E){E.disabled&&this.stateChanges.next(),E.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(E){this.value=E}registerOnChange(E){this._onChange=E}registerOnTouched(E){this._onTouched=E}setDisabledState(E){this.disabled=E,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var E,S;return this.multiple?(null===(E=this._selectionModel)||void 0===E?void 0:E.selected)||[]:null===(S=this._selectionModel)||void 0===S?void 0:S.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const E=this._selectionModel.selected.map(S=>S.viewValue);return this._isRtl()&&E.reverse(),E.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(E){this.disabled||(this.panelOpen?this._handleOpenKeydown(E):this._handleClosedKeydown(E))}_handleClosedKeydown(E){const S=E.keyCode,D=S===te.JH||S===te.LH||S===te.oh||S===te.SV,P=S===te.K5||S===te.L_,L=this._keyManager;if(!L.isTyping()&&P&&!(0,te.Vb)(E)||(this.multiple||E.altKey)&&D)E.preventDefault(),this.open();else if(!this.multiple){const re=this.selected;L.onKeydown(E);const be=this.selected;be&&re!==be&&this._liveAnnouncer.announce(be.viewValue,1e4)}}_handleOpenKeydown(E){const S=this._keyManager,D=E.keyCode,P=D===te.JH||D===te.LH,L=S.isTyping();if(P&&E.altKey)E.preventDefault(),this.close();else if(L||D!==te.K5&&D!==te.L_||!S.activeItem||(0,te.Vb)(E))if(!L&&this._multiple&&D===te.A&&E.ctrlKey){E.preventDefault();const re=this.options.some(be=>!be.disabled&&!be.selected);this.options.forEach(be=>{be.disabled||(re?be.select():be.deselect())})}else{const re=S.activeItemIndex;S.onKeydown(E),this._multiple&&P&&E.shiftKey&&S.activeItem&&S.activeItemIndex!==re&&S.activeItem._selectViaInteraction()}else E.preventDefault(),S.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,K.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(E){if(this._selectionModel.selected.forEach(S=>S.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&E)Array.isArray(E),E.forEach(S=>this._selectValue(S)),this._sortValues();else{const S=this._selectValue(E);S?this._keyManager.updateActiveItem(S):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(E){const S=this.options.find(D=>{if(this._selectionModel.isSelected(D))return!1;try{return null!=D.value&&this._compareWith(D.value,E)}catch(P){return!1}});return S&&this._selectionModel.select(S),S}_initKeyManager(){this._keyManager=new De.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,me.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,me.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const E=(0,le.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,me.R)(E)).subscribe(S=>{this._onSelect(S.source,S.isUserInput),S.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,le.T)(...this.options.map(S=>S._stateChanges)).pipe((0,me.R)(E)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(E,S){const D=this._selectionModel.isSelected(E);null!=E.value||this._multiple?(D!==E.selected&&(E.selected?this._selectionModel.select(E):this._selectionModel.deselect(E)),S&&this._keyManager.setActiveItem(E),this.multiple&&(this._sortValues(),S&&this.focus())):(E.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(E.value)),D!==this._selectionModel.isSelected(E)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const E=this.options.toArray();this._selectionModel.sort((S,D)=>this.sortComparator?this.sortComparator(S,D,E):E.indexOf(S)-E.indexOf(D)),this.stateChanges.next()}}_propagateChanges(E){let S=null;S=this.multiple?this.selected.map(D=>D.value):this.selected?this.selected.value:E,this._value=S,this.valueChange.emit(S),this._onChange(S),this.selectionChange.emit(this._getChangeEvent(S)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var E;return!this._panelOpen&&!this.disabled&&(null===(E=this.options)||void 0===E?void 0:E.length)>0}focus(E){this._elementRef.nativeElement.focus(E)}_getPanelAriaLabelledby(){var E;if(this.ariaLabel)return null;const S=null===(E=this._parentFormField)||void 0===E?void 0:E.getLabelId();return this.ariaLabelledby?(S?S+" ":"")+this.ariaLabelledby:S}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var E;if(this.ariaLabel)return null;const S=null===(E=this._parentFormField)||void 0===E?void 0:E.getLabelId();let D=(S?S+" ":"")+this._valueId;return this.ariaLabelledby&&(D+=" "+this.ariaLabelledby),D}_panelDoneAnimating(E){this.openedChange.emit(E)}setDescribedByIds(E){this._ariaDescribedby=E.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return at.\u0275fac=function(E){return new(E||at)(g.Y36(q.rL),g.Y36(g.sBO),g.Y36(g.R0b),g.Y36(Y.rD),g.Y36(g.SBq),g.Y36(Q.Is,8),g.Y36(se.F,8),g.Y36(se.sg,8),g.Y36(ce.G_,8),g.Y36(se.a5,10),g.$8M("tabindex"),g.Y36(Xe),g.Y36(De.Kd),g.Y36(J,8))},at.\u0275dir=g.lG2({type:at,viewQuery:function(E,S){if(1&E&&(g.Gf(pe,5),g.Gf(Te,5),g.Gf(c.pI,5)),2&E){let D;g.iGM(D=g.CRH())&&(S.trigger=D.first),g.iGM(D=g.CRH())&&(S.panel=D.first),g.iGM(D=g.CRH())&&(S._overlayDir=D.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[g.qOj,g.TTD]}),at})(),Ct=(()=>{class at extends jt{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(E,S,D){const P=this._getItemHeight();return Math.min(Math.max(0,P*E-S+P/2),D)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,me.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,K.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(E){const S=(0,Y.CB)(E,this.options,this.optionGroups),D=this._getItemHeight();this.panel.nativeElement.scrollTop=0===E&&1===S?0:(0,Y.jH)((E+S)*D,D,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(E){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(E)}_getChangeEvent(E){return new He(this,E)}_calculateOverlayOffsetX(){const E=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),S=this._viewportRuler.getViewportSize(),D=this._isRtl(),P=this.multiple?56:32;let L;if(this.multiple)L=40;else if(this.disableOptionCentering)L=16;else{let Ue=this._selectionModel.selected[0]||this.options.first;L=Ue&&Ue.group?32:16}D||(L*=-1);const re=0-(E.left+L-(D?P:0)),be=E.right+L-S.width+(D?0:P);re>0?L+=re+8:be>0&&(L-=be+8),this._overlayDir.offsetX=Math.round(L),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(E,S,D){const P=this._getItemHeight(),L=(P-this._triggerRect.height)/2,re=Math.floor(256/P);let be;return this.disableOptionCentering?0:(be=0===this._scrollTop?E*P:this._scrollTop===D?(E-(this._getItemCount()-re))*P+(P-(this._getItemCount()*P-256)%P):S-P/2,Math.round(-1*be-L))}_checkOverlayWithinViewport(E){const S=this._getItemHeight(),D=this._viewportRuler.getViewportSize(),P=this._triggerRect.top-8,L=D.height-this._triggerRect.bottom-8,re=Math.abs(this._offsetY),Ue=Math.min(this._getItemCount()*S,256)-re-this._triggerRect.height;Ue>L?this._adjustPanelUp(Ue,L):re>P?this._adjustPanelDown(re,P,E):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(E,S){const D=Math.round(E-S);this._scrollTop-=D,this._offsetY-=D,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(E,S,D){const P=Math.round(E-S);if(this._scrollTop+=P,this._offsetY+=P,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=D)return this._scrollTop=D,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const E=this._getItemHeight(),S=this._getItemCount(),D=Math.min(S*E,256),L=S*E-D;let re;re=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),re+=(0,Y.CB)(re,this.options,this.optionGroups);const be=D/2;this._scrollTop=this._calculateOverlayScroll(re,be,L),this._offsetY=this._calculateOverlayOffsetY(re,be,L),this._checkOverlayWithinViewport(L)}_getOriginBasedOnOption(){const E=this._getItemHeight(),S=(E-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-S+E/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return at.\u0275fac=function(){let Pe;return function(S){return(Pe||(Pe=g.n5z(at)))(S||at)}}(),at.\u0275cmp=g.Xpm({type:at,selectors:[["mat-select"]],contentQueries:function(E,S,D){if(1&E&&(g.Suo(D,lt,5),g.Suo(D,Y.ey,5),g.Suo(D,Y.K7,5)),2&E){let P;g.iGM(P=g.CRH())&&(S.customTrigger=P.first),g.iGM(P=g.CRH())&&(S.options=P),g.iGM(P=g.CRH())&&(S.optionGroups=P)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(E,S){1&E&&g.NdJ("keydown",function(P){return S._handleKeydown(P)})("focus",function(){return S._onFocus()})("blur",function(){return S._onBlur()}),2&E&&(g.uIk("id",S.id)("tabindex",S.tabIndex)("aria-controls",S.panelOpen?S.id+"-panel":null)("aria-expanded",S.panelOpen)("aria-label",S.ariaLabel||null)("aria-required",S.required.toString())("aria-disabled",S.disabled.toString())("aria-invalid",S.errorState)("aria-describedby",S._ariaDescribedby||null)("aria-activedescendant",S._getAriaActiveDescendant()),g.ekj("mat-select-disabled",S.disabled)("mat-select-invalid",S.errorState)("mat-select-required",S.required)("mat-select-empty",S.empty)("mat-select-multiple",S.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[g._Bn([{provide:ce.Eo,useExisting:at},{provide:Y.HF,useExisting:at}]),g.qOj],ngContentSelectors:Fe,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(E,S){if(1&E&&(g.F$t(tt),g.TgZ(0,"div",0,1),g.NdJ("click",function(){return S.toggle()}),g.TgZ(3,"div",2),g.YNc(4,Ne,2,1,"span",3),g.YNc(5,xe,3,2,"span",4),g.qZA(),g.TgZ(6,"div",5),g._UZ(7,"div",6),g.qZA()(),g.YNc(8,Ae,4,14,"ng-template",7),g.NdJ("backdropClick",function(){return S.close()})("attach",function(){return S._onAttached()})("detach",function(){return S.close()})),2&E){const D=g.MAs(1);g.uIk("aria-owns",S.panelOpen?S.id+"-panel":null),g.xp6(3),g.Q6J("ngSwitch",S.empty),g.uIk("id",S._valueId),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1),g.xp6(3),g.Q6J("cdkConnectedOverlayPanelClass",S._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",S._scrollStrategy)("cdkConnectedOverlayOrigin",D)("cdkConnectedOverlayOpen",S.panelOpen)("cdkConnectedOverlayPositions",S._positions)("cdkConnectedOverlayMinWidth",null==S._triggerRect?null:S._triggerRect.width)("cdkConnectedOverlayOffsetY",S._offsetY)}},directives:[c.xu,o.RF,o.n9,o.ED,c.pI,o.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[bt.transformPanelWrap,bt.transformPanel]},changeDetection:0}),at})(),Nt=(()=>{class at{}return at.\u0275fac=function(E){return new(E||at)},at.\u0275mod=g.oAB({type:at}),at.\u0275inj=g.cJS({providers:[Z],imports:[[o.ez,c.U8,Y.Ng,Y.BQ],q.ZD,ce.lN,Y.Ng,Y.BQ]}),at})()},6360:(We,ye,C)=>{C.d(ye,{Qb:()=>yr,PW:()=>Ce});var c=C(4893),o=C(2313),g=C(1777);const Y=!1;function q(d){return new c.vHH(3e3,Y)}function xt(){return"undefined"!=typeof window&&void 0!==window.document}function on(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Xe(d){switch(d.length){case 0:return new g.ZN;case 1:return d[0];default:return new g.ZE(d)}}function je(d,a,l,v,k={},G={}){const ie=[],oe=[];let Oe=-1,Ke=null;if(v.forEach(gt=>{const It=gt.offset,Xt=It==Oe,ln=Xt&&Ke||{};Object.keys(gt).forEach(Ut=>{let rn=Ut,Mn=gt[Ut];if("offset"!==Ut)switch(rn=a.normalizePropertyName(rn,ie),Mn){case g.k1:Mn=k[Ut];break;case g.l3:Mn=G[Ut];break;default:Mn=a.normalizeStyleValue(Ut,rn,Mn,ie)}ln[rn]=Mn}),Xt||oe.push(ln),Ke=ln,Oe=It}),ie.length)throw function Ae(d){return new c.vHH(3502,Y)}();return oe}function J(d,a,l,v){switch(a){case"start":d.onStart(()=>v(l&&Z(l,"start",d)));break;case"done":d.onDone(()=>v(l&&Z(l,"done",d)));break;case"destroy":d.onDestroy(()=>v(l&&Z(l,"destroy",d)))}}function Z(d,a,l){const v=l.totalTime,G=He(d.element,d.triggerName,d.fromState,d.toState,a||d.phaseName,null==v?d.totalTime:v,!!l.disabled),ie=d._data;return null!=ie&&(G._data=ie),G}function He(d,a,l,v,k="",G=0,ie){return{element:d,triggerName:a,fromState:l,toState:v,phaseName:k,totalTime:G,disabled:!!ie}}function Ge(d,a,l){let v;return d instanceof Map?(v=d.get(a),v||d.set(a,v=l)):(v=d[a],v||(v=d[a]=l)),v}function lt(d){const a=d.indexOf(":");return[d.substring(1,a),d.substr(a+1)]}let St=(d,a)=>!1,jt=(d,a,l)=>[],Ct=null;function Nt(d){const a=d.parentNode||d.host;return a===Ct?null:a}(on()||"undefined"!=typeof Element)&&(xt()?(Ct=(()=>document.documentElement)(),St=(d,a)=>{for(;a;){if(a===d)return!0;a=Nt(a)}return!1}):St=(d,a)=>d.contains(a),jt=(d,a,l)=>{if(l)return Array.from(d.querySelectorAll(a));const v=d.querySelector(a);return v?[v]:[]});let E=null,S=!1;function D(d){E||(E=function P(){return"undefined"!=typeof document?document.body:null}()||{},S=!!E.style&&"WebkitAppearance"in E.style);let a=!0;return E.style&&!function Pe(d){return"ebkit"==d.substring(1,6)}(d)&&(a=d in E.style,!a&&S&&(a="Webkit"+d.charAt(0).toUpperCase()+d.substr(1)in E.style)),a}const L=St,re=jt;let Ue=(()=>{class d{validateStyleProperty(l){return D(l)}matchesElement(l,v){return!1}containsElement(l,v){return L(l,v)}getParentElement(l){return Nt(l)}query(l,v,k){return re(l,v,k)}computeStyle(l,v,k){return k||""}animate(l,v,k,G,ie,oe=[],Oe){return new g.ZN(k,G)}}return d.\u0275fac=function(l){return new(l||d)},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})(),ze=(()=>{class d{}return d.NOOP=new Ue,d})();const nn="ng-enter",Yt="ng-leave",hn="ng-trigger",dt=".ng-trigger",vt="ng-animating",Le=".ng-animating";function we(d){if("number"==typeof d)return d;const a=d.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:V(parseFloat(a[1]),a[2])}function V(d,a){return"s"===a?1e3*d:d}function j(d,a,l){return d.hasOwnProperty("duration")?d:function $(d,a,l){let k,G=0,ie="";if("string"==typeof d){const oe=d.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===oe)return a.push(q()),{duration:0,delay:0,easing:""};k=V(parseFloat(oe[1]),oe[2]);const Oe=oe[3];null!=Oe&&(G=V(parseFloat(Oe),oe[4]));const Ke=oe[5];Ke&&(ie=Ke)}else k=d;if(!l){let oe=!1,Oe=a.length;k<0&&(a.push(function De(){return new c.vHH(3100,Y)}()),oe=!0),G<0&&(a.push(function Ee(){return new c.vHH(3101,Y)}()),oe=!0),oe&&a.splice(Oe,0,q())}return{duration:k,delay:G,easing:ie}}(d,a,l)}function he(d,a={}){return Object.keys(d).forEach(l=>{a[l]=d[l]}),a}function st(d,a,l={}){if(a)for(let v in d)l[v]=d[v];else he(d,l);return l}function At(d,a,l){return l?a+":"+l+";":""}function Kt(d){let a="";for(let l=0;l{const k=$t(v);l&&!l.hasOwnProperty(v)&&(l[v]=d.style[k]),d.style[k]=a[v]}),on()&&Kt(d))}function Dt(d,a){d.style&&(Object.keys(a).forEach(l=>{const v=$t(l);d.style[v]=""}),on()&&Kt(d))}function Rn(d){return Array.isArray(d)?1==d.length?d[0]:(0,g.vP)(d):d}const _e=new RegExp("{{\\s*(.+?)\\s*}}","g");function ne(d){let a=[];if("string"==typeof d){let l;for(;l=_e.exec(d);)a.push(l[1]);_e.lastIndex=0}return a}function Ie(d,a,l){const v=d.toString(),k=v.replace(_e,(G,ie)=>{let oe=a[ie];return a.hasOwnProperty(ie)||(l.push(function te(d){return new c.vHH(3003,Y)}()),oe=""),oe.toString()});return k==v?d:k}function rt(d){const a=[];let l=d.next();for(;!l.done;)a.push(l.value),l=d.next();return a}const kt=/-+([a-z0-9])/g;function $t(d){return d.replace(kt,(...a)=>a[1].toUpperCase())}function Cn(d){return d.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function En(d,a,l){switch(a.type){case 7:return d.visitTrigger(a,l);case 0:return d.visitState(a,l);case 1:return d.visitTransition(a,l);case 2:return d.visitSequence(a,l);case 3:return d.visitGroup(a,l);case 4:return d.visitAnimate(a,l);case 5:return d.visitKeyframes(a,l);case 6:return d.visitStyle(a,l);case 8:return d.visitReference(a,l);case 9:return d.visitAnimateChild(a,l);case 10:return d.visitAnimateRef(a,l);case 11:return d.visitQuery(a,l);case 12:return d.visitStagger(a,l);default:throw function se(d){return new c.vHH(3004,Y)}()}}function jn(d,a){return window.getComputedStyle(d)[a]}function ft(d,a){const l=[];return"string"==typeof d?d.split(/\s*,\s*/).forEach(v=>function Qt(d,a,l){if(":"==d[0]){const Oe=function mn(d,a){switch(d){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,v)=>parseFloat(v)>parseFloat(l);case":decrement":return(l,v)=>parseFloat(v) *"}}(d,l);if("function"==typeof Oe)return void a.push(Oe);d=Oe}const v=d.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return l.push(function Te(d){return new c.vHH(3015,Y)}()),a;const k=v[1],G=v[2],ie=v[3];a.push(An(k,ie));"<"==G[0]&&!("*"==k&&"*"==ie)&&a.push(An(ie,k))}(v,l,a)):l.push(d),l}const Fn=new Set(["true","1"]),li=new Set(["false","0"]);function An(d,a){const l=Fn.has(d)||li.has(d),v=Fn.has(a)||li.has(a);return(k,G)=>{let ie="*"==d||d==k,oe="*"==a||a==G;return!ie&&l&&"boolean"==typeof k&&(ie=k?Fn.has(d):li.has(d)),!oe&&v&&"boolean"==typeof G&&(oe=G?Fn.has(a):li.has(a)),ie&&oe}}const tn=new RegExp("s*:selfs*,?","g");function Yn(d,a,l,v){return new zt(d).build(a,l,v)}class zt{constructor(a){this._driver=a}build(a,l,v){const k=new Oi(l);this._resetContextStyleTimingState(k);const G=En(this,Rn(a),k);return k.unsupportedCSSPropertiesFound.size&&k.unsupportedCSSPropertiesFound.keys(),G}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,l){let v=l.queryCount=0,k=l.depCount=0;const G=[],ie=[];return"@"==a.name.charAt(0)&&l.errors.push(function X(){return new c.vHH(3006,Y)}()),a.definitions.forEach(oe=>{if(this._resetContextStyleTimingState(l),0==oe.type){const Oe=oe,Ke=Oe.name;Ke.toString().split(/\s*,\s*/).forEach(gt=>{Oe.name=gt,G.push(this.visitState(Oe,l))}),Oe.name=Ke}else if(1==oe.type){const Oe=this.visitTransition(oe,l);v+=Oe.queryCount,k+=Oe.depCount,ie.push(Oe)}else l.errors.push(function le(){return new c.vHH(3007,Y)}())}),{type:7,name:a.name,states:G,transitions:ie,queryCount:v,depCount:k,options:null}}visitState(a,l){const v=this.visitStyle(a.styles,l),k=a.options&&a.options.params||null;if(v.containsDynamicStyles){const G=new Set,ie=k||{};v.styles.forEach(oe=>{if(gn(oe)){const Oe=oe;Object.keys(Oe).forEach(Ke=>{ne(Oe[Ke]).forEach(gt=>{ie.hasOwnProperty(gt)||G.add(gt)})})}}),G.size&&(rt(G.values()),l.errors.push(function ke(d,a){return new c.vHH(3008,Y)}()))}return{type:0,name:a.name,style:v,options:k?{params:k}:null}}visitTransition(a,l){l.queryCount=0,l.depCount=0;const v=En(this,Rn(a.animation),l);return{type:1,matchers:ft(a.expr,l.errors),animation:v,queryCount:l.queryCount,depCount:l.depCount,options:Nn(a.options)}}visitSequence(a,l){return{type:2,steps:a.steps.map(v=>En(this,v,l)),options:Nn(a.options)}}visitGroup(a,l){const v=l.currentTime;let k=0;const G=a.steps.map(ie=>{l.currentTime=v;const oe=En(this,ie,l);return k=Math.max(k,l.currentTime),oe});return l.currentTime=k,{type:3,steps:G,options:Nn(a.options)}}visitAnimate(a,l){const v=function hi(d,a){let l=null;if(d.hasOwnProperty("duration"))l=d;else if("number"==typeof d)return ei(j(d,a).duration,0,"");const v=d;if(v.split(/\s+/).some(G=>"{"==G.charAt(0)&&"{"==G.charAt(1))){const G=ei(0,0,"");return G.dynamic=!0,G.strValue=v,G}return l=l||j(v,a),ei(l.duration,l.delay,l.easing)}(a.timings,l.errors);l.currentAnimateTimings=v;let k,G=a.styles?a.styles:(0,g.oB)({});if(5==G.type)k=this.visitKeyframes(G,l);else{let ie=a.styles,oe=!1;if(!ie){oe=!0;const Ke={};v.easing&&(Ke.easing=v.easing),ie=(0,g.oB)(Ke)}l.currentTime+=v.duration+v.delay;const Oe=this.visitStyle(ie,l);Oe.isEmptyStep=oe,k=Oe}return l.currentAnimateTimings=null,{type:4,timings:v,style:k,options:null}}visitStyle(a,l){const v=this._makeStyleAst(a,l);return this._validateStyleAst(v,l),v}_makeStyleAst(a,l){const v=[];Array.isArray(a.styles)?a.styles.forEach(ie=>{"string"==typeof ie?ie==g.l3?v.push(ie):l.errors.push(function Be(d){return new c.vHH(3002,Y)}()):v.push(ie)}):v.push(a.styles);let k=!1,G=null;return v.forEach(ie=>{if(gn(ie)){const oe=ie,Oe=oe.easing;if(Oe&&(G=Oe,delete oe.easing),!k)for(let Ke in oe)if(oe[Ke].toString().indexOf("{{")>=0){k=!0;break}}}),{type:6,styles:v,easing:G,offset:a.offset,containsDynamicStyles:k,options:null}}_validateStyleAst(a,l){const v=l.currentAnimateTimings;let k=l.currentTime,G=l.currentTime;v&&G>0&&(G-=v.duration+v.delay),a.styles.forEach(ie=>{"string"!=typeof ie&&Object.keys(ie).forEach(oe=>{if(!this._driver.validateStyleProperty(oe))return delete ie[oe],void l.unsupportedCSSPropertiesFound.add(oe);const Oe=l.collectedStyles[l.currentQuerySelector],Ke=Oe[oe];let gt=!0;Ke&&(G!=k&&G>=Ke.startTime&&k<=Ke.endTime&&(l.errors.push(function et(d,a,l,v,k){return new c.vHH(3010,Y)}()),gt=!1),G=Ke.startTime),gt&&(Oe[oe]={startTime:G,endTime:k}),l.options&&function Ve(d,a,l){const v=a.params||{},k=ne(d);k.length&&k.forEach(G=>{v.hasOwnProperty(G)||l.push(function ue(d){return new c.vHH(3001,Y)}())})}(ie[oe],l.options,l.errors)})})}visitKeyframes(a,l){const v={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push(function Ze(){return new c.vHH(3011,Y)}()),v;let G=0;const ie=[];let oe=!1,Oe=!1,Ke=0;const gt=a.steps.map($n=>{const ci=this._makeStyleAst($n,l);let Di=null!=ci.offset?ci.offset:function Gn(d){if("string"==typeof d)return null;let a=null;if(Array.isArray(d))d.forEach(l=>{if(gn(l)&&l.hasOwnProperty("offset")){const v=l;a=parseFloat(v.offset),delete v.offset}});else if(gn(d)&&d.hasOwnProperty("offset")){const l=d;a=parseFloat(l.offset),delete l.offset}return a}(ci.styles),ri=0;return null!=Di&&(G++,ri=ci.offset=Di),Oe=Oe||ri<0||ri>1,oe=oe||ri0&&G{const Di=Xt>0?ci==ln?1:Xt*ci:ie[ci],ri=Di*Mn;l.currentTime=Ut+rn.delay+ri,rn.duration=ri,this._validateStyleAst($n,l),$n.offset=Di,v.styles.push($n)}),v}visitReference(a,l){return{type:8,animation:En(this,Rn(a.animation),l),options:Nn(a.options)}}visitAnimateChild(a,l){return l.depCount++,{type:9,options:Nn(a.options)}}visitAnimateRef(a,l){return{type:10,animation:this.visitReference(a.animation,l),options:Nn(a.options)}}visitQuery(a,l){const v=l.currentQuerySelector,k=a.options||{};l.queryCount++,l.currentQuery=a;const[G,ie]=function di(d){const a=!!d.split(/\s*,\s*/).find(l=>":self"==l);return a&&(d=d.replace(tn,"")),d=d.replace(/@\*/g,dt).replace(/@\w+/g,l=>dt+"-"+l.substr(1)).replace(/:animating/g,Le),[d,a]}(a.selector);l.currentQuerySelector=v.length?v+" "+G:G,Ge(l.collectedStyles,l.currentQuerySelector,{});const oe=En(this,Rn(a.animation),l);return l.currentQuery=null,l.currentQuerySelector=v,{type:11,selector:G,limit:k.limit||0,optional:!!k.optional,includeSelf:ie,animation:oe,originalSelector:a.selector,options:Nn(a.options)}}visitStagger(a,l){l.currentQuery||l.errors.push(function Q(){return new c.vHH(3013,Y)}());const v="full"===a.timings?{duration:0,delay:0,easing:"full"}:j(a.timings,l.errors,!0);return{type:12,animation:En(this,Rn(a.animation),l),timings:v,options:null}}}class Oi{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function gn(d){return!Array.isArray(d)&&"object"==typeof d}function Nn(d){return d?(d=he(d)).params&&(d.params=function Xn(d){return d?he(d):null}(d.params)):d={},d}function ei(d,a,l){return{duration:d,delay:a,easing:l}}function un(d,a,l,v,k,G,ie=null,oe=!1){return{type:1,element:d,keyframes:a,preStyleProps:l,postStyleProps:v,duration:k,delay:G,totalTime:k+G,easing:ie,subTimeline:oe}}class ir{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,l){let v=this._map.get(a);v||this._map.set(a,v=[]),v.push(...l)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Ei=new RegExp(":enter","g"),Ki=new RegExp(":leave","g");function Sn(d,a,l,v,k,G={},ie={},oe,Oe,Ke=[]){return(new ti).buildKeyframes(d,a,l,v,k,G,ie,oe,Oe,Ke)}class ti{buildKeyframes(a,l,v,k,G,ie,oe,Oe,Ke,gt=[]){Ke=Ke||new ir;const It=new dr(a,l,Ke,k,G,gt,[]);It.options=Oe,It.currentTimeline.setStyles([ie],null,It.errors,Oe),En(this,v,It);const Xt=It.timelines.filter(ln=>ln.containsAnimation());if(Object.keys(oe).length){let ln;for(let Ut=Xt.length-1;Ut>=0;Ut--){const rn=Xt[Ut];if(rn.element===l){ln=rn;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([oe],null,It.errors,Oe)}return Xt.length?Xt.map(ln=>ln.buildKeyframes()):[un(l,[],[],[],0,0,"",!1)]}visitTrigger(a,l){}visitState(a,l){}visitTransition(a,l){}visitAnimateChild(a,l){const v=l.subInstructions.get(l.element);if(v){const k=l.createSubContext(a.options),G=l.currentTimeline.currentTime,ie=this._visitSubInstructions(v,k,k.options);G!=ie&&l.transformIntoNewTimeline(ie)}l.previousNode=a}visitAnimateRef(a,l){const v=l.createSubContext(a.options);v.transformIntoNewTimeline(),this.visitReference(a.animation,v),l.transformIntoNewTimeline(v.currentTimeline.currentTime),l.previousNode=a}_visitSubInstructions(a,l,v){let G=l.currentTimeline.currentTime;const ie=null!=v.duration?we(v.duration):null,oe=null!=v.delay?we(v.delay):null;return 0!==ie&&a.forEach(Oe=>{const Ke=l.appendInstructionToTimeline(Oe,ie,oe);G=Math.max(G,Ke.duration+Ke.delay)}),G}visitReference(a,l){l.updateOptions(a.options,!0),En(this,a.animation,l),l.previousNode=a}visitSequence(a,l){const v=l.subContextCount;let k=l;const G=a.options;if(G&&(G.params||G.delay)&&(k=l.createSubContext(G),k.transformIntoNewTimeline(),null!=G.delay)){6==k.previousNode.type&&(k.currentTimeline.snapshotCurrentStyles(),k.previousNode=Ii);const ie=we(G.delay);k.delayNextStep(ie)}a.steps.length&&(a.steps.forEach(ie=>En(this,ie,k)),k.currentTimeline.applyStylesToKeyframe(),k.subContextCount>v&&k.transformIntoNewTimeline()),l.previousNode=a}visitGroup(a,l){const v=[];let k=l.currentTimeline.currentTime;const G=a.options&&a.options.delay?we(a.options.delay):0;a.steps.forEach(ie=>{const oe=l.createSubContext(a.options);G&&oe.delayNextStep(G),En(this,ie,oe),k=Math.max(k,oe.currentTimeline.currentTime),v.push(oe.currentTimeline)}),v.forEach(ie=>l.currentTimeline.mergeTimelineCollectedStyles(ie)),l.transformIntoNewTimeline(k),l.previousNode=a}_visitTiming(a,l){if(a.dynamic){const v=a.strValue;return j(l.params?Ie(v,l.params,l.errors):v,l.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,l){const v=l.currentAnimateTimings=this._visitTiming(a.timings,l),k=l.currentTimeline;v.delay&&(l.incrementTime(v.delay),k.snapshotCurrentStyles());const G=a.style;5==G.type?this.visitKeyframes(G,l):(l.incrementTime(v.duration),this.visitStyle(G,l),k.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=a}visitStyle(a,l){const v=l.currentTimeline,k=l.currentAnimateTimings;!k&&v.getCurrentStyleProperties().length&&v.forwardFrame();const G=k&&k.easing||a.easing;a.isEmptyStep?v.applyEmptyStep(G):v.setStyles(a.styles,G,l.errors,l.options),l.previousNode=a}visitKeyframes(a,l){const v=l.currentAnimateTimings,k=l.currentTimeline.duration,G=v.duration,oe=l.createSubContext().currentTimeline;oe.easing=v.easing,a.styles.forEach(Oe=>{oe.forwardTime((Oe.offset||0)*G),oe.setStyles(Oe.styles,Oe.easing,l.errors,l.options),oe.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(oe),l.transformIntoNewTimeline(k+G),l.previousNode=a}visitQuery(a,l){const v=l.currentTimeline.currentTime,k=a.options||{},G=k.delay?we(k.delay):0;G&&(6===l.previousNode.type||0==v&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=Ii);let ie=v;const oe=l.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!k.optional,l.errors);l.currentQueryTotal=oe.length;let Oe=null;oe.forEach((Ke,gt)=>{l.currentQueryIndex=gt;const It=l.createSubContext(a.options,Ke);G&&It.delayNextStep(G),Ke===l.element&&(Oe=It.currentTimeline),En(this,a.animation,It),It.currentTimeline.applyStylesToKeyframe(),ie=Math.max(ie,It.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(ie),Oe&&(l.currentTimeline.mergeTimelineCollectedStyles(Oe),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=a}visitStagger(a,l){const v=l.parentContext,k=l.currentTimeline,G=a.timings,ie=Math.abs(G.duration),oe=ie*(l.currentQueryTotal-1);let Oe=ie*l.currentQueryIndex;switch(G.duration<0?"reverse":G.easing){case"reverse":Oe=oe-Oe;break;case"full":Oe=v.currentStaggerTime}const gt=l.currentTimeline;Oe&>.delayNextStep(Oe);const It=gt.currentTime;En(this,a.animation,l),l.previousNode=a,v.currentStaggerTime=k.currentTime-It+(k.startTime-v.currentTimeline.startTime)}}const Ii={};class dr{constructor(a,l,v,k,G,ie,oe,Oe){this._driver=a,this.element=l,this.subInstructions=v,this._enterClassName=k,this._leaveClassName=G,this.errors=ie,this.timelines=oe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ii,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Oe||new rr(this._driver,l,0),oe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,l){if(!a)return;const v=a;let k=this.options;null!=v.duration&&(k.duration=we(v.duration)),null!=v.delay&&(k.delay=we(v.delay));const G=v.params;if(G){let ie=k.params;ie||(ie=this.options.params={}),Object.keys(G).forEach(oe=>{(!l||!ie.hasOwnProperty(oe))&&(ie[oe]=Ie(G[oe],ie,this.errors))})}}_copyOptions(){const a={};if(this.options){const l=this.options.params;if(l){const v=a.params={};Object.keys(l).forEach(k=>{v[k]=l[k]})}}return a}createSubContext(a=null,l,v){const k=l||this.element,G=new dr(this._driver,k,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(k,v||0));return G.previousNode=this.previousNode,G.currentAnimateTimings=this.currentAnimateTimings,G.options=this._copyOptions(),G.updateOptions(a),G.currentQueryIndex=this.currentQueryIndex,G.currentQueryTotal=this.currentQueryTotal,G.parentContext=this,this.subContextCount++,G}transformIntoNewTimeline(a){return this.previousNode=Ii,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,l,v){const k={duration:null!=l?l:a.duration,delay:this.currentTimeline.currentTime+(null!=v?v:0)+a.delay,easing:""},G=new hr(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,k,a.stretchStartingKeyframe);return this.timelines.push(G),k}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,l,v,k,G,ie){let oe=[];if(k&&oe.push(this.element),a.length>0){a=(a=a.replace(Ei,"."+this._enterClassName)).replace(Ki,"."+this._leaveClassName);let Ke=this._driver.query(this.element,a,1!=v);0!==v&&(Ke=v<0?Ke.slice(Ke.length+v,Ke.length):Ke.slice(0,v)),oe.push(...Ke)}return!G&&0==oe.length&&ie.push(function pe(d){return new c.vHH(3014,Y)}()),oe}}class rr{constructor(a,l,v,k){this._driver=a,this.element=l,this.startTime=v,this._elementTimelineStylesLookup=k,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+a),l&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,l){return this.applyStylesToKeyframe(),new rr(this._driver,a,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,l){this._localTimelineStyles[a]=l,this._globalTimelineStyles[a]=l,this._styleSummary[a]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||g.l3,this._currentKeyframe[l]=g.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,l,v,k){l&&(this._previousKeyframe.easing=l);const G=k&&k.params||{},ie=function kr(d,a){const l={};let v;return d.forEach(k=>{"*"===k?(v=v||Object.keys(a),v.forEach(G=>{l[G]=g.l3})):st(k,!1,l)}),l}(a,this._globalTimelineStyles);Object.keys(ie).forEach(oe=>{const Oe=Ie(ie[oe],G,v);this._pendingStyles[oe]=Oe,this._localTimelineStyles.hasOwnProperty(oe)||(this._backFill[oe]=this._globalTimelineStyles.hasOwnProperty(oe)?this._globalTimelineStyles[oe]:g.l3),this._updateStyle(oe,Oe)})}applyStylesToKeyframe(){const a=this._pendingStyles,l=Object.keys(a);0!=l.length&&(this._pendingStyles={},l.forEach(v=>{this._currentKeyframe[v]=a[v]}),Object.keys(this._localTimelineStyles).forEach(v=>{this._currentKeyframe.hasOwnProperty(v)||(this._currentKeyframe[v]=this._localTimelineStyles[v])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const l=this._localTimelineStyles[a];this._pendingStyles[a]=l,this._updateStyle(a,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let l in this._currentKeyframe)a.push(l);return a}mergeTimelineCollectedStyles(a){Object.keys(a._styleSummary).forEach(l=>{const v=this._styleSummary[l],k=a._styleSummary[l];(!v||k.time>v.time)&&this._updateStyle(l,k.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,l=new Set,v=1===this._keyframes.size&&0===this.duration;let k=[];this._keyframes.forEach((oe,Oe)=>{const Ke=st(oe,!0);Object.keys(Ke).forEach(gt=>{const It=Ke[gt];It==g.k1?a.add(gt):It==g.l3&&l.add(gt)}),v||(Ke.offset=Oe/this.duration),k.push(Ke)});const G=a.size?rt(a.values()):[],ie=l.size?rt(l.values()):[];if(v){const oe=k[0],Oe=he(oe);oe.offset=0,Oe.offset=1,k=[oe,Oe]}return un(this.element,k,G,ie,this.duration,this.startTime,this.easing,!1)}}class hr extends rr{constructor(a,l,v,k,G,ie,oe=!1){super(a,l,ie.delay),this.keyframes=v,this.preStyleProps=k,this.postStyleProps=G,this._stretchStartingKeyframe=oe,this.timings={duration:ie.duration,delay:ie.delay,easing:ie.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:l,duration:v,easing:k}=this.timings;if(this._stretchStartingKeyframe&&l){const G=[],ie=v+l,oe=l/ie,Oe=st(a[0],!1);Oe.offset=0,G.push(Oe);const Ke=st(a[0],!1);Ke.offset=fr(oe),G.push(Ke);const gt=a.length-1;for(let It=1;It<=gt;It++){let Xt=st(a[It],!1);Xt.offset=fr((l+Xt.offset*v)/ie),G.push(Xt)}v=ie,l=0,k="",a=G}return un(this.element,a,this.preStyleProps,this.postStyleProps,v,l,k,!0)}}function fr(d,a=3){const l=Math.pow(10,a-1);return Math.round(d*l)/l}class pr{}class mr extends pr{normalizePropertyName(a,l){return $t(a)}normalizeStyleValue(a,l,v,k){let G="";const ie=v.toString().trim();if(qi[l]&&0!==v&&"0"!==v)if("number"==typeof v)G="px";else{const oe=v.match(/^[+-]?[\d\.]+([a-z]*)$/);oe&&0==oe[1].length&&k.push(function de(d,a){return new c.vHH(3005,Y)}())}return ie+G}}const qi=(()=>function Tr(d){const a={};return d.forEach(l=>a[l]=!0),a}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function or(d,a,l,v,k,G,ie,oe,Oe,Ke,gt,It,Xt){return{type:0,element:d,triggerName:a,isRemovalTransition:k,fromState:l,fromStyles:G,toState:v,toStyles:ie,timelines:oe,queriedElements:Oe,preStyleProps:Ke,postStyleProps:gt,totalTime:It,errors:Xt}}const gr={};class sr{constructor(a,l,v){this._triggerName=a,this.ast=l,this._stateStyles=v}match(a,l,v,k){return function Kr(d,a,l,v,k){return d.some(G=>G(a,l,v,k))}(this.ast.matchers,a,l,v,k)}buildStyles(a,l,v){const k=this._stateStyles["*"],G=this._stateStyles[a],ie=k?k.buildStyles(l,v):{};return G?G.buildStyles(l,v):ie}build(a,l,v,k,G,ie,oe,Oe,Ke,gt){const It=[],Xt=this.ast.options&&this.ast.options.params||gr,Ut=this.buildStyles(v,oe&&oe.params||gr,It),rn=Oe&&Oe.params||gr,Mn=this.buildStyles(k,rn,It),$n=new Set,ci=new Map,Di=new Map,ri="void"===k,Sr={params:Object.assign(Object.assign({},Xt),rn)},Ui=gt?[]:Sn(a,l,this.ast.animation,G,ie,Ut,Mn,Sr,Ke,It);let Ti=0;if(Ui.forEach(Un=>{Ti=Math.max(Un.duration+Un.delay,Ti)}),It.length)return or(l,this._triggerName,v,k,ri,Ut,Mn,[],[],ci,Di,Ti,It);Ui.forEach(Un=>{const vi=Un.element,Hn=Ge(ci,vi,{});Un.preStyleProps.forEach(oi=>Hn[oi]=!0);const eo=Ge(Di,vi,{});Un.postStyleProps.forEach(oi=>eo[oi]=!0),vi!==l&&$n.add(vi)});const br=rt($n.values());return or(l,this._triggerName,v,k,ri,Ut,Mn,Ui,br,ci,Di,Ti)}}class _r{constructor(a,l,v){this.styles=a,this.defaultParams=l,this.normalizer=v}buildStyles(a,l){const v={},k=he(this.defaultParams);return Object.keys(a).forEach(G=>{const ie=a[G];null!=ie&&(k[G]=ie)}),this.styles.styles.forEach(G=>{if("string"!=typeof G){const ie=G;Object.keys(ie).forEach(oe=>{let Oe=ie[oe];Oe.length>1&&(Oe=Ie(Oe,k,l));const Ke=this.normalizer.normalizePropertyName(oe,l);Oe=this.normalizer.normalizeStyleValue(oe,Ke,Oe,l),v[Ke]=Oe})}}),v}}class Qi{constructor(a,l,v){this.name=a,this.ast=l,this._normalizer=v,this.transitionFactories=[],this.states={},l.states.forEach(k=>{this.states[k.name]=new _r(k.style,k.options&&k.options.params||{},v)}),vr(this.states,"true","1"),vr(this.states,"false","0"),l.transitions.forEach(k=>{this.transitionFactories.push(new sr(a,k,this.states))}),this.fallbackTransition=function gi(d,a,l){return new sr(d,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ie,oe)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,l,v,k){return this.transitionFactories.find(ie=>ie.match(a,l,v,k))||null}matchStyles(a,l,v){return this.fallbackTransition.buildStyles(a,l,v)}}function vr(d,a,l){d.hasOwnProperty(a)?d.hasOwnProperty(l)||(d[l]=d[a]):d.hasOwnProperty(l)&&(d[a]=d[l])}const Mi=new ir;class qr{constructor(a,l,v){this.bodyNode=a,this._driver=l,this._normalizer=v,this._animations={},this._playersById={},this.players=[]}register(a,l){const v=[],G=Yn(this._driver,l,v,[]);if(v.length)throw function tt(d){return new c.vHH(3503,Y)}();this._animations[a]=G}_buildPlayer(a,l,v){const k=a.element,G=je(0,this._normalizer,0,a.keyframes,l,v);return this._driver.animate(k,G,a.duration,a.delay,a.easing,[],!0)}create(a,l,v={}){const k=[],G=this._animations[a];let ie;const oe=new Map;if(G?(ie=Sn(this._driver,l,G,nn,Yt,{},{},v,Mi,k),ie.forEach(gt=>{const It=Ge(oe,gt.element,{});gt.postStyleProps.forEach(Xt=>It[Xt]=null)})):(k.push(function Fe(){return new c.vHH(3300,Y)}()),ie=[]),k.length)throw function bt(d){return new c.vHH(3504,Y)}();oe.forEach((gt,It)=>{Object.keys(gt).forEach(Xt=>{gt[Xt]=this._driver.computeStyle(It,Xt,g.l3)})});const Ke=Xe(ie.map(gt=>{const It=oe.get(gt.element);return this._buildPlayer(gt,{},It)}));return this._playersById[a]=Ke,Ke.onDestroy(()=>this.destroy(a)),this.players.push(Ke),Ke}destroy(a){const l=this._getPlayer(a);l.destroy(),delete this._playersById[a];const v=this.players.indexOf(l);v>=0&&this.players.splice(v,1)}_getPlayer(a){const l=this._playersById[a];if(!l)throw function mt(d){return new c.vHH(3301,Y)}();return l}listen(a,l,v,k){const G=He(l,"","","");return J(this._getPlayer(a),v,G,k),()=>{}}command(a,l,v,k){if("register"==v)return void this.register(a,k[0]);if("create"==v)return void this.create(a,l,k[0]||{});const G=this._getPlayer(a);switch(v){case"play":G.play();break;case"pause":G.pause();break;case"reset":G.reset();break;case"restart":G.restart();break;case"finish":G.finish();break;case"init":G.init();break;case"setPosition":G.setPosition(parseFloat(k[0]));break;case"destroy":this.destroy(a)}}}const wi="ng-animate-queued",zi="ng-animate-disabled",Pi=[],ar={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Br={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ni="__ng_removed";class lr{constructor(a,l=""){this.namespaceId=l;const v=a&&a.hasOwnProperty("value");if(this.value=function A(d){return null!=d?d:null}(v?a.value:a),v){const G=he(a);delete G.value,this.options=G}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const l=a.params;if(l){const v=this.options.params;Object.keys(l).forEach(k=>{null==v[k]&&(v[k]=l[k])})}}}const Tn="void",Xi=new lr(Tn);class ii{constructor(a,l,v){this.id=a,this.hostElement=l,this._engine=v,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,nt(l,this._hostClassName)}listen(a,l,v,k){if(!this._triggers.hasOwnProperty(l))throw function Jt(d,a){return new c.vHH(3302,Y)}();if(null==v||0==v.length)throw function yt(d){return new c.vHH(3303,Y)}();if(!function T(d){return"start"==d||"done"==d}(v))throw function Rt(d,a){return new c.vHH(3400,Y)}();const G=Ge(this._elementListeners,a,[]),ie={name:l,phase:v,callback:k};G.push(ie);const oe=Ge(this._engine.statesByElement,a,{});return oe.hasOwnProperty(l)||(nt(a,hn),nt(a,hn+"-"+l),oe[l]=Xi),()=>{this._engine.afterFlush(()=>{const Oe=G.indexOf(ie);Oe>=0&&G.splice(Oe,1),this._triggers[l]||delete oe[l]})}}register(a,l){return!this._triggers[a]&&(this._triggers[a]=l,!0)}_getTrigger(a){const l=this._triggers[a];if(!l)throw function Wt(d){return new c.vHH(3401,Y)}();return l}trigger(a,l,v,k=!0){const G=this._getTrigger(l),ie=new cr(this.id,l,a);let oe=this._engine.statesByElement.get(a);oe||(nt(a,hn),nt(a,hn+"-"+l),this._engine.statesByElement.set(a,oe={}));let Oe=oe[l];const Ke=new lr(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&Oe&&Ke.absorbOptions(Oe.options),oe[l]=Ke,Oe||(Oe=Xi),Ke.value!==Tn&&Oe.value===Ke.value){if(!function Ht(d,a){const l=Object.keys(d),v=Object.keys(a);if(l.length!=v.length)return!1;for(let k=0;k{Dt(a,Mn),Zt(a,$n)})}return}const Xt=Ge(this._engine.playersByElement,a,[]);Xt.forEach(rn=>{rn.namespaceId==this.id&&rn.triggerName==l&&rn.queued&&rn.destroy()});let ln=G.matchTransition(Oe.value,Ke.value,a,Ke.params),Ut=!1;if(!ln){if(!k)return;ln=G.fallbackTransition,Ut=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:l,transition:ln,fromState:Oe,toState:Ke,player:ie,isFallbackTransition:Ut}),Ut||(nt(a,wi),ie.onStart(()=>{ht(a,wi)})),ie.onDone(()=>{let rn=this.players.indexOf(ie);rn>=0&&this.players.splice(rn,1);const Mn=this._engine.playersByElement.get(a);if(Mn){let $n=Mn.indexOf(ie);$n>=0&&Mn.splice($n,1)}}),this.players.push(ie),Xt.push(ie),ie}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((l,v)=>{delete l[a]}),this._elementListeners.forEach((l,v)=>{this._elementListeners.set(v,l.filter(k=>k.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const l=this._engine.playersByElement.get(a);l&&(l.forEach(v=>v.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,l){const v=this._engine.driver.query(a,dt,!0);v.forEach(k=>{if(k[ni])return;const G=this._engine.fetchNamespacesByElement(k);G.size?G.forEach(ie=>ie.triggerLeaveAnimation(k,l,!1,!0)):this.clearElementCache(k)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(k=>this.clearElementCache(k)))}triggerLeaveAnimation(a,l,v,k){const G=this._engine.statesByElement.get(a),ie=new Map;if(G){const oe=[];if(Object.keys(G).forEach(Oe=>{if(ie.set(Oe,G[Oe].value),this._triggers[Oe]){const Ke=this.trigger(a,Oe,Tn,k);Ke&&oe.push(Ke)}}),oe.length)return this._engine.markElementAsRemoved(this.id,a,!0,l,ie),v&&Xe(oe).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const l=this._elementListeners.get(a),v=this._engine.statesByElement.get(a);if(l&&v){const k=new Set;l.forEach(G=>{const ie=G.name;if(k.has(ie))return;k.add(ie);const Oe=this._triggers[ie].fallbackTransition,Ke=v[ie]||Xi,gt=new lr(Tn),It=new cr(this.id,ie,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:ie,transition:Oe,fromState:Ke,toState:gt,player:It,isFallbackTransition:!0})})}}removeNode(a,l){const v=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,l),this.triggerLeaveAnimation(a,l,!0))return;let k=!1;if(v.totalAnimations){const G=v.players.length?v.playersByQueriedElement.get(a):[];if(G&&G.length)k=!0;else{let ie=a;for(;ie=ie.parentNode;)if(v.statesByElement.get(ie)){k=!0;break}}}if(this.prepareLeaveAnimationListeners(a),k)v.markElementAsRemoved(this.id,a,!1,l);else{const G=a[ni];(!G||G===ar)&&(v.afterFlush(()=>this.clearElementCache(a)),v.destroyInnerAnimations(a),v._onRemovalComplete(a,l))}}insertNode(a,l){nt(a,this._hostClassName)}drainQueuedTransitions(a){const l=[];return this._queue.forEach(v=>{const k=v.player;if(k.destroyed)return;const G=v.element,ie=this._elementListeners.get(G);ie&&ie.forEach(oe=>{if(oe.name==v.triggerName){const Oe=He(G,v.triggerName,v.fromState.value,v.toState.value);Oe._data=a,J(v.player,oe.phase,Oe,oe.callback)}}),k.markedForDestroy?this._engine.afterFlush(()=>{k.destroy()}):l.push(v)}),this._queue=[],l.sort((v,k)=>{const G=v.transition.ast.depCount,ie=k.transition.ast.depCount;return 0==G||0==ie?G-ie:this._engine.driver.containsElement(v.element,k.element)?1:-1})}destroy(a){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let l=!1;return this._elementListeners.has(a)&&(l=!0),l=!!this._queue.find(v=>v.element===a)||l,l}}class Kn{constructor(a,l,v){this.bodyNode=a,this.driver=l,this._normalizer=v,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(k,G)=>{}}_onRemovalComplete(a,l){this.onRemovalComplete(a,l)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(l=>{l.players.forEach(v=>{v.queued&&a.push(v)})}),a}createNamespace(a,l){const v=new ii(a,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(v,l):(this.newHostElements.set(l,v),this.collectEnterElement(l)),this._namespaceLookup[a]=v}_balanceNamespaceList(a,l){const v=this._namespaceList,k=this.namespacesByHostElement,G=v.length-1;if(G>=0){let ie=!1;if(void 0!==this.driver.getParentElement){let oe=this.driver.getParentElement(l);for(;oe;){const Oe=k.get(oe);if(Oe){const Ke=v.indexOf(Oe);v.splice(Ke+1,0,a),ie=!0;break}oe=this.driver.getParentElement(oe)}}else for(let oe=G;oe>=0;oe--)if(this.driver.containsElement(v[oe].hostElement,l)){v.splice(oe+1,0,a),ie=!0;break}ie||v.unshift(a)}else v.push(a);return k.set(l,a),a}register(a,l){let v=this._namespaceLookup[a];return v||(v=this.createNamespace(a,l)),v}registerTrigger(a,l,v){let k=this._namespaceLookup[a];k&&k.register(l,v)&&this.totalAnimations++}destroy(a,l){if(!a)return;const v=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(v.hostElement),delete this._namespaceLookup[a];const k=this._namespaceList.indexOf(v);k>=0&&this._namespaceList.splice(k,1)}),this.afterFlushAnimationsDone(()=>v.destroy(l))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const l=new Set,v=this.statesByElement.get(a);if(v){const k=Object.keys(v);for(let G=0;G=0&&this.collectedLeaveElements.splice(ie,1)}if(a){const ie=this._fetchNamespace(a);ie&&ie.insertNode(l,v)}k&&this.collectEnterElement(l)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,l){l?this.disabledNodes.has(a)||(this.disabledNodes.add(a),nt(a,zi)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),ht(a,zi))}removeNode(a,l,v,k){if(N(l)){const G=a?this._fetchNamespace(a):null;if(G?G.removeNode(l,k):this.markElementAsRemoved(a,l,!1,k),v){const ie=this.namespacesByHostElement.get(l);ie&&ie.id!==a&&ie.removeNode(l,k)}}else this._onRemovalComplete(l,k)}markElementAsRemoved(a,l,v,k,G){this.collectedLeaveElements.push(l),l[ni]={namespaceId:a,setForRemoval:k,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:G}}listen(a,l,v,k,G){return N(l)?this._fetchNamespace(a).listen(l,v,k,G):()=>{}}_buildInstruction(a,l,v,k,G){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,v,k,a.fromState.options,a.toState.options,l,G)}destroyInnerAnimations(a){let l=this.driver.query(a,dt,!0);l.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(a,Le,!0),l.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(a){const l=this.playersByElement.get(a);l&&l.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(a){const l=this.playersByQueriedElement.get(a);l&&l.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Xe(this.players).onDone(()=>a());a()})}processLeaveNode(a){var l;const v=a[ni];if(v&&v.setForRemoval){if(a[ni]=ar,v.namespaceId){this.destroyInnerAnimations(a);const k=this._fetchNamespace(v.namespaceId);k&&k.clearElementCache(a)}this._onRemovalComplete(a,v.setForRemoval)}(null===(l=a.classList)||void 0===l?void 0:l.contains(zi))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(k=>{this.markElementAsDisabled(k,!1)})}flush(a=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,k)=>this._balanceNamespaceList(v,k)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;vv()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],l.length?Xe(l).onDone(()=>{v.forEach(k=>k())}):v.forEach(k=>k())}}reportError(a){throw function Pt(d){return new c.vHH(3402,Y)}()}_flushAnimations(a,l){const v=new ir,k=[],G=new Map,ie=[],oe=new Map,Oe=new Map,Ke=new Map,gt=new Set;this.disabledNodes.forEach(Tt=>{gt.add(Tt);const Ft=this.driver.query(Tt,".ng-animate-queued",!0);for(let Lt=0;Lt{const Lt=nn+rn++;Ut.set(Ft,Lt),Tt.forEach(pn=>nt(pn,Lt))});const Mn=[],$n=new Set,ci=new Set;for(let Tt=0;Tt$n.add(pn)):ci.add(Ft))}const Di=new Map,ri=$e(Xt,Array.from($n));ri.forEach((Tt,Ft)=>{const Lt=Yt+rn++;Di.set(Ft,Lt),Tt.forEach(pn=>nt(pn,Lt))}),a.push(()=>{ln.forEach((Tt,Ft)=>{const Lt=Ut.get(Ft);Tt.forEach(pn=>ht(pn,Lt))}),ri.forEach((Tt,Ft)=>{const Lt=Di.get(Ft);Tt.forEach(pn=>ht(pn,Lt))}),Mn.forEach(Tt=>{this.processLeaveNode(Tt)})});const Sr=[],Ui=[];for(let Tt=this._namespaceList.length-1;Tt>=0;Tt--)this._namespaceList[Tt].drainQueuedTransitions(l).forEach(Lt=>{const pn=Lt.player,Qn=Lt.element;if(Sr.push(pn),this.collectedEnterElements.length){const Jn=Qn[ni];if(Jn&&Jn.setForMove){if(Jn.previousTriggersValues&&Jn.previousTriggersValues.has(Lt.triggerName)){const $i=Jn.previousTriggersValues.get(Lt.triggerName),ur=this.statesByElement.get(Lt.element);ur&&ur[Lt.triggerName]&&(ur[Lt.triggerName].value=$i)}return void pn.destroy()}}const Hi=!It||!this.driver.containsElement(It,Qn),Li=Di.get(Qn),Cr=Ut.get(Qn),wn=this._buildInstruction(Lt,v,Cr,Li,Hi);if(wn.errors&&wn.errors.length)return void Ui.push(wn);if(Hi)return pn.onStart(()=>Dt(Qn,wn.fromStyles)),pn.onDestroy(()=>Zt(Qn,wn.toStyles)),void k.push(pn);if(Lt.isFallbackTransition)return pn.onStart(()=>Dt(Qn,wn.fromStyles)),pn.onDestroy(()=>Zt(Qn,wn.toStyles)),void k.push(pn);const Or=[];wn.timelines.forEach(Jn=>{Jn.stretchStartingKeyframe=!0,this.disabledNodes.has(Jn.element)||Or.push(Jn)}),wn.timelines=Or,v.append(Qn,wn.timelines),ie.push({instruction:wn,player:pn,element:Qn}),wn.queriedElements.forEach(Jn=>Ge(oe,Jn,[]).push(pn)),wn.preStyleProps.forEach((Jn,$i)=>{const ur=Object.keys(Jn);if(ur.length){let Vr=Oe.get($i);Vr||Oe.set($i,Vr=new Set),ur.forEach(wo=>Vr.add(wo))}}),wn.postStyleProps.forEach((Jn,$i)=>{const ur=Object.keys(Jn);let Vr=Ke.get($i);Vr||Ke.set($i,Vr=new Set),ur.forEach(wo=>Vr.add(wo))})});if(Ui.length){const Tt=[];Ui.forEach(Ft=>{Tt.push(function Vt(d,a){return new c.vHH(3505,Y)}())}),Sr.forEach(Ft=>Ft.destroy()),this.reportError(Tt)}const Ti=new Map,br=new Map;ie.forEach(Tt=>{const Ft=Tt.element;v.has(Ft)&&(br.set(Ft,Ft),this._beforeAnimationBuild(Tt.player.namespaceId,Tt.instruction,Ti))}),k.forEach(Tt=>{const Ft=Tt.element;this._getPreviousPlayers(Ft,!1,Tt.namespaceId,Tt.triggerName,null).forEach(pn=>{Ge(Ti,Ft,[]).push(pn),pn.destroy()})});const Un=Mn.filter(Tt=>Bn(Tt,Oe,Ke)),vi=new Map;ae(vi,this.driver,ci,Ke,g.l3).forEach(Tt=>{Bn(Tt,Oe,Ke)&&Un.push(Tt)});const eo=new Map;ln.forEach((Tt,Ft)=>{ae(eo,this.driver,new Set(Tt),Oe,g.k1)}),Un.forEach(Tt=>{const Ft=vi.get(Tt),Lt=eo.get(Tt);vi.set(Tt,Object.assign(Object.assign({},Ft),Lt))});const oi=[],Mo=[],ho={};ie.forEach(Tt=>{const{element:Ft,player:Lt,instruction:pn}=Tt;if(v.has(Ft)){if(gt.has(Ft))return Lt.onDestroy(()=>Zt(Ft,pn.toStyles)),Lt.disabled=!0,Lt.overrideTotalTime(pn.totalTime),void k.push(Lt);let Qn=ho;if(br.size>1){let Li=Ft;const Cr=[];for(;Li=Li.parentNode;){const wn=br.get(Li);if(wn){Qn=wn;break}Cr.push(Li)}Cr.forEach(wn=>br.set(wn,Qn))}const Hi=this._buildAnimation(Lt.namespaceId,pn,Ti,G,eo,vi);if(Lt.setRealPlayer(Hi),Qn===ho)oi.push(Lt);else{const Li=this.playersByElement.get(Qn);Li&&Li.length&&(Lt.parentPlayer=Xe(Li)),k.push(Lt)}}else Dt(Ft,pn.fromStyles),Lt.onDestroy(()=>Zt(Ft,pn.toStyles)),Mo.push(Lt),gt.has(Ft)&&k.push(Lt)}),Mo.forEach(Tt=>{const Ft=G.get(Tt.element);if(Ft&&Ft.length){const Lt=Xe(Ft);Tt.setRealPlayer(Lt)}}),k.forEach(Tt=>{Tt.parentPlayer?Tt.syncPlayerEvents(Tt.parentPlayer):Tt.destroy()});for(let Tt=0;Tt!Hi.destroyed);Qn.length?_n(this,Ft,Qn):this.processLeaveNode(Ft)}return Mn.length=0,oi.forEach(Tt=>{this.players.push(Tt),Tt.onDone(()=>{Tt.destroy();const Ft=this.players.indexOf(Tt);this.players.splice(Ft,1)}),Tt.play()}),oi}elementContainsData(a,l){let v=!1;const k=l[ni];return k&&k.setForRemoval&&(v=!0),this.playersByElement.has(l)&&(v=!0),this.playersByQueriedElement.has(l)&&(v=!0),this.statesByElement.has(l)&&(v=!0),this._fetchNamespace(a).elementContainsData(l)||v}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,l,v,k,G){let ie=[];if(l){const oe=this.playersByQueriedElement.get(a);oe&&(ie=oe)}else{const oe=this.playersByElement.get(a);if(oe){const Oe=!G||G==Tn;oe.forEach(Ke=>{Ke.queued||!Oe&&Ke.triggerName!=k||ie.push(Ke)})}}return(v||k)&&(ie=ie.filter(oe=>!(v&&v!=oe.namespaceId||k&&k!=oe.triggerName))),ie}_beforeAnimationBuild(a,l,v){const G=l.element,ie=l.isRemovalTransition?void 0:a,oe=l.isRemovalTransition?void 0:l.triggerName;for(const Oe of l.timelines){const Ke=Oe.element,gt=Ke!==G,It=Ge(v,Ke,[]);this._getPreviousPlayers(Ke,gt,ie,oe,l.toState).forEach(ln=>{const Ut=ln.getRealPlayer();Ut.beforeDestroy&&Ut.beforeDestroy(),ln.destroy(),It.push(ln)})}Dt(G,l.fromStyles)}_buildAnimation(a,l,v,k,G,ie){const oe=l.triggerName,Oe=l.element,Ke=[],gt=new Set,It=new Set,Xt=l.timelines.map(Ut=>{const rn=Ut.element;gt.add(rn);const Mn=rn[ni];if(Mn&&Mn.removedBeforeQueried)return new g.ZN(Ut.duration,Ut.delay);const $n=rn!==Oe,ci=function vn(d){const a=[];return fn(d,a),a}((v.get(rn)||Pi).map(Ti=>Ti.getRealPlayer())).filter(Ti=>!!Ti.element&&Ti.element===rn),Di=G.get(rn),ri=ie.get(rn),Sr=je(0,this._normalizer,0,Ut.keyframes,Di,ri),Ui=this._buildPlayer(Ut,Sr,ci);if(Ut.subTimeline&&k&&It.add(rn),$n){const Ti=new cr(a,oe,rn);Ti.setRealPlayer(Ui),Ke.push(Ti)}return Ui});Ke.forEach(Ut=>{Ge(this.playersByQueriedElement,Ut.element,[]).push(Ut),Ut.onDone(()=>function xr(d,a,l){let v;if(d instanceof Map){if(v=d.get(a),v){if(v.length){const k=v.indexOf(l);v.splice(k,1)}0==v.length&&d.delete(a)}}else if(v=d[a],v){if(v.length){const k=v.indexOf(l);v.splice(k,1)}0==v.length&&delete d[a]}return v}(this.playersByQueriedElement,Ut.element,Ut))}),gt.forEach(Ut=>nt(Ut,vt));const ln=Xe(Xt);return ln.onDestroy(()=>{gt.forEach(Ut=>ht(Ut,vt)),Zt(Oe,l.toStyles)}),It.forEach(Ut=>{Ge(k,Ut,[]).push(ln)}),ln}_buildPlayer(a,l,v){return l.length>0?this.driver.animate(a.element,l,a.duration,a.delay,a.easing,v):new g.ZN(a.duration,a.delay)}}class cr{constructor(a,l,v){this.namespaceId=a,this.triggerName=l,this.element=v,this._player=new g.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(v=>J(a,l,void 0,v))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const l=this._player;l.triggerCallback&&a.onStart(()=>l.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,l){Ge(this._queuedCallbacks,a,[]).push(l)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const l=this._player;l.triggerCallback&&l.triggerCallback(a)}}function N(d){return d&&1===d.nodeType}function H(d,a){const l=d.style.display;return d.style.display=null!=a?a:"none",l}function ae(d,a,l,v,k){const G=[];l.forEach(Oe=>G.push(H(Oe)));const ie=[];v.forEach((Oe,Ke)=>{const gt={};Oe.forEach(It=>{const Xt=gt[It]=a.computeStyle(Ke,It,k);(!Xt||0==Xt.length)&&(Ke[ni]=Br,ie.push(Ke))}),d.set(Ke,gt)});let oe=0;return l.forEach(Oe=>H(Oe,G[oe++])),ie}function $e(d,a){const l=new Map;if(d.forEach(oe=>l.set(oe,[])),0==a.length)return l;const k=new Set(a),G=new Map;function ie(oe){if(!oe)return 1;let Oe=G.get(oe);if(Oe)return Oe;const Ke=oe.parentNode;return Oe=l.has(Ke)?Ke:k.has(Ke)?1:ie(Ke),G.set(oe,Oe),Oe}return a.forEach(oe=>{const Oe=ie(oe);1!==Oe&&l.get(Oe).push(oe)}),l}function nt(d,a){var l;null===(l=d.classList)||void 0===l||l.add(a)}function ht(d,a){var l;null===(l=d.classList)||void 0===l||l.remove(a)}function _n(d,a,l){Xe(l).onDone(()=>d.processLeaveNode(a))}function fn(d,a){for(let l=0;lk.add(G)):a.set(d,v),l.delete(d),!0}class yn{constructor(a,l,v){this.bodyNode=a,this._driver=l,this._normalizer=v,this._triggerCache={},this.onRemovalComplete=(k,G)=>{},this._transitionEngine=new Kn(a,l,v),this._timelineEngine=new qr(a,l,v),this._transitionEngine.onRemovalComplete=(k,G)=>this.onRemovalComplete(k,G)}registerTrigger(a,l,v,k,G){const ie=a+"-"+k;let oe=this._triggerCache[ie];if(!oe){const Oe=[],gt=Yn(this._driver,G,Oe,[]);if(Oe.length)throw function xe(d,a){return new c.vHH(3404,Y)}();oe=function Lr(d,a,l){return new Qi(d,a,l)}(k,gt,this._normalizer),this._triggerCache[ie]=oe}this._transitionEngine.registerTrigger(l,k,oe)}register(a,l){this._transitionEngine.register(a,l)}destroy(a,l){this._transitionEngine.destroy(a,l)}onInsert(a,l,v,k){this._transitionEngine.insertNode(a,l,v,k)}onRemove(a,l,v,k){this._transitionEngine.removeNode(a,l,k||!1,v)}disableAnimations(a,l){this._transitionEngine.markElementAsDisabled(a,l)}process(a,l,v,k){if("@"==v.charAt(0)){const[G,ie]=lt(v);this._timelineEngine.command(G,l,ie,k)}else this._transitionEngine.trigger(a,l,v,k)}listen(a,l,v,k,G){if("@"==v.charAt(0)){const[ie,oe]=lt(v);return this._timelineEngine.listen(ie,l,oe,G)}return this._transitionEngine.listen(a,l,v,k,G)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Vn=(()=>{class d{constructor(l,v,k){this._element=l,this._startStyles=v,this._endStyles=k,this._state=0;let G=d.initialStylesByElement.get(l);G||d.initialStylesByElement.set(l,G={}),this._initialStyles=G}start(){this._state<1&&(this._startStyles&&Zt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Zt(this._element,this._initialStyles),this._endStyles&&(Zt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(d.initialStylesByElement.delete(this._element),this._startStyles&&(Dt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Dt(this._element,this._endStyles),this._endStyles=null),Zt(this._element,this._initialStyles),this._state=3)}}return d.initialStylesByElement=new WeakMap,d})();function Ai(d){let a=null;const l=Object.keys(d);for(let v=0;va()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,l,v){return a.animate(l,v)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const l=this._finalKeyframe;Object.keys(l).forEach(v=>{"offset"!=v&&(a[v]=this._finished?l[v]:jn(this.element,v))})}this.currentSnapshot=a}triggerCallback(a){const l="start"==a?this._onStartFns:this._onDoneFns;l.forEach(v=>v()),l.length=0}}class ki{validateStyleProperty(a){return D(a)}matchesElement(a,l){return!1}containsElement(a,l){return L(a,l)}getParentElement(a){return Nt(a)}query(a,l,v){return re(a,l,v)}computeStyle(a,l,v){return window.getComputedStyle(a)[l]}animate(a,l,v,k,G,ie=[]){const Oe={duration:v,delay:k,fill:0==k?"both":"forwards"};G&&(Oe.easing=G);const Ke={},gt=ie.filter(Xt=>Xt instanceof Ri);(function en(d,a){return 0===d||0===a})(v,k)&>.forEach(Xt=>{let ln=Xt.currentSnapshot;Object.keys(ln).forEach(Ut=>Ke[Ut]=ln[Ut])}),l=function kn(d,a,l){const v=Object.keys(l);if(v.length&&a.length){let G=a[0],ie=[];if(v.forEach(oe=>{G.hasOwnProperty(oe)||ie.push(oe),G[oe]=l[oe]}),ie.length)for(var k=1;kst(Xt,!1)),Ke);const It=function On(d,a){let l=null,v=null;return Array.isArray(a)&&a.length?(l=Ai(a[0]),a.length>1&&(v=Ai(a[a.length-1]))):a&&(l=Ai(a)),l||v?new Vn(d,l,v):null}(a,l);return new Ri(a,l,Oe,It)}}var x=C(9808);let M=(()=>{class d extends g._j{constructor(l,v){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(v.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(l){const v=this._nextAnimationId.toString();this._nextAnimationId++;const k=Array.isArray(l)?(0,g.vP)(l):l;return Ye(this._renderer,null,v,"register",[k]),new y(v,this._renderer)}}return d.\u0275fac=function(l){return new(l||d)(c.LFG(c.FYo),c.LFG(x.K0))},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})();class y extends g.LC{constructor(a,l){super(),this._id=a,this._renderer=l}create(a,l){return new U(this._id,a,l||{},this._renderer)}}class U{constructor(a,l,v,k){this.id=a,this.element=l,this._renderer=k,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",v)}_listen(a,l){return this._renderer.listen(this.element,`@@${this.id}:${a}`,l)}_command(a,...l){return Ye(this._renderer,this.element,this.id,a,l)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,l;return null!==(l=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==l?l:0}}function Ye(d,a,l,v,k){return d.setProperty(a,`@@${l}:${v}`,k)}const Dn="@.disabled";let _i=(()=>{class d{constructor(l,v,k){this.delegate=l,this.engine=v,this._zone=k,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),v.onRemovalComplete=(G,ie)=>{const oe=null==ie?void 0:ie.parentNode(G);oe&&ie.removeChild(oe,G)}}createRenderer(l,v){const G=this.delegate.createRenderer(l,v);if(!(l&&v&&v.data&&v.data.animation)){let gt=this._rendererCache.get(G);return gt||(gt=new Gi("",G,this.engine),this._rendererCache.set(G,gt)),gt}const ie=v.id,oe=v.id+"-"+this._currentId;this._currentId++,this.engine.register(oe,l);const Oe=gt=>{Array.isArray(gt)?gt.forEach(Oe):this.engine.registerTrigger(ie,oe,l,gt.name,gt)};return v.data.animation.forEach(Oe),new Fi(this,oe,G,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,v,k){l>=0&&lv(k)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(G=>{const[ie,oe]=G;ie(oe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([v,k]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return d.\u0275fac=function(l){return new(l||d)(c.LFG(c.FYo),c.LFG(yn),c.LFG(c.R0b))},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})();class Gi{constructor(a,l,v){this.namespaceId=a,this.delegate=l,this.engine=v,this.destroyNode=this.delegate.destroyNode?k=>l.destroyNode(k):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,l){return this.delegate.createElement(a,l)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,l){this.delegate.appendChild(a,l),this.engine.onInsert(this.namespaceId,l,a,!1)}insertBefore(a,l,v,k=!0){this.delegate.insertBefore(a,l,v),this.engine.onInsert(this.namespaceId,l,a,k)}removeChild(a,l,v){this.engine.onRemove(this.namespaceId,l,this.delegate,v)}selectRootElement(a,l){return this.delegate.selectRootElement(a,l)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,l,v,k){this.delegate.setAttribute(a,l,v,k)}removeAttribute(a,l,v){this.delegate.removeAttribute(a,l,v)}addClass(a,l){this.delegate.addClass(a,l)}removeClass(a,l){this.delegate.removeClass(a,l)}setStyle(a,l,v,k){this.delegate.setStyle(a,l,v,k)}removeStyle(a,l,v){this.delegate.removeStyle(a,l,v)}setProperty(a,l,v){"@"==l.charAt(0)&&l==Dn?this.disableAnimations(a,!!v):this.delegate.setProperty(a,l,v)}setValue(a,l){this.delegate.setValue(a,l)}listen(a,l,v){return this.delegate.listen(a,l,v)}disableAnimations(a,l){this.engine.disableAnimations(a,l)}}class Fi extends Gi{constructor(a,l,v,k){super(l,v,k),this.factory=a,this.namespaceId=l}setProperty(a,l,v){"@"==l.charAt(0)?"."==l.charAt(1)&&l==Dn?this.disableAnimations(a,v=void 0===v||!!v):this.engine.process(this.namespaceId,a,l.substr(1),v):this.delegate.setProperty(a,l,v)}listen(a,l,v){if("@"==l.charAt(0)){const k=function ot(d){switch(d){case"body":return document.body;case"document":return document;case"window":return window;default:return d}}(a);let G=l.substr(1),ie="";return"@"!=G.charAt(0)&&([G,ie]=function sn(d){const a=d.indexOf(".");return[d.substring(0,a),d.substr(a+1)]}(G)),this.engine.listen(this.namespaceId,k,G,ie,oe=>{this.factory.scheduleListenerCallback(oe._data||-1,v,oe)})}return this.delegate.listen(a,l,v)}}let Jr=(()=>{class d extends yn{constructor(l,v,k){super(l.body,v,k)}ngOnDestroy(){this.flush()}}return d.\u0275fac=function(l){return new(l||d)(c.LFG(x.K0),c.LFG(ze),c.LFG(pr))},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})();const yr=new c.OlP("AnimationModuleType"),Vi=[{provide:g._j,useClass:M},{provide:pr,useFactory:function qn(){return new mr}},{provide:yn,useClass:Jr},{provide:c.FYo,useFactory:function bo(d,a,l){return new _i(d,a,l)},deps:[o.se,yn,c.R0b]}],Xr=[{provide:ze,useFactory:()=>new ki},{provide:yr,useValue:"BrowserAnimations"},...Vi],R=[{provide:ze,useClass:Ue},{provide:yr,useValue:"NoopAnimations"},...Vi];let Ce=(()=>{class d{static withConfig(l){return{ngModule:d,providers:l.disableAnimations?R:Xr}}}return d.\u0275fac=function(l){return new(l||d)},d.\u0275mod=c.oAB({type:d}),d.\u0275inj=c.cJS({providers:Xr,imports:[o.b2]}),d})()},2313:(We,ye,C)=>{C.d(ye,{b2:()=>St,H7:()=>Kt,q6:()=>Ge,se:()=>tt});var c=C(9808),o=C(4893);class g extends c.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Y extends g{static makeCurrent(){(0,c.HT)(new Y)}onAndCancel(_e,ne,Ie){return _e.addEventListener(ne,Ie,!1),()=>{_e.removeEventListener(ne,Ie,!1)}}dispatchEvent(_e,ne){_e.dispatchEvent(ne)}remove(_e){_e.parentNode&&_e.parentNode.removeChild(_e)}createElement(_e,ne){return(ne=ne||this.getDefaultDocument()).createElement(_e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(_e){return _e.nodeType===Node.ELEMENT_NODE}isShadowRoot(_e){return _e instanceof DocumentFragment}getGlobalEventTarget(_e,ne){return"window"===ne?window:"document"===ne?_e:"body"===ne?_e.body:null}getBaseHref(_e){const ne=function q(){return ce=ce||document.querySelector("base"),ce?ce.getAttribute("href"):null}();return null==ne?null:function Ee(Ve){De=De||document.createElement("a"),De.setAttribute("href",Ve);const _e=De.pathname;return"/"===_e.charAt(0)?_e:`/${_e}`}(ne)}resetBaseElement(){ce=null}getUserAgent(){return window.navigator.userAgent}getCookie(_e){return(0,c.Mx)(document.cookie,_e)}}let De,ce=null;const ue=new o.OlP("TRANSITION_ID"),se=[{provide:o.ip1,useFactory:function te(Ve,_e,ne){return()=>{ne.get(o.CZH).donePromise.then(()=>{const Ie=(0,c.q)(),rt=_e.querySelectorAll(`style[ng-transition="${Ve}"]`);for(let kt=0;kt{const kt=_e.findTestabilityInTree(Ie,rt);if(null==kt)throw new Error("Could not find testability for element.");return kt},o.dqk.getAllAngularTestabilities=()=>_e.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>_e.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(Ie=>{const rt=o.dqk.getAllAngularTestabilities();let kt=rt.length,$t=!1;const Cn=function(en){$t=$t||en,kt--,0==kt&&Ie($t)};rt.forEach(function(en){en.whenStable(Cn)})})}findTestabilityInTree(_e,ne,Ie){if(null==ne)return null;const rt=_e.getTestability(ne);return null!=rt?rt:Ie?(0,c.q)().isShadowRoot(ne)?this.findTestabilityInTree(_e,ne.host,!0):this.findTestabilityInTree(_e,ne.parentElement,!0):null}}let X=(()=>{class Ve{build(){return new XMLHttpRequest}}return Ve.\u0275fac=function(ne){return new(ne||Ve)},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const le=new o.OlP("EventManagerPlugins");let ke=(()=>{class Ve{constructor(ne,Ie){this._zone=Ie,this._eventNameToPlugin=new Map,ne.forEach(rt=>rt.manager=this),this._plugins=ne.slice().reverse()}addEventListener(ne,Ie,rt){return this._findPluginFor(Ie).addEventListener(ne,Ie,rt)}addGlobalEventListener(ne,Ie,rt){return this._findPluginFor(Ie).addGlobalEventListener(ne,Ie,rt)}getZone(){return this._zone}_findPluginFor(ne){const Ie=this._eventNameToPlugin.get(ne);if(Ie)return Ie;const rt=this._plugins;for(let kt=0;kt{class Ve{constructor(){this._stylesSet=new Set}addStyles(ne){const Ie=new Set;ne.forEach(rt=>{this._stylesSet.has(rt)||(this._stylesSet.add(rt),Ie.add(rt))}),this.onStylesAdded(Ie)}onStylesAdded(ne){}getAllStyles(){return Array.from(this._stylesSet)}}return Ve.\u0275fac=function(ne){return new(ne||Ve)},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})(),et=(()=>{class Ve extends K{constructor(ne){super(),this._doc=ne,this._hostNodes=new Map,this._hostNodes.set(ne.head,[])}_addStylesToHost(ne,Ie,rt){ne.forEach(kt=>{const $t=this._doc.createElement("style");$t.textContent=kt,rt.push(Ie.appendChild($t))})}addHost(ne){const Ie=[];this._addStylesToHost(this._stylesSet,ne,Ie),this._hostNodes.set(ne,Ie)}removeHost(ne){const Ie=this._hostNodes.get(ne);Ie&&Ie.forEach(Ze),this._hostNodes.delete(ne)}onStylesAdded(ne){this._hostNodes.forEach((Ie,rt)=>{this._addStylesToHost(ne,rt,Ie)})}ngOnDestroy(){this._hostNodes.forEach(ne=>ne.forEach(Ze))}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();function Ze(Ve){(0,c.q)().remove(Ve)}const Qe={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/",math:"http://www.w3.org/1998/MathML/"},me=/%COMP%/g,Q="%COMP%",pe=`_nghost-${Q}`,Te=`_ngcontent-${Q}`;function Me(Ve,_e,ne){for(let Ie=0;Ie<_e.length;Ie++){let rt=_e[Ie];Array.isArray(rt)?Me(Ve,rt,ne):(rt=rt.replace(me,Ve),ne.push(rt))}return ne}function xe(Ve){return _e=>{if("__ngUnwrap__"===_e)return Ve;!1===Ve(_e)&&(_e.preventDefault(),_e.returnValue=!1)}}let tt=(()=>{class Ve{constructor(ne,Ie,rt){this.eventManager=ne,this.sharedStylesHost=Ie,this.appId=rt,this.rendererByCompId=new Map,this.defaultRenderer=new Fe(ne)}createRenderer(ne,Ie){if(!ne||!Ie)return this.defaultRenderer;switch(Ie.encapsulation){case o.ifc.Emulated:{let rt=this.rendererByCompId.get(Ie.id);return rt||(rt=new Jt(this.eventManager,this.sharedStylesHost,Ie,this.appId),this.rendererByCompId.set(Ie.id,rt)),rt.applyToHost(ne),rt}case 1:case o.ifc.ShadowDom:return new yt(this.eventManager,this.sharedStylesHost,ne,Ie);default:if(!this.rendererByCompId.has(Ie.id)){const rt=Me(Ie.id,Ie.styles,[]);this.sharedStylesHost.addStyles(rt),this.rendererByCompId.set(Ie.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(ke),o.LFG(et),o.LFG(o.AFp))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();class Fe{constructor(_e){this.eventManager=_e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(_e,ne){return ne?document.createElementNS(Qe[ne]||ne,_e):document.createElement(_e)}createComment(_e){return document.createComment(_e)}createText(_e){return document.createTextNode(_e)}appendChild(_e,ne){_e.appendChild(ne)}insertBefore(_e,ne,Ie){_e&&_e.insertBefore(ne,Ie)}removeChild(_e,ne){_e&&_e.removeChild(ne)}selectRootElement(_e,ne){let Ie="string"==typeof _e?document.querySelector(_e):_e;if(!Ie)throw new Error(`The selector "${_e}" did not match any elements`);return ne||(Ie.textContent=""),Ie}parentNode(_e){return _e.parentNode}nextSibling(_e){return _e.nextSibling}setAttribute(_e,ne,Ie,rt){if(rt){ne=rt+":"+ne;const kt=Qe[rt];kt?_e.setAttributeNS(kt,ne,Ie):_e.setAttribute(ne,Ie)}else _e.setAttribute(ne,Ie)}removeAttribute(_e,ne,Ie){if(Ie){const rt=Qe[Ie];rt?_e.removeAttributeNS(rt,ne):_e.removeAttribute(`${Ie}:${ne}`)}else _e.removeAttribute(ne)}addClass(_e,ne){_e.classList.add(ne)}removeClass(_e,ne){_e.classList.remove(ne)}setStyle(_e,ne,Ie,rt){rt&(o.JOm.DashCase|o.JOm.Important)?_e.style.setProperty(ne,Ie,rt&o.JOm.Important?"important":""):_e.style[ne]=Ie}removeStyle(_e,ne,Ie){Ie&o.JOm.DashCase?_e.style.removeProperty(ne):_e.style[ne]=""}setProperty(_e,ne,Ie){_e[ne]=Ie}setValue(_e,ne){_e.nodeValue=ne}listen(_e,ne,Ie){return"string"==typeof _e?this.eventManager.addGlobalEventListener(_e,ne,xe(Ie)):this.eventManager.addEventListener(_e,ne,xe(Ie))}}class Jt extends Fe{constructor(_e,ne,Ie,rt){super(_e),this.component=Ie;const kt=Me(rt+"-"+Ie.id,Ie.styles,[]);ne.addStyles(kt),this.contentAttr=function Ne(Ve){return Te.replace(me,Ve)}(rt+"-"+Ie.id),this.hostAttr=function ve(Ve){return pe.replace(me,Ve)}(rt+"-"+Ie.id)}applyToHost(_e){super.setAttribute(_e,this.hostAttr,"")}createElement(_e,ne){const Ie=super.createElement(_e,ne);return super.setAttribute(Ie,this.contentAttr,""),Ie}}class yt extends Fe{constructor(_e,ne,Ie,rt){super(_e),this.sharedStylesHost=ne,this.hostEl=Ie,this.shadowRoot=Ie.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const kt=Me(rt.id,rt.styles,[]);for(let $t=0;$t{class Ve extends Be{constructor(ne){super(ne)}supports(ne){return!0}addEventListener(ne,Ie,rt){return ne.addEventListener(Ie,rt,!1),()=>this.removeEventListener(ne,Ie,rt)}removeEventListener(ne,Ie,rt){return ne.removeEventListener(Ie,rt)}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const Wt=["alt","control","meta","shift"],dn={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Vt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},xt={alt:Ve=>Ve.altKey,control:Ve=>Ve.ctrlKey,meta:Ve=>Ve.metaKey,shift:Ve=>Ve.shiftKey};let on=(()=>{class Ve extends Be{constructor(ne){super(ne)}supports(ne){return null!=Ve.parseEventName(ne)}addEventListener(ne,Ie,rt){const kt=Ve.parseEventName(Ie),$t=Ve.eventCallback(kt.fullKey,rt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.q)().onAndCancel(ne,kt.domEventName,$t))}static parseEventName(ne){const Ie=ne.toLowerCase().split("."),rt=Ie.shift();if(0===Ie.length||"keydown"!==rt&&"keyup"!==rt)return null;const kt=Ve._normalizeKey(Ie.pop());let $t="";if(Wt.forEach(en=>{const kn=Ie.indexOf(en);kn>-1&&(Ie.splice(kn,1),$t+=en+".")}),$t+=kt,0!=Ie.length||0===kt.length)return null;const Cn={};return Cn.domEventName=rt,Cn.fullKey=$t,Cn}static getEventFullKey(ne){let Ie="",rt=function Xe(Ve){let _e=Ve.key;if(null==_e){if(_e=Ve.keyIdentifier,null==_e)return"Unidentified";_e.startsWith("U+")&&(_e=String.fromCharCode(parseInt(_e.substring(2),16)),3===Ve.location&&Vt.hasOwnProperty(_e)&&(_e=Vt[_e]))}return dn[_e]||_e}(ne);return rt=rt.toLowerCase()," "===rt?rt="space":"."===rt&&(rt="dot"),Wt.forEach(kt=>{kt!=rt&&xt[kt](ne)&&(Ie+=kt+".")}),Ie+=rt,Ie}static eventCallback(ne,Ie,rt){return kt=>{Ve.getEventFullKey(kt)===ne&&rt.runGuarded(()=>Ie(kt))}}static _normalizeKey(ne){return"esc"===ne?"escape":ne}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const Ge=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:c.bD},{provide:o.g9A,useValue:function je(){Y.makeCurrent(),de.init()},multi:!0},{provide:c.K0,useFactory:function Z(){return(0,o.RDi)(document),document},deps:[]}]),lt=[{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function J(){return new o.qLn},deps:[]},{provide:le,useClass:Rt,multi:!0,deps:[c.K0,o.R0b,o.Lbi]},{provide:le,useClass:on,multi:!0,deps:[c.K0]},{provide:tt,useClass:tt,deps:[ke,et,o.AFp]},{provide:o.FYo,useExisting:tt},{provide:K,useExisting:et},{provide:et,useClass:et,deps:[c.K0]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b]},{provide:ke,useClass:ke,deps:[le,o.R0b]},{provide:c.JF,useClass:X,deps:[]}];let St=(()=>{class Ve{constructor(ne){if(ne)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.")}static withServerTransition(ne){return{ngModule:Ve,providers:[{provide:o.AFp,useValue:ne.appId},{provide:ue,useExisting:o.AFp},se]}}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(Ve,12))},Ve.\u0275mod=o.oAB({type:Ve}),Ve.\u0275inj=o.cJS({providers:lt,imports:[c.ez,o.hGG]}),Ve})();"undefined"!=typeof window&&window;let Kt=(()=>{class Ve{}return Ve.\u0275fac=function(ne){return new(ne||Ve)},Ve.\u0275prov=o.Yz7({token:Ve,factory:function(ne){let Ie=null;return Ie=ne?new(ne||Ve):o.LFG(Dt),Ie},providedIn:"root"}),Ve})(),Dt=(()=>{class Ve extends Kt{constructor(ne){super(),this._doc=ne}sanitize(ne,Ie){if(null==Ie)return null;switch(ne){case o.q3G.NONE:return Ie;case o.q3G.HTML:return(0,o.qzn)(Ie,"HTML")?(0,o.z3N)(Ie):(0,o.EiD)(this._doc,String(Ie)).toString();case o.q3G.STYLE:return(0,o.qzn)(Ie,"Style")?(0,o.z3N)(Ie):Ie;case o.q3G.SCRIPT:if((0,o.qzn)(Ie,"Script"))return(0,o.z3N)(Ie);throw new Error("unsafe value used in a script context");case o.q3G.URL:return(0,o.yhl)(Ie),(0,o.qzn)(Ie,"URL")?(0,o.z3N)(Ie):(0,o.mCW)(String(Ie));case o.q3G.RESOURCE_URL:if((0,o.qzn)(Ie,"ResourceURL"))return(0,o.z3N)(Ie);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ne} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ne){return(0,o.JVY)(ne)}bypassSecurityTrustStyle(ne){return(0,o.L6k)(ne)}bypassSecurityTrustScript(ne){return(0,o.eBb)(ne)}bypassSecurityTrustUrl(ne){return(0,o.LAX)(ne)}bypassSecurityTrustResourceUrl(ne){return(0,o.pB0)(ne)}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:function(ne){let Ie=null;return Ie=ne?new ne:function Zt(Ve){return new Dt(Ve.get(c.K0))}(o.LFG(o.zs3)),Ie},providedIn:"root"}),Ve})()},9525:(We,ye,C)=>{C.d(ye,{gz:()=>Xn,F0:()=>oi,rH:()=>Tt,yS:()=>Ft,Bz:()=>wo,lC:()=>ar});var c=C(4893),o=C(8306),g=C(576);function Y(_,f){const h=(0,g.m)(_)?_:()=>_,w=O=>O.error(h());return new o.y(f?O=>f.schedule(w,0,O):w)}const q=(0,C(3888).d)(_=>function(){_(this),this.name="EmptyError",this.message="no elements in sequence"});var De=C(727),Ee=C(4482),ue=C(5403);function te(){return(0,Ee.e)((_,f)=>{let h=null;_._refCount++;const w=(0,ue.x)(f,void 0,void 0,void 0,()=>{if(!_||_._refCount<=0||0<--_._refCount)return void(h=null);const O=_._connection,B=h;h=null,O&&(!B||O===B)&&O.unsubscribe(),f.unsubscribe()});_.subscribe(w),w.closed||(h=_.connect())})}class se extends o.y{constructor(f,h){super(),this.source=f,this.subjectFactory=h,this._subject=null,this._refCount=0,this._connection=null,(0,Ee.A)(f)&&(this.lift=f.lift)}_subscribe(f){return this.getSubject().subscribe(f)}getSubject(){const f=this._subject;return(!f||f.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:f}=this;this._subject=this._connection=null,null==f||f.unsubscribe()}connect(){let f=this._connection;if(!f){f=this._connection=new De.w0;const h=this.getSubject();f.add(this.source.subscribe((0,ue.x)(h,void 0,()=>{this._teardown(),h.complete()},w=>{this._teardown(),h.error(w)},()=>this._teardown()))),f.closed&&(this._connection=null,f=De.w0.EMPTY)}return f}refCount(){return te()(this)}}var de=C(2076),X=C(9646),le=C(1135),ke=C(9841),Be=C(7272),K=C(9770),et=C(515),Ze=C(7579);function Qe(_,f,h,w,O){return(B,ee)=>{let ge=h,qe=f,Mt=0;B.subscribe((0,ue.x)(ee,cn=>{const Bt=Mt++;qe=ge?_(qe,cn,Bt):(ge=!0,cn),w&&ee.next(qe)},O&&(()=>{ge&&ee.next(qe),ee.complete()})))}}function me(_,f){return(0,Ee.e)(Qe(_,f,arguments.length>=2,!0))}var z=C(8421);function Q(_){return(0,Ee.e)((f,h)=>{let B,w=null,O=!1;w=f.subscribe((0,ue.x)(h,void 0,void 0,ee=>{B=(0,z.Xf)(_(ee,Q(_)(f))),w?(w.unsubscribe(),w=null,B.subscribe(h)):O=!0})),O&&(w.unsubscribe(),w=null,B.subscribe(h))})}var pe=C(9300);function Te(_){return _<=0?()=>et.E:(0,Ee.e)((f,h)=>{let w=[];f.subscribe((0,ue.x)(h,O=>{w.push(O),_{for(const O of w)h.next(O);h.complete()},void 0,()=>{w=null}))})}function Ne(_=ve){return(0,Ee.e)((f,h)=>{let w=!1;f.subscribe((0,ue.x)(h,O=>{w=!0,h.next(O)},()=>w?h.complete():h.error(_())))})}function ve(){return new q}function Me(_){return(0,Ee.e)((f,h)=>{let w=!1;f.subscribe((0,ue.x)(h,O=>{w=!0,h.next(O)},()=>{w||h.next(_),h.complete()}))})}var xe=C(4671),tt=C(5698);function Fe(_,f){const h=arguments.length>=2;return w=>w.pipe(_?(0,pe.h)((O,B)=>_(O,B,w)):xe.y,(0,tt.q)(1),h?Me(f):Ne(()=>new q))}var mt=C(4004),Jt=C(3900),yt=C(8675),Rt=C(4351),Wt=C(5577),Pt=C(8505),dn=C(8189),Vt=C(9808);class xt{constructor(f,h){this.id=f,this.url=h}}class on extends xt{constructor(f,h,w="imperative",O=null){super(f,h),this.navigationTrigger=w,this.restoredState=O}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Xe extends xt{constructor(f,h,w){super(f,h),this.urlAfterRedirects=w}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class je extends xt{constructor(f,h,w){super(f,h),this.reason=w}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class J extends xt{constructor(f,h,w){super(f,h),this.error=w}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Z extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class He extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ge extends xt{constructor(f,h,w,O,B){super(f,h),this.urlAfterRedirects=w,this.state=O,this.shouldActivate=B}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class lt extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class St extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jt{constructor(f){this.route=f}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ct{constructor(f){this.route=f}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Nt{constructor(f){this.snapshot=f}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(f){this.snapshot=f}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pe{constructor(f){this.snapshot=f}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class E{constructor(f){this.snapshot=f}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S{constructor(f,h,w){this.routerEvent=f,this.position=h,this.anchor=w}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const D="primary";class P{constructor(f){this.params=f||{}}has(f){return Object.prototype.hasOwnProperty.call(this.params,f)}get(f){if(this.has(f)){const h=this.params[f];return Array.isArray(h)?h[0]:h}return null}getAll(f){if(this.has(f)){const h=this.params[f];return Array.isArray(h)?h:[h]}return[]}get keys(){return Object.keys(this.params)}}function L(_){return new P(_)}const re="ngNavigationCancelingError";function be(_){const f=Error("NavigationCancelingError: "+_);return f[re]=!0,f}function ze(_,f,h){const w=h.path.split("/");if(w.length>_.length||"full"===h.pathMatch&&(f.hasChildren()||w.length<_.length))return null;const O={};for(let B=0;Bw[B]===O)}return _===f}function nn(_){return Array.prototype.concat.apply([],_)}function Yt(_){return _.length>0?_[_.length-1]:null}function dt(_,f){for(const h in _)_.hasOwnProperty(h)&&f(_[h],h)}function vt(_){return(0,c.CqO)(_)?_:(0,c.QGY)(_)?(0,de.D)(Promise.resolve(_)):(0,X.of)(_)}const we={exact:function he(_,f,h){if(!_e(_.segments,f.segments)||!Kt(_.segments,f.segments,h)||_.numberOfChildren!==f.numberOfChildren)return!1;for(const w in f.children)if(!_.children[w]||!he(_.children[w],f.children[w],h))return!1;return!0},subset:st},V={exact:function $(_,f){return ct(_,f)},subset:function Se(_,f){return Object.keys(f).length<=Object.keys(_).length&&Object.keys(f).every(h=>Ot(_[h],f[h]))},ignored:()=>!0};function j(_,f,h){return we[h.paths](_.root,f.root,h.matrixParams)&&V[h.queryParams](_.queryParams,f.queryParams)&&!("exact"===h.fragment&&_.fragment!==f.fragment)}function st(_,f,h){return At(_,f,f.segments,h)}function At(_,f,h,w){if(_.segments.length>h.length){const O=_.segments.slice(0,h.length);return!(!_e(O,h)||f.hasChildren()||!Kt(O,h,w))}if(_.segments.length===h.length){if(!_e(_.segments,h)||!Kt(_.segments,h,w))return!1;for(const O in f.children)if(!_.children[O]||!st(_.children[O],f.children[O],w))return!1;return!0}{const O=h.slice(0,_.segments.length),B=h.slice(_.segments.length);return!!(_e(_.segments,O)&&Kt(_.segments,O,w)&&_.children[D])&&At(_.children[D],f,B,w)}}function Kt(_,f,h){return f.every((w,O)=>V[h](_[O].parameters,w.parameters))}class Zt{constructor(f,h,w){this.root=f,this.queryParams=h,this.fragment=w}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=L(this.queryParams)),this._queryParamMap}toString(){return kt.serialize(this)}}class Dt{constructor(f,h){this.segments=f,this.children=h,this.parent=null,dt(h,(w,O)=>w.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return $t(this)}}class Rn{constructor(f,h){this.path=f,this.parameters=h}get parameterMap(){return this._parameterMap||(this._parameterMap=L(this.parameters)),this._parameterMap}toString(){return Ci(this)}}function _e(_,f){return _.length===f.length&&_.every((h,w)=>h.path===f[w].path)}class Ie{}class rt{parse(f){const h=new Fn(f);return new Zt(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(f){const h=`/${Cn(f.root,!0)}`,w=function pi(_){const f=Object.keys(_).map(h=>{const w=_[h];return Array.isArray(w)?w.map(O=>`${kn(h)}=${kn(O)}`).join("&"):`${kn(h)}=${kn(w)}`}).filter(h=>!!h);return f.length?`?${f.join("&")}`:""}(f.queryParams);return`${h}${w}${"string"==typeof f.fragment?`#${function En(_){return encodeURI(_)}(f.fragment)}`:""}`}}const kt=new rt;function $t(_){return _.segments.map(f=>Ci(f)).join("/")}function Cn(_,f){if(!_.hasChildren())return $t(_);if(f){const h=_.children[D]?Cn(_.children[D],!1):"",w=[];return dt(_.children,(O,B)=>{B!==D&&w.push(`${B}:${Cn(O,!1)}`)}),w.length>0?`${h}(${w.join("//")})`:h}{const h=function ne(_,f){let h=[];return dt(_.children,(w,O)=>{O===D&&(h=h.concat(f(w,O)))}),dt(_.children,(w,O)=>{O!==D&&(h=h.concat(f(w,O)))}),h}(_,(w,O)=>O===D?[Cn(_.children[D],!1)]:[`${O}:${Cn(w,!1)}`]);return 1===Object.keys(_.children).length&&null!=_.children[D]?`${$t(_)}/${h[0]}`:`${$t(_)}/(${h.join("//")})`}}function en(_){return encodeURIComponent(_).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kn(_){return en(_).replace(/%3B/gi,";")}function jn(_){return en(_).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function si(_){return decodeURIComponent(_)}function Wn(_){return si(_.replace(/\+/g,"%20"))}function Ci(_){return`${jn(_.path)}${function ai(_){return Object.keys(_).map(f=>`;${jn(f)}=${jn(_[f])}`).join("")}(_.parameters)}`}const Ln=/^[^\/()?;=#]+/;function ji(_){const f=_.match(Ln);return f?f[0]:""}const zn=/^[^=?]+/,Qt=/^[^]+/;class Fn{constructor(f){this.url=f,this.remaining=f}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Dt([],{}):new Dt([],this.parseChildren())}parseQueryParams(){const f={};if(this.consumeOptional("?"))do{this.parseQueryParam(f)}while(this.consumeOptional("&"));return f}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const f=[];for(this.peekStartsWith("(")||f.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),f.push(this.parseSegment());let h={};this.peekStartsWith("/(")&&(this.capture("/"),h=this.parseParens(!0));let w={};return this.peekStartsWith("(")&&(w=this.parseParens(!1)),(f.length>0||Object.keys(h).length>0)&&(w[D]=new Dt(f,h)),w}parseSegment(){const f=ji(this.remaining);if(""===f&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(f),new Rn(si(f),this.parseMatrixParams())}parseMatrixParams(){const f={};for(;this.consumeOptional(";");)this.parseParam(f);return f}parseParam(f){const h=ji(this.remaining);if(!h)return;this.capture(h);let w="";if(this.consumeOptional("=")){const O=ji(this.remaining);O&&(w=O,this.capture(w))}f[si(h)]=si(w)}parseQueryParam(f){const h=function ft(_){const f=_.match(zn);return f?f[0]:""}(this.remaining);if(!h)return;this.capture(h);let w="";if(this.consumeOptional("=")){const ee=function mn(_){const f=_.match(Qt);return f?f[0]:""}(this.remaining);ee&&(w=ee,this.capture(w))}const O=Wn(h),B=Wn(w);if(f.hasOwnProperty(O)){let ee=f[O];Array.isArray(ee)||(ee=[ee],f[O]=ee),ee.push(B)}else f[O]=B}parseParens(f){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const w=ji(this.remaining),O=this.remaining[w.length];if("/"!==O&&")"!==O&&";"!==O)throw new Error(`Cannot parse url '${this.url}'`);let B;w.indexOf(":")>-1?(B=w.substr(0,w.indexOf(":")),this.capture(B),this.capture(":")):f&&(B=D);const ee=this.parseChildren();h[B]=1===Object.keys(ee).length?ee[D]:new Dt([],ee),this.consumeOptional("//")}return h}peekStartsWith(f){return this.remaining.startsWith(f)}consumeOptional(f){return!!this.peekStartsWith(f)&&(this.remaining=this.remaining.substring(f.length),!0)}capture(f){if(!this.consumeOptional(f))throw new Error(`Expected "${f}".`)}}class li{constructor(f){this._root=f}get root(){return this._root.value}parent(f){const h=this.pathFromRoot(f);return h.length>1?h[h.length-2]:null}children(f){const h=An(f,this._root);return h?h.children.map(w=>w.value):[]}firstChild(f){const h=An(f,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(f){const h=ui(f,this._root);return h.length<2?[]:h[h.length-2].children.map(O=>O.value).filter(O=>O!==f)}pathFromRoot(f){return ui(f,this._root).map(h=>h.value)}}function An(_,f){if(_===f.value)return f;for(const h of f.children){const w=An(_,h);if(w)return w}return null}function ui(_,f){if(_===f.value)return[f];for(const h of f.children){const w=ui(_,h);if(w.length)return w.unshift(f),w}return[]}class tn{constructor(f,h){this.value=f,this.children=h}toString(){return`TreeNode(${this.value})`}}function Yn(_){const f={};return _&&_.children.forEach(h=>f[h.value.outlet]=h),f}class mi extends li{constructor(f,h){super(f),this.snapshot=h,Nn(this,f)}toString(){return this.snapshot.toString()}}function zt(_,f){const h=function di(_,f){const ee=new gn([],{},{},"",{},D,f,null,_.root,-1,{});return new hi("",new tn(ee,[]))}(_,f),w=new le.X([new Rn("",{})]),O=new le.X({}),B=new le.X({}),ee=new le.X({}),ge=new le.X(""),qe=new Xn(w,O,ee,ge,B,D,f,h.root);return qe.snapshot=h.root,new mi(new tn(qe,[]),h)}class Xn{constructor(f,h,w,O,B,ee,ge,qe){this.url=f,this.params=h,this.queryParams=w,this.fragment=O,this.data=B,this.outlet=ee,this.component=ge,this._futureSnapshot=qe}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,mt.U)(f=>L(f)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,mt.U)(f=>L(f)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Oi(_,f="emptyOnly"){const h=_.pathFromRoot;let w=0;if("always"!==f)for(w=h.length-1;w>=1;){const O=h[w],B=h[w-1];if(O.routeConfig&&""===O.routeConfig.path)w--;else{if(B.component)break;w--}}return function Gn(_){return _.reduce((f,h)=>({params:Object.assign(Object.assign({},f.params),h.params),data:Object.assign(Object.assign({},f.data),h.data),resolve:Object.assign(Object.assign({},f.resolve),h._resolvedData)}),{params:{},data:{},resolve:{}})}(h.slice(w))}class gn{constructor(f,h,w,O,B,ee,ge,qe,Mt,cn,Bt){this.url=f,this.params=h,this.queryParams=w,this.fragment=O,this.data=B,this.outlet=ee,this.component=ge,this.routeConfig=qe,this._urlSegment=Mt,this._lastPathIndex=cn,this._resolve=Bt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=L(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=L(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(w=>w.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class hi extends li{constructor(f,h){super(h),this.url=f,Nn(this,h)}toString(){return ei(this._root)}}function Nn(_,f){f.value._routerState=_,f.children.forEach(h=>Nn(_,h))}function ei(_){const f=_.children.length>0?` { ${_.children.map(ei).join(", ")} } `:"";return`${_.value}${f}`}function un(_){if(_.snapshot){const f=_.snapshot,h=_._futureSnapshot;_.snapshot=h,ct(f.queryParams,h.queryParams)||_.queryParams.next(h.queryParams),f.fragment!==h.fragment&&_.fragment.next(h.fragment),ct(f.params,h.params)||_.params.next(h.params),function _t(_,f){if(_.length!==f.length)return!1;for(let h=0;h<_.length;++h)if(!ct(_[h],f[h]))return!1;return!0}(f.url,h.url)||_.url.next(h.url),ct(f.data,h.data)||_.data.next(h.data)}else _.snapshot=_._futureSnapshot,_.data.next(_._futureSnapshot.data)}function ir(_,f){const h=ct(_.params,f.params)&&function Ve(_,f){return _e(_,f)&&_.every((h,w)=>ct(h.parameters,f[w].parameters))}(_.url,f.url);return h&&!(!_.parent!=!f.parent)&&(!_.parent||ir(_.parent,f.parent))}function Zn(_,f,h){if(h&&_.shouldReuseRoute(f.value,h.value.snapshot)){const w=h.value;w._futureSnapshot=f.value;const O=function Ei(_,f,h){return f.children.map(w=>{for(const O of h.children)if(_.shouldReuseRoute(w.value,O.value.snapshot))return Zn(_,w,O);return Zn(_,w)})}(_,f,h);return new tn(w,O)}{if(_.shouldAttach(f.value)){const B=_.retrieve(f.value);if(null!==B){const ee=B.route;return ee.value._futureSnapshot=f.value,ee.children=f.children.map(ge=>Zn(_,ge)),ee}}const w=function Zi(_){return new Xn(new le.X(_.url),new le.X(_.params),new le.X(_.queryParams),new le.X(_.fragment),new le.X(_.data),_.outlet,_.component,_)}(f.value),O=f.children.map(B=>Zn(_,B));return new tn(w,O)}}function Sn(_){return"object"==typeof _&&null!=_&&!_.outlets&&!_.segmentPath}function ti(_){return"object"==typeof _&&null!=_&&_.outlets}function Ii(_,f,h,w,O){let B={};return w&&dt(w,(ee,ge)=>{B[ge]=Array.isArray(ee)?ee.map(qe=>`${qe}`):`${ee}`}),new Zt(h.root===_?f:dr(h.root,_,f),B,O)}function dr(_,f,h){const w={};return dt(_.children,(O,B)=>{w[B]=O===f?h:dr(O,f,h)}),new Dt(_.segments,w)}class rr{constructor(f,h,w){if(this.isAbsolute=f,this.numberOfDoubleDots=h,this.commands=w,f&&w.length>0&&Sn(w[0]))throw new Error("Root segment cannot have matrix parameters");const O=w.find(ti);if(O&&O!==Yt(w))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class fr{constructor(f,h,w){this.segmentGroup=f,this.processChildren=h,this.index=w}}function Fr(_,f,h){if(_||(_=new Dt([],{})),0===_.segments.length&&_.hasChildren())return mr(_,f,h);const w=function qi(_,f,h){let w=0,O=f;const B={match:!1,pathIndex:0,commandIndex:0};for(;O<_.segments.length;){if(w>=h.length)return B;const ee=_.segments[O],ge=h[w];if(ti(ge))break;const qe=`${ge}`,Mt=w0&&void 0===qe)break;if(qe&&Mt&&"object"==typeof Mt&&void 0===Mt.outlets){if(!sr(qe,Mt,ee))return B;w+=2}else{if(!sr(qe,{},ee))return B;w++}O++}return{match:!0,pathIndex:O,commandIndex:w}}(_,f,h),O=h.slice(w.commandIndex);if(w.match&&w.pathIndex<_.segments.length){const B=new Dt(_.segments.slice(0,w.pathIndex),{});return B.children[D]=new Dt(_.segments.slice(w.pathIndex),_.children),mr(B,0,O)}return w.match&&0===O.length?new Dt(_.segments,{}):w.match&&!_.hasChildren()?Tr(_,f,h):w.match?mr(_,0,O):Tr(_,f,h)}function mr(_,f,h){if(0===h.length)return new Dt(_.segments,{});{const w=function pr(_){return ti(_[0])?_[0].outlets:{[D]:_}}(h),O={};return dt(w,(B,ee)=>{"string"==typeof B&&(B=[B]),null!==B&&(O[ee]=Fr(_.children[ee],f,B))}),dt(_.children,(B,ee)=>{void 0===w[ee]&&(O[ee]=B)}),new Dt(_.segments,O)}}function Tr(_,f,h){const w=_.segments.slice(0,f);let O=0;for(;O{"string"==typeof h&&(h=[h]),null!==h&&(f[w]=Tr(new Dt([],{}),0,h))}),f}function gr(_){const f={};return dt(_,(h,w)=>f[w]=`${h}`),f}function sr(_,f,h){return _==h.path&&ct(f,h.parameters)}class _r{constructor(f,h,w,O){this.routeReuseStrategy=f,this.futureState=h,this.currState=w,this.forwardEvent=O}activate(f){const h=this.futureState._root,w=this.currState?this.currState._root:null;this.deactivateChildRoutes(h,w,f),un(this.futureState.root),this.activateChildRoutes(h,w,f)}deactivateChildRoutes(f,h,w){const O=Yn(h);f.children.forEach(B=>{const ee=B.value.outlet;this.deactivateRoutes(B,O[ee],w),delete O[ee]}),dt(O,(B,ee)=>{this.deactivateRouteAndItsChildren(B,w)})}deactivateRoutes(f,h,w){const O=f.value,B=h?h.value:null;if(O===B)if(O.component){const ee=w.getContext(O.outlet);ee&&this.deactivateChildRoutes(f,h,ee.children)}else this.deactivateChildRoutes(f,h,w);else B&&this.deactivateRouteAndItsChildren(h,w)}deactivateRouteAndItsChildren(f,h){f.value.component&&this.routeReuseStrategy.shouldDetach(f.value.snapshot)?this.detachAndStoreRouteSubtree(f,h):this.deactivateRouteAndOutlet(f,h)}detachAndStoreRouteSubtree(f,h){const w=h.getContext(f.value.outlet),O=w&&f.value.component?w.children:h,B=Yn(f);for(const ee of Object.keys(B))this.deactivateRouteAndItsChildren(B[ee],O);if(w&&w.outlet){const ee=w.outlet.detach(),ge=w.children.onOutletDeactivated();this.routeReuseStrategy.store(f.value.snapshot,{componentRef:ee,route:f,contexts:ge})}}deactivateRouteAndOutlet(f,h){const w=h.getContext(f.value.outlet),O=w&&f.value.component?w.children:h,B=Yn(f);for(const ee of Object.keys(B))this.deactivateRouteAndItsChildren(B[ee],O);w&&w.outlet&&(w.outlet.deactivate(),w.children.onOutletDeactivated(),w.attachRef=null,w.resolver=null,w.route=null)}activateChildRoutes(f,h,w){const O=Yn(h);f.children.forEach(B=>{this.activateRoutes(B,O[B.value.outlet],w),this.forwardEvent(new E(B.value.snapshot))}),f.children.length&&this.forwardEvent(new at(f.value.snapshot))}activateRoutes(f,h,w){const O=f.value,B=h?h.value:null;if(un(O),O===B)if(O.component){const ee=w.getOrCreateContext(O.outlet);this.activateChildRoutes(f,h,ee.children)}else this.activateChildRoutes(f,h,w);else if(O.component){const ee=w.getOrCreateContext(O.outlet);if(this.routeReuseStrategy.shouldAttach(O.snapshot)){const ge=this.routeReuseStrategy.retrieve(O.snapshot);this.routeReuseStrategy.store(O.snapshot,null),ee.children.onOutletReAttached(ge.contexts),ee.attachRef=ge.componentRef,ee.route=ge.route.value,ee.outlet&&ee.outlet.attach(ge.componentRef,ge.route.value),un(ge.route.value),this.activateChildRoutes(f,null,ee.children)}else{const ge=function Lr(_){for(let f=_.parent;f;f=f.parent){const h=f.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig;if(h&&h.component)return null}return null}(O.snapshot),qe=ge?ge.module.componentFactoryResolver:null;ee.attachRef=null,ee.route=O,ee.resolver=qe,ee.outlet&&ee.outlet.activateWith(O,qe),this.activateChildRoutes(f,null,ee.children)}}else this.activateChildRoutes(f,null,w)}}class Qi{constructor(f,h){this.routes=f,this.module=h}}function gi(_){return"function"==typeof _}function Mi(_){return _ instanceof Zt}const Bi=Symbol("INITIAL_VALUE");function Ji(){return(0,Jt.w)(_=>(0,ke.a)(_.map(f=>f.pipe((0,tt.q)(1),(0,yt.O)(Bi)))).pipe(me((f,h)=>{let w=!1;return h.reduce((O,B,ee)=>O!==Bi?O:(B===Bi&&(w=!0),w||!1!==B&&ee!==h.length-1&&!Mi(B)?O:B),f)},Bi),(0,pe.h)(f=>f!==Bi),(0,mt.U)(f=>Mi(f)?f:!0===f),(0,tt.q)(1)))}class Qr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Pi,this.attachRef=null}}class Pi{constructor(){this.contexts=new Map}onChildOutletCreated(f,h){const w=this.getOrCreateContext(f);w.outlet=h,this.contexts.set(f,w)}onChildOutletDestroyed(f){const h=this.getContext(f);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const f=this.contexts;return this.contexts=new Map,f}onOutletReAttached(f){this.contexts=f}getOrCreateContext(f){let h=this.getContext(f);return h||(h=new Qr,this.contexts.set(f,h)),h}getContext(f){return this.contexts.get(f)||null}}let ar=(()=>{class _{constructor(h,w,O,B,ee){this.parentContexts=h,this.location=w,this.resolver=O,this.changeDetector=ee,this.activated=null,this._activatedRoute=null,this.activateEvents=new c.vpe,this.deactivateEvents=new c.vpe,this.attachEvents=new c.vpe,this.detachEvents=new c.vpe,this.name=B||D,h.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const h=this.parentContexts.getContext(this.name);h&&h.route&&(h.attachRef?this.attach(h.attachRef,h.route):this.activateWith(h.route,h.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const h=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(h.instance),h}attach(h,w){this.activated=h,this._activatedRoute=w,this.location.insert(h.hostView),this.attachEvents.emit(h.instance)}deactivate(){if(this.activated){const h=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(h)}}activateWith(h,w){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=h;const ee=(w=w||this.resolver).resolveComponentFactory(h._futureSnapshot.routeConfig.component),ge=this.parentContexts.getOrCreateContext(this.name).children,qe=new Br(h,ge,this.location.injector);this.activated=this.location.createComponent(ee,this.location.length,qe),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return _.\u0275fac=function(h){return new(h||_)(c.Y36(Pi),c.Y36(c.s_b),c.Y36(c._Vd),c.$8M("name"),c.Y36(c.sBO))},_.\u0275dir=c.lG2({type:_,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),_})();class Br{constructor(f,h,w){this.route=f,this.childContexts=h,this.parent=w}get(f,h){return f===Xn?this.route:f===Pi?this.childContexts:this.parent.get(f,h)}}let ni=(()=>{class _{}return _.\u0275fac=function(h){return new(h||_)},_.\u0275cmp=c.Xpm({type:_,selectors:[["ng-component"]],decls:1,vars:0,template:function(h,w){1&h&&c._UZ(0,"router-outlet")},directives:[ar],encapsulation:2}),_})();function lr(_,f=""){for(let h=0;h<_.length;h++){const w=_[h];Tn(w,Xi(f,w))}}function Tn(_,f){_.children&&lr(_.children,f)}function Xi(_,f){return f?_||f.path?_&&!f.path?`${_}/`:!_&&f.path?f.path:`${_}/${f.path}`:"":_}function ii(_){const f=_.children&&_.children.map(ii),h=f?Object.assign(Object.assign({},_),{children:f}):Object.assign({},_);return!h.component&&(f||h.loadChildren)&&h.outlet&&h.outlet!==D&&(h.component=ni),h}function Kn(_){return _.outlet||D}function cr(_,f){const h=_.filter(w=>Kn(w)===f);return h.push(..._.filter(w=>Kn(w)!==f)),h}const xr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function A(_,f,h){var w;if(""===f.path)return"full"===f.pathMatch&&(_.hasChildren()||h.length>0)?Object.assign({},xr):{matched:!0,consumedSegments:[],remainingSegments:h,parameters:{},positionalParamSegments:{}};const B=(f.matcher||ze)(h,_,f);if(!B)return Object.assign({},xr);const ee={};dt(B.posParams,(qe,Mt)=>{ee[Mt]=qe.path});const ge=B.consumed.length>0?Object.assign(Object.assign({},ee),B.consumed[B.consumed.length-1].parameters):ee;return{matched:!0,consumedSegments:B.consumed,remainingSegments:h.slice(B.consumed.length),parameters:ge,positionalParamSegments:null!==(w=B.posParams)&&void 0!==w?w:{}}}function N(_,f,h,w,O="corrected"){if(h.length>0&&function ae(_,f,h){return h.some(w=>nt(_,f,w)&&Kn(w)!==D)}(_,h,w)){const ee=new Dt(f,function H(_,f,h,w){const O={};O[D]=w,w._sourceSegment=_,w._segmentIndexShift=f.length;for(const B of h)if(""===B.path&&Kn(B)!==D){const ee=new Dt([],{});ee._sourceSegment=_,ee._segmentIndexShift=f.length,O[Kn(B)]=ee}return O}(_,f,w,new Dt(h,_.children)));return ee._sourceSegment=_,ee._segmentIndexShift=f.length,{segmentGroup:ee,slicedSegments:[]}}if(0===h.length&&function $e(_,f,h){return h.some(w=>nt(_,f,w))}(_,h,w)){const ee=new Dt(_.segments,function T(_,f,h,w,O,B){const ee={};for(const ge of w)if(nt(_,h,ge)&&!O[Kn(ge)]){const qe=new Dt([],{});qe._sourceSegment=_,qe._segmentIndexShift="legacy"===B?_.segments.length:f.length,ee[Kn(ge)]=qe}return Object.assign(Object.assign({},O),ee)}(_,f,h,w,_.children,O));return ee._sourceSegment=_,ee._segmentIndexShift=f.length,{segmentGroup:ee,slicedSegments:h}}const B=new Dt(_.segments,_.children);return B._sourceSegment=_,B._segmentIndexShift=f.length,{segmentGroup:B,slicedSegments:h}}function nt(_,f,h){return(!(_.hasChildren()||f.length>0)||"full"!==h.pathMatch)&&""===h.path}function ht(_,f,h,w){return!!(Kn(_)===w||w!==D&&nt(f,h,_))&&("**"===_.path||A(f,_,h).matched)}function _n(_,f,h){return 0===f.length&&!_.children[h]}class vn{constructor(f){this.segmentGroup=f||null}}class fn{constructor(f){this.urlTree=f}}function Ht(_){return Y(new vn(_))}function Bn(_){return Y(new fn(_))}class Ai{constructor(f,h,w,O,B){this.configLoader=h,this.urlSerializer=w,this.urlTree=O,this.config=B,this.allowRedirects=!0,this.ngModule=f.get(c.h0i)}apply(){const f=N(this.urlTree.root,[],[],this.config).segmentGroup,h=new Dt(f.segments,f.children);return this.expandSegmentGroup(this.ngModule,this.config,h,D).pipe((0,mt.U)(B=>this.createUrlTree(Ri(B),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Q(B=>{if(B instanceof fn)return this.allowRedirects=!1,this.match(B.urlTree);throw B instanceof vn?this.noMatchError(B):B}))}match(f){return this.expandSegmentGroup(this.ngModule,this.config,f.root,D).pipe((0,mt.U)(O=>this.createUrlTree(Ri(O),f.queryParams,f.fragment))).pipe(Q(O=>{throw O instanceof vn?this.noMatchError(O):O}))}noMatchError(f){return new Error(`Cannot match any routes. URL Segment: '${f.segmentGroup}'`)}createUrlTree(f,h,w){const O=f.segments.length>0?new Dt([],{[D]:f}):f;return new Zt(O,h,w)}expandSegmentGroup(f,h,w,O){return 0===w.segments.length&&w.hasChildren()?this.expandChildren(f,h,w).pipe((0,mt.U)(B=>new Dt([],B))):this.expandSegment(f,w,h,w.segments,O,!0)}expandChildren(f,h,w){const O=[];for(const B of Object.keys(w.children))"primary"===B?O.unshift(B):O.push(B);return(0,de.D)(O).pipe((0,Rt.b)(B=>{const ee=w.children[B],ge=cr(h,B);return this.expandSegmentGroup(f,ge,ee,B).pipe((0,mt.U)(qe=>({segment:qe,outlet:B})))}),me((B,ee)=>(B[ee.outlet]=ee.segment,B),{}),function Ae(_,f){const h=arguments.length>=2;return w=>w.pipe(_?(0,pe.h)((O,B)=>_(O,B,w)):xe.y,Te(1),h?Me(f):Ne(()=>new q))}())}expandSegment(f,h,w,O,B,ee){return(0,de.D)(w).pipe((0,Rt.b)(ge=>this.expandSegmentAgainstRoute(f,h,w,ge,O,B,ee).pipe(Q(Mt=>{if(Mt instanceof vn)return(0,X.of)(null);throw Mt}))),Fe(ge=>!!ge),Q((ge,qe)=>{if(ge instanceof q||"EmptyError"===ge.name){if(_n(h,O,B))return(0,X.of)(new Dt([],{}));throw new vn(h)}throw ge}))}expandSegmentAgainstRoute(f,h,w,O,B,ee,ge){return ht(O,h,B,ee)?void 0===O.redirectTo?this.matchSegmentAgainstRoute(f,h,O,B,ee):ge&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(f,h,w,O,B,ee):Ht(h):Ht(h)}expandSegmentAgainstRouteUsingRedirect(f,h,w,O,B,ee){return"**"===O.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(f,w,O,ee):this.expandRegularSegmentAgainstRouteUsingRedirect(f,h,w,O,B,ee)}expandWildCardWithParamsAgainstRouteUsingRedirect(f,h,w,O){const B=this.applyRedirectCommands([],w.redirectTo,{});return w.redirectTo.startsWith("/")?Bn(B):this.lineralizeSegments(w,B).pipe((0,Wt.z)(ee=>{const ge=new Dt(ee,{});return this.expandSegment(f,ge,h,ee,O,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(f,h,w,O,B,ee){const{matched:ge,consumedSegments:qe,remainingSegments:Mt,positionalParamSegments:cn}=A(h,O,B);if(!ge)return Ht(h);const Bt=this.applyRedirectCommands(qe,O.redirectTo,cn);return O.redirectTo.startsWith("/")?Bn(Bt):this.lineralizeSegments(O,Bt).pipe((0,Wt.z)(xn=>this.expandSegment(f,h,w,xn.concat(Mt),ee,!1)))}matchSegmentAgainstRoute(f,h,w,O,B){if("**"===w.path)return w.loadChildren?(w._loadedConfig?(0,X.of)(w._loadedConfig):this.configLoader.load(f.injector,w)).pipe((0,mt.U)(Bt=>(w._loadedConfig=Bt,new Dt(O,{})))):(0,X.of)(new Dt(O,{}));const{matched:ee,consumedSegments:ge,remainingSegments:qe}=A(h,w,O);return ee?this.getChildConfig(f,w,O).pipe((0,Wt.z)(cn=>{const Bt=cn.module,xn=cn.routes,{segmentGroup:Pn,slicedSegments:po}=N(h,ge,qe,xn),Ur=new Dt(Pn.segments,Pn.children);if(0===po.length&&Ur.hasChildren())return this.expandChildren(Bt,xn,Ur).pipe((0,mt.U)(go=>new Dt(ge,go)));if(0===xn.length&&0===po.length)return(0,X.of)(new Dt(ge,{}));const mo=Kn(w)===B;return this.expandSegment(Bt,Ur,xn,po,mo?D:B,!0).pipe((0,mt.U)(Er=>new Dt(ge.concat(Er.segments),Er.children)))})):Ht(h)}getChildConfig(f,h,w){return h.children?(0,X.of)(new Qi(h.children,f)):h.loadChildren?void 0!==h._loadedConfig?(0,X.of)(h._loadedConfig):this.runCanLoadGuards(f.injector,h,w).pipe((0,Wt.z)(O=>O?this.configLoader.load(f.injector,h).pipe((0,mt.U)(B=>(h._loadedConfig=B,B))):function On(_){return Y(be(`Cannot load children because the guard of the route "path: '${_.path}'" returned false`))}(h))):(0,X.of)(new Qi([],f))}runCanLoadGuards(f,h,w){const O=h.canLoad;if(!O||0===O.length)return(0,X.of)(!0);const B=O.map(ee=>{const ge=f.get(ee);let qe;if(function qr(_){return _&&gi(_.canLoad)}(ge))qe=ge.canLoad(h,w);else{if(!gi(ge))throw new Error("Invalid CanLoad guard");qe=ge(h,w)}return vt(qe)});return(0,X.of)(B).pipe(Ji(),(0,Pt.b)(ee=>{if(!Mi(ee))return;const ge=be(`Redirecting to "${this.urlSerializer.serialize(ee)}"`);throw ge.url=ee,ge}),(0,mt.U)(ee=>!0===ee))}lineralizeSegments(f,h){let w=[],O=h.root;for(;;){if(w=w.concat(O.segments),0===O.numberOfChildren)return(0,X.of)(w);if(O.numberOfChildren>1||!O.children[D])return Y(new Error(`Only absolute redirects can have named outlets. redirectTo: '${f.redirectTo}'`));O=O.children[D]}}applyRedirectCommands(f,h,w){return this.applyRedirectCreatreUrlTree(h,this.urlSerializer.parse(h),f,w)}applyRedirectCreatreUrlTree(f,h,w,O){const B=this.createSegmentGroup(f,h.root,w,O);return new Zt(B,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(f,h){const w={};return dt(f,(O,B)=>{if("string"==typeof O&&O.startsWith(":")){const ge=O.substring(1);w[B]=h[ge]}else w[B]=O}),w}createSegmentGroup(f,h,w,O){const B=this.createSegments(f,h.segments,w,O);let ee={};return dt(h.children,(ge,qe)=>{ee[qe]=this.createSegmentGroup(f,ge,w,O)}),new Dt(B,ee)}createSegments(f,h,w,O){return h.map(B=>B.path.startsWith(":")?this.findPosParam(f,B,O):this.findOrReturn(B,w))}findPosParam(f,h,w){const O=w[h.path.substring(1)];if(!O)throw new Error(`Cannot redirect to '${f}'. Cannot find '${h.path}'.`);return O}findOrReturn(f,h){let w=0;for(const O of h){if(O.path===f.path)return h.splice(w),O;w++}return f}}function Ri(_){const f={};for(const w of Object.keys(_.children)){const B=Ri(_.children[w]);(B.segments.length>0||B.hasChildren())&&(f[w]=B)}return function er(_){if(1===_.numberOfChildren&&_.children[D]){const f=_.children[D];return new Dt(_.segments.concat(f.segments),f.children)}return _}(new Dt(_.segments,f))}class x{constructor(f){this.path=f,this.route=this.path[this.path.length-1]}}class M{constructor(f,h){this.component=f,this.route=h}}function y(_,f,h){const w=_._root;return Dn(w,f?f._root:null,h,[w.value])}function Ye(_,f,h){const w=function Et(_){if(!_)return null;for(let f=_.parent;f;f=f.parent){const h=f.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig}return null}(f);return(w?w.module.injector:h).get(_)}function Dn(_,f,h,w,O={canDeactivateChecks:[],canActivateChecks:[]}){const B=Yn(f);return _.children.forEach(ee=>{(function _i(_,f,h,w,O={canDeactivateChecks:[],canActivateChecks:[]}){const B=_.value,ee=f?f.value:null,ge=h?h.getContext(_.value.outlet):null;if(ee&&B.routeConfig===ee.routeConfig){const qe=function Gi(_,f,h){if("function"==typeof h)return h(_,f);switch(h){case"pathParamsChange":return!_e(_.url,f.url);case"pathParamsOrQueryParamsChange":return!_e(_.url,f.url)||!ct(_.queryParams,f.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ir(_,f)||!ct(_.queryParams,f.queryParams);default:return!ir(_,f)}}(ee,B,B.routeConfig.runGuardsAndResolvers);qe?O.canActivateChecks.push(new x(w)):(B.data=ee.data,B._resolvedData=ee._resolvedData),Dn(_,f,B.component?ge?ge.children:null:h,w,O),qe&&ge&&ge.outlet&&ge.outlet.isActivated&&O.canDeactivateChecks.push(new M(ge.outlet.component,ee))}else ee&&Fi(f,ge,O),O.canActivateChecks.push(new x(w)),Dn(_,null,B.component?ge?ge.children:null:h,w,O)})(ee,B[ee.value.outlet],h,w.concat([ee.value]),O),delete B[ee.value.outlet]}),dt(B,(ee,ge)=>Fi(ee,h.getContext(ge),O)),O}function Fi(_,f,h){const w=Yn(_),O=_.value;dt(w,(B,ee)=>{Fi(B,O.component?f?f.children.getContext(ee):null:f,h)}),h.canDeactivateChecks.push(new M(O.component&&f&&f.outlet&&f.outlet.isActivated?f.outlet.component:null,O))}class R{}function Ce(_){return new o.y(f=>f.error(_))}class d{constructor(f,h,w,O,B,ee){this.rootComponentType=f,this.config=h,this.urlTree=w,this.url=O,this.paramsInheritanceStrategy=B,this.relativeLinkResolution=ee}recognize(){const f=N(this.urlTree.root,[],[],this.config.filter(ee=>void 0===ee.redirectTo),this.relativeLinkResolution).segmentGroup,h=this.processSegmentGroup(this.config,f,D);if(null===h)return null;const w=new gn([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},D,this.rootComponentType,null,this.urlTree.root,-1,{}),O=new tn(w,h),B=new hi(this.url,O);return this.inheritParamsAndData(B._root),B}inheritParamsAndData(f){const h=f.value,w=Oi(h,this.paramsInheritanceStrategy);h.params=Object.freeze(w.params),h.data=Object.freeze(w.data),f.children.forEach(O=>this.inheritParamsAndData(O))}processSegmentGroup(f,h,w){return 0===h.segments.length&&h.hasChildren()?this.processChildren(f,h):this.processSegment(f,h,h.segments,w)}processChildren(f,h){const w=[];for(const B of Object.keys(h.children)){const ee=h.children[B],ge=cr(f,B),qe=this.processSegmentGroup(ge,ee,B);if(null===qe)return null;w.push(...qe)}const O=k(w);return function a(_){_.sort((f,h)=>f.value.outlet===D?-1:h.value.outlet===D?1:f.value.outlet.localeCompare(h.value.outlet))}(O),O}processSegment(f,h,w,O){for(const B of f){const ee=this.processSegmentAgainstRoute(B,h,w,O);if(null!==ee)return ee}return _n(h,w,O)?[]:null}processSegmentAgainstRoute(f,h,w,O){if(f.redirectTo||!ht(f,h,w,O))return null;let B,ee=[],ge=[];if("**"===f.path){const Pn=w.length>0?Yt(w).parameters:{};B=new gn(w,Pn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Oe(f),Kn(f),f.component,f,ie(h),oe(h)+w.length,Ke(f))}else{const Pn=A(h,f,w);if(!Pn.matched)return null;ee=Pn.consumedSegments,ge=Pn.remainingSegments,B=new gn(ee,Pn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Oe(f),Kn(f),f.component,f,ie(h),oe(h)+ee.length,Ke(f))}const qe=function l(_){return _.children?_.children:_.loadChildren?_._loadedConfig.routes:[]}(f),{segmentGroup:Mt,slicedSegments:cn}=N(h,ee,ge,qe.filter(Pn=>void 0===Pn.redirectTo),this.relativeLinkResolution);if(0===cn.length&&Mt.hasChildren()){const Pn=this.processChildren(qe,Mt);return null===Pn?null:[new tn(B,Pn)]}if(0===qe.length&&0===cn.length)return[new tn(B,[])];const Bt=Kn(f)===O,xn=this.processSegment(qe,Mt,cn,Bt?D:O);return null===xn?null:[new tn(B,xn)]}}function v(_){const f=_.value.routeConfig;return f&&""===f.path&&void 0===f.redirectTo}function k(_){const f=[],h=new Set;for(const w of _){if(!v(w)){f.push(w);continue}const O=f.find(B=>w.value.routeConfig===B.value.routeConfig);void 0!==O?(O.children.push(...w.children),h.add(O)):f.push(w)}for(const w of h){const O=k(w.children);f.push(new tn(w.value,O))}return f.filter(w=>!h.has(w))}function ie(_){let f=_;for(;f._sourceSegment;)f=f._sourceSegment;return f}function oe(_){let f=_,h=f._segmentIndexShift?f._segmentIndexShift:0;for(;f._sourceSegment;)f=f._sourceSegment,h+=f._segmentIndexShift?f._segmentIndexShift:0;return h-1}function Oe(_){return _.data||{}}function Ke(_){return _.resolve||{}}function Ut(_){return[...Object.keys(_),...Object.getOwnPropertySymbols(_)]}function Mn(_){return(0,Jt.w)(f=>{const h=_(f);return h?(0,de.D)(h).pipe((0,mt.U)(()=>f)):(0,X.of)(f)})}class Di extends class ci{shouldDetach(f){return!1}store(f,h){}shouldAttach(f){return!1}retrieve(f){return null}shouldReuseRoute(f,h){return f.routeConfig===h.routeConfig}}{}const ri=new c.OlP("ROUTES");class Sr{constructor(f,h,w,O){this.injector=f,this.compiler=h,this.onLoadStartListener=w,this.onLoadEndListener=O}load(f,h){if(h._loader$)return h._loader$;this.onLoadStartListener&&this.onLoadStartListener(h);const O=this.loadModuleFactory(h.loadChildren).pipe((0,mt.U)(B=>{this.onLoadEndListener&&this.onLoadEndListener(h);const ee=B.create(f);return new Qi(nn(ee.injector.get(ri,void 0,c.XFs.Self|c.XFs.Optional)).map(ii),ee)}),Q(B=>{throw h._loader$=void 0,B}));return h._loader$=new se(O,()=>new Ze.x).pipe(te()),h._loader$}loadModuleFactory(f){return vt(f()).pipe((0,Wt.z)(h=>h instanceof c.YKP?(0,X.of)(h):(0,de.D)(this.compiler.compileModuleAsync(h))))}}class Ti{shouldProcessUrl(f){return!0}extract(f){return f}merge(f,h){return f}}function br(_){throw _}function Un(_,f,h){return f.parse("/")}function vi(_,f){return(0,X.of)(null)}const Hn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let oi=(()=>{class _{constructor(h,w,O,B,ee,ge,qe){this.rootComponentType=h,this.urlSerializer=w,this.rootContexts=O,this.location=B,this.config=qe,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ze.x,this.errorHandler=br,this.malformedUriErrorHandler=Un,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vi,afterPreactivation:vi},this.urlHandlingStrategy=new Ti,this.routeReuseStrategy=new Di,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=ee.get(c.h0i),this.console=ee.get(c.c2e);const Bt=ee.get(c.R0b);this.isNgZoneEnabled=Bt instanceof c.R0b&&c.R0b.isInAngularZone(),this.resetConfig(qe),this.currentUrlTree=function Le(){return new Zt(new Dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Sr(ee,ge,xn=>this.triggerEvent(new jt(xn)),xn=>this.triggerEvent(new Ct(xn))),this.routerState=zt(this.currentUrlTree,this.rootComponentType),this.transitions=new le.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var h;return null===(h=this.location.getState())||void 0===h?void 0:h.\u0275routerPageId}setupNavigations(h){const w=this.events;return h.pipe((0,pe.h)(O=>0!==O.id),(0,mt.U)(O=>Object.assign(Object.assign({},O),{extractedUrl:this.urlHandlingStrategy.extract(O.rawUrl)})),(0,Jt.w)(O=>{let B=!1,ee=!1;return(0,X.of)(O).pipe((0,Pt.b)(ge=>{this.currentNavigation={id:ge.id,initialUrl:ge.currentRawUrl,extractedUrl:ge.extractedUrl,trigger:ge.source,extras:ge.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Jt.w)(ge=>{const qe=this.browserUrlTree.toString(),Mt=!this.navigated||ge.extractedUrl.toString()!==qe||qe!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Mt)&&this.urlHandlingStrategy.shouldProcessUrl(ge.rawUrl))return ho(ge.source)&&(this.browserUrlTree=ge.extractedUrl),(0,X.of)(ge).pipe((0,Jt.w)(Bt=>{const xn=this.transitions.getValue();return w.next(new on(Bt.id,this.serializeUrl(Bt.extractedUrl),Bt.source,Bt.restoredState)),xn!==this.transitions.getValue()?et.E:Promise.resolve(Bt)}),function ki(_,f,h,w){return(0,Jt.w)(O=>function Vn(_,f,h,w,O){return new Ai(_,f,h,w,O).apply()}(_,f,h,O.extractedUrl,w).pipe((0,mt.U)(B=>Object.assign(Object.assign({},O),{urlAfterRedirects:B}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Pt.b)(Bt=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Bt.urlAfterRedirects})}),function gt(_,f,h,w,O){return(0,Wt.z)(B=>function m(_,f,h,w,O="emptyOnly",B="legacy"){try{const ee=new d(_,f,h,w,O,B).recognize();return null===ee?Ce(new R):(0,X.of)(ee)}catch(ee){return Ce(ee)}}(_,f,B.urlAfterRedirects,h(B.urlAfterRedirects),w,O).pipe((0,mt.U)(ee=>Object.assign(Object.assign({},B),{targetSnapshot:ee}))))}(this.rootComponentType,this.config,Bt=>this.serializeUrl(Bt),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Pt.b)(Bt=>{if("eager"===this.urlUpdateStrategy){if(!Bt.extras.skipLocationChange){const Pn=this.urlHandlingStrategy.merge(Bt.urlAfterRedirects,Bt.rawUrl);this.setBrowserUrl(Pn,Bt)}this.browserUrlTree=Bt.urlAfterRedirects}const xn=new Z(Bt.id,this.serializeUrl(Bt.extractedUrl),this.serializeUrl(Bt.urlAfterRedirects),Bt.targetSnapshot);w.next(xn)}));if(Mt&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xn,extractedUrl:Pn,source:po,restoredState:Ur,extras:mo}=ge,Ir=new on(xn,this.serializeUrl(Pn),po,Ur);w.next(Ir);const Er=zt(Pn,this.rootComponentType).snapshot;return(0,X.of)(Object.assign(Object.assign({},ge),{targetSnapshot:Er,urlAfterRedirects:Pn,extras:Object.assign(Object.assign({},mo),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ge.rawUrl,ge.resolve(null),et.E}),Mn(ge=>{const{targetSnapshot:qe,id:Mt,extractedUrl:cn,rawUrl:Bt,extras:{skipLocationChange:xn,replaceUrl:Pn}}=ge;return this.hooks.beforePreactivation(qe,{navigationId:Mt,appliedUrlTree:cn,rawUrlTree:Bt,skipLocationChange:!!xn,replaceUrl:!!Pn})}),(0,Pt.b)(ge=>{const qe=new He(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot);this.triggerEvent(qe)}),(0,mt.U)(ge=>Object.assign(Object.assign({},ge),{guards:y(ge.targetSnapshot,ge.currentSnapshot,this.rootContexts)})),function ot(_,f){return(0,Wt.z)(h=>{const{targetSnapshot:w,currentSnapshot:O,guards:{canActivateChecks:B,canDeactivateChecks:ee}}=h;return 0===ee.length&&0===B.length?(0,X.of)(Object.assign(Object.assign({},h),{guardsResult:!0})):function sn(_,f,h,w){return(0,de.D)(_).pipe((0,Wt.z)(O=>function Xr(_,f,h,w,O){const B=f&&f.routeConfig?f.routeConfig.canDeactivate:null;if(!B||0===B.length)return(0,X.of)(!0);const ee=B.map(ge=>{const qe=Ye(ge,f,O);let Mt;if(function zi(_){return _&&gi(_.canDeactivate)}(qe))Mt=vt(qe.canDeactivate(_,f,h,w));else{if(!gi(qe))throw new Error("Invalid CanDeactivate guard");Mt=vt(qe(_,f,h,w))}return Mt.pipe(Fe())});return(0,X.of)(ee).pipe(Ji())}(O.component,O.route,h,f,w)),Fe(O=>!0!==O,!0))}(ee,w,O,_).pipe((0,Wt.z)(ge=>ge&&function vr(_){return"boolean"==typeof _}(ge)?function Jr(_,f,h,w){return(0,de.D)(f).pipe((0,Rt.b)(O=>(0,Be.z)(function bo(_,f){return null!==_&&f&&f(new Nt(_)),(0,X.of)(!0)}(O.route.parent,w),function qn(_,f){return null!==_&&f&&f(new Pe(_)),(0,X.of)(!0)}(O.route,w),function Vi(_,f,h){const w=f[f.length-1],B=f.slice(0,f.length-1).reverse().map(ee=>function U(_){const f=_.routeConfig?_.routeConfig.canActivateChild:null;return f&&0!==f.length?{node:_,guards:f}:null}(ee)).filter(ee=>null!==ee).map(ee=>(0,K.P)(()=>{const ge=ee.guards.map(qe=>{const Mt=Ye(qe,ee.node,h);let cn;if(function Nr(_){return _&&gi(_.canActivateChild)}(Mt))cn=vt(Mt.canActivateChild(w,_));else{if(!gi(Mt))throw new Error("Invalid CanActivateChild guard");cn=vt(Mt(w,_))}return cn.pipe(Fe())});return(0,X.of)(ge).pipe(Ji())}));return(0,X.of)(B).pipe(Ji())}(_,O.path,h),function yr(_,f,h){const w=f.routeConfig?f.routeConfig.canActivate:null;if(!w||0===w.length)return(0,X.of)(!0);const O=w.map(B=>(0,K.P)(()=>{const ee=Ye(B,f,h);let ge;if(function wi(_){return _&&gi(_.canActivate)}(ee))ge=vt(ee.canActivate(f,_));else{if(!gi(ee))throw new Error("Invalid CanActivate guard");ge=vt(ee(f,_))}return ge.pipe(Fe())}));return(0,X.of)(O).pipe(Ji())}(_,O.route,h))),Fe(O=>!0!==O,!0))}(w,B,_,f):(0,X.of)(ge)),(0,mt.U)(ge=>Object.assign(Object.assign({},h),{guardsResult:ge})))})}(this.ngModule.injector,ge=>this.triggerEvent(ge)),(0,Pt.b)(ge=>{if(Mi(ge.guardsResult)){const Mt=be(`Redirecting to "${this.serializeUrl(ge.guardsResult)}"`);throw Mt.url=ge.guardsResult,Mt}const qe=new Ge(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot,!!ge.guardsResult);this.triggerEvent(qe)}),(0,pe.h)(ge=>!!ge.guardsResult||(this.restoreHistory(ge),this.cancelNavigationTransition(ge,""),!1)),Mn(ge=>{if(ge.guards.canActivateChecks.length)return(0,X.of)(ge).pipe((0,Pt.b)(qe=>{const Mt=new lt(qe.id,this.serializeUrl(qe.extractedUrl),this.serializeUrl(qe.urlAfterRedirects),qe.targetSnapshot);this.triggerEvent(Mt)}),(0,Jt.w)(qe=>{let Mt=!1;return(0,X.of)(qe).pipe(function It(_,f){return(0,Wt.z)(h=>{const{targetSnapshot:w,guards:{canActivateChecks:O}}=h;if(!O.length)return(0,X.of)(h);let B=0;return(0,de.D)(O).pipe((0,Rt.b)(ee=>function Xt(_,f,h,w){return function ln(_,f,h,w){const O=Ut(_);if(0===O.length)return(0,X.of)({});const B={};return(0,de.D)(O).pipe((0,Wt.z)(ee=>function rn(_,f,h,w){const O=Ye(_,f,w);return vt(O.resolve?O.resolve(f,h):O(f,h))}(_[ee],f,h,w).pipe((0,Pt.b)(ge=>{B[ee]=ge}))),Te(1),(0,Wt.z)(()=>Ut(B).length===O.length?(0,X.of)(B):et.E))}(_._resolve,_,f,w).pipe((0,mt.U)(B=>(_._resolvedData=B,_.data=Object.assign(Object.assign({},_.data),Oi(_,h).resolve),null)))}(ee.route,w,_,f)),(0,Pt.b)(()=>B++),Te(1),(0,Wt.z)(ee=>B===O.length?(0,X.of)(h):et.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Pt.b)({next:()=>Mt=!0,complete:()=>{Mt||(this.restoreHistory(qe),this.cancelNavigationTransition(qe,"At least one route resolver didn't emit any value."))}}))}),(0,Pt.b)(qe=>{const Mt=new St(qe.id,this.serializeUrl(qe.extractedUrl),this.serializeUrl(qe.urlAfterRedirects),qe.targetSnapshot);this.triggerEvent(Mt)}))}),Mn(ge=>{const{targetSnapshot:qe,id:Mt,extractedUrl:cn,rawUrl:Bt,extras:{skipLocationChange:xn,replaceUrl:Pn}}=ge;return this.hooks.afterPreactivation(qe,{navigationId:Mt,appliedUrlTree:cn,rawUrlTree:Bt,skipLocationChange:!!xn,replaceUrl:!!Pn})}),(0,mt.U)(ge=>{const qe=function Ar(_,f,h){const w=Zn(_,f._root,h?h._root:void 0);return new mi(w,f)}(this.routeReuseStrategy,ge.targetSnapshot,ge.currentRouterState);return Object.assign(Object.assign({},ge),{targetRouterState:qe})}),(0,Pt.b)(ge=>{this.currentUrlTree=ge.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ge.urlAfterRedirects,ge.rawUrl),this.routerState=ge.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ge.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ge),this.browserUrlTree=ge.urlAfterRedirects)}),((_,f,h)=>(0,mt.U)(w=>(new _r(f,w.targetRouterState,w.currentRouterState,h).activate(_),w)))(this.rootContexts,this.routeReuseStrategy,ge=>this.triggerEvent(ge)),(0,Pt.b)({next(){B=!0},complete(){B=!0}}),function bt(_){return(0,Ee.e)((f,h)=>{try{f.subscribe(h)}finally{h.add(_)}})}(()=>{var ge;B||ee||this.cancelNavigationTransition(O,`Navigation ID ${O.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ge=this.currentNavigation)||void 0===ge?void 0:ge.id)===O.id&&(this.currentNavigation=null)}),Q(ge=>{if(ee=!0,function Ue(_){return _&&_[re]}(ge)){const qe=Mi(ge.url);qe||(this.navigated=!0,this.restoreHistory(O,!0));const Mt=new je(O.id,this.serializeUrl(O.extractedUrl),ge.message);w.next(Mt),qe?setTimeout(()=>{const cn=this.urlHandlingStrategy.merge(ge.url,this.rawUrlTree),Bt={skipLocationChange:O.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ho(O.source)};this.scheduleNavigation(cn,"imperative",null,Bt,{resolve:O.resolve,reject:O.reject,promise:O.promise})},0):O.resolve(!1)}else{this.restoreHistory(O,!0);const qe=new J(O.id,this.serializeUrl(O.extractedUrl),ge);w.next(qe);try{O.resolve(this.errorHandler(ge))}catch(Mt){O.reject(Mt)}}return et.E}))}))}resetRootComponentType(h){this.rootComponentType=h,this.routerState.root.component=this.rootComponentType}setTransition(h){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),h))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(h=>{const w="popstate"===h.type?"popstate":"hashchange";"popstate"===w&&setTimeout(()=>{var O;const B={replaceUrl:!0},ee=(null===(O=h.state)||void 0===O?void 0:O.navigationId)?h.state:null;if(ee){const qe=Object.assign({},ee);delete qe.navigationId,delete qe.\u0275routerPageId,0!==Object.keys(qe).length&&(B.state=qe)}const ge=this.parseUrl(h.url);this.scheduleNavigation(ge,w,ee,B)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(h){this.events.next(h)}resetConfig(h){lr(h),this.config=h.map(ii),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(h,w={}){const{relativeTo:O,queryParams:B,fragment:ee,queryParamsHandling:ge,preserveFragment:qe}=w,Mt=O||this.routerState.root,cn=qe?this.currentUrlTree.fragment:ee;let Bt=null;switch(ge){case"merge":Bt=Object.assign(Object.assign({},this.currentUrlTree.queryParams),B);break;case"preserve":Bt=this.currentUrlTree.queryParams;break;default:Bt=B||null}return null!==Bt&&(Bt=this.removeEmptyProps(Bt)),function Ki(_,f,h,w,O){if(0===h.length)return Ii(f.root,f.root,f,w,O);const B=function hr(_){if("string"==typeof _[0]&&1===_.length&&"/"===_[0])return new rr(!0,0,_);let f=0,h=!1;const w=_.reduce((O,B,ee)=>{if("object"==typeof B&&null!=B){if(B.outlets){const ge={};return dt(B.outlets,(qe,Mt)=>{ge[Mt]="string"==typeof qe?qe.split("/"):qe}),[...O,{outlets:ge}]}if(B.segmentPath)return[...O,B.segmentPath]}return"string"!=typeof B?[...O,B]:0===ee?(B.split("/").forEach((ge,qe)=>{0==qe&&"."===ge||(0==qe&&""===ge?h=!0:".."===ge?f++:""!=ge&&O.push(ge))}),O):[...O,B]},[]);return new rr(h,f,w)}(h);if(B.toRoot())return Ii(f.root,new Dt([],{}),f,w,O);const ee=function kr(_,f,h){if(_.isAbsolute)return new fr(f.root,!0,0);if(-1===h.snapshot._lastPathIndex){const B=h.snapshot._urlSegment;return new fr(B,B===f.root,0)}const w=Sn(_.commands[0])?0:1;return function uo(_,f,h){let w=_,O=f,B=h;for(;B>O;){if(B-=O,w=w.parent,!w)throw new Error("Invalid number of '../'");O=w.segments.length}return new fr(w,!1,O-B)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+w,_.numberOfDoubleDots)}(B,f,_),ge=ee.processChildren?mr(ee.segmentGroup,ee.index,B.commands):Fr(ee.segmentGroup,ee.index,B.commands);return Ii(ee.segmentGroup,ge,f,w,O)}(Mt,this.currentUrlTree,h,Bt,null!=cn?cn:null)}navigateByUrl(h,w={skipLocationChange:!1}){const O=Mi(h)?h:this.parseUrl(h),B=this.urlHandlingStrategy.merge(O,this.rawUrlTree);return this.scheduleNavigation(B,"imperative",null,w)}navigate(h,w={skipLocationChange:!1}){return function Mo(_){for(let f=0;f<_.length;f++){const h=_[f];if(null==h)throw new Error(`The requested path contains ${h} segment at index ${f}`)}}(h),this.navigateByUrl(this.createUrlTree(h,w),w)}serializeUrl(h){return this.urlSerializer.serialize(h)}parseUrl(h){let w;try{w=this.urlSerializer.parse(h)}catch(O){w=this.malformedUriErrorHandler(O,this.urlSerializer,h)}return w}isActive(h,w){let O;if(O=!0===w?Object.assign({},Hn):!1===w?Object.assign({},eo):w,Mi(h))return j(this.currentUrlTree,h,O);const B=this.parseUrl(h);return j(this.currentUrlTree,B,O)}removeEmptyProps(h){return Object.keys(h).reduce((w,O)=>{const B=h[O];return null!=B&&(w[O]=B),w},{})}processNavigations(){this.navigations.subscribe(h=>{this.navigated=!0,this.lastSuccessfulId=h.id,this.currentPageId=h.targetPageId,this.events.next(new Xe(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,h.resolve(!0)},h=>{this.console.warn(`Unhandled Navigation Error: ${h}`)})}scheduleNavigation(h,w,O,B,ee){var ge,qe,Mt;if(this.disposed)return Promise.resolve(!1);const cn=this.transitions.value,Bt=ho(w)&&cn&&!ho(cn.source),xn=cn.rawUrl.toString()===h.toString(),Pn=cn.id===(null===(ge=this.currentNavigation)||void 0===ge?void 0:ge.id);if(Bt&&xn&&Pn)return Promise.resolve(!0);let Ur,mo,Ir;ee?(Ur=ee.resolve,mo=ee.reject,Ir=ee.promise):Ir=new Promise((Ao,ea)=>{Ur=Ao,mo=ea});const Er=++this.navigationId;let go;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(O=this.location.getState()),go=O&&O.\u0275routerPageId?O.\u0275routerPageId:B.replaceUrl||B.skipLocationChange?null!==(qe=this.browserPageId)&&void 0!==qe?qe:0:(null!==(Mt=this.browserPageId)&&void 0!==Mt?Mt:0)+1):go=0,this.setTransition({id:Er,targetPageId:go,source:w,restoredState:O,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:h,extras:B,resolve:Ur,reject:mo,promise:Ir,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ir.catch(Ao=>Promise.reject(Ao))}setBrowserUrl(h,w){const O=this.urlSerializer.serialize(h),B=Object.assign(Object.assign({},w.extras.state),this.generateNgRouterState(w.id,w.targetPageId));this.location.isCurrentPathEqualTo(O)||w.extras.replaceUrl?this.location.replaceState(O,"",B):this.location.go(O,"",B)}restoreHistory(h,w=!1){var O,B;if("computed"===this.canceledNavigationResolution){const ee=this.currentPageId-h.targetPageId;"popstate"!==h.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(O=this.currentNavigation)||void 0===O?void 0:O.finalUrl)||0===ee?this.currentUrlTree===(null===(B=this.currentNavigation)||void 0===B?void 0:B.finalUrl)&&0===ee&&(this.resetState(h),this.browserUrlTree=h.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ee)}else"replace"===this.canceledNavigationResolution&&(w&&this.resetState(h),this.resetUrlToCurrentUrlTree())}resetState(h){this.routerState=h.currentRouterState,this.currentUrlTree=h.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,h.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(h,w){const O=new je(h.id,this.serializeUrl(h.extractedUrl),w);this.triggerEvent(O),h.resolve(!1)}generateNgRouterState(h,w){return"computed"===this.canceledNavigationResolution?{navigationId:h,\u0275routerPageId:w}:{navigationId:h}}}return _.\u0275fac=function(h){c.$Z()},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();function ho(_){return"imperative"!==_}let Tt=(()=>{class _{constructor(h,w,O,B,ee){this.router=h,this.route=w,this.tabIndexAttribute=O,this.renderer=B,this.el=ee,this.commands=null,this.onChanges=new Ze.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(h){if(null!=this.tabIndexAttribute)return;const w=this.renderer,O=this.el.nativeElement;null!==h?w.setAttribute(O,"tabindex",h):w.removeAttribute(O,"tabindex")}ngOnChanges(h){this.onChanges.next(this)}set routerLink(h){null!=h?(this.commands=Array.isArray(h)?h:[h],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const h={skipLocationChange:Lt(this.skipLocationChange),replaceUrl:Lt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,h),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Lt(this.preserveFragment)})}}return _.\u0275fac=function(h){return new(h||_)(c.Y36(oi),c.Y36(Xn),c.$8M("tabindex"),c.Y36(c.Qsj),c.Y36(c.SBq))},_.\u0275dir=c.lG2({type:_,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(h,w){1&h&&c.NdJ("click",function(){return w.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),_})(),Ft=(()=>{class _{constructor(h,w,O){this.router=h,this.route=w,this.locationStrategy=O,this.commands=null,this.href=null,this.onChanges=new Ze.x,this.subscription=h.events.subscribe(B=>{B instanceof Xe&&this.updateTargetUrlAndHref()})}set routerLink(h){this.commands=null!=h?Array.isArray(h)?h:[h]:null}ngOnChanges(h){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(h,w,O,B,ee){if(0!==h||w||O||B||ee||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ge={skipLocationChange:Lt(this.skipLocationChange),replaceUrl:Lt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ge),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Lt(this.preserveFragment)})}}return _.\u0275fac=function(h){return new(h||_)(c.Y36(oi),c.Y36(Xn),c.Y36(Vt.S$))},_.\u0275dir=c.lG2({type:_,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(h,w){1&h&&c.NdJ("click",function(B){return w.onClick(B.button,B.ctrlKey,B.shiftKey,B.altKey,B.metaKey)}),2&h&&c.uIk("target",w.target)("href",w.href,c.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),_})();function Lt(_){return""===_||!!_}class Hi{}class Cr{preload(f,h){return(0,X.of)(null)}}let wn=(()=>{class _{constructor(h,w,O,B){this.router=h,this.injector=O,this.preloadingStrategy=B,this.loader=new Sr(O,w,qe=>h.triggerEvent(new jt(qe)),qe=>h.triggerEvent(new Ct(qe)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,pe.h)(h=>h instanceof Xe),(0,Rt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const h=this.injector.get(c.h0i);return this.processRoutes(h,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(h,w){const O=[];for(const B of w)if(B.loadChildren&&!B.canLoad&&B._loadedConfig){const ee=B._loadedConfig;O.push(this.processRoutes(ee.module,ee.routes))}else B.loadChildren&&!B.canLoad?O.push(this.preloadConfig(h,B)):B.children&&O.push(this.processRoutes(h,B.children));return(0,de.D)(O).pipe((0,dn.J)(),(0,mt.U)(B=>{}))}preloadConfig(h,w){return this.preloadingStrategy.preload(w,()=>(w._loadedConfig?(0,X.of)(w._loadedConfig):this.loader.load(h.injector,w)).pipe((0,Wt.z)(B=>(w._loadedConfig=B,this.processRoutes(B.module,B.routes)))))}}return _.\u0275fac=function(h){return new(h||_)(c.LFG(oi),c.LFG(c.Sil),c.LFG(c.zs3),c.LFG(Hi))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})(),Or=(()=>{class _{constructor(h,w,O={}){this.router=h,this.viewportScroller=w,this.options=O,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},O.scrollPositionRestoration=O.scrollPositionRestoration||"disabled",O.anchorScrolling=O.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(h=>{h instanceof on?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=h.navigationTrigger,this.restoredId=h.restoredState?h.restoredState.navigationId:0):h instanceof Xe&&(this.lastId=h.id,this.scheduleScrollEvent(h,this.router.parseUrl(h.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(h=>{h instanceof S&&(h.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(h.position):h.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(h.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(h,w){this.router.triggerEvent(new S(h,"popstate"===this.lastSource?this.store[this.restoredId]:null,w))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return _.\u0275fac=function(h){c.$Z()},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();const Jn=new c.OlP("ROUTER_CONFIGURATION"),$i=new c.OlP("ROUTER_FORROOT_GUARD"),ur=[Vt.Ye,{provide:Ie,useClass:rt},{provide:oi,useFactory:function _s(_,f,h,w,O,B,ee={},ge,qe){const Mt=new oi(null,_,f,h,w,O,nn(B));return ge&&(Mt.urlHandlingStrategy=ge),qe&&(Mt.routeReuseStrategy=qe),function ko(_,f){_.errorHandler&&(f.errorHandler=_.errorHandler),_.malformedUriErrorHandler&&(f.malformedUriErrorHandler=_.malformedUriErrorHandler),_.onSameUrlNavigation&&(f.onSameUrlNavigation=_.onSameUrlNavigation),_.paramsInheritanceStrategy&&(f.paramsInheritanceStrategy=_.paramsInheritanceStrategy),_.relativeLinkResolution&&(f.relativeLinkResolution=_.relativeLinkResolution),_.urlUpdateStrategy&&(f.urlUpdateStrategy=_.urlUpdateStrategy),_.canceledNavigationResolution&&(f.canceledNavigationResolution=_.canceledNavigationResolution)}(ee,Mt),ee.enableTracing&&Mt.events.subscribe(cn=>{var Bt,xn;null===(Bt=console.group)||void 0===Bt||Bt.call(console,`Router Event: ${cn.constructor.name}`),console.log(cn.toString()),console.log(cn),null===(xn=console.groupEnd)||void 0===xn||xn.call(console)}),Mt},deps:[Ie,Pi,Vt.Ye,c.zs3,c.Sil,ri,Jn,[class Ui{},new c.FiY],[class $n{},new c.FiY]]},Pi,{provide:Xn,useFactory:function Xs(_){return _.routerState.root},deps:[oi]},wn,Cr,class Li{preload(f,h){return h().pipe(Q(()=>(0,X.of)(null)))}},{provide:Jn,useValue:{enableTracing:!1}}];function Vr(){return new c.PXZ("Router",oi)}let wo=(()=>{class _{constructor(h,w){}static forRoot(h,w){return{ngModule:_,providers:[ur,gs(h),{provide:$i,useFactory:Ro,deps:[[oi,new c.FiY,new c.tp0]]},{provide:Jn,useValue:w||{}},{provide:Vt.S$,useFactory:fu,deps:[Vt.lw,[new c.tBr(Vt.mr),new c.FiY],Jn]},{provide:Or,useFactory:hu,deps:[oi,Vt.EM,Jn]},{provide:Hi,useExisting:w&&w.preloadingStrategy?w.preloadingStrategy:Cr},{provide:c.PXZ,multi:!0,useFactory:Vr},[Fo,{provide:c.ip1,multi:!0,useFactory:Co,deps:[Fo]},{provide:fo,useFactory:za,deps:[Fo]},{provide:c.tb,multi:!0,useExisting:fo}]]}}static forChild(h){return{ngModule:_,providers:[gs(h)]}}}return _.\u0275fac=function(h){return new(h||_)(c.LFG($i,8),c.LFG(oi,8))},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({}),_})();function hu(_,f,h){return h.scrollOffset&&f.setOffset(h.scrollOffset),new Or(_,f,h)}function fu(_,f,h={}){return h.useHash?new Vt.Do(_,f):new Vt.b0(_,f)}function Ro(_){return"guarded"}function gs(_){return[{provide:c.deG,multi:!0,useValue:_},{provide:ri,multi:!0,useValue:_}]}let Fo=(()=>{class _{constructor(h){this.injector=h,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ze.x}appInitializer(){return this.injector.get(Vt.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let w=null;const O=new Promise(ge=>w=ge),B=this.injector.get(oi),ee=this.injector.get(Jn);return"disabled"===ee.initialNavigation?(B.setUpLocationChangeListener(),w(!0)):"enabled"===ee.initialNavigation||"enabledBlocking"===ee.initialNavigation?(B.hooks.afterPreactivation=()=>this.initNavigation?(0,X.of)(null):(this.initNavigation=!0,w(!0),this.resultOfPreactivationDone),B.initialNavigation()):w(!0),O})}bootstrapListener(h){const w=this.injector.get(Jn),O=this.injector.get(wn),B=this.injector.get(Or),ee=this.injector.get(oi),ge=this.injector.get(c.z2F);h===ge.components[0]&&(("enabledNonBlocking"===w.initialNavigation||void 0===w.initialNavigation)&&ee.initialNavigation(),O.setUpPreloading(),B.init(),ee.resetRootComponentType(ge.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return _.\u0275fac=function(h){return new(h||_)(c.LFG(c.zs3))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();function Co(_){return _.appInitializer.bind(_)}function za(_){return _.bootstrapListener.bind(_)}const fo=new c.OlP("Router Initializer")}},We=>{We(We.s=9563)}]);
\ No newline at end of file
+"use strict";(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{6498:($e,ve,b)=>{b.d(ve,{z:()=>m});var c=b(4893),s=b(2313);let m=(()=>{class W{constructor(q){this.sanitizer=q}transform(q,Ce){return q=(q=(q=q.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(q)}}return W.\u0275fac=function(q){return new(q||W)(c.Y36(s.H7,16))},W.\u0275pipe=c.Yjl({name:"safeHtml",type:W,pure:!0}),W})()},5928:($e,ve,b)=>{b.d(ve,{h:()=>Le});var c=b(8966),s=b(8306),m=b(4986),W=b(5963),q=b(4893),Ce=b(9808),be=b(7423),ce=b(7918),te=b(6498);function oe(K,Je){if(1&K){const Ye=q.EpF();q.TgZ(0,"button",3),q.NdJ("click",function(){return q.CHM(Ye),q.oxw().close()}),q.TgZ(1,"uds-translate"),q._uU(2,"Close"),q.qZA(),q._uU(3),q.qZA()}if(2&K){const Ye=q.oxw();q.xp6(3),q.Oqu(Ye.extra)}}function ue(K,Je){if(1&K){const Ye=q.EpF();q.TgZ(0,"button",3),q.NdJ("click",function(){return q.CHM(Ye),q.oxw().yes()}),q.TgZ(1,"uds-translate"),q._uU(2,"Yes"),q.qZA()()}}function X(K,Je){if(1&K){const Ye=q.EpF();q.TgZ(0,"button",3),q.NdJ("click",function(){return q.CHM(Ye),q.oxw().no()}),q.TgZ(1,"uds-translate"),q._uU(2,"No"),q.qZA()()}}var ae=(()=>{return(K=ae||(ae={}))[K.alert=0]="alert",K[K.yesno=1]="yesno",ae;var K})();let Pe=(()=>{class K{constructor(Ye,Ke){this.dialogRef=Ye,this.data=Ke,this.subscription=null,this.resetCallbacks(),this.yesno=new s.y(pe=>{this.yes=()=>{pe.next(!0),pe.complete()},this.no=()=>{pe.next(!1),pe.complete()},this.close=()=>{this.doClose(),pe.next(!1),pe.complete()};const z=this;return{unsubscribe:()=>z.resetCallbacks()}})}resetCallbacks(){this.yes=this.no=()=>this.close(),this.close=()=>this.doClose()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}doClose(){this.dialogRef.close()}setExtra(Ye){this.extra=" ("+Math.floor(Ye/1e3)+" "+django.gettext("seconds")+") "}initAlert(){this.data.autoclose>0?(this.dialogRef.afterClosed().subscribe(Ye=>{this.closed()}),this.setExtra(this.data.autoclose),this.subscription=function le(K=0,Je=m.z){return K<0&&(K=0),(0,W.H)(K,K,Je)}(1e3).subscribe(Ye=>{const Ke=this.data.autoclose-1e3*(Ye+1);this.setExtra(Ke),Ke<=0&&this.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(Ye=>{this.closed()}),this.subscription=this.data.checkClose.subscribe(Ye=>{window.setTimeout(()=>{this.doClose()})}))}initYesNo(){}ngOnInit(){this.data.type===ae.yesno?this.initYesNo():this.initAlert()}}return K.\u0275fac=function(Ye){return new(Ye||K)(q.Y36(c.so),q.Y36(c.WI))},K.\u0275cmp=q.Xpm({type:K,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(Ye,Ke){1&Ye&&(q._UZ(0,"h4",0),q.ALo(1,"safeHtml"),q._UZ(2,"mat-dialog-content",1),q.ALo(3,"safeHtml"),q.TgZ(4,"mat-dialog-actions"),q.YNc(5,oe,4,1,"button",2),q.YNc(6,ue,3,0,"button",2),q.YNc(7,X,3,0,"button",2),q.qZA()),2&Ye&&(q.Q6J("innerHtml",q.lcZ(1,5,Ke.data.title),q.oJD),q.xp6(2),q.Q6J("innerHTML",q.lcZ(3,7,Ke.data.body),q.oJD),q.xp6(3),q.Q6J("ngIf",0===Ke.data.type),q.xp6(1),q.Q6J("ngIf",1===Ke.data.type),q.xp6(1),q.Q6J("ngIf",1===Ke.data.type))},directives:[c.uh,c.xY,c.H8,Ce.O5,be.lW,c.ZT,ce.P],pipes:[te.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),K})(),Le=(()=>{class K{constructor(Ye){this.dialog=Ye}alert(Ye,Ke,pe=0,z=null){const Q=window.innerWidth<800?"80%":"40%";return this.dialog.open(Pe,{width:Q,data:{title:Ye,body:Ke,autoclose:pe,checkClose:z,type:ae.alert},disableClose:!0})}yesno(Ye,Ke){const pe=window.innerWidth<800?"80%":"40%";return this.dialog.open(Pe,{width:pe,data:{title:Ye,body:Ke,type:ae.yesno},disableClose:!0}).componentInstance.yesno}}return K.\u0275fac=function(Ye){return new(Ye||K)(q.LFG(c.uw))},K.\u0275prov=q.Yz7({token:K,factory:K.\u0275fac}),K})()},2870:($e,ve,b)=>{b.d(ve,{S:()=>s});var c=b(8306);let s=(()=>{class m{constructor(le){this.api=le,this.delay=le.config.launcher_wait_time}launchURL(le){let q="init";const Ce=be=>{let ce=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof be?ce=be:403===be.status&&(ce=django.gettext("Your session has expired. Please, login again")),window.setTimeout(()=>{this.showAlert(django.gettext("Error"),ce,5e3),403===be.status&&window.setTimeout(()=>{this.api.logout()},5e3)})};if("udsa://"===le.substring(0,7)){const be=le.split("//")[1].split("/"),ce=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new c.y(te=>{let oe=0;const ue=()=>{ce.componentInstance&&this.api.status(be[0],be[1]).subscribe(ae=>{"ready"===ae.status?(oe?Date.now()-oe>5*this.delay&&(ce.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),ce.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(oe=Date.now(),ce.componentInstance.data.title=django.gettext("Service ready"),ce.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(ue,this.delay)):"accessed"===ae.status?(ce.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),te.next(!0),te.complete()):"running"===ae.status?window.setTimeout(ue,this.delay):(te.next(!0),te.complete(),Ce())},ae=>{te.next(!0),te.complete(),Ce(ae)})},X=()=>{if("init"===q)window.setTimeout(X,this.delay);else{if("error"===q||"stop"===q)return;window.setTimeout(ue)}};window.setTimeout(X)}));this.api.enabler(be[0],be[1]).subscribe(te=>{if(te.error)q="error",this.api.gui.alert(django.gettext("Error launching service"),te.error);else{if(te.url.startsWith("/"))return ce.componentInstance&&ce.componentInstance.close(),q="stop",void this.launchURL(te.url);"https:"===window.location.protocol&&(te.url=te.url.replace("uds://","udss://")),q="enabled",this.doLaunch(te.url)}},te=>{this.api.logout()})}else{const be=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new c.y(ce=>{const te=()=>{be.componentInstance&&this.api.transportUrl(le).subscribe(oe=>{if(oe.url)if(ce.next(!0),ce.complete(),-1!==oe.url.indexOf("o_s_w=")){const ue=/(.*)&o_s_w=.*/.exec(oe.url);window.location.href=ue[1]}else{let ue="global";if(-1!==oe.url.indexOf("o_n_w=")){const X=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(oe.url);X&&(ue=X[2],oe.url=X[1])}m.transportsWindow[ue]&&m.transportsWindow[ue].close(),m.transportsWindow[ue]=window.open(oe.url,"uds_trans_"+ue)}else oe.running?window.setTimeout(te,this.delay):(ce.next(!0),ce.complete(),Ce(oe.error))},oe=>{ce.next(!0),ce.complete(),Ce(oe)})};window.setTimeout(te)}))}}showAlert(le,q,Ce,be=null){return this.api.gui.alert(django.gettext("Launching service"),''+le+'
'+q+"
",Ce,be)}doLaunch(le){let q=document.getElementById("hiddenUdsLauncherIFrame");if(null===q){const Ce=document.createElement("div");Ce.id="testID",Ce.innerHTML='',document.body.appendChild(Ce),q=document.getElementById("hiddenUdsLauncherIFrame")}q.contentWindow.location.href=le}}return m.transportsWindow={},m})()},4902:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{G:()=>LoginComponent});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4893),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2382),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7322),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7531),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9808),_angular_material_select__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4107),_angular_material_core__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(508),_angular_material_button__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7423),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template($e,ve){if(1&$e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&$e){const b=ve.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",b.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",b.name," ")}}function LoginComponent_div_22_Template($e,ve){if(1&$e){const b=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9)(1,"mat-form-field",17)(2,"mat-label")(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(s){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(s.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()()}if(2&$e){const b=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",b.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",b.auths)}}let LoginComponent=(()=>{class LoginComponent{constructor($e){this.api=$e,this.title="UDS Enterprise",this.title=$e.config.site_name,this.auths=$e.config.authenticators.slice(0),this.auths.sort((ve,b)=>ve.priority-b.priority)}ngOnInit(){document.getElementById("loginform").action=this.api.config.urls.login;const ve=document.getElementById("token");ve.name=this.api.csrfField,ve.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),""+this.api.errors.join("
")+"
")}changeAuth(auth){this.auth.value=auth;const doCustomAuth=data=>{eval(data)};for(const $e of this.auths)$e.id===auth&&$e.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml($e.id).subscribe(ve=>doCustomAuth(ve)))}launch(){return document.getElementById("loginform").submit(),!0}}return LoginComponent.\u0275fac=function $e(ve){return new(ve||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function $e(ve,b){1&ve&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return b.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1)(2,"input",2)(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4)(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8)(10,"div",9)(11,"mat-form-field",10)(12,"mat-label")(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9)(17,"mat-form-field",10)(18,"mat-label")(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14)(24,"button",15)(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()),2&ve&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",b.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",b.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",b.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,b.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_select__WEBPACK_IMPORTED_MODULE_7__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_8__.ey,_angular_material_button__WEBPACK_IMPORTED_MODULE_9__.lW],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0000001f,0 1px 5px #0003;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent})()},7918:($e,ve,b)=>{b.d(ve,{P:()=>s});var c=b(4893);let s=(()=>{class m{constructor(le){this.el=le}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}return m.\u0275fac=function(le){return new(le||m)(c.Y36(c.SBq))},m.\u0275dir=c.lG2({type:m,selectors:[["uds-translate"]]}),m})()},3513:($e,ve,b)=>{b.d(ve,{n:()=>c});class c{constructor(m){this.user=m.user,this.role=m.role,this.admin=m.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}get isRestricted(){return"restricted"===this.role}}},7540:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{n:()=>UDSApiService});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4893),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(520),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5928),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9525);const DARK_THEME="dark-theme",LIGHT_THEME="light-theme";let UDSApiService=(()=>{class UDSApiService{constructor($e,ve,b){this.http=$e,this.gui=ve,this.router=b,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get staffInfo(){return udsData.info}get plugins(){return udsData.plugins}get actors(){return udsData.actors}get errors(){return udsData.errors}enabler($e,ve){const b=this.config.urls.enabler.replace("param1",$e).replace("param2",ve);return this.http.get(b)}status($e,ve){const b=this.config.urls.status.replace("param1",$e).replace("param2",ve);return this.http.get(b)}action($e,ve){const b=this.config.urls.action.replace("param1",ve).replace("param2",$e);return this.http.get(b)}transportUrl($e){return this.http.get($e)}galleryImageURL($e){return this.config.urls.galleryImage.replace("param1",$e)}transportIconURL($e){return this.config.urls.transportIcon.replace("param1",$e)}staticURL($e){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+$e:"/static/"+$e}getServicesInformation(){return this.http.get(this.config.urls.services)}getErrorInformation($e){return this.http.get(this.config.urls.error.replace("9999",$e))}executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}gotoAdmin(){window.location.href=this.config.urls.admin}logout(){window.location.href=this.config.urls.logout}launchURL($e){this.plugin.launchURL($e)}getAuthCustomHtml($e){return this.http.get(this.config.urls.customAuth+$e,{responseType:"text"})}switchTheme($e){const ve=document.getElementsByTagName("html")[0];[DARK_THEME,LIGHT_THEME].forEach(b=>{ve.classList.contains(b)&&ve.classList.remove(b)}),ve.classList.add($e?DARK_THEME:LIGHT_THEME)}}return UDSApiService.\u0275fac=function $e(ve){return new(ve||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService})()},2340:($e,ve,b)=>{b.d(ve,{N:()=>c});const c={production:!0}},9563:($e,ve,b)=>{var c=b(2313),s=b(4893),m=b(3191),W=b(7579),le=b(9841),q=b(7272),Ce=b(8306),be=b(5698),ce=b(5684),te=b(8372),oe=b(4004),ue=b(8675),X=b(2722),ae=b(925);let Pe=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275mod=s.oAB({type:R}),R.\u0275inj=s.cJS({}),R})();const Le=new Set;let K,Je=(()=>{class R{constructor(r){this._platform=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ke}matchMedia(r){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ye(R){if(!Le.has(R))try{K||(K=document.createElement("style"),K.setAttribute("type","text/css"),document.head.appendChild(K)),K.sheet&&(K.sheet.insertRule(`@media ${R} {body{ }}`,0),Le.add(R))}catch(y){console.error(y)}}(r),this._matchMedia(r)}}return R.\u0275fac=function(r){return new(r||R)(s.LFG(ae.t4))},R.\u0275prov=s.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function Ke(R){return{matches:"all"===R||""===R,media:R,addListener:()=>{},removeListener:()=>{}}}let pe=(()=>{class R{constructor(r,a){this._mediaMatcher=r,this._zone=a,this._queries=new Map,this._destroySubject=new W.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(r){return z((0,m.Eq)(r)).some(h=>this._registerQuery(h).mql.matches)}observe(r){const h=z((0,m.Eq)(r)).map(N=>this._registerQuery(N).observable);let A=(0,le.a)(h);return A=(0,q.z)(A.pipe((0,be.q)(1)),A.pipe((0,ce.T)(1),(0,te.b)(0))),A.pipe((0,oe.U)(N=>{const Z={matches:!1,breakpoints:{}};return N.forEach(({matches:re,query:De})=>{Z.matches=Z.matches||re,Z.breakpoints[De]=re}),Z}))}_registerQuery(r){if(this._queries.has(r))return this._queries.get(r);const a=this._mediaMatcher.matchMedia(r),A={observable:new Ce.y(N=>{const Z=re=>this._zone.run(()=>N.next(re));return a.addListener(Z),()=>{a.removeListener(Z)}}).pipe((0,ue.O)(a),(0,oe.U)(({matches:N})=>({query:r,matches:N})),(0,X.R)(this._destroySubject)),mql:a};return this._queries.set(r,A),A}}return R.\u0275fac=function(r){return new(r||R)(s.LFG(Je),s.LFG(s.R0b))},R.\u0275prov=s.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function z(R){return R.map(y=>y.split(",")).reduce((y,r)=>y.concat(r)).map(y=>y.trim())}var fe=b(520),Ae=b(9525),Fe=b(7540);let _e=(()=>{class R{constructor(r){this.api=r}canActivate(r,a){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}return R.\u0275fac=function(r){return new(r||R)(s.LFG(Fe.n))},R.\u0275prov=s.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();var Ee=b(4902),Te=b(7918),we=b(9808);function Xe(R,y){if(1&R){const r=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const A=s.CHM(r).$implicit;return s.oxw().download(A.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s.TgZ(3,"div",9),s._uU(4),s.qZA(),s.TgZ(5,"div",10),s._uU(6),s.qZA()()}if(2&R){const r=y.$implicit,a=s.oxw();s.Tol(a.css(r)),s.xp6(2),s.Q6J("src",a.img(r.name),s.LSH),s.xp6(2),s.lnq(" ",a.legacy(r)," ",r.name," (",r.url.split(".").pop(),") "),s.xp6(2),s.hij(" ",r.description," ")}}let Re=(()=>{class R{constructor(r){this.api=r}ngOnInit(){}download(r){window.location.href=r}img(r){return this.api.staticURL("modern/img/"+r+".png")}css(r){const a=["plugin"];return r.legacy&&a.push("legacy"),a}legacy(r){return r.legacy?"Legacy":""}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Fe.n))},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(r,a){1&r&&(s.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1")(4,"uds-translate"),s._uU(5,"UDS Client"),s.qZA()()()(),s.TgZ(6,"div",3),s.YNc(7,Xe,7,7,"div",4),s.qZA(),s.TgZ(8,"div",5)(9,"ul")(10,"li")(11,"uds-translate"),s._uU(12,"Download UDS client for your platform"),s.qZA()()()()()),2&r&&(s.xp6(7),s.Q6J("ngForOf",a.api.plugins))},directives:[Te.P,we.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem #00000040,0 10px 10px #00000038;background-color:#0000001a}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem} .dark-theme uds-client-download{color:#fff!important} .dark-theme .plugin.legacy{background-color:#a9a9a9} .dark-theme .plugin:hover{background-color:#ffffff1a}"]}),R})();var vt=b(6498);function pt(R,y){if(1&R){const r=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const A=s.CHM(r).$implicit;return s.oxw().download(A.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s._UZ(3,"div",9),s.ALo(4,"safeHtml"),s._UZ(5,"div",10),s.ALo(6,"safeHtml"),s.qZA()}if(2&R){const r=y.$implicit,a=s.oxw();s.Tol(a.css(r.name)),s.xp6(2),s.Q6J("src",a.img(r.name),s.LSH),s.xp6(1),s.Q6J("innerHTML",s.lcZ(4,5,r.name),s.oJD),s.xp6(2),s.Q6J("innerHTML",s.lcZ(6,7,r.description),s.oJD)}}let Qt=(()=>{class R{constructor(r){this.api=r}ngOnInit(){this.actors=[];const r=[];this.api.actors.forEach(a=>{a.name.includes("legacy")?r.push(a):this.actors.push(a)}),r.forEach(a=>{this.actors.push(a)})}download(r){window.location.href=r}img(r){const a=r.split(".").pop().toLowerCase();let h="Linux";return"exe"===a?h="Windows":"pkg"===a&&(h="MacOS"),this.api.staticURL("modern/img/"+h+".png")}css(r){const a=["actor"];return r.toLowerCase().includes("legacy")&&a.push("legacy"),a}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Fe.n))},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(r,a){1&r&&(s.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1")(4,"uds-translate"),s._uU(5,"Downloads"),s.qZA()()()(),s.TgZ(6,"div",3),s.YNc(7,pt,7,9,"div",4),s.qZA(),s.TgZ(8,"div",5)(9,"ul")(10,"li")(11,"uds-translate"),s._uU(12,"Always download the UDS actor matching your platform"),s.qZA()(),s.TgZ(13,"li")(14,"uds-translate"),s._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),s.qZA()()()()()),2&r&&(s.xp6(7),s.Q6J("ngForOf",a.actors))},directives:[Te.P,we.sg],pipes:[vt.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem #00000040,0 10px 10px #00000038;background-color:#0000001a}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:700;overflow:hidden} .dark-theme uds-downloads{color:#fff!important} .dark-theme .actor.legacy{background-color:#464646}"]}),R})();var _t=b(4968),It=b(9300),$t=b(1884),Ot=b(8505),cn=b(7322),Nt=b(7531);const Tt=["input"];let nn=(()=>{class R{constructor(){this.updateEvent=new s.vpe}ngAfterViewInit(){(0,_t.R)(this.input.nativeElement,"keyup").pipe((0,It.h)(Boolean),(0,te.b)(600),(0,$t.x)(),(0,Ot.b)(()=>this.update(this.input.nativeElement.value))).subscribe()}update(r){this.updateEvent.emit(r.toLowerCase())}}return R.\u0275fac=function(r){return new(r||R)},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-filter"]],viewQuery:function(r,a){if(1&r&&s.Gf(Tt,7),2&r){let h;s.iGM(h=s.CRH())&&(a.input=h.first)}},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(r,a){1&r&&(s.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-label")(3,"uds-translate"),s._uU(4,"Filter"),s.qZA()(),s._UZ(5,"input",2,3),s.TgZ(7,"i",4),s._uU(8,"search"),s.qZA()()())},directives:[cn.KE,cn.hX,Te.P,Nt.Nt,cn.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),R})();var Qe=b(727),He=b(449);let J=0;const Y=new s.OlP("CdkAccordion");let Ve=(()=>{class R{constructor(){this._stateChanges=new W.x,this._openCloseAllActions=new W.x,this.id="cdk-accordion-"+J++,this._multi=!1}get multi(){return this._multi}set multi(r){this._multi=(0,m.Ig)(r)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(r){this._stateChanges.next(r)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return R.\u0275fac=function(r){return new(r||R)},R.\u0275dir=s.lG2({type:R,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s._Bn([{provide:Y,useExisting:R}]),s.TTD]}),R})(),ze=0,st=(()=>{class R{constructor(r,a,h){this.accordion=r,this._changeDetectorRef=a,this._expansionDispatcher=h,this._openCloseAllSubscription=Qe.w0.EMPTY,this.closed=new s.vpe,this.opened=new s.vpe,this.destroyed=new s.vpe,this.expandedChange=new s.vpe,this.id="cdk-accordion-child-"+ze++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=h.listen((A,N)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===N&&this.id!==A&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(r){r=(0,m.Ig)(r),this._expanded!==r&&(this._expanded=r,this.expandedChange.emit(r),r?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(r){this._disabled=(0,m.Ig)(r)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(r=>{this.disabled||(this.expanded=r)})}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Y,12),s.Y36(s.sBO),s.Y36(He.A8))},R.\u0275dir=s.lG2({type:R,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s._Bn([{provide:Y,useValue:void 0}])]}),R})(),xt=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275mod=s.oAB({type:R}),R.\u0275inj=s.cJS({}),R})();var Ut=b(7429),yt=b(508),Ft=b(5664),ot=b(1159),Oe=b(6360),C=b(515),S=b(6451),E=b(1777);const P=["body"];function F(R,y){}const ie=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ye=["mat-expansion-panel-header","*","mat-action-row"];function Be(R,y){if(1&R&&s._UZ(0,"span",2),2&R){const r=s.oxw();s.Q6J("@indicatorRotate",r._getExpandedState())}}const je=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],mt=["mat-panel-title","mat-panel-description","*"],at=new s.OlP("MAT_ACCORDION"),St="225ms cubic-bezier(0.4,0.0,0.2,1)",en={indicatorRotate:(0,E.X$)("indicatorRotate",[(0,E.SB)("collapsed, void",(0,E.oB)({transform:"rotate(0deg)"})),(0,E.SB)("expanded",(0,E.oB)({transform:"rotate(180deg)"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)(St))]),bodyExpansion:(0,E.X$)("bodyExpansion",[(0,E.SB)("collapsed, void",(0,E.oB)({height:"0px",visibility:"hidden"})),(0,E.SB)("expanded",(0,E.oB)({height:"*",visibility:"visible"})),(0,E.eR)("expanded <=> collapsed, void => collapsed",(0,E.jt)(St))])};let Wt=(()=>{class R{constructor(r){this._template=r}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(s.Rgc))},R.\u0275dir=s.lG2({type:R,selectors:[["ng-template","matExpansionPanelContent",""]]}),R})(),un=0;const ct=new s.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let gt=(()=>{class R extends st{constructor(r,a,h,A,N,Z,re){super(r,a,h),this._viewContainerRef=A,this._animationMode=Z,this._hideToggle=!1,this.afterExpand=new s.vpe,this.afterCollapse=new s.vpe,this._inputChanges=new W.x,this._headerId="mat-expansion-panel-header-"+un++,this._bodyAnimationDone=new W.x,this.accordion=r,this._document=N,this._bodyAnimationDone.pipe((0,$t.x)((De,Ue)=>De.fromState===Ue.fromState&&De.toState===Ue.toState)).subscribe(De=>{"void"!==De.fromState&&("expanded"===De.toState?this.afterExpand.emit():"collapsed"===De.toState&&this.afterCollapse.emit())}),re&&(this.hideToggle=re.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(r){this._hideToggle=(0,m.Ig)(r)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(r){this._togglePosition=r}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,ue.O)(null),(0,It.h)(()=>this.expanded&&!this._portal),(0,be.q)(1)).subscribe(()=>{this._portal=new Ut.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(r){this._inputChanges.next(r)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const r=this._document.activeElement,a=this._body.nativeElement;return r===a||a.contains(r)}return!1}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(at,12),s.Y36(s.sBO),s.Y36(He.A8),s.Y36(s.s_b),s.Y36(we.K0),s.Y36(Oe.Qb,8),s.Y36(ct,8))},R.\u0275cmp=s.Xpm({type:R,selectors:[["mat-expansion-panel"]],contentQueries:function(r,a,h){if(1&r&&s.Suo(h,Wt,5),2&r){let A;s.iGM(A=s.CRH())&&(a._lazyContent=A.first)}},viewQuery:function(r,a){if(1&r&&s.Gf(P,5),2&r){let h;s.iGM(h=s.CRH())&&(a._body=h.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,a){2&r&&s.ekj("mat-expanded",a.expanded)("_mat-animation-noopable","NoopAnimations"===a._animationMode)("mat-expansion-panel-spacing",a._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s._Bn([{provide:at,useValue:void 0}]),s.qOj,s.TTD],ngContentSelectors:ye,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(r,a){1&r&&(s.F$t(ie),s.Hsn(0),s.TgZ(1,"div",0,1),s.NdJ("@bodyExpansion.done",function(A){return a._bodyAnimationDone.next(A)}),s.TgZ(3,"div",2),s.Hsn(4,1),s.YNc(5,F,0,0,"ng-template",3),s.qZA(),s.Hsn(6,2),s.qZA()),2&r&&(s.xp6(1),s.Q6J("@bodyExpansion",a._getExpandedState())("id",a.id),s.uIk("aria-labelledby",a._headerId),s.xp6(4),s.Q6J("cdkPortalOutlet",a._portal))},directives:[Ut.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[en.bodyExpansion]},changeDetection:0}),R})();class Me{}const V=(0,yt.sb)(Me);let j=(()=>{class R extends V{constructor(r,a,h,A,N,Z,re){super(),this.panel=r,this._element=a,this._focusMonitor=h,this._changeDetectorRef=A,this._animationMode=Z,this._parentChangeSubscription=Qe.w0.EMPTY;const De=r.accordion?r.accordion._stateChanges.pipe((0,It.h)(Ue=>!(!Ue.hideToggle&&!Ue.togglePosition))):C.E;this.tabIndex=parseInt(re||"")||0,this._parentChangeSubscription=(0,S.T)(r.opened,r.closed,De,r._inputChanges.pipe((0,It.h)(Ue=>!!(Ue.hideToggle||Ue.disabled||Ue.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),r.closed.pipe((0,It.h)(()=>r._containsFocus())).subscribe(()=>h.focusVia(a,"program")),N&&(this.expandedHeight=N.expandedHeight,this.collapsedHeight=N.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const r=this._isExpanded();return r&&this.expandedHeight?this.expandedHeight:!r&&this.collapsedHeight?this.collapsedHeight:null}_keydown(r){switch(r.keyCode){case ot.L_:case ot.K5:(0,ot.Vb)(r)||(r.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(r))}}focus(r,a){r?this._focusMonitor.focusVia(this._element,r,a):this._element.nativeElement.focus(a)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(r=>{r&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(gt,1),s.Y36(s.SBq),s.Y36(Ft.tE),s.Y36(s.sBO),s.Y36(ct,8),s.Y36(Oe.Qb,8),s.$8M("tabindex"))},R.\u0275cmp=s.Xpm({type:R,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,a){1&r&&s.NdJ("click",function(){return a._toggle()})("keydown",function(A){return a._keydown(A)}),2&r&&(s.uIk("id",a.panel._headerId)("tabindex",a.tabIndex)("aria-controls",a._getPanelId())("aria-expanded",a._isExpanded())("aria-disabled",a.panel.disabled),s.Udp("height",a._getHeaderHeight()),s.ekj("mat-expanded",a._isExpanded())("mat-expansion-toggle-indicator-after","after"===a._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===a._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===a._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[s.qOj],ngContentSelectors:mt,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(r,a){1&r&&(s.F$t(je),s.TgZ(0,"span",0),s.Hsn(1),s.Hsn(2,1),s.Hsn(3,2),s.qZA(),s.YNc(4,Be,1,1,"span",1)),2&r&&(s.xp6(4),s.Q6J("ngIf",a._showToggle()))},directives:[we.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[en.indicatorRotate]},changeDetection:0}),R})(),G=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275dir=s.lG2({type:R,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),R})(),de=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275dir=s.lG2({type:R,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),R})(),xe=(()=>{class R extends Ve{constructor(){super(...arguments),this._ownHeaders=new s.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(r){this._hideToggle=(0,m.Ig)(r)}ngAfterContentInit(){this._headers.changes.pipe((0,ue.O)(this._headers)).subscribe(r=>{this._ownHeaders.reset(r.filter(a=>a.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Ft.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(r){this._keyManager.onKeydown(r)}_handleHeaderFocus(r){this._keyManager.updateActiveItem(r)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return R.\u0275fac=function(){let y;return function(a){return(y||(y=s.n5z(R)))(a||R)}}(),R.\u0275dir=s.lG2({type:R,selectors:[["mat-accordion"]],contentQueries:function(r,a,h){if(1&r&&s.Suo(h,j,5),2&r){let A;s.iGM(A=s.CRH())&&(a._headers=A)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(r,a){2&r&&s.ekj("mat-accordion-multi",a.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[s._Bn([{provide:at,useExisting:R}]),s.qOj]}),R})(),rt=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275mod=s.oAB({type:R}),R.\u0275inj=s.cJS({imports:[[we.ez,yt.BQ,xt,Ut.eL]]}),R})();var wt=b(9646),Zt=b(3101),Yt=b(3900),Ct=b(4986),In=b(4482),Ne=b(5403),ge=b(5032),nt=b(5577);function Pt(R,y){return y?r=>(0,q.z)(y.pipe((0,be.q)(1),function ne(){return(0,In.e)((R,y)=>{R.subscribe((0,Ne.x)(y,ge.Z))})}()),r.pipe(Pt(R))):(0,nt.z)((r,a)=>R(r,a).pipe((0,be.q)(1),function Se(R){return(0,oe.U)(()=>R)}(r)))}var zt=b(5963);function yn(R,y=Ct.z){const r=(0,zt.H)(R,y);return Pt(()=>r)}var Jt=b(9776),Pn=b(226),bn=b(495);const Un=["mat-menu-item",""];function ri(R,y){1&R&&(s.O4$(),s.TgZ(0,"svg",2),s._UZ(1,"polygon",3),s.qZA())}const Gn=["*"];function yi(R,y){if(1&R){const r=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(h){return s.CHM(r),s.oxw()._handleKeydown(h)})("click",function(){return s.CHM(r),s.oxw().closed.emit("click")})("@transformMenu.start",function(h){return s.CHM(r),s.oxw()._onAnimationStart(h)})("@transformMenu.done",function(h){return s.CHM(r),s.oxw()._onAnimationDone(h)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA()()}if(2&R){const r=s.oxw();s.Q6J("id",r.panelId)("ngClass",r._classList)("@transformMenu",r._panelAnimationState),s.uIk("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null)("aria-describedby",r.ariaDescribedby||null)}}const oi={transformMenu:(0,E.X$)("transformMenu",[(0,E.SB)("void",(0,E.oB)({opacity:0,transform:"scale(0.8)"})),(0,E.eR)("void => enter",(0,E.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,E.oB)({opacity:1,transform:"scale(1)"}))),(0,E.eR)("* => void",(0,E.jt)("100ms 25ms linear",(0,E.oB)({opacity:0})))]),fadeInItems:(0,E.X$)("fadeInItems",[(0,E.SB)("showing",(0,E.oB)({opacity:1})),(0,E.eR)("void => *",[(0,E.oB)({opacity:0}),(0,E.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ui=new s.OlP("MatMenuContent"),Mn=new s.OlP("MAT_MENU_PANEL"),li=(0,yt.Kr)((0,yt.Id)(class{}));let Xt=(()=>{class R extends li{constructor(r,a,h,A,N){var Z;super(),this._elementRef=r,this._document=a,this._focusMonitor=h,this._parentMenu=A,this._changeDetectorRef=N,this.role="menuitem",this._hovered=new W.x,this._focused=new W.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Z=null==A?void 0:A.addItem)||void 0===Z||Z.call(A,this)}focus(r,a){this._focusMonitor&&r?this._focusMonitor.focusVia(this._getHostElement(),r,a):this._getHostElement().focus(a),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(r){this.disabled&&(r.preventDefault(),r.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var r;const a=this._elementRef.nativeElement.cloneNode(!0),h=a.querySelectorAll("mat-icon, .material-icons");for(let A=0;A{class R{constructor(r,a,h,A){this._elementRef=r,this._ngZone=a,this._defaultOptions=h,this._changeDetectorRef=A,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=Qe.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new W.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Ht++}get xPosition(){return this._xPosition}set xPosition(r){this._xPosition=r,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(r){this._yPosition=r,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(r){this._overlapTrigger=(0,m.Ig)(r)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(r){this._hasBackdrop=(0,m.Ig)(r)}set panelClass(r){const a=this._previousPanelClass;a&&a.length&&a.split(" ").forEach(h=>{this._classList[h]=!1}),this._previousPanelClass=r,r&&r.length&&(r.split(" ").forEach(h=>{this._classList[h]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(r){this.panelClass=r}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ft.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,ue.O)(this._directDescendantItems),(0,Yt.w)(r=>(0,S.T)(...r.map(a=>a._focused)))).subscribe(r=>this._keyManager.updateActiveItem(r)),this._directDescendantItems.changes.subscribe(r=>{var a;const h=this._keyManager;if("enter"===this._panelAnimationState&&(null===(a=h.activeItem)||void 0===a?void 0:a._hasFocus())){const A=r.toArray(),N=Math.max(0,Math.min(A.length-1,h.activeItemIndex||0));A[N]&&!A[N].disabled?h.setActiveItem(N):h.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,ue.O)(this._directDescendantItems),(0,Yt.w)(a=>(0,S.T)(...a.map(h=>h._hovered))))}addItem(r){}removeItem(r){}_handleKeydown(r){const a=r.keyCode,h=this._keyManager;switch(a){case ot.hY:(0,ot.Vb)(r)||(r.preventDefault(),this.closed.emit("keydown"));break;case ot.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case ot.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(a===ot.LH||a===ot.JH)&&h.setFocusOrigin("keyboard"),void h.onKeydown(r)}r.stopPropagation()}focusFirstItem(r="program"){this.lazyContent?this._ngZone.onStable.pipe((0,be.q)(1)).subscribe(()=>this._focusFirstItem(r)):this._focusFirstItem(r)}_focusFirstItem(r){const a=this._keyManager;if(a.setFocusOrigin(r).setFirstItemActive(),!a.activeItem&&this._directDescendantItems.length){let h=this._directDescendantItems.first._getHostElement().parentElement;for(;h;){if("menu"===h.getAttribute("role")){h.focus();break}h=h.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(r){const a=Math.min(this._baseElevation+r,24),h=`${this._elevationPrefix}${a}`,A=Object.keys(this._classList).find(N=>N.startsWith(this._elevationPrefix));(!A||A===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[h]=!0,this._previousElevation=h)}setPositionClasses(r=this.xPosition,a=this.yPosition){var h;const A=this._classList;A["mat-menu-before"]="before"===r,A["mat-menu-after"]="after"===r,A["mat-menu-above"]="above"===a,A["mat-menu-below"]="below"===a,null===(h=this._changeDetectorRef)||void 0===h||h.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(r){this._animationDone.next(r),this._isAnimating=!1}_onAnimationStart(r){this._isAnimating=!0,"enter"===r.toState&&0===this._keyManager.activeItemIndex&&(r.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,ue.O)(this._allItems)).subscribe(r=>{this._directDescendantItems.reset(r.filter(a=>a._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36($n),s.Y36(s.sBO))},R.\u0275dir=s.lG2({type:R,contentQueries:function(r,a,h){if(1&r&&(s.Suo(h,Ui,5),s.Suo(h,Xt,5),s.Suo(h,Xt,4)),2&r){let A;s.iGM(A=s.CRH())&&(a.lazyContent=A.first),s.iGM(A=s.CRH())&&(a._allItems=A),s.iGM(A=s.CRH())&&(a.items=A)}},viewQuery:function(r,a){if(1&r&&s.Gf(s.Rgc,5),2&r){let h;s.iGM(h=s.CRH())&&(a.templateRef=h.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),R})(),Qn=(()=>{class R extends ci{constructor(r,a,h,A){super(r,a,h,A),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36($n),s.Y36(s.sBO))},R.\u0275cmp=s.Xpm({type:R,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(r,a){2&r&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:Mn,useExisting:R}]),s.qOj],ngContentSelectors:Gn,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(r,a){1&r&&(s.F$t(),s.YNc(0,yi,3,6,"ng-template"))},directives:[we.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[oi.transformMenu,oi.fadeInItems]},changeDetection:0}),R})();const xi=new s.OlP("mat-menu-scroll-strategy"),pn={provide:xi,deps:[Jt.aV],useFactory:function jn(R){return()=>R.scrollStrategies.reposition()}},Fn=(0,ae.i$)({passive:!0});let Jn=(()=>{class R{constructor(r,a,h,A,N,Z,re,De,Ue){this._overlay=r,this._element=a,this._viewContainerRef=h,this._menuItemInstance=Z,this._dir=re,this._focusMonitor=De,this._ngZone=Ue,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Qe.w0.EMPTY,this._hoverSubscription=Qe.w0.EMPTY,this._menuCloseSubscription=Qe.w0.EMPTY,this._handleTouchStart=dt=>{(0,Ft.yG)(dt)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=A,this._parentMaterialMenu=N instanceof ci?N:void 0,a.nativeElement.addEventListener("touchstart",this._handleTouchStart,Fn),Z&&(Z._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(r){this.menu=r}get menu(){return this._menu}set menu(r){r!==this._menu&&(this._menu=r,this._menuCloseSubscription.unsubscribe(),r&&(this._menuCloseSubscription=r.close.subscribe(a=>{this._destroyMenu(a),("click"===a||"tab"===a)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(a)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Fn),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const r=this._createOverlay(),a=r.getConfig(),h=a.positionStrategy;this._setPosition(h),a.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,r.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ci&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,X.R)(this.menu.close)).subscribe(()=>{h.withLockedPosition(!1).reapplyLastPosition(),h.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(r,a){this._focusMonitor&&r?this._focusMonitor.focusVia(this._element,r,a):this._element.nativeElement.focus(a)}updatePosition(){var r;null===(r=this._overlayRef)||void 0===r||r.updatePosition()}_destroyMenu(r){if(!this._overlayRef||!this.menuOpen)return;const a=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===r||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,a instanceof ci?(a._resetAnimation(),a.lazyContent?a._animationDone.pipe((0,It.h)(h=>"void"===h.toState),(0,be.q)(1),(0,X.R)(a.lazyContent._attached)).subscribe({next:()=>a.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),a.lazyContent&&a.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let r=0,a=this.menu.parentMenu;for(;a;)r++,a=a.parentMenu;this.menu.setElevation(r)}}_setIsMenuOpen(r){this._menuOpen=r,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(r)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const r=this._getOverlayConfig();this._subscribeToPositions(r.positionStrategy),this._overlayRef=this._overlay.create(r),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Jt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(r){this.menu.setPositionClasses&&r.positionChanges.subscribe(a=>{const h="start"===a.connectionPair.overlayX?"after":"before",A="top"===a.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(h,A)):this.menu.setPositionClasses(h,A)})}_setPosition(r){let[a,h]="before"===this.menu.xPosition?["end","start"]:["start","end"],[A,N]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Z,re]=[A,N],[De,Ue]=[a,h],dt=0;this.triggersSubmenu()?(Ue=a="before"===this.menu.xPosition?"start":"end",h=De="end"===a?"start":"end",dt="bottom"===A?8:-8):this.menu.overlapTrigger||(Z="top"===A?"bottom":"top",re="top"===N?"bottom":"top"),r.withPositions([{originX:a,originY:Z,overlayX:De,overlayY:A,offsetY:dt},{originX:h,originY:Z,overlayX:Ue,overlayY:A,offsetY:dt},{originX:a,originY:re,overlayX:De,overlayY:N,offsetY:-dt},{originX:h,originY:re,overlayX:Ue,overlayY:N,offsetY:-dt}])}_menuClosingActions(){const r=this._overlayRef.backdropClick(),a=this._overlayRef.detachments(),h=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,wt.of)(),A=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,It.h)(N=>N!==this._menuItemInstance),(0,It.h)(()=>this._menuOpen)):(0,wt.of)();return(0,S.T)(r,h,A,a)}_handleMousedown(r){(0,Ft.X6)(r)||(this._openedBy=0===r.button?"mouse":void 0,this.triggersSubmenu()&&r.preventDefault())}_handleKeydown(r){const a=r.keyCode;(a===ot.K5||a===ot.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(a===ot.SV&&"ltr"===this.dir||a===ot.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(r){this.triggersSubmenu()?(r.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,It.h)(r=>r===this._menuItemInstance&&!r.disabled),yn(0,Zt.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ci&&this.menu._isAnimating?this.menu._animationDone.pipe((0,be.q)(1),yn(0,Zt.E),(0,X.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ut.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Jt.aV),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(xi),s.Y36(Mn,8),s.Y36(Xt,10),s.Y36(Pn.Is,8),s.Y36(Ft.tE),s.Y36(s.R0b))},R.\u0275dir=s.lG2({type:R,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(r,a){1&r&&s.NdJ("click",function(A){return a._handleClick(A)})("mousedown",function(A){return a._handleMousedown(A)})("keydown",function(A){return a._handleKeydown(A)}),2&r&&s.uIk("aria-expanded",a.menuOpen||null)("aria-controls",a.menuOpen?a.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),R})(),ln=(()=>{class R extends Jn{}return R.\u0275fac=function(){let y;return function(a){return(y||(y=s.n5z(R)))(a||R)}}(),R.\u0275dir=s.lG2({type:R,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[s.qOj]}),R})(),tr=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275mod=s.oAB({type:R}),R.\u0275inj=s.cJS({providers:[pn],imports:[[we.ez,yt.BQ,yt.si,Jt.U8],bn.ZD,yt.BQ]}),R})();const Mr={tooltipState:(0,E.X$)("state",[(0,E.SB)("initial, void, hidden",(0,E.oB)({opacity:0,transform:"scale(0)"})),(0,E.SB)("visible",(0,E.oB)({transform:"scale(1)"})),(0,E.eR)("* => visible",(0,E.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,E.F4)([(0,E.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,E.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,E.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,E.eR)("* => hidden",(0,E.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,E.oB)({opacity:0})))])},Wi="tooltip-panel",Yi=(0,ae.i$)({passive:!0}),Si=new s.OlP("mat-tooltip-scroll-strategy"),nr={provide:Si,deps:[Jt.aV],useFactory:function cr(R){return()=>R.scrollStrategies.reposition({scrollThrottle:20})}},ur=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function dr(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Pr=(()=>{class R{constructor(r,a,h,A,N,Z,re,De,Ue,dt,bt,Gt){this._overlay=r,this._elementRef=a,this._scrollDispatcher=h,this._viewContainerRef=A,this._ngZone=N,this._platform=Z,this._ariaDescriber=re,this._focusMonitor=De,this._dir=dt,this._defaultOptions=bt,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new W.x,this._scrollStrategy=Ue,this._document=Gt,bt&&(bt.position&&(this.position=bt.position),bt.touchGestures&&(this.touchGestures=bt.touchGestures)),dt.change.pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(r){var a;r!==this._position&&(this._position=r,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(a=this._tooltipInstance)||void 0===a||a.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(r){this._disabled=(0,m.Ig)(r),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(r){this._showDelay=(0,m.su)(r)}get hideDelay(){return this._hideDelay}set hideDelay(r){this._hideDelay=(0,m.su)(r),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(r){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=r?String(r).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(r){this._tooltipClass=r,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,X.R)(this._destroyed)).subscribe(r=>{r?"keyboard"===r&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const r=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([a,h])=>{r.removeEventListener(a,h,Yi)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(r,this.message,"tooltip"),this._focusMonitor.stopMonitoring(r)}show(r=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const a=this._createOverlay();this._detach(),this._portal=this._portal||new Ut.C5(this._tooltipComponent,this._viewContainerRef);const h=this._tooltipInstance=a.attach(this._portal).instance;h._triggerElement=this._elementRef.nativeElement,h._mouseLeaveHideDelay=this._hideDelay,h.afterHidden().pipe((0,X.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),h.show(r)}hide(r=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(r)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var r;if(this._overlayRef)return this._overlayRef;const a=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),h=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(a);return h.positionChanges.pipe((0,X.R)(this._destroyed)).subscribe(A=>{this._updateCurrentPositionClass(A.connectionPair),this._tooltipInstance&&A.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:h,panelClass:`${this._cssClassPrefix}-${Wi}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,X.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,X.R)(this._destroyed)).subscribe(()=>{var A;return null===(A=this._tooltipInstance)||void 0===A?void 0:A._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,X.R)(this._destroyed)).subscribe(A=>{this._isTooltipVisible()&&A.keyCode===ot.hY&&!(0,ot.Vb)(A)&&(A.preventDefault(),A.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(r=this._defaultOptions)||void 0===r?void 0:r.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(r){const a=r.getConfig().positionStrategy,h=this._getOrigin(),A=this._getOverlayPosition();a.withPositions([this._addOffset(Object.assign(Object.assign({},h.main),A.main)),this._addOffset(Object.assign(Object.assign({},h.fallback),A.fallback))])}_addOffset(r){return r}_getOrigin(){const r=!this._dir||"ltr"==this._dir.value,a=this.position;let h;"above"==a||"below"==a?h={originX:"center",originY:"above"==a?"top":"bottom"}:"before"==a||"left"==a&&r||"right"==a&&!r?h={originX:"start",originY:"center"}:("after"==a||"right"==a&&r||"left"==a&&!r)&&(h={originX:"end",originY:"center"});const{x:A,y:N}=this._invertPosition(h.originX,h.originY);return{main:h,fallback:{originX:A,originY:N}}}_getOverlayPosition(){const r=!this._dir||"ltr"==this._dir.value,a=this.position;let h;"above"==a?h={overlayX:"center",overlayY:"bottom"}:"below"==a?h={overlayX:"center",overlayY:"top"}:"before"==a||"left"==a&&r||"right"==a&&!r?h={overlayX:"end",overlayY:"center"}:("after"==a||"right"==a&&r||"left"==a&&!r)&&(h={overlayX:"start",overlayY:"center"});const{x:A,y:N}=this._invertPosition(h.overlayX,h.overlayY);return{main:h,fallback:{overlayX:A,overlayY:N}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,be.q)(1),(0,X.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(r){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=r,this._tooltipInstance._markForCheck())}_invertPosition(r,a){return"above"===this.position||"below"===this.position?"top"===a?a="bottom":"bottom"===a&&(a="top"):"end"===r?r="start":"start"===r&&(r="end"),{x:r,y:a}}_updateCurrentPositionClass(r){const{overlayY:a,originX:h,originY:A}=r;let N;if(N="center"===a?this._dir&&"rtl"===this._dir.value?"end"===h?"left":"right":"start"===h?"left":"right":"bottom"===a&&"top"===A?"above":"below",N!==this._currentPosition){const Z=this._overlayRef;if(Z){const re=`${this._cssClassPrefix}-${Wi}-`;Z.removePanelClass(re+this._currentPosition),Z.addPanelClass(re+N)}this._currentPosition=N}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const r=[];if(this._platformSupportsMouseEvents())r.push(["mouseleave",a=>{var h;const A=a.relatedTarget;(!A||!(null===(h=this._overlayRef)||void 0===h?void 0:h.overlayElement.contains(A)))&&this.hide()}],["wheel",a=>this._wheelListener(a)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const a=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};r.push(["touchend",a],["touchcancel",a])}this._addListeners(r),this._passiveListeners.push(...r)}_addListeners(r){r.forEach(([a,h])=>{this._elementRef.nativeElement.addEventListener(a,h,Yi)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(r){if(this._isTooltipVisible()){const a=this._document.elementFromPoint(r.clientX,r.clientY),h=this._elementRef.nativeElement;a!==h&&!h.contains(a)&&this.hide()}}_disableNativeGesturesIfNecessary(){const r=this.touchGestures;if("off"!==r){const a=this._elementRef.nativeElement,h=a.style;("on"===r||"INPUT"!==a.nodeName&&"TEXTAREA"!==a.nodeName)&&(h.userSelect=h.msUserSelect=h.webkitUserSelect=h.MozUserSelect="none"),("on"===r||!a.draggable)&&(h.webkitUserDrag="none"),h.touchAction="none",h.webkitTapHighlightColor="transparent"}}}return R.\u0275fac=function(r){s.$Z()},R.\u0275dir=s.lG2({type:R,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),R})(),lo=(()=>{class R extends Pr{constructor(r,a,h,A,N,Z,re,De,Ue,dt,bt,Gt){super(r,a,h,A,N,Z,re,De,Ue,dt,bt,Gt),this._tooltipComponent=Rr}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Jt.aV),s.Y36(s.SBq),s.Y36(bn.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(ae.t4),s.Y36(Ft.$s),s.Y36(Ft.tE),s.Y36(Si),s.Y36(Pn.Is,8),s.Y36(ur,8),s.Y36(we.K0))},R.\u0275dir=s.lG2({type:R,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),R})(),hr=(()=>{class R{constructor(r){this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new W.x}show(r){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},r)}hide(r){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},r)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_animationStart(){this._closeOnInteraction=!1}_animationDone(r){const a=r.toState;"hidden"===a&&!this.isVisible()&&this._onHide.next(),("visible"===a||"hidden"===a)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:r}){(!r||!this._triggerElement.contains(r))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(s.sBO))},R.\u0275dir=s.lG2({type:R}),R})(),Rr=(()=>{class R extends hr{constructor(r,a){super(r),this._breakpointObserver=a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(s.sBO),s.Y36(pe))},R.\u0275cmp=s.Xpm({type:R,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,a){1&r&&s.NdJ("mouseleave",function(A){return a._handleMouseLeave(A)}),2&r&&s.Udp("zoom","visible"===a._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(r,a){if(1&r&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return a._animationStart()})("@state.done",function(A){return a._animationDone(A)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&r){let h;s.ekj("mat-tooltip-handset",null==(h=s.lcZ(1,5,a._isHandset))?null:h.matches),s.Q6J("ngClass",a.tooltipClass)("@state",a._visibility),s.xp6(2),s.Oqu(a.message)}},directives:[we.mk],pipes:[we.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}\n"],encapsulation:2,data:{animation:[Mr.tooltipState]},changeDetection:0}),R})(),fr=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275mod=s.oAB({type:R}),R.\u0275inj=s.cJS({providers:[nr],imports:[[Ft.rt,we.ez,Jt.U8,yt.BQ],yt.BQ,bn.ZD]}),R})();var Zi=b(7423);function wr(R,y){if(1&R){const r=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){const A=s.CHM(r).$implicit;return s.oxw(2).launch(A)}),s.TgZ(1,"div",15),s._UZ(2,"img",9),s._uU(3),s.qZA()()}if(2&R){const r=y.$implicit,a=s.oxw(2);s.xp6(2),s.Q6J("src",a.getTransportIcon(r.id),s.LSH),s.xp6(1),s.hij(" ",r.name," ")}}function ir(R,y){if(1&R){const r=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(r),s.oxw(2).action("release")}),s.TgZ(1,"i",16),s._uU(2,"delete"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Release service"),s.qZA()()}}function pr(R,y){if(1&R){const r=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(r),s.oxw(2).action("reset")}),s.TgZ(1,"i",16),s._uU(2,"refresh"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Reset service"),s.qZA()()}}function rr(R,y){if(1&R&&(s.TgZ(0,"button",17)(1,"uds-translate"),s._uU(2,"Connections"),s.qZA()()),2&R){s.oxw();const r=s.MAs(2);s.Q6J("matMenuTriggerFor",r)}}function Yr(R,y){if(1&R&&(s.TgZ(0,"button",17)(1,"uds-translate"),s._uU(2,"Actions"),s.qZA()()),2&R){s.oxw();const r=s.MAs(5);s.Q6J("matMenuTriggerFor",r)}}function mr(R,y){if(1&R&&(s.TgZ(0,"button",18)(1,"i",16),s._uU(2,"menu"),s.qZA()()),2&R){s.oxw();const r=s.MAs(9);s.Q6J("matMenuTriggerFor",r)}}function kr(R,y){if(1&R){const r=s.EpF();s.TgZ(0,"div")(1,"mat-menu",null,1),s.YNc(3,wr,4,2,"button",2),s.qZA(),s.TgZ(4,"mat-menu",null,3),s.YNc(6,ir,5,0,"button",4),s.YNc(7,pr,5,0,"button",4),s.qZA(),s.TgZ(8,"mat-menu",null,5),s.YNc(10,rr,3,1,"button",6),s.YNc(11,Yr,3,1,"button",6),s.qZA(),s.TgZ(12,"div",7)(13,"div",8),s.NdJ("click",function(){return s.CHM(r),s.oxw().launch(null)}),s._UZ(14,"img",9),s.qZA(),s.TgZ(15,"div",10)(16,"span",11),s._uU(17),s.qZA()(),s.TgZ(18,"div",12),s.YNc(19,mr,3,1,"button",13),s.qZA()()()}if(2&R){const r=s.oxw();s.xp6(3),s.Q6J("ngForOf",r.service.transports),s.xp6(3),s.Q6J("ngIf",r.service.allow_users_remove),s.xp6(1),s.Q6J("ngIf",r.service.allow_users_reset),s.xp6(3),s.Q6J("ngIf",r.showTransportsMenu()),s.xp6(1),s.Q6J("ngIf",r.hasActions()),s.xp6(1),s.Q6J("ngClass",r.serviceClass)("matTooltipDisabled",""===r.serviceTooltip)("matTooltip",r.serviceTooltip),s.xp6(2),s.Q6J("src",r.serviceImage,s.LSH),s.xp6(2),s.Q6J("ngClass",r.serviceNameClass),s.xp6(1),s.Oqu(r.serviceName),s.xp6(2),s.Q6J("ngIf",r.hasMenu())}}let pi=(()=>{class R{constructor(r){this.api=r}get serviceImage(){return this.api.galleryImageURL(this.service.imageId)}get serviceName(){let r=this.service.visual_name;return r.length>32&&(r=r.substring(0,29)+"..."),r}get serviceTooltip(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}get serviceClass(){const r=["service"];return null!=this.service.to_be_replaced?r.push("tobereplaced"):this.service.maintenance?r.push("maintenance"):this.service.not_accesible?r.push("forbidden"):this.service.in_use&&r.push("inuse"),r.length>1&&r.push("alert"),r}get serviceNameClass(){const r=[],a=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return a>=16&&r.push("small-"+a.toString()),r}ngOnInit(){}getTransportIcon(r){return this.api.transportIconURL(r)}hasActions(){return this.service.allow_users_remove||this.service.allow_users_reset}showTransportsMenu(){return this.service.transports.length>1&&this.service.show_transports}hasMenu(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}notifyNotLaunching(r){this.api.gui.alert(''+django.gettext("Launcher")+"
",r)}launch(r){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){const a=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching(''+django.gettext("This service is currently not accesible due to schedule restrictions.")+'
'+a+'
')}else(null===r||!1===this.service.show_transports)&&(r=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(r.link)}action(r){const a=("release"===r?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,h="release"===r?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(a,django.gettext("Are you sure?")).subscribe(A=>{A&&this.api.action(r,this.service.id).subscribe(N=>{N&&this.api.gui.alert(a,h)})})}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Fe.n))},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","","class","service-menu",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",1,"service-menu",3,"matMenuTriggerFor"]],template:function(r,a){1&r&&s.YNc(0,kr,20,12,"div",0),2&r&&s.Q6J("ngIf",a.service.transports.length>0)},directives:[we.O5,Qn,we.sg,Xt,Te.P,ln,we.mk,lo,Zi.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;border-radius:1rem;box-shadow:0 12px 18px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:#00000038;display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service-menu[_ngcontent-%COMP%]{border-radius:.6rem!important}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #00000040,0 10px 10px #00000038}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;background-color:#fffc}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:Material Icons;font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"} .dark-theme .menu .mat-icon-button{background-color:#0003!important}']}),R})();function gr(R,y){1&R&&s._UZ(0,"uds-service",8),2&R&&s.Q6J("service",y.$implicit)}function Ei(R,y){if(1&R&&(s.TgZ(0,"mat-expansion-panel",1)(1,"mat-expansion-panel-header",2)(2,"mat-panel-title")(3,"div",3),s._UZ(4,"img",4),s._uU(5),s.qZA()(),s.TgZ(6,"mat-panel-description",5),s._uU(7),s.qZA()(),s.TgZ(8,"div",6),s.YNc(9,gr,1,1,"uds-service",7),s.qZA()()),2&R){const r=s.oxw();s.Q6J("expanded",r.expanded),s.xp6(1),s.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),s.xp6(3),s.Q6J("src",r.groupImage,s.LSH),s.xp6(1),s.hij(" ",r.group.name,""),s.xp6(2),s.hij(" ",r.group.comments," "),s.xp6(2),s.Q6J("ngForOf",r.sortedServices)}}let Zr=(()=>{class R{constructor(r){this.api=r,this.expanded=!1}ngOnInit(){}get groupImage(){return this.api.galleryImageURL(this.group.imageUuid)}get hasVisibleServices(){return this.services.length>0}get sortedServices(){return this.services.sort((r,a)=>r.name>a.name?1:r.name{class R{constructor(r){this.api=r}ngOnInit(){}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Fe.n))},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(r,a){1&r&&s.YNc(0,Li,38,4,"div",0),2&r&&s.Q6J("ngIf",a.api.staffInfo)},directives:[we.O5,Te.P,xe,gt,j,de,G,we.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4} .dark-theme .staff-info{margin-top:1rem;padding:1rem;background-color:#0f0f0f} .dark-theme .staff-panel{background-color:#2b2b2b}"]}),R})();function Kr(R,y){if(1&R){const r=s.EpF();s.TgZ(0,"uds-filter",3),s.NdJ("updateEvent",function(h){return s.CHM(r),s.oxw().update(h)}),s.qZA()}}function Oi(R,y){if(1&R&&s._UZ(0,"uds-services-group",4),2&R){const r=y.$implicit,a=y.index;s.Q6J("services",r.services)("group",r.group)("expanded",0===a)}}function or(R,y){if(1&R){const r=s.EpF();s.TgZ(0,"uds-filter",3),s.NdJ("updateEvent",function(h){return s.CHM(r),s.oxw().update(h)}),s.qZA()}}class Lr{constructor(y){this.group=y,this.services=[]}}let ei=(()=>{class R{constructor(r){this.api=r,this.servicesInformation={autorun:!1,ip:"",nets:"",services:[],transports:""}}update(r){this.updateServices(r)}ngOnInit(){this.api.config.urls.launch?this.api.logout():this.loadServices()}autorun(){if(this.servicesInformation.autorun&&1===this.servicesInformation.services.length){if(!this.servicesInformation.services[0].maintenance)return this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(this.servicesInformation.services[0].transports[0].link),!0;this.api.gui.alert(django.gettext("Warning"),django.gettext("Service is in maintenance and cannot be executed"))}return!1}loadServices(){this.api.user.isRestricted&&this.api.logout(),this.api.getServicesInformation().subscribe(r=>{this.servicesInformation=r,this.autorun(),this.updateServices()})}updateServices(r=""){this.group=[];let a=null;this.servicesInformation.services.filter(h=>!r||h.visual_name.toLowerCase().includes(r)||h.group.name.toLowerCase().includes(r)).sort((h,A)=>h.group.priority!==A.group.priority?h.group.priority-A.group.priority:h.group.id>A.group.id?1:h.group.id{(null===a||h.group.id!==a.group.id)&&(null!==a&&this.group.push(a),a=new Lr(h.group)),a.services.push(h)}),null!==a&&this.group.push(a)}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Fe.n))},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-services-page"]],decls:6,vars:3,consts:[[3,"updateEvent",4,"ngIf"],[1,"services-groups"],[3,"services","group","expanded",4,"ngFor","ngForOf"],[3,"updateEvent"],[3,"services","group","expanded"]],template:function(r,a){1&r&&(s.YNc(0,Kr,1,0,"uds-filter",0),s.TgZ(1,"div",1)(2,"mat-accordion"),s.YNc(3,Oi,1,3,"uds-services-group",2),s.qZA()(),s.YNc(4,or,1,0,"uds-filter",0),s._UZ(5,"uds-staff-info")),2&r&&(s.Q6J("ngIf",a.servicesInformation.services.length>=a.api.config.min_for_filter&&a.api.config.site_filter_on_top),s.xp6(3),s.Q6J("ngForOf",a.group),s.xp6(1),s.Q6J("ngIf",a.servicesInformation.services.length>=a.api.config.min_for_filter&&!a.api.config.site_filter_on_top))},directives:[we.O5,nn,xe,we.sg,Zr,qi],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),R})(),sr=(()=>{class R{constructor(r,a){this.api=r,this.route=a}ngOnInit(){this.getError()}getError(){const r=this.route.snapshot.paramMap.get("id");"19"===r&&(this.returnUrl="/mfa"),this.error="",this.api.getErrorInformation(r).subscribe(a=>{this.error=a.error})}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Fe.n),s.Y36(Ae.gz))},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-error"]],decls:14,vars:2,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn",3,"routerLink"]],template:function(r,a){1&r&&(s.TgZ(0,"div",0)(1,"div",1),s.O4$(),s.TgZ(2,"svg",2),s._UZ(3,"path",3),s.qZA(),s.TgZ(4,"svg",4),s._UZ(5,"path",5),s.qZA()(),s.kcU(),s.TgZ(6,"h1",6)(7,"uds-translate"),s._uU(8,"An error has occurred"),s.qZA()(),s.TgZ(9,"p",7),s._uU(10),s.qZA(),s.TgZ(11,"a",8)(12,"uds-translate"),s._uU(13,"Return"),s.qZA()()()),2&r&&(s.xp6(10),s.hij(" ",a.error," "),s.xp6(1),s.Q6J("routerLink",a.returnUrl))},directives:[Te.P,Zi.zs,Ae.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),R})(),wn=(()=>{class R{constructor(r){this.api=r,this.year=(new Date).getFullYear()}ngOnInit(){this.year<2021&&(this.year=2021)}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Fe.n))},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-about"]],decls:46,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(r,a){1&r&&(s.TgZ(0,"div",0)(1,"h1"),s._uU(2),s.qZA(),s.TgZ(3,"h3")(4,"a",1),s._uU(5),s.qZA()(),s.TgZ(6,"h4")(7,"uds-translate"),s._uU(8,"You can access UDS Open Source code at"),s.qZA(),s._uU(9,"\xa0"),s.TgZ(10,"a",2),s._uU(11,"OpenUDS github repository"),s.qZA()(),s.TgZ(12,"div",3)(13,"h2")(14,"uds-translate"),s._uU(15,"UDS has been developed using these components:"),s.qZA()(),s.TgZ(16,"ul")(17,"li")(18,"a",4),s._uU(19,"Python"),s.qZA()(),s.TgZ(20,"li")(21,"a",5),s._uU(22,"TypeScript"),s.qZA()(),s.TgZ(23,"li")(24,"a",6),s._uU(25,"Django"),s.qZA()(),s.TgZ(26,"li")(27,"a",7),s._uU(28,"Angular"),s.qZA()(),s.TgZ(29,"li")(30,"a",8),s._uU(31,"Guacamole"),s.qZA()(),s.TgZ(32,"li")(33,"a",9),s._uU(34,"weasyprint"),s.qZA()(),s.TgZ(35,"li")(36,"a",10),s._uU(37,"Crystal project icons"),s.qZA()(),s.TgZ(38,"li")(39,"a",11),s._uU(40,"Flattr Icons"),s.qZA()()(),s.TgZ(41,"p")(42,"small"),s._uU(43,"* "),s.TgZ(44,"uds-translate"),s._uU(45,"If you find that we missed any component, please let us know"),s.qZA()()()()()),2&r&&(s.xp6(2),s.AsE("Universal Desktop Services ",a.api.config.version," build ",a.api.config.version_stamp,""),s.xp6(3),s.hij(" \xa9 2012-",a.year," Virtual Cable S.L.U."))},directives:[Te.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:400}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px} .dark-theme .about{color:#fff!important} .dark-theme ul li a{color:#fff!important;background-color:inherit!important} .dark-theme ul li a:hover{color:#3e6b2d!important}"]}),R})(),Qi=(()=>{class R{constructor(r){this.api=r}ngOnInit(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Fe.n))},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(r,a){1&r&&(s.TgZ(0,"div",0)(1,"div",1)(2,"h1")(3,"uds-translate"),s._uU(4,"UDS Service launcher"),s.qZA()(),s.TgZ(5,"h4")(6,"uds-translate"),s._uU(7,"The service you have requested is being launched."),s.qZA()(),s.TgZ(8,"h5")(9,"uds-translate"),s._uU(10,"Please, note that reloading this page will not work."),s.qZA()(),s.TgZ(11,"h5")(12,"uds-translate"),s._uU(13,"To relaunch service, you will have to do it from origin."),s.qZA()(),s.TgZ(14,"h6")(15,"uds-translate"),s._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),s.qZA()(),s.TgZ(17,"h6")(18,"uds-translate"),s._uU(19,"You can obtain it from the"),s.qZA(),s._uU(20,"\xa0"),s.TgZ(21,"a",2)(22,"uds-translate"),s._uU(23,"UDS Client download page"),s.qZA()()()()())},directives:[Te.P,Ae.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:#00000038;padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:400}"]}),R})();var ti=b(2382),Yn=b(7144);const ar=["input"],Ar=function(R){return{enterDuration:R}},w=["*"],L=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:T});function T(){return{color:"accent",clickAction:"check-indeterminate"}}let H=0;const se=T(),Ge={provide:ti.JU,useExisting:(0,s.Gpc)(()=>mn),multi:!0};class et{}const ut=(0,yt.sb)((0,yt.pj)((0,yt.Kr)((0,yt.Id)(class{constructor(R){this._elementRef=R}}))));let mn=(()=>{class R extends ut{constructor(r,a,h,A,N,Z,re){super(r),this._changeDetectorRef=a,this._focusMonitor=h,this._ngZone=A,this._animationMode=Z,this._options=re,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++H,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||se,this.color=this.defaultColor=this._options.color||se.color,this.tabIndex=parseInt(N)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(r){this._required=(0,m.Ig)(r)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(r=>{r||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(r){r!=this.checked&&(this._checked=r,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(r){const a=(0,m.Ig)(r);a!==this.disabled&&(this._disabled=a,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(r){const a=r!=this._indeterminate;this._indeterminate=(0,m.Ig)(r),a&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(r){this.checked=!!r}registerOnChange(r){this._controlValueAccessorChangeFn=r}registerOnTouched(r){this._onTouched=r}setDisabledState(r){this.disabled=r}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(r){let a=this._currentCheckState,h=this._elementRef.nativeElement;if(a!==r&&(this._currentAnimationClass.length>0&&h.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(a,r),this._currentCheckState=r,this._currentAnimationClass.length>0)){h.classList.add(this._currentAnimationClass);const A=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{h.classList.remove(A)},1e3)})}}_emitChangeEvent(){const r=new et;r.source=this,r.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(r),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(r){var a;const h=null===(a=this._options)||void 0===a?void 0:a.clickAction;r.stopPropagation(),this.disabled||"noop"===h?!this.disabled&&"noop"===h&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==h&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(r,a){r?this._focusMonitor.focusVia(this._inputElement,r,a):this._inputElement.nativeElement.focus(a)}_onInteractionEvent(r){r.stopPropagation()}_getAnimationClassForCheckStateTransition(r,a){if("NoopAnimations"===this._animationMode)return"";let h="";switch(r){case 0:if(1===a)h="unchecked-checked";else{if(3!=a)return"";h="unchecked-indeterminate"}break;case 2:h=1===a?"unchecked-checked":"unchecked-indeterminate";break;case 1:h=2===a?"checked-unchecked":"checked-indeterminate";break;case 3:h=1===a?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${h}`}_syncIndeterminate(r){const a=this._inputElement;a&&(a.nativeElement.indeterminate=r)}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Ft.tE),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(Oe.Qb,8),s.Y36(L,8))},R.\u0275cmp=s.Xpm({type:R,selectors:[["mat-checkbox"]],viewQuery:function(r,a){if(1&r&&(s.Gf(ar,5),s.Gf(yt.wG,5)),2&r){let h;s.iGM(h=s.CRH())&&(a._inputElement=h.first),s.iGM(h=s.CRH())&&(a.ripple=h.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(r,a){2&r&&(s.Ikx("id",a.id),s.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),s.ekj("mat-checkbox-indeterminate",a.indeterminate)("mat-checkbox-checked",a.checked)("mat-checkbox-disabled",a.disabled)("mat-checkbox-label-before","before"==a.labelPosition)("_mat-animation-noopable","NoopAnimations"===a._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([Ge]),s.qOj],ngContentSelectors:w,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(r,a){if(1&r&&(s.F$t(),s.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),s.NdJ("change",function(A){return a._onInteractionEvent(A)})("click",function(A){return a._onInputClick(A)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA()(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return a._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA()()),2&r){const h=s.MAs(1),A=s.MAs(13);s.uIk("for",a.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!A.textContent||!A.textContent.trim()),s.xp6(1),s.Q6J("id",a.inputId)("required",a.required)("checked",a.checked)("disabled",a.disabled)("tabIndex",a.tabIndex),s.uIk("value",a.value)("name",a.name)("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby)("aria-checked",a._getAriaChecked())("aria-describedby",a.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",h)("matRippleDisabled",a._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,Ar,"NoopAnimations"===a._animationMode?0:150))}},directives:[yt.wG,Yn.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),R})(),Vt=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275mod=s.oAB({type:R}),R.\u0275inj=s.cJS({}),R})(),Ln=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275mod=s.oAB({type:R}),R.\u0275inj=s.cJS({imports:[[yt.si,yt.BQ,Yn.Q8,Vt],yt.BQ,Vt]}),R})();function _n(R,y){1&R&&(s.TgZ(0,"div",6)(1,"mat-checkbox",15)(2,"uds-translate"),s._uU(3,"Remember Me"),s.qZA()()())}function xn(R,y){1&R&&s._UZ(0,"input",16)}const Mi=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:ei,canActivate:[_e]},{path:"login",component:Ee.G},{path:"login/:id",component:Ee.G},{path:"mfa",component:(()=>{class R{constructor(r){this.api=r}ngOnInit(){document.getElementById("mfaform").action=this.api.config.urls.mfa,this.api.user.isLogged&&this.api.router.navigate(["/"]),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),""+this.api.errors.join("
")+"
")}launch(){return document.getElementById("mfaform").submit(),!0}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Fe.n))},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-mfa"]],decls:22,vars:7,consts:[["id","mfaform","method","post",3,"ngSubmit"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],["class","mfa-field",4,"ngIf"],["type","hidden","name","remember","value","0",4,"ngIf"],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"mfa-html-container"],[1,"mfa-html",3,"innerHtml"],["id","remember","name","remember"],["type","hidden","name","remember","value","0"]],template:function(r,a){1&r&&(s.TgZ(0,"form",0),s.NdJ("ngSubmit",function(){return a.launch()}),s.TgZ(1,"div",1)(2,"div",2),s._UZ(3,"img",3),s.qZA(),s.TgZ(4,"div",4)(5,"uds-translate"),s._uU(6,"Login Verification"),s.qZA()(),s.TgZ(7,"div",5)(8,"div",6)(9,"mat-form-field",7)(10,"mat-label"),s._uU(11),s.qZA(),s._UZ(12,"input",8),s.qZA()(),s.YNc(13,_n,4,0,"div",9),s.YNc(14,xn,1,0,"input",10),s.TgZ(15,"div",11)(16,"button",12)(17,"uds-translate"),s._uU(18,"Submit"),s.qZA()()()()()(),s.TgZ(19,"div",13),s._UZ(20,"div",14),s.ALo(21,"safeHtml"),s.qZA()),2&r&&(s.xp6(3),s.Q6J("src",a.api.staticURL("modern/img/login-img.png"),s.LSH),s.xp6(8),s.hij(" ",a.api.config.mfa.label," "),s.xp6(2),s.Q6J("ngIf",a.api.config.mfa.remember_device>0),s.xp6(1),s.Q6J("ngIf",a.api.config.mfa.remember_device<=0),s.xp6(6),s.Q6J("innerHtml",s.lcZ(21,5,a.api.config.mfa.html),s.oJD))},directives:[ti._Y,ti.JL,ti.F,Te.P,cn.KE,cn.hX,Nt.Nt,we.O5,mn,Zi.lW],pipes:[vt.z],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0000001f,0 1px 5px #0003;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}.mfa-info[_ngcontent-%COMP%]{margin:1rem}.mfa-html-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;margin:1rem}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),R})()},{path:"client-download",component:Re},{path:"downloads",component:Qt,canActivate:[_e]},{path:"error/:id",component:sr},{path:"about",component:wn},{path:"ticket/launcher",component:Qi},{path:"**",redirectTo:"services"}];let Ji=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275mod=s.oAB({type:R}),R.\u0275inj=s.cJS({imports:[[Ae.Bz.forRoot(Mi,{relativeLinkResolution:"legacy"})],Ae.Bz]}),R})();var Ii=b(8966),Pi=b(4107);const x=["*",[["mat-toolbar-row"]]],D=["*","mat-toolbar-row"],_=(0,yt.pj)(class{constructor(R){this._elementRef=R}});let U=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275dir=s.lG2({type:R,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),R})(),We=(()=>{class R extends _{constructor(r,a,h){super(r),this._platform=a,this._document=h}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(s.SBq),s.Y36(ae.t4),s.Y36(we.K0))},R.\u0275cmp=s.Xpm({type:R,selectors:[["mat-toolbar"]],contentQueries:function(r,a,h){if(1&r&&s.Suo(h,U,5),2&r){let A;s.iGM(A=s.CRH())&&(a._toolbarRows=A)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(r,a){2&r&&s.ekj("mat-toolbar-multiple-rows",a._toolbarRows.length>0)("mat-toolbar-single-row",0===a._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:D,decls:2,vars:0,template:function(r,a){1&r&&(s.F$t(x),s.Hsn(0),s.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),R})(),Cn=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275mod=s.oAB({type:R}),R.\u0275inj=s.cJS({imports:[[yt.BQ],yt.BQ]}),R})(),mi=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275mod=s.oAB({type:R}),R.\u0275inj=s.cJS({providers:[{provide:cn.o2,useValue:{floatLabel:"always"}}],imports:[ti.u5,Cn,Zi.ot,tr,fr,rt,Ii.Is,cn.lN,Nt.c,Pi.LD,Ln]}),R})();function ji(R,y){if(1&R){const r=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){const A=s.CHM(r).$implicit;return s.oxw(2).changeLang(A)}),s._uU(1),s.qZA()}if(2&R){const r=y.$implicit;s.xp6(1),s.Oqu(r.name)}}function Ri(R,y){if(1&R){const r=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(r),s.oxw(2).admin()}),s.TgZ(1,"i",23),s._uU(2,"dashboard"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Dashboard"),s.qZA()()}}function it(R,y){1&R&&(s.TgZ(0,"button",28)(1,"i",23),s._uU(2,"file_download"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Downloads"),s.qZA()())}function rn(R,y){if(1&R&&(s.TgZ(0,"button",14),s._uU(1),s.qZA()),2&R){s.oxw();const r=s.MAs(8),a=s.oxw();s.Q6J("matMenuTriggerFor",r),s.xp6(1),s.Oqu(a.api.user.user)}}function qr(R,y){if(1&R&&(s.TgZ(0,"button",25),s._uU(1),s.TgZ(2,"i",23),s._uU(3,"arrow_drop_down"),s.qZA()()),2&R){s.oxw();const r=s.MAs(8),a=s.oxw();s.Q6J("matMenuTriggerFor",r),s.xp6(1),s.hij("",a.api.user.user," ")}}function Zn(R,y){if(1&R){const r=s.EpF();s.ynx(0),s.TgZ(1,"form",1),s._UZ(2,"input",2)(3,"input",3),s.qZA(),s.TgZ(4,"mat-menu",null,4),s.YNc(6,ji,2,1,"button",5),s.qZA(),s.TgZ(7,"mat-menu",null,6),s.YNc(9,Ri,5,0,"button",7),s.YNc(10,it,5,0,"button",8),s.TgZ(11,"button",9),s.NdJ("click",function(){return s.CHM(r),s.oxw().logout()}),s.TgZ(12,"i",10),s._uU(13,"exit_to_app"),s.qZA(),s.TgZ(14,"uds-translate"),s._uU(15,"Logout"),s.qZA()()(),s.TgZ(16,"mat-menu",11,12),s.YNc(18,rn,2,2,"button",13),s.TgZ(19,"button",14),s._uU(20),s.qZA(),s.TgZ(21,"button",15)(22,"uds-translate"),s._uU(23,"UDS Client"),s.qZA()(),s.TgZ(24,"button",16)(25,"uds-translate"),s._uU(26,"About"),s.qZA()()(),s.TgZ(27,"mat-toolbar",17)(28,"button",18),s._UZ(29,"img",19),s._uU(30),s.qZA(),s._UZ(31,"span",20),s.TgZ(32,"div",21)(33,"button",22)(34,"i",23),s._uU(35,"file_download"),s.qZA(),s.TgZ(36,"uds-translate"),s._uU(37,"UDS Client"),s.qZA()(),s.TgZ(38,"button",24)(39,"i",23),s._uU(40,"info"),s.qZA(),s.TgZ(41,"uds-translate"),s._uU(42,"About"),s.qZA()(),s.TgZ(43,"button",25),s._uU(44),s.TgZ(45,"i",23),s._uU(46,"arrow_drop_down"),s.qZA()(),s.YNc(47,qr,4,2,"button",26),s.qZA(),s.TgZ(48,"div",27)(49,"button",25)(50,"i",23),s._uU(51,"menu"),s.qZA()()()(),s.BQk()}if(2&R){const r=s.MAs(5),a=s.MAs(17),h=s.oxw();s.xp6(1),s.s9C("action",h.api.config.urls.changeLang,s.LSH),s.xp6(1),s.s9C("name",h.api.csrfField),s.s9C("value",h.api.csrfToken),s.xp6(1),s.s9C("value",h.lang.id),s.xp6(3),s.Q6J("ngForOf",h.langs),s.xp6(3),s.Q6J("ngIf",h.api.user.isStaff),s.xp6(1),s.Q6J("ngIf",h.api.user.isStaff),s.xp6(8),s.Q6J("ngIf",h.api.user.isLogged),s.xp6(1),s.Q6J("matMenuTriggerFor",r),s.xp6(1),s.hij("",h.lang.name," "),s.xp6(9),s.Q6J("src",h.api.staticURL("modern/img/udsicon.png"),s.LSH),s.xp6(1),s.hij(" ",h.api.config.site_logo_name," "),s.xp6(13),s.Q6J("matMenuTriggerFor",r),s.xp6(1),s.hij("",h.lang.name," "),s.xp6(3),s.Q6J("ngIf",h.api.user.isLogged),s.xp6(2),s.Q6J("matMenuTriggerFor",a)}}let yo=(()=>{class R{constructor(r){this.api=r,this.style="";const a=r.config.language;this.langs=[];for(const h of r.config.available_languages)h.id===a?this.lang=h:this.langs.push(h)}ngOnInit(){}changeLang(r){return this.lang=r,document.getElementById("id_language").attributes.value.value=r.id,document.getElementById("form_language").submit(),!1}admin(){this.api.gotoAdmin()}logout(){this.api.logout()}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Fe.n))},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(r,a){1&r&&s.YNc(0,Zn,52,16,"ng-container",0),2&r&&s.Q6J("ngIf",""===a.api.config.urls.launch)},directives:[we.O5,ti._Y,ti.JL,ti.F,Qn,we.sg,Xt,Te.P,Ae.rH,ln,We,Zi.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),R})(),_r=(()=>{class R{constructor(r){this.api=r}ngOnInit(){}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Fe.n))},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(r,a){1&r&&(s.TgZ(0,"div")(1,"a",0),s._uU(2),s.qZA()()),2&r&&(s.xp6(1),s.Q6J("href",a.api.config.site_copyright_link,s.LSH),s.xp6(1),s.Oqu(a.api.config.site_copyright_info))},styles:[""]}),R})(),Ni=(()=>{class R{constructor(r){this.api=r,this.title="UDS",this.blackTheme=!1}handleKeyboardEvent(r){r.altKey&&r.ctrlKey&&"b"===r.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}return R.\u0275fac=function(r){return new(r||R)(s.Y36(Fe.n))},R.\u0275cmp=s.Xpm({type:R,selectors:[["uds-root"]],hostBindings:function(r,a){1&r&&s.NdJ("keydown",function(A){return a.handleKeyboardEvent(A)},!1,s.evT)},decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(r,a){1&r&&(s._UZ(0,"uds-navbar"),s.TgZ(1,"div",0)(2,"div",1),s._UZ(3,"router-outlet"),s.qZA(),s.TgZ(4,"div",2),s._UZ(5,"uds-footer"),s.qZA()())},directives:[yo,Ae.lC,_r],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),R})();var Qr=b(5928);let co=(()=>{class R{}return R.\u0275fac=function(r){return new(r||R)},R.\u0275mod=s.oAB({type:R,bootstrap:[Ni]}),R.\u0275inj=s.cJS({providers:[Fe.n,Qr.h],imports:[[c.b2,Pe,fe.JF,Ji,Oe.PW,mi]]}),R})();b(2340).N.production&&(0,s.G48)(),c.q6().bootstrapModule(co).catch(R=>console.log(R))},1135:($e,ve,b)=>{b.d(ve,{X:()=>s});var c=b(7579);class s extends c.x{constructor(W){super(),this._value=W}get value(){return this.getValue()}_subscribe(W){const le=super._subscribe(W);return!le.closed&&W.next(this._value),le}getValue(){const{hasError:W,thrownError:le,_value:q}=this;if(W)throw le;return this._throwIfClosed(),q}next(W){super.next(this._value=W)}}},8306:($e,ve,b)=>{b.d(ve,{y:()=>te});var c=b(930),s=b(727),m=b(8822),W=b(4671);var Ce=b(2416),be=b(576),ce=b(2806);let te=(()=>{class ae{constructor(Le){Le&&(this._subscribe=Le)}lift(Le){const K=new ae;return K.source=this,K.operator=Le,K}subscribe(Le,K,Je){const Ye=function X(ae){return ae&&ae instanceof c.Lv||function ue(ae){return ae&&(0,be.m)(ae.next)&&(0,be.m)(ae.error)&&(0,be.m)(ae.complete)}(ae)&&(0,s.Nn)(ae)}(Le)?Le:new c.Hp(Le,K,Je);return(0,ce.x)(()=>{const{operator:Ke,source:pe}=this;Ye.add(Ke?Ke.call(Ye,pe):pe?this._subscribe(Ye):this._trySubscribe(Ye))}),Ye}_trySubscribe(Le){try{return this._subscribe(Le)}catch(K){Le.error(K)}}forEach(Le,K){return new(K=oe(K))((Je,Ye)=>{const Ke=new c.Hp({next:pe=>{try{Le(pe)}catch(z){Ye(z),Ke.unsubscribe()}},error:Ye,complete:Je});this.subscribe(Ke)})}_subscribe(Le){var K;return null===(K=this.source)||void 0===K?void 0:K.subscribe(Le)}[m.L](){return this}pipe(...Le){return function q(ae){return 0===ae.length?W.y:1===ae.length?ae[0]:function(Le){return ae.reduce((K,Je)=>Je(K),Le)}}(Le)(this)}toPromise(Le){return new(Le=oe(Le))((K,Je)=>{let Ye;this.subscribe(Ke=>Ye=Ke,Ke=>Je(Ke),()=>K(Ye))})}}return ae.create=Pe=>new ae(Pe),ae})();function oe(ae){var Pe;return null!==(Pe=null!=ae?ae:Ce.v.Promise)&&void 0!==Pe?Pe:Promise}},7579:($e,ve,b)=>{b.d(ve,{x:()=>Ce});var c=b(8306),s=b(727);const W=(0,b(3888).d)(ce=>function(){ce(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var le=b(8737),q=b(2806);let Ce=(()=>{class ce extends c.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(oe){const ue=new be(this,this);return ue.operator=oe,ue}_throwIfClosed(){if(this.closed)throw new W}next(oe){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const ue=this.observers.slice();for(const X of ue)X.next(oe)}})}error(oe){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=oe;const{observers:ue}=this;for(;ue.length;)ue.shift().error(oe)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:oe}=this;for(;oe.length;)oe.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var oe;return(null===(oe=this.observers)||void 0===oe?void 0:oe.length)>0}_trySubscribe(oe){return this._throwIfClosed(),super._trySubscribe(oe)}_subscribe(oe){return this._throwIfClosed(),this._checkFinalizedStatuses(oe),this._innerSubscribe(oe)}_innerSubscribe(oe){const{hasError:ue,isStopped:X,observers:ae}=this;return ue||X?s.Lc:(ae.push(oe),new s.w0(()=>(0,le.P)(ae,oe)))}_checkFinalizedStatuses(oe){const{hasError:ue,thrownError:X,isStopped:ae}=this;ue?oe.error(X):ae&&oe.complete()}asObservable(){const oe=new c.y;return oe.source=this,oe}}return ce.create=(te,oe)=>new be(te,oe),ce})();class be extends Ce{constructor(te,oe){super(),this.destination=te,this.source=oe}next(te){var oe,ue;null===(ue=null===(oe=this.destination)||void 0===oe?void 0:oe.next)||void 0===ue||ue.call(oe,te)}error(te){var oe,ue;null===(ue=null===(oe=this.destination)||void 0===oe?void 0:oe.error)||void 0===ue||ue.call(oe,te)}complete(){var te,oe;null===(oe=null===(te=this.destination)||void 0===te?void 0:te.complete)||void 0===oe||oe.call(te)}_subscribe(te){var oe,ue;return null!==(ue=null===(oe=this.source)||void 0===oe?void 0:oe.subscribe(te))&&void 0!==ue?ue:s.Lc}}},930:($e,ve,b)=>{b.d(ve,{Hp:()=>Le,Lv:()=>ue});var c=b(576),s=b(727),m=b(2416),W=b(7849),le=b(5032);const q=ce("C",void 0,void 0);function ce(pe,z,Q){return{kind:pe,value:z,error:Q}}var te=b(3410),oe=b(2806);class ue extends s.w0{constructor(z){super(),this.isStopped=!1,z?(this.destination=z,(0,s.Nn)(z)&&z.add(this)):this.destination=Ke}static create(z,Q,fe){return new Le(z,Q,fe)}next(z){this.isStopped?Ye(function be(pe){return ce("N",pe,void 0)}(z),this):this._next(z)}error(z){this.isStopped?Ye(function Ce(pe){return ce("E",void 0,pe)}(z),this):(this.isStopped=!0,this._error(z))}complete(){this.isStopped?Ye(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(z){this.destination.next(z)}_error(z){try{this.destination.error(z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const X=Function.prototype.bind;function ae(pe,z){return X.call(pe,z)}class Pe{constructor(z){this.partialObserver=z}next(z){const{partialObserver:Q}=this;if(Q.next)try{Q.next(z)}catch(fe){K(fe)}}error(z){const{partialObserver:Q}=this;if(Q.error)try{Q.error(z)}catch(fe){K(fe)}else K(z)}complete(){const{partialObserver:z}=this;if(z.complete)try{z.complete()}catch(Q){K(Q)}}}class Le extends ue{constructor(z,Q,fe){let Ae;if(super(),(0,c.m)(z)||!z)Ae={next:null!=z?z:void 0,error:null!=Q?Q:void 0,complete:null!=fe?fe:void 0};else{let Fe;this&&m.v.useDeprecatedNextContext?(Fe=Object.create(z),Fe.unsubscribe=()=>this.unsubscribe(),Ae={next:z.next&&ae(z.next,Fe),error:z.error&&ae(z.error,Fe),complete:z.complete&&ae(z.complete,Fe)}):Ae=z}this.destination=new Pe(Ae)}}function K(pe){m.v.useDeprecatedSynchronousErrorHandling?(0,oe.O)(pe):(0,W.h)(pe)}function Ye(pe,z){const{onStoppedNotification:Q}=m.v;Q&&te.z.setTimeout(()=>Q(pe,z))}const Ke={closed:!0,next:le.Z,error:function Je(pe){throw pe},complete:le.Z}},727:($e,ve,b)=>{b.d(ve,{Lc:()=>q,w0:()=>le,Nn:()=>Ce});var c=b(576);const m=(0,b(3888).d)(ce=>function(oe){ce(this),this.message=oe?`${oe.length} errors occurred during unsubscription:\n${oe.map((ue,X)=>`${X+1}) ${ue.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=oe});var W=b(8737);class le{constructor(te){this.initialTeardown=te,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let te;if(!this.closed){this.closed=!0;const{_parentage:oe}=this;if(oe)if(this._parentage=null,Array.isArray(oe))for(const ae of oe)ae.remove(this);else oe.remove(this);const{initialTeardown:ue}=this;if((0,c.m)(ue))try{ue()}catch(ae){te=ae instanceof m?ae.errors:[ae]}const{_teardowns:X}=this;if(X){this._teardowns=null;for(const ae of X)try{be(ae)}catch(Pe){te=null!=te?te:[],Pe instanceof m?te=[...te,...Pe.errors]:te.push(Pe)}}if(te)throw new m(te)}}add(te){var oe;if(te&&te!==this)if(this.closed)be(te);else{if(te instanceof le){if(te.closed||te._hasParent(this))return;te._addParent(this)}(this._teardowns=null!==(oe=this._teardowns)&&void 0!==oe?oe:[]).push(te)}}_hasParent(te){const{_parentage:oe}=this;return oe===te||Array.isArray(oe)&&oe.includes(te)}_addParent(te){const{_parentage:oe}=this;this._parentage=Array.isArray(oe)?(oe.push(te),oe):oe?[oe,te]:te}_removeParent(te){const{_parentage:oe}=this;oe===te?this._parentage=null:Array.isArray(oe)&&(0,W.P)(oe,te)}remove(te){const{_teardowns:oe}=this;oe&&(0,W.P)(oe,te),te instanceof le&&te._removeParent(this)}}le.EMPTY=(()=>{const ce=new le;return ce.closed=!0,ce})();const q=le.EMPTY;function Ce(ce){return ce instanceof le||ce&&"closed"in ce&&(0,c.m)(ce.remove)&&(0,c.m)(ce.add)&&(0,c.m)(ce.unsubscribe)}function be(ce){(0,c.m)(ce)?ce():ce.unsubscribe()}},2416:($e,ve,b)=>{b.d(ve,{v:()=>c});const c={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:($e,ve,b)=>{b.d(ve,{a:()=>te});var c=b(8306),s=b(4742),m=b(2076),W=b(4671),le=b(3268),q=b(3269),Ce=b(1810),be=b(5403),ce=b(9672);function te(...X){const ae=(0,q.yG)(X),Pe=(0,q.jO)(X),{args:Le,keys:K}=(0,s.D)(X);if(0===Le.length)return(0,m.D)([],ae);const Je=new c.y(function oe(X,ae,Pe=W.y){return Le=>{ue(ae,()=>{const{length:K}=X,Je=new Array(K);let Ye=K,Ke=K;for(let pe=0;pe{const z=(0,m.D)(X[pe],ae);let Q=!1;z.subscribe((0,be.x)(Le,fe=>{Je[pe]=fe,Q||(Q=!0,Ke--),Ke||Le.next(Pe(Je.slice()))},()=>{--Ye||Le.complete()}))},Le)},Le)}}(Le,ae,K?Ye=>(0,Ce.n)(K,Ye):W.y));return Pe?Je.pipe((0,le.Z)(Pe)):Je}function ue(X,ae,Pe){X?(0,ce.f)(Pe,X,ae):ae()}},7272:($e,ve,b)=>{b.d(ve,{z:()=>le});var c=b(8189),m=b(3269),W=b(2076);function le(...q){return function s(){return(0,c.J)(1)}()((0,W.D)(q,(0,m.yG)(q)))}},9770:($e,ve,b)=>{b.d(ve,{P:()=>m});var c=b(8306),s=b(8421);function m(W){return new c.y(le=>{(0,s.Xf)(W()).subscribe(le)})}},515:($e,ve,b)=>{b.d(ve,{E:()=>s});const s=new(b(8306).y)(le=>le.complete())},2076:($e,ve,b)=>{b.d(ve,{D:()=>fe});var c=b(8421),s=b(9672),m=b(4482),W=b(5403);function le(Ae,Fe=0){return(0,m.e)((_e,Ee)=>{_e.subscribe((0,W.x)(Ee,Te=>(0,s.f)(Ee,Ae,()=>Ee.next(Te),Fe),()=>(0,s.f)(Ee,Ae,()=>Ee.complete(),Fe),Te=>(0,s.f)(Ee,Ae,()=>Ee.error(Te),Fe)))})}function q(Ae,Fe=0){return(0,m.e)((_e,Ee)=>{Ee.add(Ae.schedule(()=>_e.subscribe(Ee),Fe))})}var ce=b(8306),oe=b(2202),ue=b(576);function ae(Ae,Fe){if(!Ae)throw new Error("Iterable cannot be null");return new ce.y(_e=>{(0,s.f)(_e,Fe,()=>{const Ee=Ae[Symbol.asyncIterator]();(0,s.f)(_e,Fe,()=>{Ee.next().then(Te=>{Te.done?_e.complete():_e.next(Te.value)})},0,!0)})})}var Pe=b(3670),Le=b(8239),K=b(1144),Je=b(6495),Ye=b(2206),Ke=b(4532),pe=b(3260);function fe(Ae,Fe){return Fe?function Q(Ae,Fe){if(null!=Ae){if((0,Pe.c)(Ae))return function Ce(Ae,Fe){return(0,c.Xf)(Ae).pipe(q(Fe),le(Fe))}(Ae,Fe);if((0,K.z)(Ae))return function te(Ae,Fe){return new ce.y(_e=>{let Ee=0;return Fe.schedule(function(){Ee===Ae.length?_e.complete():(_e.next(Ae[Ee++]),_e.closed||this.schedule())})})}(Ae,Fe);if((0,Le.t)(Ae))return function be(Ae,Fe){return(0,c.Xf)(Ae).pipe(q(Fe),le(Fe))}(Ae,Fe);if((0,Ye.D)(Ae))return ae(Ae,Fe);if((0,Je.T)(Ae))return function X(Ae,Fe){return new ce.y(_e=>{let Ee;return(0,s.f)(_e,Fe,()=>{Ee=Ae[oe.h](),(0,s.f)(_e,Fe,()=>{let Te,we;try{({value:Te,done:we}=Ee.next())}catch(Xe){return void _e.error(Xe)}we?_e.complete():_e.next(Te)},0,!0)}),()=>(0,ue.m)(null==Ee?void 0:Ee.return)&&Ee.return()})}(Ae,Fe);if((0,pe.L)(Ae))return function z(Ae,Fe){return ae((0,pe.Q)(Ae),Fe)}(Ae,Fe)}throw(0,Ke.z)(Ae)}(Ae,Fe):(0,c.Xf)(Ae)}},4968:($e,ve,b)=>{b.d(ve,{R:()=>te});var c=b(8421),s=b(8306),m=b(5577),W=b(1144),le=b(576),q=b(3268);const Ce=["addListener","removeListener"],be=["addEventListener","removeEventListener"],ce=["on","off"];function te(Pe,Le,K,Je){if((0,le.m)(K)&&(Je=K,K=void 0),Je)return te(Pe,Le,K).pipe((0,q.Z)(Je));const[Ye,Ke]=function ae(Pe){return(0,le.m)(Pe.addEventListener)&&(0,le.m)(Pe.removeEventListener)}(Pe)?be.map(pe=>z=>Pe[pe](Le,z,K)):function ue(Pe){return(0,le.m)(Pe.addListener)&&(0,le.m)(Pe.removeListener)}(Pe)?Ce.map(oe(Pe,Le)):function X(Pe){return(0,le.m)(Pe.on)&&(0,le.m)(Pe.off)}(Pe)?ce.map(oe(Pe,Le)):[];if(!Ye&&(0,W.z)(Pe))return(0,m.z)(pe=>te(pe,Le,K))((0,c.Xf)(Pe));if(!Ye)throw new TypeError("Invalid event target");return new s.y(pe=>{const z=(...Q)=>pe.next(1Ke(z)})}function oe(Pe,Le){return K=>Je=>Pe[K](Le,Je)}},8421:($e,ve,b)=>{b.d(ve,{Xf:()=>X});var c=b(655),s=b(1144),m=b(8239),W=b(8306),le=b(3670),q=b(2206),Ce=b(4532),be=b(6495),ce=b(3260),te=b(576),oe=b(7849),ue=b(8822);function X(pe){if(pe instanceof W.y)return pe;if(null!=pe){if((0,le.c)(pe))return function ae(pe){return new W.y(z=>{const Q=pe[ue.L]();if((0,te.m)(Q.subscribe))return Q.subscribe(z);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(pe);if((0,s.z)(pe))return function Pe(pe){return new W.y(z=>{for(let Q=0;Q{pe.then(Q=>{z.closed||(z.next(Q),z.complete())},Q=>z.error(Q)).then(null,oe.h)})}(pe);if((0,q.D)(pe))return Je(pe);if((0,be.T)(pe))return function K(pe){return new W.y(z=>{for(const Q of pe)if(z.next(Q),z.closed)return;z.complete()})}(pe);if((0,ce.L)(pe))return function Ye(pe){return Je((0,ce.Q)(pe))}(pe)}throw(0,Ce.z)(pe)}function Je(pe){return new W.y(z=>{(function Ke(pe,z){var Q,fe,Ae,Fe;return(0,c.mG)(this,void 0,void 0,function*(){try{for(Q=(0,c.KL)(pe);!(fe=yield Q.next()).done;)if(z.next(fe.value),z.closed)return}catch(_e){Ae={error:_e}}finally{try{fe&&!fe.done&&(Fe=Q.return)&&(yield Fe.call(Q))}finally{if(Ae)throw Ae.error}}z.complete()})})(pe,z).catch(Q=>z.error(Q))})}},6451:($e,ve,b)=>{b.d(ve,{T:()=>q});var c=b(8189),s=b(8421),m=b(515),W=b(3269),le=b(2076);function q(...Ce){const be=(0,W.yG)(Ce),ce=(0,W._6)(Ce,1/0),te=Ce;return te.length?1===te.length?(0,s.Xf)(te[0]):(0,c.J)(ce)((0,le.D)(te,be)):m.E}},9646:($e,ve,b)=>{b.d(ve,{of:()=>m});var c=b(3269),s=b(2076);function m(...W){const le=(0,c.yG)(W);return(0,s.D)(W,le)}},5963:($e,ve,b)=>{b.d(ve,{H:()=>le});var c=b(8306),s=b(4986),m=b(3532);function le(q=0,Ce,be=s.P){let ce=-1;return null!=Ce&&((0,m.K)(Ce)?be=Ce:ce=Ce),new c.y(te=>{let oe=function W(q){return q instanceof Date&&!isNaN(q)}(q)?+q-be.now():q;oe<0&&(oe=0);let ue=0;return be.schedule(function(){te.closed||(te.next(ue++),0<=ce?this.schedule(void 0,ce):te.complete())},oe)})}},5403:($e,ve,b)=>{b.d(ve,{x:()=>s});var c=b(930);function s(W,le,q,Ce,be){return new m(W,le,q,Ce,be)}class m extends c.Lv{constructor(le,q,Ce,be,ce,te){super(le),this.onFinalize=ce,this.shouldUnsubscribe=te,this._next=q?function(oe){try{q(oe)}catch(ue){le.error(ue)}}:super._next,this._error=be?function(oe){try{be(oe)}catch(ue){le.error(ue)}finally{this.unsubscribe()}}:super._error,this._complete=Ce?function(){try{Ce()}catch(oe){le.error(oe)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var le;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(le=this.onFinalize)||void 0===le||le.call(this))}}}},4351:($e,ve,b)=>{b.d(ve,{b:()=>m});var c=b(5577),s=b(576);function m(W,le){return(0,s.m)(le)?(0,c.z)(W,le,1):(0,c.z)(W,1)}},8372:($e,ve,b)=>{b.d(ve,{b:()=>W});var c=b(4986),s=b(4482),m=b(5403);function W(le,q=c.z){return(0,s.e)((Ce,be)=>{let ce=null,te=null,oe=null;const ue=()=>{if(ce){ce.unsubscribe(),ce=null;const ae=te;te=null,be.next(ae)}};function X(){const ae=oe+le,Pe=q.now();if(Pe{te=ae,oe=q.now(),ce||(ce=q.schedule(X,le),be.add(ce))},()=>{ue(),be.complete()},void 0,()=>{te=ce=null}))})}},1884:($e,ve,b)=>{b.d(ve,{x:()=>W});var c=b(4671),s=b(4482),m=b(5403);function W(q,Ce=c.y){return q=null!=q?q:le,(0,s.e)((be,ce)=>{let te,oe=!0;be.subscribe((0,m.x)(ce,ue=>{const X=Ce(ue);(oe||!q(te,X))&&(oe=!1,te=X,ce.next(ue))}))})}function le(q,Ce){return q===Ce}},9300:($e,ve,b)=>{b.d(ve,{h:()=>m});var c=b(4482),s=b(5403);function m(W,le){return(0,c.e)((q,Ce)=>{let be=0;q.subscribe((0,s.x)(Ce,ce=>W.call(le,ce,be++)&&Ce.next(ce)))})}},4004:($e,ve,b)=>{b.d(ve,{U:()=>m});var c=b(4482),s=b(5403);function m(W,le){return(0,c.e)((q,Ce)=>{let be=0;q.subscribe((0,s.x)(Ce,ce=>{Ce.next(W.call(le,ce,be++))}))})}},8189:($e,ve,b)=>{b.d(ve,{J:()=>m});var c=b(5577),s=b(4671);function m(W=1/0){return(0,c.z)(s.y,W)}},5577:($e,ve,b)=>{b.d(ve,{z:()=>be});var c=b(4004),s=b(8421),m=b(4482),W=b(9672),le=b(5403),Ce=b(576);function be(ce,te,oe=1/0){return(0,Ce.m)(te)?be((ue,X)=>(0,c.U)((ae,Pe)=>te(ue,ae,X,Pe))((0,s.Xf)(ce(ue,X))),oe):("number"==typeof te&&(oe=te),(0,m.e)((ue,X)=>function q(ce,te,oe,ue,X,ae,Pe,Le){const K=[];let Je=0,Ye=0,Ke=!1;const pe=()=>{Ke&&!K.length&&!Je&&te.complete()},z=fe=>Je{ae&&te.next(fe),Je++;let Ae=!1;(0,s.Xf)(oe(fe,Ye++)).subscribe((0,le.x)(te,Fe=>{null==X||X(Fe),ae?z(Fe):te.next(Fe)},()=>{Ae=!0},void 0,()=>{if(Ae)try{for(Je--;K.length&&JeQ(Fe)):Q(Fe)}pe()}catch(Fe){te.error(Fe)}}))};return ce.subscribe((0,le.x)(te,z,()=>{Ke=!0,pe()})),()=>{null==Le||Le()}}(ue,X,ce,oe)))}},5684:($e,ve,b)=>{b.d(ve,{T:()=>s});var c=b(9300);function s(m){return(0,c.h)((W,le)=>m<=le)}},8675:($e,ve,b)=>{b.d(ve,{O:()=>W});var c=b(7272),s=b(3269),m=b(4482);function W(...le){const q=(0,s.yG)(le);return(0,m.e)((Ce,be)=>{(q?(0,c.z)(le,Ce,q):(0,c.z)(le,Ce)).subscribe(be)})}},3900:($e,ve,b)=>{b.d(ve,{w:()=>W});var c=b(8421),s=b(4482),m=b(5403);function W(le,q){return(0,s.e)((Ce,be)=>{let ce=null,te=0,oe=!1;const ue=()=>oe&&!ce&&be.complete();Ce.subscribe((0,m.x)(be,X=>{null==ce||ce.unsubscribe();let ae=0;const Pe=te++;(0,c.Xf)(le(X,Pe)).subscribe(ce=(0,m.x)(be,Le=>be.next(q?q(X,Le,Pe,ae++):Le),()=>{ce=null,ue()}))},()=>{oe=!0,ue()}))})}},5698:($e,ve,b)=>{b.d(ve,{q:()=>W});var c=b(515),s=b(4482),m=b(5403);function W(le){return le<=0?()=>c.E:(0,s.e)((q,Ce)=>{let be=0;q.subscribe((0,m.x)(Ce,ce=>{++be<=le&&(Ce.next(ce),le<=be&&Ce.complete())}))})}},2722:($e,ve,b)=>{b.d(ve,{R:()=>le});var c=b(4482),s=b(5403),m=b(8421),W=b(5032);function le(q){return(0,c.e)((Ce,be)=>{(0,m.Xf)(q).subscribe((0,s.x)(be,()=>be.complete(),W.Z)),!be.closed&&Ce.subscribe(be)})}},8505:($e,ve,b)=>{b.d(ve,{b:()=>le});var c=b(576),s=b(4482),m=b(5403),W=b(4671);function le(q,Ce,be){const ce=(0,c.m)(q)||Ce||be?{next:q,error:Ce,complete:be}:q;return ce?(0,s.e)((te,oe)=>{var ue;null===(ue=ce.subscribe)||void 0===ue||ue.call(ce);let X=!0;te.subscribe((0,m.x)(oe,ae=>{var Pe;null===(Pe=ce.next)||void 0===Pe||Pe.call(ce,ae),oe.next(ae)},()=>{var ae;X=!1,null===(ae=ce.complete)||void 0===ae||ae.call(ce),oe.complete()},ae=>{var Pe;X=!1,null===(Pe=ce.error)||void 0===Pe||Pe.call(ce,ae),oe.error(ae)},()=>{var ae,Pe;X&&(null===(ae=ce.unsubscribe)||void 0===ae||ae.call(ce)),null===(Pe=ce.finalize)||void 0===Pe||Pe.call(ce)}))}):W.y}},4408:($e,ve,b)=>{b.d(ve,{o:()=>le});var c=b(727);class s extends c.w0{constructor(Ce,be){super()}schedule(Ce,be=0){return this}}const m={setInterval(...q){const{delegate:Ce}=m;return((null==Ce?void 0:Ce.setInterval)||setInterval)(...q)},clearInterval(q){const{delegate:Ce}=m;return((null==Ce?void 0:Ce.clearInterval)||clearInterval)(q)},delegate:void 0};var W=b(8737);class le extends s{constructor(Ce,be){super(Ce,be),this.scheduler=Ce,this.work=be,this.pending=!1}schedule(Ce,be=0){if(this.closed)return this;this.state=Ce;const ce=this.id,te=this.scheduler;return null!=ce&&(this.id=this.recycleAsyncId(te,ce,be)),this.pending=!0,this.delay=be,this.id=this.id||this.requestAsyncId(te,this.id,be),this}requestAsyncId(Ce,be,ce=0){return m.setInterval(Ce.flush.bind(Ce,this),ce)}recycleAsyncId(Ce,be,ce=0){if(null!=ce&&this.delay===ce&&!1===this.pending)return be;m.clearInterval(be)}execute(Ce,be){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ce=this._execute(Ce,be);if(ce)return ce;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Ce,be){let te,ce=!1;try{this.work(Ce)}catch(oe){ce=!0,te=oe||new Error("Scheduled action threw falsy error")}if(ce)return this.unsubscribe(),te}unsubscribe(){if(!this.closed){const{id:Ce,scheduler:be}=this,{actions:ce}=be;this.work=this.state=this.scheduler=null,this.pending=!1,(0,W.P)(ce,this),null!=Ce&&(this.id=this.recycleAsyncId(be,Ce,null)),this.delay=null,super.unsubscribe()}}}},640:($e,ve,b)=>{b.d(ve,{v:()=>m});const c={now:()=>(c.delegate||Date).now(),delegate:void 0};class s{constructor(le,q=s.now){this.schedulerActionCtor=le,this.now=q}schedule(le,q=0,Ce){return new this.schedulerActionCtor(this,le).schedule(Ce,q)}}s.now=c.now;class m extends s{constructor(le,q=s.now){super(le,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(le){const{actions:q}=this;if(this._active)return void q.push(le);let Ce;this._active=!0;do{if(Ce=le.execute(le.state,le.delay))break}while(le=q.shift());if(this._active=!1,Ce){for(;le=q.shift();)le.unsubscribe();throw Ce}}}},3101:($e,ve,b)=>{b.d(ve,{E:()=>ae});var c=b(4408);let m,s=1;const W={};function le(Le){return Le in W&&(delete W[Le],!0)}const q={setImmediate(Le){const K=s++;return W[K]=!0,m||(m=Promise.resolve()),m.then(()=>le(K)&&Le()),K},clearImmediate(Le){le(Le)}},{setImmediate:be,clearImmediate:ce}=q,te={setImmediate(...Le){const{delegate:K}=te;return((null==K?void 0:K.setImmediate)||be)(...Le)},clearImmediate(Le){const{delegate:K}=te;return((null==K?void 0:K.clearImmediate)||ce)(Le)},delegate:void 0};var ue=b(640);const ae=new class X extends ue.v{flush(K){this._active=!0;const Je=this._scheduled;this._scheduled=void 0;const{actions:Ye}=this;let Ke;K=K||Ye.shift();do{if(Ke=K.execute(K.state,K.delay))break}while((K=Ye[0])&&K.id===Je&&Ye.shift());if(this._active=!1,Ke){for(;(K=Ye[0])&&K.id===Je&&Ye.shift();)K.unsubscribe();throw Ke}}}(class oe extends c.o{constructor(K,Je){super(K,Je),this.scheduler=K,this.work=Je}requestAsyncId(K,Je,Ye=0){return null!==Ye&&Ye>0?super.requestAsyncId(K,Je,Ye):(K.actions.push(this),K._scheduled||(K._scheduled=te.setImmediate(K.flush.bind(K,void 0))))}recycleAsyncId(K,Je,Ye=0){if(null!=Ye&&Ye>0||null==Ye&&this.delay>0)return super.recycleAsyncId(K,Je,Ye);K.actions.some(Ke=>Ke.id===Je)||(te.clearImmediate(Je),K._scheduled=void 0)}})},4986:($e,ve,b)=>{b.d(ve,{z:()=>m,P:()=>W});var c=b(4408);const m=new(b(640).v)(c.o),W=m},3410:($e,ve,b)=>{b.d(ve,{z:()=>c});const c={setTimeout(...s){const{delegate:m}=c;return((null==m?void 0:m.setTimeout)||setTimeout)(...s)},clearTimeout(s){const{delegate:m}=c;return((null==m?void 0:m.clearTimeout)||clearTimeout)(s)},delegate:void 0}},2202:($e,ve,b)=>{b.d(ve,{h:()=>s});const s=function c(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:($e,ve,b)=>{b.d(ve,{L:()=>c});const c="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:($e,ve,b)=>{b.d(ve,{jO:()=>W,yG:()=>le,_6:()=>q});var c=b(576),s=b(3532);function m(Ce){return Ce[Ce.length-1]}function W(Ce){return(0,c.m)(m(Ce))?Ce.pop():void 0}function le(Ce){return(0,s.K)(m(Ce))?Ce.pop():void 0}function q(Ce,be){return"number"==typeof m(Ce)?Ce.pop():be}},4742:($e,ve,b)=>{b.d(ve,{D:()=>le});const{isArray:c}=Array,{getPrototypeOf:s,prototype:m,keys:W}=Object;function le(Ce){if(1===Ce.length){const be=Ce[0];if(c(be))return{args:be,keys:null};if(function q(Ce){return Ce&&"object"==typeof Ce&&s(Ce)===m}(be)){const ce=W(be);return{args:ce.map(te=>be[te]),keys:ce}}}return{args:Ce,keys:null}}},8737:($e,ve,b)=>{function c(s,m){if(s){const W=s.indexOf(m);0<=W&&s.splice(W,1)}}b.d(ve,{P:()=>c})},3888:($e,ve,b)=>{function c(s){const W=s(le=>{Error.call(le),le.stack=(new Error).stack});return W.prototype=Object.create(Error.prototype),W.prototype.constructor=W,W}b.d(ve,{d:()=>c})},1810:($e,ve,b)=>{function c(s,m){return s.reduce((W,le,q)=>(W[le]=m[q],W),{})}b.d(ve,{n:()=>c})},2806:($e,ve,b)=>{b.d(ve,{x:()=>m,O:()=>W});var c=b(2416);let s=null;function m(le){if(c.v.useDeprecatedSynchronousErrorHandling){const q=!s;if(q&&(s={errorThrown:!1,error:null}),le(),q){const{errorThrown:Ce,error:be}=s;if(s=null,Ce)throw be}}else le()}function W(le){c.v.useDeprecatedSynchronousErrorHandling&&s&&(s.errorThrown=!0,s.error=le)}},9672:($e,ve,b)=>{function c(s,m,W,le=0,q=!1){const Ce=m.schedule(function(){W(),q?s.add(this.schedule(null,le)):this.unsubscribe()},le);if(s.add(Ce),!q)return Ce}b.d(ve,{f:()=>c})},4671:($e,ve,b)=>{function c(s){return s}b.d(ve,{y:()=>c})},1144:($e,ve,b)=>{b.d(ve,{z:()=>c});const c=s=>s&&"number"==typeof s.length&&"function"!=typeof s},2206:($e,ve,b)=>{b.d(ve,{D:()=>s});var c=b(576);function s(m){return Symbol.asyncIterator&&(0,c.m)(null==m?void 0:m[Symbol.asyncIterator])}},576:($e,ve,b)=>{function c(s){return"function"==typeof s}b.d(ve,{m:()=>c})},3670:($e,ve,b)=>{b.d(ve,{c:()=>m});var c=b(8822),s=b(576);function m(W){return(0,s.m)(W[c.L])}},6495:($e,ve,b)=>{b.d(ve,{T:()=>m});var c=b(2202),s=b(576);function m(W){return(0,s.m)(null==W?void 0:W[c.h])}},8239:($e,ve,b)=>{b.d(ve,{t:()=>s});var c=b(576);function s(m){return(0,c.m)(null==m?void 0:m.then)}},3260:($e,ve,b)=>{b.d(ve,{Q:()=>m,L:()=>W});var c=b(655),s=b(576);function m(le){return(0,c.FC)(this,arguments,function*(){const Ce=le.getReader();try{for(;;){const{value:be,done:ce}=yield(0,c.qq)(Ce.read());if(ce)return yield(0,c.qq)(void 0);yield yield(0,c.qq)(be)}}finally{Ce.releaseLock()}})}function W(le){return(0,s.m)(null==le?void 0:le.getReader)}},3532:($e,ve,b)=>{b.d(ve,{K:()=>s});var c=b(576);function s(m){return m&&(0,c.m)(m.schedule)}},4482:($e,ve,b)=>{b.d(ve,{A:()=>s,e:()=>m});var c=b(576);function s(W){return(0,c.m)(null==W?void 0:W.lift)}function m(W){return le=>{if(s(le))return le.lift(function(q){try{return W(q,this)}catch(Ce){this.error(Ce)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:($e,ve,b)=>{b.d(ve,{Z:()=>W});var c=b(4004);const{isArray:s}=Array;function W(le){return(0,c.U)(q=>function m(le,q){return s(q)?le(...q):le(q)}(le,q))}},5032:($e,ve,b)=>{function c(){}b.d(ve,{Z:()=>c})},7849:($e,ve,b)=>{b.d(ve,{h:()=>m});var c=b(2416),s=b(3410);function m(W){s.z.setTimeout(()=>{const{onUnhandledError:le}=c.v;if(!le)throw W;le(W)})}},4532:($e,ve,b)=>{function c(s){return new TypeError(`You provided ${null!==s&&"object"==typeof s?"an invalid object":`'${s}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}b.d(ve,{z:()=>c})},655:($e,ve,b)=>{function be(_e,Ee,Te,we){return new(Te||(Te=Promise))(function(Re,vt){function pt(It){try{_t(we.next(It))}catch($t){vt($t)}}function Qt(It){try{_t(we.throw(It))}catch($t){vt($t)}}function _t(It){It.done?Re(It.value):function Xe(Re){return Re instanceof Te?Re:new Te(function(vt){vt(Re)})}(It.value).then(pt,Qt)}_t((we=we.apply(_e,Ee||[])).next())})}function K(_e){return this instanceof K?(this.v=_e,this):new K(_e)}function Je(_e,Ee,Te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Xe,we=Te.apply(_e,Ee||[]),Re=[];return Xe={},vt("next"),vt("throw"),vt("return"),Xe[Symbol.asyncIterator]=function(){return this},Xe;function vt(Ot){we[Ot]&&(Xe[Ot]=function(cn){return new Promise(function(Nt,Tt){Re.push([Ot,cn,Nt,Tt])>1||pt(Ot,cn)})})}function pt(Ot,cn){try{!function Qt(Ot){Ot.value instanceof K?Promise.resolve(Ot.value.v).then(_t,It):$t(Re[0][2],Ot)}(we[Ot](cn))}catch(Nt){$t(Re[0][3],Nt)}}function _t(Ot){pt("next",Ot)}function It(Ot){pt("throw",Ot)}function $t(Ot,cn){Ot(cn),Re.shift(),Re.length&&pt(Re[0][0],Re[0][1])}}function Ke(_e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Te,Ee=_e[Symbol.asyncIterator];return Ee?Ee.call(_e):(_e=function ue(_e){var Ee="function"==typeof Symbol&&Symbol.iterator,Te=Ee&&_e[Ee],we=0;if(Te)return Te.call(_e);if(_e&&"number"==typeof _e.length)return{next:function(){return _e&&we>=_e.length&&(_e=void 0),{value:_e&&_e[we++],done:!_e}}};throw new TypeError(Ee?"Object is not iterable.":"Symbol.iterator is not defined.")}(_e),Te={},we("next"),we("throw"),we("return"),Te[Symbol.asyncIterator]=function(){return this},Te);function we(Re){Te[Re]=_e[Re]&&function(vt){return new Promise(function(pt,Qt){!function Xe(Re,vt,pt,Qt){Promise.resolve(Qt).then(function(_t){Re({value:_t,done:pt})},vt)}(pt,Qt,(vt=_e[Re](vt)).done,vt.value)})}}}b.d(ve,{mG:()=>be,qq:()=>K,FC:()=>Je,KL:()=>Ke})},1777:($e,ve,b)=>{b.d(ve,{l3:()=>m,_j:()=>c,LC:()=>s,ZN:()=>Je,jt:()=>le,pV:()=>X,F4:()=>te,IO:()=>Pe,vP:()=>Ce,SB:()=>ce,oB:()=>be,eR:()=>oe,X$:()=>W,ZE:()=>Ye,k1:()=>Ke});class c{}class s{}const m="*";function W(pe,z){return{type:7,name:pe,definitions:z,options:{}}}function le(pe,z=null){return{type:4,styles:z,timings:pe}}function Ce(pe,z=null){return{type:2,steps:pe,options:z}}function be(pe){return{type:6,styles:pe,offset:null}}function ce(pe,z,Q){return{type:0,name:pe,styles:z,options:Q}}function te(pe){return{type:5,steps:pe}}function oe(pe,z,Q=null){return{type:1,expr:pe,animation:z,options:Q}}function X(pe=null){return{type:9,options:pe}}function Pe(pe,z,Q=null){return{type:11,selector:pe,animation:z,options:Q}}function K(pe){Promise.resolve(null).then(pe)}class Je{constructor(z=0,Q=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=z+Q}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}onStart(z){this._onStartFns.push(z)}onDone(z){this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){K(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(z=>z()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(z){this._position=this.totalTime?z*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(z){const Q="start"==z?this._onStartFns:this._onDoneFns;Q.forEach(fe=>fe()),Q.length=0}}class Ye{constructor(z){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=z;let Q=0,fe=0,Ae=0;const Fe=this.players.length;0==Fe?K(()=>this._onFinish()):this.players.forEach(_e=>{_e.onDone(()=>{++Q==Fe&&this._onFinish()}),_e.onDestroy(()=>{++fe==Fe&&this._onDestroy()}),_e.onStart(()=>{++Ae==Fe&&this._onStart()})}),this.totalTime=this.players.reduce((_e,Ee)=>Math.max(_e,Ee.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}init(){this.players.forEach(z=>z.init())}onStart(z){this._onStartFns.push(z)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(z=>z()),this._onStartFns=[])}onDone(z){this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(z=>z.play())}pause(){this.players.forEach(z=>z.pause())}restart(){this.players.forEach(z=>z.restart())}finish(){this._onFinish(),this.players.forEach(z=>z.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(z=>z.destroy()),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}reset(){this.players.forEach(z=>z.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(z){const Q=z*this.totalTime;this.players.forEach(fe=>{const Ae=fe.totalTime?Math.min(1,Q/fe.totalTime):1;fe.setPosition(Ae)})}getPosition(){const z=this.players.reduce((Q,fe)=>null===Q||fe.totalTime>Q.totalTime?fe:Q,null);return null!=z?z.getPosition():0}beforeDestroy(){this.players.forEach(z=>{z.beforeDestroy&&z.beforeDestroy()})}triggerCallback(z){const Q="start"==z?this._onStartFns:this._onDoneFns;Q.forEach(fe=>fe()),Q.length=0}}const Ke="!"},5664:($e,ve,b)=>{b.d(ve,{rt:()=>Me,s1:()=>Xe,$s:()=>_e,Em:()=>Re,tE:()=>en,qV:()=>Ve,qm:()=>ke,ic:()=>pt,Kd:()=>je,X6:()=>ot,yG:()=>Oe});var c=b(9808),s=b(4893),m=b(925),W=b(7579),le=b(727),q=b(1135),Ce=b(9646),be=b(1159),ce=b(8505),te=b(8372),oe=b(9300),ue=b(4004),X=b(5698),ae=b(5684),Pe=b(1884),Le=b(2722),K=b(3191),Je=b(7144);function z(V,j){return(V.getAttribute(j)||"").match(/\S+/g)||[]}const fe="cdk-describedby-message",Ae="cdk-describedby-host";let Fe=0,_e=(()=>{class V{constructor(G,de){this._platform=de,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Fe++,this._document=G}describe(G,de,xe){if(!this._canBeDescribed(G,de))return;const rt=Ee(de,xe);"string"!=typeof de?(Te(de),this._messageRegistry.set(rt,{messageElement:de,referenceCount:0})):this._messageRegistry.has(rt)||this._createMessageElement(de,xe),this._isElementDescribedByMessage(G,rt)||this._addMessageReference(G,rt)}removeDescription(G,de,xe){var rt;if(!de||!this._isElementNode(G))return;const wt=Ee(de,xe);if(this._isElementDescribedByMessage(G,wt)&&this._removeMessageReference(G,wt),"string"==typeof de){const Zt=this._messageRegistry.get(wt);Zt&&0===Zt.referenceCount&&this._deleteMessageElement(wt)}0===(null===(rt=this._messagesContainer)||void 0===rt?void 0:rt.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var G;const de=this._document.querySelectorAll(`[${Ae}="${this._id}"]`);for(let xe=0;xe0!=xe.indexOf(fe));G.setAttribute("aria-describedby",de.join(" "))}_addMessageReference(G,de){const xe=this._messageRegistry.get(de);(function Ke(V,j,G){const de=z(V,j);de.some(xe=>xe.trim()==G.trim())||(de.push(G.trim()),V.setAttribute(j,de.join(" ")))})(G,"aria-describedby",xe.messageElement.id),G.setAttribute(Ae,this._id),xe.referenceCount++}_removeMessageReference(G,de){const xe=this._messageRegistry.get(de);xe.referenceCount--,function pe(V,j,G){const xe=z(V,j).filter(rt=>rt!=G.trim());xe.length?V.setAttribute(j,xe.join(" ")):V.removeAttribute(j)}(G,"aria-describedby",xe.messageElement.id),G.removeAttribute(Ae)}_isElementDescribedByMessage(G,de){const xe=z(G,"aria-describedby"),rt=this._messageRegistry.get(de),wt=rt&&rt.messageElement.id;return!!wt&&-1!=xe.indexOf(wt)}_canBeDescribed(G,de){if(!this._isElementNode(G))return!1;if(de&&"object"==typeof de)return!0;const xe=null==de?"":`${de}`.trim(),rt=G.getAttribute("aria-label");return!(!xe||rt&&rt.trim()===xe)}_isElementNode(G){return G.nodeType===this._document.ELEMENT_NODE}}return V.\u0275fac=function(G){return new(G||V)(s.LFG(c.K0),s.LFG(m.t4))},V.\u0275prov=s.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function Ee(V,j){return"string"==typeof V?`${j||""}/${V}`:V}function Te(V){V.id||(V.id=`${fe}-${Fe++}`)}class we{constructor(j){this._items=j,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new W.x,this._typeaheadSubscription=le.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=G=>G.disabled,this._pressedLetters=[],this.tabOut=new W.x,this.change=new W.x,j instanceof s.n_E&&j.changes.subscribe(G=>{if(this._activeItem){const xe=G.toArray().indexOf(this._activeItem);xe>-1&&xe!==this._activeItemIndex&&(this._activeItemIndex=xe)}})}skipPredicate(j){return this._skipPredicateFn=j,this}withWrap(j=!0){return this._wrap=j,this}withVerticalOrientation(j=!0){return this._vertical=j,this}withHorizontalOrientation(j){return this._horizontal=j,this}withAllowedModifierKeys(j){return this._allowedModifierKeys=j,this}withTypeAhead(j=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ce.b)(G=>this._pressedLetters.push(G)),(0,te.b)(j),(0,oe.h)(()=>this._pressedLetters.length>0),(0,ue.U)(()=>this._pressedLetters.join(""))).subscribe(G=>{const de=this._getItemsArray();for(let xe=1;xe!j[rt]||this._allowedModifierKeys.indexOf(rt)>-1);switch(G){case be.Mf:return void this.tabOut.next();case be.JH:if(this._vertical&&xe){this.setNextItemActive();break}return;case be.LH:if(this._vertical&&xe){this.setPreviousItemActive();break}return;case be.SV:if(this._horizontal&&xe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case be.oh:if(this._horizontal&&xe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case be.Sd:if(this._homeAndEnd&&xe){this.setFirstItemActive();break}return;case be.uR:if(this._homeAndEnd&&xe){this.setLastItemActive();break}return;default:return void((xe||(0,be.Vb)(j,"shiftKey"))&&(j.key&&1===j.key.length?this._letterKeyStream.next(j.key.toLocaleUpperCase()):(G>=be.A&&G<=be.Z||G>=be.xE&&G<=be.aO)&&this._letterKeyStream.next(String.fromCharCode(G))))}this._pressedLetters=[],j.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(j){const G=this._getItemsArray(),de="number"==typeof j?j:G.indexOf(j),xe=G[de];this._activeItem=null==xe?null:xe,this._activeItemIndex=de}_setActiveItemByDelta(j){this._wrap?this._setActiveInWrapMode(j):this._setActiveInDefaultMode(j)}_setActiveInWrapMode(j){const G=this._getItemsArray();for(let de=1;de<=G.length;de++){const xe=(this._activeItemIndex+j*de+G.length)%G.length;if(!this._skipPredicateFn(G[xe]))return void this.setActiveItem(xe)}}_setActiveInDefaultMode(j){this._setActiveItemByIndex(this._activeItemIndex+j,j)}_setActiveItemByIndex(j,G){const de=this._getItemsArray();if(de[j]){for(;this._skipPredicateFn(de[j]);)if(!de[j+=G])return;this.setActiveItem(j)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class Xe extends we{setActiveItem(j){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(j),this.activeItem&&this.activeItem.setActiveStyles()}}class Re extends we{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(j){return this._origin=j,this}setActiveItem(j){super.setActiveItem(j),this.activeItem&&this.activeItem.focus(this._origin)}}let pt=(()=>{class V{constructor(G){this._platform=G}isDisabled(G){return G.hasAttribute("disabled")}isVisible(G){return function _t(V){return!!(V.offsetWidth||V.offsetHeight||"function"==typeof V.getClientRects&&V.getClientRects().length)}(G)&&"visible"===getComputedStyle(G).visibility}isTabbable(G){if(!this._platform.isBrowser)return!1;const de=function Qt(V){try{return V.frameElement}catch(j){return null}}(function J(V){return V.ownerDocument&&V.ownerDocument.defaultView||window}(G));if(de&&(-1===nn(de)||!this.isVisible(de)))return!1;let xe=G.nodeName.toLowerCase(),rt=nn(G);return G.hasAttribute("contenteditable")?-1!==rt:!("iframe"===xe||"object"===xe||this._platform.WEBKIT&&this._platform.IOS&&!function Qe(V){let j=V.nodeName.toLowerCase(),G="input"===j&&V.type;return"text"===G||"password"===G||"select"===j||"textarea"===j}(G))&&("audio"===xe?!!G.hasAttribute("controls")&&-1!==rt:"video"===xe?-1!==rt&&(null!==rt||this._platform.FIREFOX||G.hasAttribute("controls")):G.tabIndex>=0)}isFocusable(G,de){return function He(V){return!function $t(V){return function cn(V){return"input"==V.nodeName.toLowerCase()}(V)&&"hidden"==V.type}(V)&&(function It(V){let j=V.nodeName.toLowerCase();return"input"===j||"select"===j||"button"===j||"textarea"===j}(V)||function Ot(V){return function Nt(V){return"a"==V.nodeName.toLowerCase()}(V)&&V.hasAttribute("href")}(V)||V.hasAttribute("contenteditable")||Tt(V))}(G)&&!this.isDisabled(G)&&((null==de?void 0:de.ignoreVisibility)||this.isVisible(G))}}return V.\u0275fac=function(G){return new(G||V)(s.LFG(m.t4))},V.\u0275prov=s.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function Tt(V){if(!V.hasAttribute("tabindex")||void 0===V.tabIndex)return!1;let j=V.getAttribute("tabindex");return!(!j||isNaN(parseInt(j,10)))}function nn(V){if(!Tt(V))return null;const j=parseInt(V.getAttribute("tabindex")||"",10);return isNaN(j)?-1:j}class Y{constructor(j,G,de,xe,rt=!1){this._element=j,this._checker=G,this._ngZone=de,this._document=xe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,rt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(j){this._enabled=j,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(j,this._startAnchor),this._toggleAnchorTabIndex(j,this._endAnchor))}destroy(){const j=this._startAnchor,G=this._endAnchor;j&&(j.removeEventListener("focus",this.startAnchorListener),j.remove()),G&&(G.removeEventListener("focus",this.endAnchorListener),G.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(j){return new Promise(G=>{this._executeOnStable(()=>G(this.focusInitialElement(j)))})}focusFirstTabbableElementWhenReady(j){return new Promise(G=>{this._executeOnStable(()=>G(this.focusFirstTabbableElement(j)))})}focusLastTabbableElementWhenReady(j){return new Promise(G=>{this._executeOnStable(()=>G(this.focusLastTabbableElement(j)))})}_getRegionBoundary(j){const G=this._element.querySelectorAll(`[cdk-focus-region-${j}], [cdkFocusRegion${j}], [cdk-focus-${j}]`);return"start"==j?G.length?G[0]:this._getFirstTabbableElement(this._element):G.length?G[G.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(j){const G=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(G){if(!this._checker.isFocusable(G)){const de=this._getFirstTabbableElement(G);return null==de||de.focus(j),!!de}return G.focus(j),!0}return this.focusFirstTabbableElement(j)}focusFirstTabbableElement(j){const G=this._getRegionBoundary("start");return G&&G.focus(j),!!G}focusLastTabbableElement(j){const G=this._getRegionBoundary("end");return G&&G.focus(j),!!G}hasAttached(){return this._hasAttached}_getFirstTabbableElement(j){if(this._checker.isFocusable(j)&&this._checker.isTabbable(j))return j;const G=j.children;for(let de=0;de=0;de--){const xe=G[de].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(G[de]):null;if(xe)return xe}return null}_createAnchor(){const j=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,j),j.classList.add("cdk-visually-hidden"),j.classList.add("cdk-focus-trap-anchor"),j.setAttribute("aria-hidden","true"),j}_toggleAnchorTabIndex(j,G){j?G.setAttribute("tabindex","0"):G.removeAttribute("tabindex")}toggleAnchors(j){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(j,this._startAnchor),this._toggleAnchorTabIndex(j,this._endAnchor))}_executeOnStable(j){this._ngZone.isStable?j():this._ngZone.onStable.pipe((0,X.q)(1)).subscribe(j)}}let Ve=(()=>{class V{constructor(G,de,xe){this._checker=G,this._ngZone=de,this._document=xe}create(G,de=!1){return new Y(G,this._checker,this._ngZone,this._document,de)}}return V.\u0275fac=function(G){return new(G||V)(s.LFG(pt),s.LFG(s.R0b),s.LFG(c.K0))},V.\u0275prov=s.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function ot(V){return 0===V.buttons||0===V.offsetX&&0===V.offsetY}function Oe(V){const j=V.touches&&V.touches[0]||V.changedTouches&&V.changedTouches[0];return!(!j||-1!==j.identifier||null!=j.radiusX&&1!==j.radiusX||null!=j.radiusY&&1!==j.radiusY)}const C=new s.OlP("cdk-input-modality-detector-options"),S={ignoreKeys:[be.zL,be.jx,be.b2,be.MW,be.JU]},P=(0,m.i$)({passive:!0,capture:!0});let F=(()=>{class V{constructor(G,de,xe,rt){this._platform=G,this._mostRecentTarget=null,this._modality=new q.X(null),this._lastTouchMs=0,this._onKeydown=wt=>{var Zt,Yt;(null===(Yt=null===(Zt=this._options)||void 0===Zt?void 0:Zt.ignoreKeys)||void 0===Yt?void 0:Yt.some(Ct=>Ct===wt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,m.sA)(wt))},this._onMousedown=wt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ot(wt)?"keyboard":"mouse"),this._mostRecentTarget=(0,m.sA)(wt))},this._onTouchstart=wt=>{Oe(wt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,m.sA)(wt))},this._options=Object.assign(Object.assign({},S),rt),this.modalityDetected=this._modality.pipe((0,ae.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,Pe.x)()),G.isBrowser&&de.runOutsideAngular(()=>{xe.addEventListener("keydown",this._onKeydown,P),xe.addEventListener("mousedown",this._onMousedown,P),xe.addEventListener("touchstart",this._onTouchstart,P)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,P),document.removeEventListener("mousedown",this._onMousedown,P),document.removeEventListener("touchstart",this._onTouchstart,P))}}return V.\u0275fac=function(G){return new(G||V)(s.LFG(m.t4),s.LFG(s.R0b),s.LFG(c.K0),s.LFG(C,8))},V.\u0275prov=s.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const ie=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ye(){return null}}),Be=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let je=(()=>{class V{constructor(G,de,xe,rt){this._ngZone=de,this._defaultOptions=rt,this._document=xe,this._liveElement=G||this._createLiveElement()}announce(G,...de){const xe=this._defaultOptions;let rt,wt;return 1===de.length&&"number"==typeof de[0]?wt=de[0]:[rt,wt]=de,this.clear(),clearTimeout(this._previousTimeout),rt||(rt=xe&&xe.politeness?xe.politeness:"polite"),null==wt&&xe&&(wt=xe.duration),this._liveElement.setAttribute("aria-live",rt),this._ngZone.runOutsideAngular(()=>new Promise(Zt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=G,Zt(),"number"==typeof wt&&(this._previousTimeout=setTimeout(()=>this.clear(),wt))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var G;clearTimeout(this._previousTimeout),null===(G=this._liveElement)||void 0===G||G.remove(),this._liveElement=null}_createLiveElement(){const G="cdk-live-announcer-element",de=this._document.getElementsByClassName(G),xe=this._document.createElement("div");for(let rt=0;rt{class V{constructor(G,de,xe,rt,wt){this._ngZone=G,this._platform=de,this._inputModalityDetector=xe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new W.x,this._rootNodeFocusAndBlurListener=Zt=>{const Yt=(0,m.sA)(Zt),Ct="focus"===Zt.type?this._onFocus:this._onBlur;for(let In=Yt;In;In=In.parentElement)Ct.call(this,Zt,In)},this._document=rt,this._detectionMode=(null==wt?void 0:wt.detectionMode)||0}monitor(G,de=!1){const xe=(0,K.fI)(G);if(!this._platform.isBrowser||1!==xe.nodeType)return(0,Ce.of)(null);const rt=(0,m.kV)(xe)||this._getDocument(),wt=this._elementInfo.get(xe);if(wt)return de&&(wt.checkChildren=!0),wt.subject;const Zt={checkChildren:de,subject:new W.x,rootNode:rt};return this._elementInfo.set(xe,Zt),this._registerGlobalListeners(Zt),Zt.subject}stopMonitoring(G){const de=(0,K.fI)(G),xe=this._elementInfo.get(de);xe&&(xe.subject.complete(),this._setClasses(de),this._elementInfo.delete(de),this._removeGlobalListeners(xe))}focusVia(G,de,xe){const rt=(0,K.fI)(G);rt===this._getDocument().activeElement?this._getClosestElementsInfo(rt).forEach(([Zt,Yt])=>this._originChanged(Zt,de,Yt)):(this._setOrigin(de),"function"==typeof rt.focus&&rt.focus(xe))}ngOnDestroy(){this._elementInfo.forEach((G,de)=>this.stopMonitoring(de))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(G){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(G)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(G){return 1===this._detectionMode||!!(null==G?void 0:G.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(G,de){G.classList.toggle("cdk-focused",!!de),G.classList.toggle("cdk-touch-focused","touch"===de),G.classList.toggle("cdk-keyboard-focused","keyboard"===de),G.classList.toggle("cdk-mouse-focused","mouse"===de),G.classList.toggle("cdk-program-focused","program"===de)}_setOrigin(G,de=!1){this._ngZone.runOutsideAngular(()=>{this._origin=G,this._originFromTouchInteraction="touch"===G&&de,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(G,de){const xe=this._elementInfo.get(de),rt=(0,m.sA)(G);!xe||!xe.checkChildren&&de!==rt||this._originChanged(de,this._getFocusOrigin(rt),xe)}_onBlur(G,de){const xe=this._elementInfo.get(de);!xe||xe.checkChildren&&G.relatedTarget instanceof Node&&de.contains(G.relatedTarget)||(this._setClasses(de),this._emitOrigin(xe.subject,null))}_emitOrigin(G,de){this._ngZone.run(()=>G.next(de))}_registerGlobalListeners(G){if(!this._platform.isBrowser)return;const de=G.rootNode,xe=this._rootNodeFocusListenerCount.get(de)||0;xe||this._ngZone.runOutsideAngular(()=>{de.addEventListener("focus",this._rootNodeFocusAndBlurListener,St),de.addEventListener("blur",this._rootNodeFocusAndBlurListener,St)}),this._rootNodeFocusListenerCount.set(de,xe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Le.R)(this._stopInputModalityDetector)).subscribe(rt=>{this._setOrigin(rt,!0)}))}_removeGlobalListeners(G){const de=G.rootNode;if(this._rootNodeFocusListenerCount.has(de)){const xe=this._rootNodeFocusListenerCount.get(de);xe>1?this._rootNodeFocusListenerCount.set(de,xe-1):(de.removeEventListener("focus",this._rootNodeFocusAndBlurListener,St),de.removeEventListener("blur",this._rootNodeFocusAndBlurListener,St),this._rootNodeFocusListenerCount.delete(de))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(G,de,xe){this._setClasses(G,de),this._emitOrigin(xe.subject,de),this._lastFocusOrigin=de}_getClosestElementsInfo(G){const de=[];return this._elementInfo.forEach((xe,rt)=>{(rt===G||xe.checkChildren&&rt.contains(G))&&de.push([rt,xe])}),de}}return V.\u0275fac=function(G){return new(G||V)(s.LFG(s.R0b),s.LFG(m.t4),s.LFG(F),s.LFG(c.K0,8),s.LFG(at,8))},V.\u0275prov=s.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const un="cdk-high-contrast-black-on-white",ct="cdk-high-contrast-white-on-black",gt="cdk-high-contrast-active";let ke=(()=>{class V{constructor(G,de){this._platform=G,this._document=de}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const G=this._document.createElement("div");G.style.backgroundColor="rgb(1,2,3)",G.style.position="absolute",this._document.body.appendChild(G);const de=this._document.defaultView||window,xe=de&&de.getComputedStyle?de.getComputedStyle(G):null,rt=(xe&&xe.backgroundColor||"").replace(/ /g,"");switch(G.remove(),rt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const G=this._document.body.classList;G.remove(gt),G.remove(un),G.remove(ct),this._hasCheckedHighContrastMode=!0;const de=this.getHighContrastMode();1===de?(G.add(gt),G.add(un)):2===de&&(G.add(gt),G.add(ct))}}}return V.\u0275fac=function(G){return new(G||V)(s.LFG(m.t4),s.LFG(c.K0))},V.\u0275prov=s.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),Me=(()=>{class V{constructor(G){G._applyBodyHighContrastModeCssClasses()}}return V.\u0275fac=function(G){return new(G||V)(s.LFG(ke))},V.\u0275mod=s.oAB({type:V}),V.\u0275inj=s.cJS({imports:[[Je.Q8]]}),V})()},226:($e,ve,b)=>{b.d(ve,{vT:()=>ce,Is:()=>Ce});var c=b(4893),s=b(9808);const m=new c.OlP("cdk-dir-doc",{providedIn:"root",factory:function W(){return(0,c.f3M)(s.K0)}}),le=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Ce=(()=>{class te{constructor(ue){if(this.value="ltr",this.change=new c.vpe,ue){const ae=ue.documentElement?ue.documentElement.dir:null;this.value=function q(te){const oe=(null==te?void 0:te.toLowerCase())||"";return"auto"===oe&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?le.test(navigator.language)?"rtl":"ltr":"rtl"===oe?"rtl":"ltr"}((ue.body?ue.body.dir:null)||ae||"ltr")}}ngOnDestroy(){this.change.complete()}}return te.\u0275fac=function(ue){return new(ue||te)(c.LFG(m,8))},te.\u0275prov=c.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),ce=(()=>{class te{}return te.\u0275fac=function(ue){return new(ue||te)},te.\u0275mod=c.oAB({type:te}),te.\u0275inj=c.cJS({}),te})()},3191:($e,ve,b)=>{b.d(ve,{Eq:()=>le,Ig:()=>s,HM:()=>q,fI:()=>Ce,su:()=>m});var c=b(4893);function s(ce){return null!=ce&&"false"!=`${ce}`}function m(ce,te=0){return function W(ce){return!isNaN(parseFloat(ce))&&!isNaN(Number(ce))}(ce)?Number(ce):te}function le(ce){return Array.isArray(ce)?ce:[ce]}function q(ce){return null==ce?"":"string"==typeof ce?ce:`${ce}px`}function Ce(ce){return ce instanceof c.SBq?ce.nativeElement:ce}},449:($e,ve,b)=>{b.d(ve,{Ov:()=>be,A8:()=>te});var c=b(7579),s=b(4893);class be{constructor(X=!1,ae,Pe=!0){this._multiple=X,this._emitChanges=Pe,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new c.x,ae&&ae.length&&(X?ae.forEach(Le=>this._markSelected(Le)):this._markSelected(ae[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...X){this._verifyValueAssignment(X),X.forEach(ae=>this._markSelected(ae)),this._emitChangeEvent()}deselect(...X){this._verifyValueAssignment(X),X.forEach(ae=>this._unmarkSelected(ae)),this._emitChangeEvent()}toggle(X){this.isSelected(X)?this.deselect(X):this.select(X)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(X){return this._selection.has(X)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(X){this._multiple&&this.selected&&this._selected.sort(X)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(X){this.isSelected(X)||(this._multiple||this._unmarkAll(),this._selection.add(X),this._emitChanges&&this._selectedToEmit.push(X))}_unmarkSelected(X){this.isSelected(X)&&(this._selection.delete(X),this._emitChanges&&this._deselectedToEmit.push(X))}_unmarkAll(){this.isEmpty()||this._selection.forEach(X=>this._unmarkSelected(X))}_verifyValueAssignment(X){}}let te=(()=>{class ue{constructor(){this._listeners=[]}notify(ae,Pe){for(let Le of this._listeners)Le(ae,Pe)}listen(ae){return this._listeners.push(ae),()=>{this._listeners=this._listeners.filter(Pe=>ae!==Pe)}}ngOnDestroy(){this._listeners=[]}}return ue.\u0275fac=function(ae){return new(ae||ue)},ue.\u0275prov=s.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})()},1159:($e,ve,b)=>{b.d(ve,{A:()=>Ot,zL:()=>be,jx:()=>Ce,JH:()=>Ke,uR:()=>Pe,K5:()=>le,hY:()=>oe,Sd:()=>Le,oh:()=>K,b2:()=>Qn,MW:()=>je,aO:()=>pt,SV:()=>Ye,JU:()=>q,L_:()=>ue,Mf:()=>m,LH:()=>Je,Z:()=>Be,xE:()=>Ae,Vb:()=>xi});const m=9,le=13,q=16,Ce=17,be=18,oe=27,ue=32,Pe=35,Le=36,K=37,Je=38,Ye=39,Ke=40,Ae=48,pt=57,Ot=65,Be=90,je=91,Qn=224;function xi(jn,...pn){return pn.length?pn.some(ui=>jn[ui]):jn.altKey||jn.shiftKey||jn.ctrlKey||jn.metaKey}},7144:($e,ve,b)=>{b.d(ve,{wD:()=>be,Q8:()=>ce});var c=b(3191),s=b(4893),m=b(8306),W=b(7579),le=b(8372);let q=(()=>{class te{create(ue){return"undefined"==typeof MutationObserver?null:new MutationObserver(ue)}}return te.\u0275fac=function(ue){return new(ue||te)},te.\u0275prov=s.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),Ce=(()=>{class te{constructor(ue){this._mutationObserverFactory=ue,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((ue,X)=>this._cleanupObserver(X))}observe(ue){const X=(0,c.fI)(ue);return new m.y(ae=>{const Le=this._observeElement(X).subscribe(ae);return()=>{Le.unsubscribe(),this._unobserveElement(X)}})}_observeElement(ue){if(this._observedElements.has(ue))this._observedElements.get(ue).count++;else{const X=new W.x,ae=this._mutationObserverFactory.create(Pe=>X.next(Pe));ae&&ae.observe(ue,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(ue,{observer:ae,stream:X,count:1})}return this._observedElements.get(ue).stream}_unobserveElement(ue){this._observedElements.has(ue)&&(this._observedElements.get(ue).count--,this._observedElements.get(ue).count||this._cleanupObserver(ue))}_cleanupObserver(ue){if(this._observedElements.has(ue)){const{observer:X,stream:ae}=this._observedElements.get(ue);X&&X.disconnect(),ae.complete(),this._observedElements.delete(ue)}}}return te.\u0275fac=function(ue){return new(ue||te)(s.LFG(q))},te.\u0275prov=s.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),be=(()=>{class te{constructor(ue,X,ae){this._contentObserver=ue,this._elementRef=X,this._ngZone=ae,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(ue){this._disabled=(0,c.Ig)(ue),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(ue){this._debounce=(0,c.su)(ue),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const ue=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?ue.pipe((0,le.b)(this.debounce)):ue).subscribe(this.event)})}_unsubscribe(){var ue;null===(ue=this._currentSubscription)||void 0===ue||ue.unsubscribe()}}return te.\u0275fac=function(ue){return new(ue||te)(s.Y36(Ce),s.Y36(s.SBq),s.Y36(s.R0b))},te.\u0275dir=s.lG2({type:te,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),te})(),ce=(()=>{class te{}return te.\u0275fac=function(ue){return new(ue||te)},te.\u0275mod=s.oAB({type:te}),te.\u0275inj=s.cJS({providers:[q]}),te})()},9776:($e,ve,b)=>{b.d(ve,{pI:()=>xt,xu:()=>st,aV:()=>Y,X_:()=>Fe,Xj:()=>vt,U8:()=>Ft});var c=b(495),s=b(9808),m=b(4893),W=b(3191),le=b(925),q=b(226),Ce=b(7429),be=b(7579),ce=b(727),te=b(6451),oe=b(4482),ue=b(5403),ae=b(5698),Pe=b(2722),Le=b(1159);const K=(0,le.Mq)();class Je{constructor(C,S){this._viewportRuler=C,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=S}attach(){}enable(){if(this._canBeEnabled()){const C=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=C.style.left||"",this._previousHTMLStyles.top=C.style.top||"",C.style.left=(0,W.HM)(-this._previousScrollPosition.left),C.style.top=(0,W.HM)(-this._previousScrollPosition.top),C.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const C=this._document.documentElement,E=C.style,P=this._document.body.style,F=E.scrollBehavior||"",ie=P.scrollBehavior||"";this._isEnabled=!1,E.left=this._previousHTMLStyles.left,E.top=this._previousHTMLStyles.top,C.classList.remove("cdk-global-scrollblock"),K&&(E.scrollBehavior=P.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K&&(E.scrollBehavior=F,P.scrollBehavior=ie)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const S=this._document.body,E=this._viewportRuler.getViewportSize();return S.scrollHeight>E.height||S.scrollWidth>E.width}}class Ke{constructor(C,S,E,P){this._scrollDispatcher=C,this._ngZone=S,this._viewportRuler=E,this._config=P,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(C){this._overlayRef=C}enable(){if(this._scrollSubscription)return;const C=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=C.subscribe(()=>{const S=this._viewportRuler.getViewportScrollPosition().top;Math.abs(S-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=C.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class pe{enable(){}disable(){}attach(){}}function z(Oe,C){return C.some(S=>Oe.bottomS.bottom||Oe.rightS.right)}function Q(Oe,C){return C.some(S=>Oe.topS.bottom||Oe.leftS.right)}class fe{constructor(C,S,E,P){this._scrollDispatcher=C,this._viewportRuler=S,this._ngZone=E,this._config=P,this._scrollSubscription=null}attach(C){this._overlayRef=C}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const S=this._overlayRef.overlayElement.getBoundingClientRect(),{width:E,height:P}=this._viewportRuler.getViewportSize();z(S,[{width:E,height:P,bottom:P,right:E,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Ae=(()=>{class Oe{constructor(S,E,P,F){this._scrollDispatcher=S,this._viewportRuler=E,this._ngZone=P,this.noop=()=>new pe,this.close=ie=>new Ke(this._scrollDispatcher,this._ngZone,this._viewportRuler,ie),this.block=()=>new Je(this._viewportRuler,this._document),this.reposition=ie=>new fe(this._scrollDispatcher,this._viewportRuler,this._ngZone,ie),this._document=F}}return Oe.\u0275fac=function(S){return new(S||Oe)(m.LFG(c.mF),m.LFG(c.rL),m.LFG(m.R0b),m.LFG(s.K0))},Oe.\u0275prov=m.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})();class Fe{constructor(C){if(this.scrollStrategy=new pe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,C){const S=Object.keys(C);for(const E of S)void 0!==C[E]&&(this[E]=C[E])}}}class Te{constructor(C,S){this.connectionPair=C,this.scrollableViewProperties=S}}class Re{constructor(C,S,E,P,F,ie,ye,Be,je){this._portalOutlet=C,this._host=S,this._pane=E,this._config=P,this._ngZone=F,this._keyboardDispatcher=ie,this._document=ye,this._location=Be,this._outsideClickDispatcher=je,this._backdropElement=null,this._backdropClick=new be.x,this._attachments=new be.x,this._detachments=new be.x,this._locationChanges=ce.w0.EMPTY,this._backdropClickHandler=mt=>this._backdropClick.next(mt),this._keydownEvents=new be.x,this._outsidePointerEvents=new be.x,P.scrollStrategy&&(this._scrollStrategy=P.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=P.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(C){let S=this._portalOutlet.attach(C);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ae.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),S}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const C=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),C}dispose(){var C;const S=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(C=this._host)||void 0===C||C.remove(),this._previousHostParent=this._pane=this._host=null,S&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(C){C!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=C,this.hasAttached()&&(C.attach(this),this.updatePosition()))}updateSize(C){this._config=Object.assign(Object.assign({},this._config),C),this._updateElementSize()}setDirection(C){this._config=Object.assign(Object.assign({},this._config),{direction:C}),this._updateElementDirection()}addPanelClass(C){this._pane&&this._toggleClasses(this._pane,C,!0)}removePanelClass(C){this._pane&&this._toggleClasses(this._pane,C,!1)}getDirection(){const C=this._config.direction;return C?"string"==typeof C?C:C.value:"ltr"}updateScrollStrategy(C){C!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=C,this.hasAttached()&&(C.attach(this),C.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const C=this._pane.style;C.width=(0,W.HM)(this._config.width),C.height=(0,W.HM)(this._config.height),C.minWidth=(0,W.HM)(this._config.minWidth),C.minHeight=(0,W.HM)(this._config.minHeight),C.maxWidth=(0,W.HM)(this._config.maxWidth),C.maxHeight=(0,W.HM)(this._config.maxHeight)}_togglePointerEvents(C){this._pane.style.pointerEvents=C?"":"none"}_attachBackdrop(){const C="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(C)})}):this._backdropElement.classList.add(C)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const C=this._backdropElement;if(!C)return;let S;const E=()=>{C&&(C.removeEventListener("click",this._backdropClickHandler),C.removeEventListener("transitionend",E),this._disposeBackdrop(C)),this._config.backdropClass&&this._toggleClasses(C,this._config.backdropClass,!1),clearTimeout(S)};C.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{C.addEventListener("transitionend",E)}),C.style.pointerEvents="none",S=this._ngZone.runOutsideAngular(()=>setTimeout(E,500))}_toggleClasses(C,S,E){const P=(0,W.Eq)(S||[]).filter(F=>!!F);P.length&&(E?C.classList.add(...P):C.classList.remove(...P))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const C=this._ngZone.onStable.pipe((0,Pe.R)((0,te.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),C.unsubscribe())})})}_disposeScrollStrategy(){const C=this._scrollStrategy;C&&(C.disable(),C.detach&&C.detach())}_disposeBackdrop(C){C&&(C.remove(),this._backdropElement===C&&(this._backdropElement=null))}}let vt=(()=>{class Oe{constructor(S,E){this._platform=E,this._document=S}ngOnDestroy(){var S;null===(S=this._containerElement)||void 0===S||S.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const S="cdk-overlay-container";if(this._platform.isBrowser||(0,le.Oy)()){const P=this._document.querySelectorAll(`.${S}[platform="server"], .${S}[platform="test"]`);for(let F=0;F{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const C=this._originRect,S=this._overlayRect,E=this._viewportRect,P=this._containerRect,F=[];let ie;for(let ye of this._preferredPositions){let Be=this._getOriginPoint(C,P,ye),je=this._getOverlayPoint(Be,S,ye),mt=this._getOverlayFit(je,S,E,ye);if(mt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ye,Be);this._canFitWithFlexibleDimensions(mt,je,E)?F.push({position:ye,origin:Be,overlayRect:S,boundingBoxRect:this._calculateBoundingBoxRect(Be,ye)}):(!ie||ie.overlayFit.visibleAreaBe&&(Be=mt,ye=je)}return this._isPushed=!1,void this._applyPosition(ye.position,ye.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ie.position,ie.originPoint);this._applyPosition(ie.position,ie.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&It(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(pt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const C=this._lastPosition;if(C){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const S=this._getOriginPoint(this._originRect,this._containerRect,C);this._applyPosition(C,S)}else this.apply()}withScrollableContainers(C){return this._scrollables=C,this}withPositions(C){return this._preferredPositions=C,-1===C.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(C){return this._viewportMargin=C,this}withFlexibleDimensions(C=!0){return this._hasFlexibleDimensions=C,this}withGrowAfterOpen(C=!0){return this._growAfterOpen=C,this}withPush(C=!0){return this._canPush=C,this}withLockedPosition(C=!0){return this._positionLocked=C,this}setOrigin(C){return this._origin=C,this}withDefaultOffsetX(C){return this._offsetX=C,this}withDefaultOffsetY(C){return this._offsetY=C,this}withTransformOriginOn(C){return this._transformOriginSelector=C,this}_getOriginPoint(C,S,E){let P,F;if("center"==E.originX)P=C.left+C.width/2;else{const ie=this._isRtl()?C.right:C.left,ye=this._isRtl()?C.left:C.right;P="start"==E.originX?ie:ye}return S.left<0&&(P-=S.left),F="center"==E.originY?C.top+C.height/2:"top"==E.originY?C.top:C.bottom,S.top<0&&(F-=S.top),{x:P,y:F}}_getOverlayPoint(C,S,E){let P,F;return P="center"==E.overlayX?-S.width/2:"start"===E.overlayX?this._isRtl()?-S.width:0:this._isRtl()?0:-S.width,F="center"==E.overlayY?-S.height/2:"top"==E.overlayY?0:-S.height,{x:C.x+P,y:C.y+F}}_getOverlayFit(C,S,E,P){const F=Ot(S);let{x:ie,y:ye}=C,Be=this._getOffset(P,"x"),je=this._getOffset(P,"y");Be&&(ie+=Be),je&&(ye+=je);let St=0-ye,en=ye+F.height-E.height,Wt=this._subtractOverflows(F.width,0-ie,ie+F.width-E.width),un=this._subtractOverflows(F.height,St,en),ct=Wt*un;return{visibleArea:ct,isCompletelyWithinViewport:F.width*F.height===ct,fitsInViewportVertically:un===F.height,fitsInViewportHorizontally:Wt==F.width}}_canFitWithFlexibleDimensions(C,S,E){if(this._hasFlexibleDimensions){const P=E.bottom-S.y,F=E.right-S.x,ie=$t(this._overlayRef.getConfig().minHeight),ye=$t(this._overlayRef.getConfig().minWidth),je=C.fitsInViewportHorizontally||null!=ye&&ye<=F;return(C.fitsInViewportVertically||null!=ie&&ie<=P)&&je}return!1}_pushOverlayOnScreen(C,S,E){if(this._previousPushAmount&&this._positionLocked)return{x:C.x+this._previousPushAmount.x,y:C.y+this._previousPushAmount.y};const P=Ot(S),F=this._viewportRect,ie=Math.max(C.x+P.width-F.width,0),ye=Math.max(C.y+P.height-F.height,0),Be=Math.max(F.top-E.top-C.y,0),je=Math.max(F.left-E.left-C.x,0);let mt=0,at=0;return mt=P.width<=F.width?je||-ie:C.xWt&&!this._isInitialRender&&!this._growAfterOpen&&(ie=C.y-Wt/2)}if("end"===S.overlayX&&!P||"start"===S.overlayX&&P)St=E.width-C.x+this._viewportMargin,mt=C.x-this._viewportMargin;else if("start"===S.overlayX&&!P||"end"===S.overlayX&&P)at=C.x,mt=E.right-C.x;else{const en=Math.min(E.right-C.x+E.left,C.x),Wt=this._lastBoundingBoxSize.width;mt=2*en,at=C.x-en,mt>Wt&&!this._isInitialRender&&!this._growAfterOpen&&(at=C.x-Wt/2)}return{top:ie,left:at,bottom:ye,right:St,width:mt,height:F}}_setBoundingBoxStyles(C,S){const E=this._calculateBoundingBoxRect(C,S);!this._isInitialRender&&!this._growAfterOpen&&(E.height=Math.min(E.height,this._lastBoundingBoxSize.height),E.width=Math.min(E.width,this._lastBoundingBoxSize.width));const P={};if(this._hasExactPosition())P.top=P.left="0",P.bottom=P.right=P.maxHeight=P.maxWidth="",P.width=P.height="100%";else{const F=this._overlayRef.getConfig().maxHeight,ie=this._overlayRef.getConfig().maxWidth;P.height=(0,W.HM)(E.height),P.top=(0,W.HM)(E.top),P.bottom=(0,W.HM)(E.bottom),P.width=(0,W.HM)(E.width),P.left=(0,W.HM)(E.left),P.right=(0,W.HM)(E.right),P.alignItems="center"===S.overlayX?"center":"end"===S.overlayX?"flex-end":"flex-start",P.justifyContent="center"===S.overlayY?"center":"bottom"===S.overlayY?"flex-end":"flex-start",F&&(P.maxHeight=(0,W.HM)(F)),ie&&(P.maxWidth=(0,W.HM)(ie))}this._lastBoundingBoxSize=E,It(this._boundingBox.style,P)}_resetBoundingBoxStyles(){It(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){It(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(C,S){const E={},P=this._hasExactPosition(),F=this._hasFlexibleDimensions,ie=this._overlayRef.getConfig();if(P){const mt=this._viewportRuler.getViewportScrollPosition();It(E,this._getExactOverlayY(S,C,mt)),It(E,this._getExactOverlayX(S,C,mt))}else E.position="static";let ye="",Be=this._getOffset(S,"x"),je=this._getOffset(S,"y");Be&&(ye+=`translateX(${Be}px) `),je&&(ye+=`translateY(${je}px)`),E.transform=ye.trim(),ie.maxHeight&&(P?E.maxHeight=(0,W.HM)(ie.maxHeight):F&&(E.maxHeight="")),ie.maxWidth&&(P?E.maxWidth=(0,W.HM)(ie.maxWidth):F&&(E.maxWidth="")),It(this._pane.style,E)}_getExactOverlayY(C,S,E){let P={top:"",bottom:""},F=this._getOverlayPoint(S,this._overlayRect,C);return this._isPushed&&(F=this._pushOverlayOnScreen(F,this._overlayRect,E)),"bottom"===C.overlayY?P.bottom=this._document.documentElement.clientHeight-(F.y+this._overlayRect.height)+"px":P.top=(0,W.HM)(F.y),P}_getExactOverlayX(C,S,E){let ie,P={left:"",right:""},F=this._getOverlayPoint(S,this._overlayRect,C);return this._isPushed&&(F=this._pushOverlayOnScreen(F,this._overlayRect,E)),ie=this._isRtl()?"end"===C.overlayX?"left":"right":"end"===C.overlayX?"right":"left","right"===ie?P.right=this._document.documentElement.clientWidth-(F.x+this._overlayRect.width)+"px":P.left=(0,W.HM)(F.x),P}_getScrollVisibility(){const C=this._getOriginRect(),S=this._pane.getBoundingClientRect(),E=this._scrollables.map(P=>P.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Q(C,E),isOriginOutsideView:z(C,E),isOverlayClipped:Q(S,E),isOverlayOutsideView:z(S,E)}}_subtractOverflows(C,...S){return S.reduce((E,P)=>E-Math.max(P,0),C)}_getNarrowedViewportRect(){const C=this._document.documentElement.clientWidth,S=this._document.documentElement.clientHeight,E=this._viewportRuler.getViewportScrollPosition();return{top:E.top+this._viewportMargin,left:E.left+this._viewportMargin,right:E.left+C-this._viewportMargin,bottom:E.top+S-this._viewportMargin,width:C-2*this._viewportMargin,height:S-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(C,S){return"x"===S?null==C.offsetX?this._offsetX:C.offsetX:null==C.offsetY?this._offsetY:C.offsetY}_validatePositions(){}_addPanelClasses(C){this._pane&&(0,W.Eq)(C).forEach(S=>{""!==S&&-1===this._appliedPanelClasses.indexOf(S)&&(this._appliedPanelClasses.push(S),this._pane.classList.add(S))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(C=>{this._pane.classList.remove(C)}),this._appliedPanelClasses=[])}_getOriginRect(){const C=this._origin;if(C instanceof m.SBq)return C.nativeElement.getBoundingClientRect();if(C instanceof Element)return C.getBoundingClientRect();const S=C.width||0,E=C.height||0;return{top:C.y,bottom:C.y+E,left:C.x,right:C.x+S,height:E,width:S}}}function It(Oe,C){for(let S in C)C.hasOwnProperty(S)&&(Oe[S]=C[S]);return Oe}function $t(Oe){if("number"!=typeof Oe&&null!=Oe){const[C,S]=Oe.split(Qt);return S&&"px"!==S?null:parseFloat(C)}return Oe||null}function Ot(Oe){return{top:Math.floor(Oe.top),right:Math.floor(Oe.right),bottom:Math.floor(Oe.bottom),left:Math.floor(Oe.left),width:Math.floor(Oe.width),height:Math.floor(Oe.height)}}const cn="cdk-global-overlay-wrapper";class Nt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(C){const S=C.getConfig();this._overlayRef=C,this._width&&!S.width&&C.updateSize({width:this._width}),this._height&&!S.height&&C.updateSize({height:this._height}),C.hostElement.classList.add(cn),this._isDisposed=!1}top(C=""){return this._bottomOffset="",this._topOffset=C,this._alignItems="flex-start",this}left(C=""){return this._rightOffset="",this._leftOffset=C,this._justifyContent="flex-start",this}bottom(C=""){return this._topOffset="",this._bottomOffset=C,this._alignItems="flex-end",this}right(C=""){return this._leftOffset="",this._rightOffset=C,this._justifyContent="flex-end",this}width(C=""){return this._overlayRef?this._overlayRef.updateSize({width:C}):this._width=C,this}height(C=""){return this._overlayRef?this._overlayRef.updateSize({height:C}):this._height=C,this}centerHorizontally(C=""){return this.left(C),this._justifyContent="center",this}centerVertically(C=""){return this.top(C),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const C=this._overlayRef.overlayElement.style,S=this._overlayRef.hostElement.style,E=this._overlayRef.getConfig(),{width:P,height:F,maxWidth:ie,maxHeight:ye}=E,Be=!("100%"!==P&&"100vw"!==P||ie&&"100%"!==ie&&"100vw"!==ie),je=!("100%"!==F&&"100vh"!==F||ye&&"100%"!==ye&&"100vh"!==ye);C.position=this._cssPosition,C.marginLeft=Be?"0":this._leftOffset,C.marginTop=je?"0":this._topOffset,C.marginBottom=this._bottomOffset,C.marginRight=this._rightOffset,Be?S.justifyContent="flex-start":"center"===this._justifyContent?S.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?S.justifyContent="flex-end":"flex-end"===this._justifyContent&&(S.justifyContent="flex-start"):S.justifyContent=this._justifyContent,S.alignItems=je?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const C=this._overlayRef.overlayElement.style,S=this._overlayRef.hostElement,E=S.style;S.classList.remove(cn),E.justifyContent=E.alignItems=C.marginTop=C.marginBottom=C.marginLeft=C.marginRight=C.position="",this._overlayRef=null,this._isDisposed=!0}}let Tt=(()=>{class Oe{constructor(S,E,P,F){this._viewportRuler=S,this._document=E,this._platform=P,this._overlayContainer=F}global(){return new Nt}flexibleConnectedTo(S){return new _t(S,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Oe.\u0275fac=function(S){return new(S||Oe)(m.LFG(c.rL),m.LFG(s.K0),m.LFG(le.t4),m.LFG(vt))},Oe.\u0275prov=m.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})(),nn=(()=>{class Oe{constructor(S){this._attachedOverlays=[],this._document=S}ngOnDestroy(){this.detach()}add(S){this.remove(S),this._attachedOverlays.push(S)}remove(S){const E=this._attachedOverlays.indexOf(S);E>-1&&this._attachedOverlays.splice(E,1),0===this._attachedOverlays.length&&this.detach()}}return Oe.\u0275fac=function(S){return new(S||Oe)(m.LFG(s.K0))},Oe.\u0275prov=m.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})(),Qe=(()=>{class Oe extends nn{constructor(S,E){super(S),this._ngZone=E,this._keydownListener=P=>{const F=this._attachedOverlays;for(let ie=F.length-1;ie>-1;ie--)if(F[ie]._keydownEvents.observers.length>0){const ye=F[ie]._keydownEvents;this._ngZone?this._ngZone.run(()=>ye.next(P)):ye.next(P);break}}}add(S){super.add(S),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Oe.\u0275fac=function(S){return new(S||Oe)(m.LFG(s.K0),m.LFG(m.R0b,8))},Oe.\u0275prov=m.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})(),He=(()=>{class Oe extends nn{constructor(S,E,P){super(S),this._platform=E,this._ngZone=P,this._cursorStyleIsSet=!1,this._pointerDownListener=F=>{this._pointerDownEventTarget=(0,le.sA)(F)},this._clickListener=F=>{const ie=(0,le.sA)(F),ye="click"===F.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ie;this._pointerDownEventTarget=null;const Be=this._attachedOverlays.slice();for(let je=Be.length-1;je>-1;je--){const mt=Be[je];if(mt._outsidePointerEvents.observers.length<1||!mt.hasAttached())continue;if(mt.overlayElement.contains(ie)||mt.overlayElement.contains(ye))break;const at=mt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>at.next(F)):at.next(F)}}}add(S){if(super.add(S),!this._isAttached){const E=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(E)):this._addEventListeners(E),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=E.style.cursor,E.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const S=this._document.body;S.removeEventListener("pointerdown",this._pointerDownListener,!0),S.removeEventListener("click",this._clickListener,!0),S.removeEventListener("auxclick",this._clickListener,!0),S.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(S.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(S){S.addEventListener("pointerdown",this._pointerDownListener,!0),S.addEventListener("click",this._clickListener,!0),S.addEventListener("auxclick",this._clickListener,!0),S.addEventListener("contextmenu",this._clickListener,!0)}}return Oe.\u0275fac=function(S){return new(S||Oe)(m.LFG(s.K0),m.LFG(le.t4),m.LFG(m.R0b,8))},Oe.\u0275prov=m.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"}),Oe})(),J=0,Y=(()=>{class Oe{constructor(S,E,P,F,ie,ye,Be,je,mt,at,St){this.scrollStrategies=S,this._overlayContainer=E,this._componentFactoryResolver=P,this._positionBuilder=F,this._keyboardDispatcher=ie,this._injector=ye,this._ngZone=Be,this._document=je,this._directionality=mt,this._location=at,this._outsideClickDispatcher=St}create(S){const E=this._createHostElement(),P=this._createPaneElement(E),F=this._createPortalOutlet(P),ie=new Fe(S);return ie.direction=ie.direction||this._directionality.value,new Re(F,E,P,ie,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(S){const E=this._document.createElement("div");return E.id="cdk-overlay-"+J++,E.classList.add("cdk-overlay-pane"),S.appendChild(E),E}_createHostElement(){const S=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(S),S}_createPortalOutlet(S){return this._appRef||(this._appRef=this._injector.get(m.z2F)),new Ce.u0(S,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Oe.\u0275fac=function(S){return new(S||Oe)(m.LFG(Ae),m.LFG(vt),m.LFG(m._Vd),m.LFG(Tt),m.LFG(Qe),m.LFG(m.zs3),m.LFG(m.R0b),m.LFG(s.K0),m.LFG(q.Is),m.LFG(s.Ye),m.LFG(He))},Oe.\u0275prov=m.Yz7({token:Oe,factory:Oe.\u0275fac}),Oe})();const Ve=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ze=new m.OlP("cdk-connected-overlay-scroll-strategy");let st=(()=>{class Oe{constructor(S){this.elementRef=S}}return Oe.\u0275fac=function(S){return new(S||Oe)(m.Y36(m.SBq))},Oe.\u0275dir=m.lG2({type:Oe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Oe})(),xt=(()=>{class Oe{constructor(S,E,P,F,ie){this._overlay=S,this._dir=ie,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ce.w0.EMPTY,this._attachSubscription=ce.w0.EMPTY,this._detachSubscription=ce.w0.EMPTY,this._positionSubscription=ce.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new m.vpe,this.positionChange=new m.vpe,this.attach=new m.vpe,this.detach=new m.vpe,this.overlayKeydown=new m.vpe,this.overlayOutsideClick=new m.vpe,this._templatePortal=new Ce.UE(E,P),this._scrollStrategyFactory=F,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(S){this._offsetX=S,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(S){this._offsetY=S,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(S){this._hasBackdrop=(0,W.Ig)(S)}get lockPosition(){return this._lockPosition}set lockPosition(S){this._lockPosition=(0,W.Ig)(S)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(S){this._flexibleDimensions=(0,W.Ig)(S)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(S){this._growAfterOpen=(0,W.Ig)(S)}get push(){return this._push}set push(S){this._push=(0,W.Ig)(S)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(S){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),S.origin&&this.open&&this._position.apply()),S.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ve);const S=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=S.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=S.detachments().subscribe(()=>this.detach.emit()),S.keydownEvents().subscribe(E=>{this.overlayKeydown.next(E),E.keyCode===Le.hY&&!this.disableClose&&!(0,Le.Vb)(E)&&(E.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(E=>{this.overlayOutsideClick.next(E)})}_buildConfig(){const S=this._position=this.positionStrategy||this._createPositionStrategy(),E=new Fe({direction:this._dir,positionStrategy:S,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(E.width=this.width),(this.height||0===this.height)&&(E.height=this.height),(this.minWidth||0===this.minWidth)&&(E.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(E.minHeight=this.minHeight),this.backdropClass&&(E.backdropClass=this.backdropClass),this.panelClass&&(E.panelClass=this.panelClass),E}_updatePositionStrategy(S){const E=this.positions.map(P=>({originX:P.originX,originY:P.originY,overlayX:P.overlayX,overlayY:P.overlayY,offsetX:P.offsetX||this.offsetX,offsetY:P.offsetY||this.offsetY,panelClass:P.panelClass||void 0}));return S.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(E).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const S=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(S),S}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof st?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(S=>{this.backdropClick.emit(S)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function X(Oe,C=!1){return(0,oe.e)((S,E)=>{let P=0;S.subscribe((0,ue.x)(E,F=>{const ie=Oe(F,P++);(ie||C)&&E.next(F),!ie&&E.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(S=>{this.positionChange.emit(S),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Oe.\u0275fac=function(S){return new(S||Oe)(m.Y36(Y),m.Y36(m.Rgc),m.Y36(m.s_b),m.Y36(ze),m.Y36(q.Is,8))},Oe.\u0275dir=m.lG2({type:Oe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[m.TTD]}),Oe})();const yt={provide:ze,deps:[Y],useFactory:function Ut(Oe){return()=>Oe.scrollStrategies.reposition()}};let Ft=(()=>{class Oe{}return Oe.\u0275fac=function(S){return new(S||Oe)},Oe.\u0275mod=m.oAB({type:Oe}),Oe.\u0275inj=m.cJS({providers:[Y,yt],imports:[[q.vT,Ce.eL,c.Cl],c.Cl]}),Oe})()},925:($e,ve,b)=>{b.d(ve,{t4:()=>W,sA:()=>Ke,ht:()=>Ye,kV:()=>Je,Oy:()=>pe,qK:()=>be,i$:()=>oe,Mq:()=>ae});var c=b(4893),s=b(9808);let m;try{m="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(z){m=!1}let q,W=(()=>{class z{constructor(fe){this._platformId=fe,this.isBrowser=this._platformId?(0,s.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!m)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return z.\u0275fac=function(fe){return new(fe||z)(c.LFG(c.Lbi))},z.\u0275prov=c.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const Ce=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function be(){if(q)return q;if("object"!=typeof document||!document)return q=new Set(Ce),q;let z=document.createElement("input");return q=new Set(Ce.filter(Q=>(z.setAttribute("type",Q),z.type===Q))),q}let ce,X,Le;function oe(z){return function te(){if(null==ce&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ce=!0}))}finally{ce=ce||!1}return ce}()?z:!!z.capture}function ae(){if(null==X){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return X=!1,X;if("scrollBehavior"in document.documentElement.style)X=!0;else{const z=Element.prototype.scrollTo;X=!!z&&!/\{\s*\[native code\]\s*\}/.test(z.toString())}}return X}function Je(z){if(function K(){if(null==Le){const z="undefined"!=typeof document?document.head:null;Le=!(!z||!z.createShadowRoot&&!z.attachShadow)}return Le}()){const Q=z.getRootNode?z.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Q instanceof ShadowRoot)return Q}return null}function Ye(){let z="undefined"!=typeof document&&document?document.activeElement:null;for(;z&&z.shadowRoot;){const Q=z.shadowRoot.activeElement;if(Q===z)break;z=Q}return z}function Ke(z){return z.composedPath?z.composedPath()[0]:z.target}function pe(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:($e,ve,b)=>{b.d(ve,{en:()=>X,Pl:()=>Ye,C5:()=>te,u0:()=>Pe,eL:()=>pe,UE:()=>oe});var c=b(4893),s=b(9808);class ce{attach(fe){return this._attachedHost=fe,fe.attach(this)}detach(){let fe=this._attachedHost;null!=fe&&(this._attachedHost=null,fe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(fe){this._attachedHost=fe}}class te extends ce{constructor(fe,Ae,Fe,_e){super(),this.component=fe,this.viewContainerRef=Ae,this.injector=Fe,this.componentFactoryResolver=_e}}class oe extends ce{constructor(fe,Ae,Fe){super(),this.templateRef=fe,this.viewContainerRef=Ae,this.context=Fe}get origin(){return this.templateRef.elementRef}attach(fe,Ae=this.context){return this.context=Ae,super.attach(fe)}detach(){return this.context=void 0,super.detach()}}class ue extends ce{constructor(fe){super(),this.element=fe instanceof c.SBq?fe.nativeElement:fe}}class X{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(fe){return fe instanceof te?(this._attachedPortal=fe,this.attachComponentPortal(fe)):fe instanceof oe?(this._attachedPortal=fe,this.attachTemplatePortal(fe)):this.attachDomPortal&&fe instanceof ue?(this._attachedPortal=fe,this.attachDomPortal(fe)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(fe){this._disposeFn=fe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Pe extends X{constructor(fe,Ae,Fe,_e,Ee){super(),this.outletElement=fe,this._componentFactoryResolver=Ae,this._appRef=Fe,this._defaultInjector=_e,this.attachDomPortal=Te=>{const we=Te.element,Xe=this._document.createComment("dom-portal");we.parentNode.insertBefore(Xe,we),this.outletElement.appendChild(we),this._attachedPortal=Te,super.setDisposeFn(()=>{Xe.parentNode&&Xe.parentNode.replaceChild(we,Xe)})},this._document=Ee}attachComponentPortal(fe){const Fe=(fe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(fe.component);let _e;return fe.viewContainerRef?(_e=fe.viewContainerRef.createComponent(Fe,fe.viewContainerRef.length,fe.injector||fe.viewContainerRef.injector),this.setDisposeFn(()=>_e.destroy())):(_e=Fe.create(fe.injector||this._defaultInjector),this._appRef.attachView(_e.hostView),this.setDisposeFn(()=>{this._appRef.detachView(_e.hostView),_e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(_e)),this._attachedPortal=fe,_e}attachTemplatePortal(fe){let Ae=fe.viewContainerRef,Fe=Ae.createEmbeddedView(fe.templateRef,fe.context);return Fe.rootNodes.forEach(_e=>this.outletElement.appendChild(_e)),Fe.detectChanges(),this.setDisposeFn(()=>{let _e=Ae.indexOf(Fe);-1!==_e&&Ae.remove(_e)}),this._attachedPortal=fe,Fe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(fe){return fe.hostView.rootNodes[0]}}let Ye=(()=>{class Q extends X{constructor(Ae,Fe,_e){super(),this._componentFactoryResolver=Ae,this._viewContainerRef=Fe,this._isInitialized=!1,this.attached=new c.vpe,this.attachDomPortal=Ee=>{const Te=Ee.element,we=this._document.createComment("dom-portal");Ee.setAttachedHost(this),Te.parentNode.insertBefore(we,Te),this._getRootNode().appendChild(Te),this._attachedPortal=Ee,super.setDisposeFn(()=>{we.parentNode&&we.parentNode.replaceChild(Te,we)})},this._document=_e}get portal(){return this._attachedPortal}set portal(Ae){this.hasAttached()&&!Ae&&!this._isInitialized||(this.hasAttached()&&super.detach(),Ae&&super.attach(Ae),this._attachedPortal=Ae||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Ae){Ae.setAttachedHost(this);const Fe=null!=Ae.viewContainerRef?Ae.viewContainerRef:this._viewContainerRef,Ee=(Ae.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ae.component),Te=Fe.createComponent(Ee,Fe.length,Ae.injector||Fe.injector);return Fe!==this._viewContainerRef&&this._getRootNode().appendChild(Te.hostView.rootNodes[0]),super.setDisposeFn(()=>Te.destroy()),this._attachedPortal=Ae,this._attachedRef=Te,this.attached.emit(Te),Te}attachTemplatePortal(Ae){Ae.setAttachedHost(this);const Fe=this._viewContainerRef.createEmbeddedView(Ae.templateRef,Ae.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Ae,this._attachedRef=Fe,this.attached.emit(Fe),Fe}_getRootNode(){const Ae=this._viewContainerRef.element.nativeElement;return Ae.nodeType===Ae.ELEMENT_NODE?Ae:Ae.parentNode}}return Q.\u0275fac=function(Ae){return new(Ae||Q)(c.Y36(c._Vd),c.Y36(c.s_b),c.Y36(s.K0))},Q.\u0275dir=c.lG2({type:Q,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[c.qOj]}),Q})(),pe=(()=>{class Q{}return Q.\u0275fac=function(Ae){return new(Ae||Q)},Q.\u0275mod=c.oAB({type:Q}),Q.\u0275inj=c.cJS({}),Q})()},495:($e,ve,b)=>{b.d(ve,{ZD:()=>nn,mF:()=>pt,Cl:()=>Qe,rL:()=>It});var c=b(3191),s=b(4893),m=b(4408),W=b(727);const le={schedule(He){let J=requestAnimationFrame,Y=cancelAnimationFrame;const{delegate:Ve}=le;Ve&&(J=Ve.requestAnimationFrame,Y=Ve.cancelAnimationFrame);const ze=J(st=>{Y=void 0,He(st)});return new W.w0(()=>null==Y?void 0:Y(ze))},requestAnimationFrame(...He){const{delegate:J}=le;return((null==J?void 0:J.requestAnimationFrame)||requestAnimationFrame)(...He)},cancelAnimationFrame(...He){const{delegate:J}=le;return((null==J?void 0:J.cancelAnimationFrame)||cancelAnimationFrame)(...He)},delegate:void 0};var Ce=b(640);new class be extends Ce.v{flush(J){this._active=!0;const Y=this._scheduled;this._scheduled=void 0;const{actions:Ve}=this;let ze;J=J||Ve.shift();do{if(ze=J.execute(J.state,J.delay))break}while((J=Ve[0])&&J.id===Y&&Ve.shift());if(this._active=!1,ze){for(;(J=Ve[0])&&J.id===Y&&Ve.shift();)J.unsubscribe();throw ze}}}(class q extends m.o{constructor(J,Y){super(J,Y),this.scheduler=J,this.work=Y}requestAsyncId(J,Y,Ve=0){return null!==Ve&&Ve>0?super.requestAsyncId(J,Y,Ve):(J.actions.push(this),J._scheduled||(J._scheduled=le.requestAnimationFrame(()=>J.flush(void 0))))}recycleAsyncId(J,Y,Ve=0){if(null!=Ve&&Ve>0||null==Ve&&this.delay>0)return super.recycleAsyncId(J,Y,Ve);J.actions.some(ze=>ze.id===Y)||(le.cancelAnimationFrame(Y),J._scheduled=void 0)}});var oe=b(7579),ue=b(9646),X=b(8306),ae=b(4968),Le=(b(3101),b(4986)),K=b(4482),Je=b(8421),Ye=b(5403),pe=b(5963);function z(He,J=Le.z){return function Ke(He){return(0,K.e)((J,Y)=>{let Ve=!1,ze=null,st=null,xt=!1;const Ut=()=>{if(null==st||st.unsubscribe(),st=null,Ve){Ve=!1;const Ft=ze;ze=null,Y.next(Ft)}xt&&Y.complete()},yt=()=>{st=null,xt&&Y.complete()};J.subscribe((0,Ye.x)(Y,Ft=>{Ve=!0,ze=Ft,st||(0,Je.Xf)(He(Ft)).subscribe(st=(0,Ye.x)(Y,Ut,yt))},()=>{xt=!0,(!Ve||!st||st.closed)&&Y.complete()}))})}(()=>(0,pe.H)(He,J))}var Q=b(9300),fe=b(9808),Ae=b(925),Fe=b(226);let pt=(()=>{class He{constructor(Y,Ve,ze){this._ngZone=Y,this._platform=Ve,this._scrolled=new oe.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ze}register(Y){this.scrollContainers.has(Y)||this.scrollContainers.set(Y,Y.elementScrolled().subscribe(()=>this._scrolled.next(Y)))}deregister(Y){const Ve=this.scrollContainers.get(Y);Ve&&(Ve.unsubscribe(),this.scrollContainers.delete(Y))}scrolled(Y=20){return this._platform.isBrowser?new X.y(Ve=>{this._globalSubscription||this._addGlobalListener();const ze=Y>0?this._scrolled.pipe(z(Y)).subscribe(Ve):this._scrolled.subscribe(Ve);return this._scrolledCount++,()=>{ze.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,ue.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Y,Ve)=>this.deregister(Ve)),this._scrolled.complete()}ancestorScrolled(Y,Ve){const ze=this.getAncestorScrollContainers(Y);return this.scrolled(Ve).pipe((0,Q.h)(st=>!st||ze.indexOf(st)>-1))}getAncestorScrollContainers(Y){const Ve=[];return this.scrollContainers.forEach((ze,st)=>{this._scrollableContainsElement(st,Y)&&Ve.push(st)}),Ve}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Y,Ve){let ze=(0,c.fI)(Ve),st=Y.getElementRef().nativeElement;do{if(ze==st)return!0}while(ze=ze.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Y=this._getWindow();return(0,ae.R)(Y.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return He.\u0275fac=function(Y){return new(Y||He)(s.LFG(s.R0b),s.LFG(Ae.t4),s.LFG(fe.K0,8))},He.\u0275prov=s.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})(),It=(()=>{class He{constructor(Y,Ve,ze){this._platform=Y,this._change=new oe.x,this._changeListener=st=>{this._change.next(st)},this._document=ze,Ve.runOutsideAngular(()=>{if(Y.isBrowser){const st=this._getWindow();st.addEventListener("resize",this._changeListener),st.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Y=this._getWindow();Y.removeEventListener("resize",this._changeListener),Y.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Y={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Y}getViewportRect(){const Y=this.getViewportScrollPosition(),{width:Ve,height:ze}=this.getViewportSize();return{top:Y.top,left:Y.left,bottom:Y.top+ze,right:Y.left+Ve,height:ze,width:Ve}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Y=this._document,Ve=this._getWindow(),ze=Y.documentElement,st=ze.getBoundingClientRect();return{top:-st.top||Y.body.scrollTop||Ve.scrollY||ze.scrollTop||0,left:-st.left||Y.body.scrollLeft||Ve.scrollX||ze.scrollLeft||0}}change(Y=20){return Y>0?this._change.pipe(z(Y)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Y=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Y.innerWidth,height:Y.innerHeight}:{width:0,height:0}}}return He.\u0275fac=function(Y){return new(Y||He)(s.LFG(Ae.t4),s.LFG(s.R0b),s.LFG(fe.K0,8))},He.\u0275prov=s.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})(),nn=(()=>{class He{}return He.\u0275fac=function(Y){return new(Y||He)},He.\u0275mod=s.oAB({type:He}),He.\u0275inj=s.cJS({}),He})(),Qe=(()=>{class He{}return He.\u0275fac=function(Y){return new(Y||He)},He.\u0275mod=s.oAB({type:He}),He.\u0275inj=s.cJS({imports:[[Fe.vT,nn],Fe.vT,nn]}),He})()},9808:($e,ve,b)=>{b.d(ve,{mr:()=>Ye,Ov:()=>ur,ez:()=>Fr,K0:()=>Ce,Do:()=>pe,V_:()=>te,Ye:()=>z,S$:()=>K,mk:()=>Xt,sg:()=>Ht,O5:()=>xi,RF:()=>Fn,n9:()=>Jn,ED:()=>ln,b0:()=>Ke,lw:()=>be,EM:()=>wn,JF:()=>Ar,NF:()=>Oi,w_:()=>q,bD:()=>Hi,q:()=>m,Mx:()=>li,HT:()=>le});var c=b(4893);let s=null;function m(){return s}function le(w){s||(s=w)}class q{}const Ce=new c.OlP("DocumentToken");let be=(()=>{class w{historyGo(T){throw new Error("Not implemented")}}return w.\u0275fac=function(T){return new(T||w)},w.\u0275prov=c.Yz7({token:w,factory:function(){return function ce(){return(0,c.LFG)(oe)}()},providedIn:"platform"}),w})();const te=new c.OlP("Location Initialized");let oe=(()=>{class w extends be{constructor(T){super(),this._doc=T,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return m().getBaseHref(this._doc)}onPopState(T){const H=m().getGlobalEventTarget(this._doc,"window");return H.addEventListener("popstate",T,!1),()=>H.removeEventListener("popstate",T)}onHashChange(T){const H=m().getGlobalEventTarget(this._doc,"window");return H.addEventListener("hashchange",T,!1),()=>H.removeEventListener("hashchange",T)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(T){this.location.pathname=T}pushState(T,H,se){ue()?this._history.pushState(T,H,se):this.location.hash=se}replaceState(T,H,se){ue()?this._history.replaceState(T,H,se):this.location.hash=se}forward(){this._history.forward()}back(){this._history.back()}historyGo(T=0){this._history.go(T)}getState(){return this._history.state}}return w.\u0275fac=function(T){return new(T||w)(c.LFG(Ce))},w.\u0275prov=c.Yz7({token:w,factory:function(){return function X(){return new oe((0,c.LFG)(Ce))}()},providedIn:"platform"}),w})();function ue(){return!!window.history.pushState}function ae(w,L){if(0==w.length)return L;if(0==L.length)return w;let T=0;return w.endsWith("/")&&T++,L.startsWith("/")&&T++,2==T?w+L.substring(1):1==T?w+L:w+"/"+L}function Pe(w){const L=w.match(/#|\?|$/),T=L&&L.index||w.length;return w.slice(0,T-("/"===w[T-1]?1:0))+w.slice(T)}function Le(w){return w&&"?"!==w[0]?"?"+w:w}let K=(()=>{class w{historyGo(T){throw new Error("Not implemented")}}return w.\u0275fac=function(T){return new(T||w)},w.\u0275prov=c.Yz7({token:w,factory:function(){return function Je(w){const L=(0,c.LFG)(Ce).location;return new Ke((0,c.LFG)(be),L&&L.origin||"")}()},providedIn:"root"}),w})();const Ye=new c.OlP("appBaseHref");let Ke=(()=>{class w extends K{constructor(T,H){if(super(),this._platformLocation=T,this._removeListenerFns=[],null==H&&(H=this._platformLocation.getBaseHrefFromDOM()),null==H)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=H}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}prepareExternalUrl(T){return ae(this._baseHref,T)}path(T=!1){const H=this._platformLocation.pathname+Le(this._platformLocation.search),se=this._platformLocation.hash;return se&&T?`${H}${se}`:H}pushState(T,H,se,Ge){const et=this.prepareExternalUrl(se+Le(Ge));this._platformLocation.pushState(T,H,et)}replaceState(T,H,se,Ge){const et=this.prepareExternalUrl(se+Le(Ge));this._platformLocation.replaceState(T,H,et)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){var H,se;null===(se=(H=this._platformLocation).historyGo)||void 0===se||se.call(H,T)}}return w.\u0275fac=function(T){return new(T||w)(c.LFG(be),c.LFG(Ye,8))},w.\u0275prov=c.Yz7({token:w,factory:w.\u0275fac}),w})(),pe=(()=>{class w extends K{constructor(T,H){super(),this._platformLocation=T,this._baseHref="",this._removeListenerFns=[],null!=H&&(this._baseHref=H)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}path(T=!1){let H=this._platformLocation.hash;return null==H&&(H="#"),H.length>0?H.substring(1):H}prepareExternalUrl(T){const H=ae(this._baseHref,T);return H.length>0?"#"+H:H}pushState(T,H,se,Ge){let et=this.prepareExternalUrl(se+Le(Ge));0==et.length&&(et=this._platformLocation.pathname),this._platformLocation.pushState(T,H,et)}replaceState(T,H,se,Ge){let et=this.prepareExternalUrl(se+Le(Ge));0==et.length&&(et=this._platformLocation.pathname),this._platformLocation.replaceState(T,H,et)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){var H,se;null===(se=(H=this._platformLocation).historyGo)||void 0===se||se.call(H,T)}}return w.\u0275fac=function(T){return new(T||w)(c.LFG(be),c.LFG(Ye,8))},w.\u0275prov=c.Yz7({token:w,factory:w.\u0275fac}),w})(),z=(()=>{class w{constructor(T,H){this._subject=new c.vpe,this._urlChangeListeners=[],this._platformStrategy=T;const se=this._platformStrategy.getBaseHref();this._platformLocation=H,this._baseHref=Pe(Ae(se)),this._platformStrategy.onPopState(Ge=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ge.state,type:Ge.type})})}path(T=!1){return this.normalize(this._platformStrategy.path(T))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(T,H=""){return this.path()==this.normalize(T+Le(H))}normalize(T){return w.stripTrailingSlash(function fe(w,L){return w&&L.startsWith(w)?L.substring(w.length):L}(this._baseHref,Ae(T)))}prepareExternalUrl(T){return T&&"/"!==T[0]&&(T="/"+T),this._platformStrategy.prepareExternalUrl(T)}go(T,H="",se=null){this._platformStrategy.pushState(se,"",T,H),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Le(H)),se)}replaceState(T,H="",se=null){this._platformStrategy.replaceState(se,"",T,H),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Le(H)),se)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(T=0){var H,se;null===(se=(H=this._platformStrategy).historyGo)||void 0===se||se.call(H,T)}onUrlChange(T){this._urlChangeListeners.push(T),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(H=>{this._notifyUrlChangeListeners(H.url,H.state)}))}_notifyUrlChangeListeners(T="",H){this._urlChangeListeners.forEach(se=>se(T,H))}subscribe(T,H,se){return this._subject.subscribe({next:T,error:H,complete:se})}}return w.normalizeQueryParams=Le,w.joinWithSlash=ae,w.stripTrailingSlash=Pe,w.\u0275fac=function(T){return new(T||w)(c.LFG(K),c.LFG(be))},w.\u0275prov=c.Yz7({token:w,factory:function(){return function Q(){return new z((0,c.LFG)(K),(0,c.LFG)(be))}()},providedIn:"root"}),w})();function Ae(w){return w.replace(/\/index.html$/,"")}function li(w,L){L=encodeURIComponent(L);for(const T of w.split(";")){const H=T.indexOf("="),[se,Ge]=-1==H?[T,""]:[T.slice(0,H),T.slice(H+1)];if(se.trim()===L)return decodeURIComponent(Ge)}return null}let Xt=(()=>{class w{constructor(T,H,se,Ge){this._iterableDiffers=T,this._keyValueDiffers=H,this._ngEl=se,this._renderer=Ge,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(T){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof T?T.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(T){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof T?T.split(/\s+/):T,this._rawClass&&((0,c.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const T=this._iterableDiffer.diff(this._rawClass);T&&this._applyIterableChanges(T)}else if(this._keyValueDiffer){const T=this._keyValueDiffer.diff(this._rawClass);T&&this._applyKeyValueChanges(T)}}_applyKeyValueChanges(T){T.forEachAddedItem(H=>this._toggleClass(H.key,H.currentValue)),T.forEachChangedItem(H=>this._toggleClass(H.key,H.currentValue)),T.forEachRemovedItem(H=>{H.previousValue&&this._toggleClass(H.key,!1)})}_applyIterableChanges(T){T.forEachAddedItem(H=>{if("string"!=typeof H.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,c.AaK)(H.item)}`);this._toggleClass(H.item,!0)}),T.forEachRemovedItem(H=>this._toggleClass(H.item,!1))}_applyClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(H=>this._toggleClass(H,!0)):Object.keys(T).forEach(H=>this._toggleClass(H,!!T[H])))}_removeClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(H=>this._toggleClass(H,!1)):Object.keys(T).forEach(H=>this._toggleClass(H,!1)))}_toggleClass(T,H){(T=T.trim())&&T.split(/\s+/g).forEach(se=>{H?this._renderer.addClass(this._ngEl.nativeElement,se):this._renderer.removeClass(this._ngEl.nativeElement,se)})}}return w.\u0275fac=function(T){return new(T||w)(c.Y36(c.ZZ4),c.Y36(c.aQg),c.Y36(c.SBq),c.Y36(c.Qsj))},w.\u0275dir=c.lG2({type:w,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),w})();class fi{constructor(L,T,H,se){this.$implicit=L,this.ngForOf=T,this.index=H,this.count=se}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ht=(()=>{class w{constructor(T,H,se){this._viewContainer=T,this._template=H,this._differs=se,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(T){this._ngForOf=T,this._ngForOfDirty=!0}set ngForTrackBy(T){this._trackByFn=T}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(T){T&&(this._template=T)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const T=this._ngForOf;!this._differ&&T&&(this._differ=this._differs.find(T).create(this.ngForTrackBy))}if(this._differ){const T=this._differ.diff(this._ngForOf);T&&this._applyChanges(T)}}_applyChanges(T){const H=this._viewContainer;T.forEachOperation((se,Ge,et)=>{if(null==se.previousIndex)H.createEmbeddedView(this._template,new fi(se.item,this._ngForOf,-1,-1),null===et?void 0:et);else if(null==et)H.remove(null===Ge?void 0:Ge);else if(null!==Ge){const ut=H.get(Ge);H.move(ut,et),ci(ut,se)}});for(let se=0,Ge=H.length;se{ci(H.get(se.currentIndex),se)})}static ngTemplateContextGuard(T,H){return!0}}return w.\u0275fac=function(T){return new(T||w)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(c.ZZ4))},w.\u0275dir=c.lG2({type:w,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),w})();function ci(w,L){w.context.$implicit=L.item}let xi=(()=>{class w{constructor(T,H){this._viewContainer=T,this._context=new jn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=H}set ngIf(T){this._context.$implicit=this._context.ngIf=T,this._updateView()}set ngIfThen(T){pn("ngIfThen",T),this._thenTemplateRef=T,this._thenViewRef=null,this._updateView()}set ngIfElse(T){pn("ngIfElse",T),this._elseTemplateRef=T,this._elseViewRef=null,this._updateView()}_updateView(){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)))}static ngTemplateContextGuard(T,H){return!0}}return w.\u0275fac=function(T){return new(T||w)(c.Y36(c.s_b),c.Y36(c.Rgc))},w.\u0275dir=c.lG2({type:w,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),w})();class jn{constructor(){this.$implicit=null,this.ngIf=null}}function pn(w,L){if(L&&!L.createEmbeddedView)throw new Error(`${w} must be a TemplateRef, but received '${(0,c.AaK)(L)}'.`)}class ui{constructor(L,T){this._viewContainerRef=L,this._templateRef=T,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(L){L&&!this._created?this.create():!L&&this._created&&this.destroy()}}let Fn=(()=>{class w{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(T){this._ngSwitch=T,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(T){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(T)}_matchCase(T){const H=T==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||H,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),H}_updateDefaultCases(T){if(this._defaultViews&&T!==this._defaultUsed){this._defaultUsed=T;for(let H=0;H{class w{constructor(T,H,se){this.ngSwitch=se,se._addCase(),this._view=new ui(T,H)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return w.\u0275fac=function(T){return new(T||w)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(Fn,9))},w.\u0275dir=c.lG2({type:w,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),w})(),ln=(()=>{class w{constructor(T,H,se){se._addDefault(new ui(T,H))}}return w.\u0275fac=function(T){return new(T||w)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(Fn,9))},w.\u0275dir=c.lG2({type:w,selectors:[["","ngSwitchDefault",""]]}),w})();class Xn{createSubscription(L,T){return L.subscribe({next:T,error:H=>{throw H}})}dispose(L){L.unsubscribe()}onDestroy(L){L.unsubscribe()}}class Si{createSubscription(L,T){return L.then(T,H=>{throw H})}dispose(L){}onDestroy(L){}}const cr=new Si,nr=new Xn;let ur=(()=>{class w{constructor(T){this._ref=T,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(T){return this._obj?T!==this._obj?(this._dispose(),this.transform(T)):this._latestValue:(T&&this._subscribe(T),this._latestValue)}_subscribe(T){this._obj=T,this._strategy=this._selectStrategy(T),this._subscription=this._strategy.createSubscription(T,H=>this._updateLatestValue(T,H))}_selectStrategy(T){if((0,c.QGY)(T))return cr;if((0,c.F4k)(T))return nr;throw function Tn(w,L){return new c.vHH(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(T,H){T===this._obj&&(this._latestValue=H,this._ref.markForCheck())}}return w.\u0275fac=function(T){return new(T||w)(c.Y36(c.sBO,16))},w.\u0275pipe=c.Yjl({name:"async",type:w,pure:!1}),w})(),Fr=(()=>{class w{}return w.\u0275fac=function(T){return new(T||w)},w.\u0275mod=c.oAB({type:w}),w.\u0275inj=c.cJS({}),w})();const Hi="browser";function Oi(w){return w===Hi}let wn=(()=>{class w{}return w.\u0275prov=(0,c.Yz7)({token:w,providedIn:"root",factory:()=>new Qi((0,c.LFG)(Ce),window)}),w})();class Qi{constructor(L,T){this.document=L,this.window=T,this.offset=()=>[0,0]}setOffset(L){this.offset=Array.isArray(L)?()=>L:L}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(L){this.supportsScrolling()&&this.window.scrollTo(L[0],L[1])}scrollToAnchor(L){if(!this.supportsScrolling())return;const T=function Yn(w,L){const T=w.getElementById(L)||w.getElementsByName(L)[0];if(T)return T;if("function"==typeof w.createTreeWalker&&w.body&&(w.body.createShadowRoot||w.body.attachShadow)){const H=w.createTreeWalker(w.body,NodeFilter.SHOW_ELEMENT);let se=H.currentNode;for(;se;){const Ge=se.shadowRoot;if(Ge){const et=Ge.getElementById(L)||Ge.querySelector(`[name="${L}"]`);if(et)return et}se=H.nextNode()}}return null}(this.document,L);T&&(this.scrollToElement(T),T.focus())}setHistoryScrollRestoration(L){if(this.supportScrollRestoration()){const T=this.window.history;T&&T.scrollRestoration&&(T.scrollRestoration=L)}}scrollToElement(L){const T=L.getBoundingClientRect(),H=T.left+this.window.pageXOffset,se=T.top+this.window.pageYOffset,Ge=this.offset();this.window.scrollTo(H-Ge[0],se-Ge[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const L=ti(this.window.history)||ti(Object.getPrototypeOf(this.window.history));return!(!L||!L.writable&&!L.set)}catch(L){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(L){return!1}}}function ti(w){return Object.getOwnPropertyDescriptor(w,"scrollRestoration")}class Ar{}},520:($e,ve,b)=>{b.d(ve,{eN:()=>Re,JF:()=>Oe});var c=b(9808),s=b(4893),m=b(9646),W=b(8306),le=b(4351),q=b(9300),Ce=b(4004);class be{}class ce{}class te{constructor(P){this.normalizedNames=new Map,this.lazyUpdate=null,P?this.lazyInit="string"==typeof P?()=>{this.headers=new Map,P.split("\n").forEach(F=>{const ie=F.indexOf(":");if(ie>0){const ye=F.slice(0,ie),Be=ye.toLowerCase(),je=F.slice(ie+1).trim();this.maybeSetNormalizedName(ye,Be),this.headers.has(Be)?this.headers.get(Be).push(je):this.headers.set(Be,[je])}})}:()=>{this.headers=new Map,Object.keys(P).forEach(F=>{let ie=P[F];const ye=F.toLowerCase();"string"==typeof ie&&(ie=[ie]),ie.length>0&&(this.headers.set(ye,ie),this.maybeSetNormalizedName(F,ye))})}:this.headers=new Map}has(P){return this.init(),this.headers.has(P.toLowerCase())}get(P){this.init();const F=this.headers.get(P.toLowerCase());return F&&F.length>0?F[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(P){return this.init(),this.headers.get(P.toLowerCase())||null}append(P,F){return this.clone({name:P,value:F,op:"a"})}set(P,F){return this.clone({name:P,value:F,op:"s"})}delete(P,F){return this.clone({name:P,value:F,op:"d"})}maybeSetNormalizedName(P,F){this.normalizedNames.has(F)||this.normalizedNames.set(F,P)}init(){this.lazyInit&&(this.lazyInit instanceof te?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(P=>this.applyUpdate(P)),this.lazyUpdate=null))}copyFrom(P){P.init(),Array.from(P.headers.keys()).forEach(F=>{this.headers.set(F,P.headers.get(F)),this.normalizedNames.set(F,P.normalizedNames.get(F))})}clone(P){const F=new te;return F.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,F.lazyUpdate=(this.lazyUpdate||[]).concat([P]),F}applyUpdate(P){const F=P.name.toLowerCase();switch(P.op){case"a":case"s":let ie=P.value;if("string"==typeof ie&&(ie=[ie]),0===ie.length)return;this.maybeSetNormalizedName(P.name,F);const ye=("a"===P.op?this.headers.get(F):void 0)||[];ye.push(...ie),this.headers.set(F,ye);break;case"d":const Be=P.value;if(Be){let je=this.headers.get(F);if(!je)return;je=je.filter(mt=>-1===Be.indexOf(mt)),0===je.length?(this.headers.delete(F),this.normalizedNames.delete(F)):this.headers.set(F,je)}else this.headers.delete(F),this.normalizedNames.delete(F)}}forEach(P){this.init(),Array.from(this.normalizedNames.keys()).forEach(F=>P(this.normalizedNames.get(F),this.headers.get(F)))}}class oe{encodeKey(P){return Pe(P)}encodeValue(P){return Pe(P)}decodeKey(P){return decodeURIComponent(P)}decodeValue(P){return decodeURIComponent(P)}}const X=/%(\d[a-f0-9])/gi,ae={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Pe(E){return encodeURIComponent(E).replace(X,(P,F)=>{var ie;return null!==(ie=ae[F])&&void 0!==ie?ie:P})}function Le(E){return`${E}`}class K{constructor(P={}){if(this.updates=null,this.cloneFrom=null,this.encoder=P.encoder||new oe,P.fromString){if(P.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ue(E,P){const F=new Map;return E.length>0&&E.replace(/^\?/,"").split("&").forEach(ye=>{const Be=ye.indexOf("="),[je,mt]=-1==Be?[P.decodeKey(ye),""]:[P.decodeKey(ye.slice(0,Be)),P.decodeValue(ye.slice(Be+1))],at=F.get(je)||[];at.push(mt),F.set(je,at)}),F}(P.fromString,this.encoder)}else P.fromObject?(this.map=new Map,Object.keys(P.fromObject).forEach(F=>{const ie=P.fromObject[F];this.map.set(F,Array.isArray(ie)?ie:[ie])})):this.map=null}has(P){return this.init(),this.map.has(P)}get(P){this.init();const F=this.map.get(P);return F?F[0]:null}getAll(P){return this.init(),this.map.get(P)||null}keys(){return this.init(),Array.from(this.map.keys())}append(P,F){return this.clone({param:P,value:F,op:"a"})}appendAll(P){const F=[];return Object.keys(P).forEach(ie=>{const ye=P[ie];Array.isArray(ye)?ye.forEach(Be=>{F.push({param:ie,value:Be,op:"a"})}):F.push({param:ie,value:ye,op:"a"})}),this.clone(F)}set(P,F){return this.clone({param:P,value:F,op:"s"})}delete(P,F){return this.clone({param:P,value:F,op:"d"})}toString(){return this.init(),this.keys().map(P=>{const F=this.encoder.encodeKey(P);return this.map.get(P).map(ie=>F+"="+this.encoder.encodeValue(ie)).join("&")}).filter(P=>""!==P).join("&")}clone(P){const F=new K({encoder:this.encoder});return F.cloneFrom=this.cloneFrom||this,F.updates=(this.updates||[]).concat(P),F}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(P=>this.map.set(P,this.cloneFrom.map.get(P))),this.updates.forEach(P=>{switch(P.op){case"a":case"s":const F=("a"===P.op?this.map.get(P.param):void 0)||[];F.push(Le(P.value)),this.map.set(P.param,F);break;case"d":if(void 0===P.value){this.map.delete(P.param);break}{let ie=this.map.get(P.param)||[];const ye=ie.indexOf(Le(P.value));-1!==ye&&ie.splice(ye,1),ie.length>0?this.map.set(P.param,ie):this.map.delete(P.param)}}}),this.cloneFrom=this.updates=null)}}class Ye{constructor(){this.map=new Map}set(P,F){return this.map.set(P,F),this}get(P){return this.map.has(P)||this.map.set(P,P.defaultValue()),this.map.get(P)}delete(P){return this.map.delete(P),this}has(P){return this.map.has(P)}keys(){return this.map.keys()}}function pe(E){return"undefined"!=typeof ArrayBuffer&&E instanceof ArrayBuffer}function z(E){return"undefined"!=typeof Blob&&E instanceof Blob}function Q(E){return"undefined"!=typeof FormData&&E instanceof FormData}class Ae{constructor(P,F,ie,ye){let Be;if(this.url=F,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=P.toUpperCase(),function Ke(E){switch(E){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ye?(this.body=void 0!==ie?ie:null,Be=ye):Be=ie,Be&&(this.reportProgress=!!Be.reportProgress,this.withCredentials=!!Be.withCredentials,Be.responseType&&(this.responseType=Be.responseType),Be.headers&&(this.headers=Be.headers),Be.context&&(this.context=Be.context),Be.params&&(this.params=Be.params)),this.headers||(this.headers=new te),this.context||(this.context=new Ye),this.params){const je=this.params.toString();if(0===je.length)this.urlWithParams=F;else{const mt=F.indexOf("?");this.urlWithParams=F+(-1===mt?"?":mtun.set(ct,P.setHeaders[ct]),St)),P.setParams&&(en=Object.keys(P.setParams).reduce((un,ct)=>un.set(ct,P.setParams[ct]),en)),new Ae(ie,ye,je,{params:en,headers:St,context:Wt,reportProgress:at,responseType:Be,withCredentials:mt})}}var Fe=(()=>((Fe=Fe||{})[Fe.Sent=0]="Sent",Fe[Fe.UploadProgress=1]="UploadProgress",Fe[Fe.ResponseHeader=2]="ResponseHeader",Fe[Fe.DownloadProgress=3]="DownloadProgress",Fe[Fe.Response=4]="Response",Fe[Fe.User=5]="User",Fe))();class _e{constructor(P,F=200,ie="OK"){this.headers=P.headers||new te,this.status=void 0!==P.status?P.status:F,this.statusText=P.statusText||ie,this.url=P.url||null,this.ok=this.status>=200&&this.status<300}}class Ee extends _e{constructor(P={}){super(P),this.type=Fe.ResponseHeader}clone(P={}){return new Ee({headers:P.headers||this.headers,status:void 0!==P.status?P.status:this.status,statusText:P.statusText||this.statusText,url:P.url||this.url||void 0})}}class Te extends _e{constructor(P={}){super(P),this.type=Fe.Response,this.body=void 0!==P.body?P.body:null}clone(P={}){return new Te({body:void 0!==P.body?P.body:this.body,headers:P.headers||this.headers,status:void 0!==P.status?P.status:this.status,statusText:P.statusText||this.statusText,url:P.url||this.url||void 0})}}class we extends _e{constructor(P){super(P,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${P.url||"(unknown url)"}`:`Http failure response for ${P.url||"(unknown url)"}: ${P.status} ${P.statusText}`,this.error=P.error||null}}function Xe(E,P){return{body:P,headers:E.headers,context:E.context,observe:E.observe,params:E.params,reportProgress:E.reportProgress,responseType:E.responseType,withCredentials:E.withCredentials}}let Re=(()=>{class E{constructor(F){this.handler=F}request(F,ie,ye={}){let Be;if(F instanceof Ae)Be=F;else{let at,St;at=ye.headers instanceof te?ye.headers:new te(ye.headers),ye.params&&(St=ye.params instanceof K?ye.params:new K({fromObject:ye.params})),Be=new Ae(F,ie,void 0!==ye.body?ye.body:null,{headers:at,context:ye.context,params:St,reportProgress:ye.reportProgress,responseType:ye.responseType||"json",withCredentials:ye.withCredentials})}const je=(0,m.of)(Be).pipe((0,le.b)(at=>this.handler.handle(at)));if(F instanceof Ae||"events"===ye.observe)return je;const mt=je.pipe((0,q.h)(at=>at instanceof Te));switch(ye.observe||"body"){case"body":switch(Be.responseType){case"arraybuffer":return mt.pipe((0,Ce.U)(at=>{if(null!==at.body&&!(at.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return at.body}));case"blob":return mt.pipe((0,Ce.U)(at=>{if(null!==at.body&&!(at.body instanceof Blob))throw new Error("Response is not a Blob.");return at.body}));case"text":return mt.pipe((0,Ce.U)(at=>{if(null!==at.body&&"string"!=typeof at.body)throw new Error("Response is not a string.");return at.body}));default:return mt.pipe((0,Ce.U)(at=>at.body))}case"response":return mt;default:throw new Error(`Unreachable: unhandled observe type ${ye.observe}}`)}}delete(F,ie={}){return this.request("DELETE",F,ie)}get(F,ie={}){return this.request("GET",F,ie)}head(F,ie={}){return this.request("HEAD",F,ie)}jsonp(F,ie){return this.request("JSONP",F,{params:(new K).append(ie,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(F,ie={}){return this.request("OPTIONS",F,ie)}patch(F,ie,ye={}){return this.request("PATCH",F,Xe(ye,ie))}post(F,ie,ye={}){return this.request("POST",F,Xe(ye,ie))}put(F,ie,ye={}){return this.request("PUT",F,Xe(ye,ie))}}return E.\u0275fac=function(F){return new(F||E)(s.LFG(be))},E.\u0275prov=s.Yz7({token:E,factory:E.\u0275fac}),E})();class vt{constructor(P,F){this.next=P,this.interceptor=F}handle(P){return this.interceptor.intercept(P,this.next)}}const pt=new s.OlP("HTTP_INTERCEPTORS");let Qt=(()=>{class E{intercept(F,ie){return ie.handle(F)}}return E.\u0275fac=function(F){return new(F||E)},E.\u0275prov=s.Yz7({token:E,factory:E.\u0275fac}),E})();const Qe=/^\)\]\}',?\n/;let J=(()=>{class E{constructor(F){this.xhrFactory=F}handle(F){if("JSONP"===F.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new W.y(ie=>{const ye=this.xhrFactory.build();if(ye.open(F.method,F.urlWithParams),F.withCredentials&&(ye.withCredentials=!0),F.headers.forEach((ct,gt)=>ye.setRequestHeader(ct,gt.join(","))),F.headers.has("Accept")||ye.setRequestHeader("Accept","application/json, text/plain, */*"),!F.headers.has("Content-Type")){const ct=F.detectContentTypeHeader();null!==ct&&ye.setRequestHeader("Content-Type",ct)}if(F.responseType){const ct=F.responseType.toLowerCase();ye.responseType="json"!==ct?ct:"text"}const Be=F.serializeBody();let je=null;const mt=()=>{if(null!==je)return je;const ct=ye.statusText||"OK",gt=new te(ye.getAllResponseHeaders()),ke=function He(E){return"responseURL"in E&&E.responseURL?E.responseURL:/^X-Request-URL:/m.test(E.getAllResponseHeaders())?E.getResponseHeader("X-Request-URL"):null}(ye)||F.url;return je=new Ee({headers:gt,status:ye.status,statusText:ct,url:ke}),je},at=()=>{let{headers:ct,status:gt,statusText:ke,url:Me}=mt(),V=null;204!==gt&&(V=void 0===ye.response?ye.responseText:ye.response),0===gt&&(gt=V?200:0);let j=gt>=200&><300;if("json"===F.responseType&&"string"==typeof V){const G=V;V=V.replace(Qe,"");try{V=""!==V?JSON.parse(V):null}catch(de){V=G,j&&(j=!1,V={error:de,text:V})}}j?(ie.next(new Te({body:V,headers:ct,status:gt,statusText:ke,url:Me||void 0})),ie.complete()):ie.error(new we({error:V,headers:ct,status:gt,statusText:ke,url:Me||void 0}))},St=ct=>{const{url:gt}=mt(),ke=new we({error:ct,status:ye.status||0,statusText:ye.statusText||"Unknown Error",url:gt||void 0});ie.error(ke)};let en=!1;const Wt=ct=>{en||(ie.next(mt()),en=!0);let gt={type:Fe.DownloadProgress,loaded:ct.loaded};ct.lengthComputable&&(gt.total=ct.total),"text"===F.responseType&&!!ye.responseText&&(gt.partialText=ye.responseText),ie.next(gt)},un=ct=>{let gt={type:Fe.UploadProgress,loaded:ct.loaded};ct.lengthComputable&&(gt.total=ct.total),ie.next(gt)};return ye.addEventListener("load",at),ye.addEventListener("error",St),ye.addEventListener("timeout",St),ye.addEventListener("abort",St),F.reportProgress&&(ye.addEventListener("progress",Wt),null!==Be&&ye.upload&&ye.upload.addEventListener("progress",un)),ye.send(Be),ie.next({type:Fe.Sent}),()=>{ye.removeEventListener("error",St),ye.removeEventListener("abort",St),ye.removeEventListener("load",at),ye.removeEventListener("timeout",St),F.reportProgress&&(ye.removeEventListener("progress",Wt),null!==Be&&ye.upload&&ye.upload.removeEventListener("progress",un)),ye.readyState!==ye.DONE&&ye.abort()}})}}return E.\u0275fac=function(F){return new(F||E)(s.LFG(c.JF))},E.\u0275prov=s.Yz7({token:E,factory:E.\u0275fac}),E})();const Y=new s.OlP("XSRF_COOKIE_NAME"),Ve=new s.OlP("XSRF_HEADER_NAME");class ze{}let st=(()=>{class E{constructor(F,ie,ye){this.doc=F,this.platform=ie,this.cookieName=ye,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const F=this.doc.cookie||"";return F!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,c.Mx)(F,this.cookieName),this.lastCookieString=F),this.lastToken}}return E.\u0275fac=function(F){return new(F||E)(s.LFG(c.K0),s.LFG(s.Lbi),s.LFG(Y))},E.\u0275prov=s.Yz7({token:E,factory:E.\u0275fac}),E})(),xt=(()=>{class E{constructor(F,ie){this.tokenService=F,this.headerName=ie}intercept(F,ie){const ye=F.url.toLowerCase();if("GET"===F.method||"HEAD"===F.method||ye.startsWith("http://")||ye.startsWith("https://"))return ie.handle(F);const Be=this.tokenService.getToken();return null!==Be&&!F.headers.has(this.headerName)&&(F=F.clone({headers:F.headers.set(this.headerName,Be)})),ie.handle(F)}}return E.\u0275fac=function(F){return new(F||E)(s.LFG(ze),s.LFG(Ve))},E.\u0275prov=s.Yz7({token:E,factory:E.\u0275fac}),E})(),Ut=(()=>{class E{constructor(F,ie){this.backend=F,this.injector=ie,this.chain=null}handle(F){if(null===this.chain){const ie=this.injector.get(pt,[]);this.chain=ie.reduceRight((ye,Be)=>new vt(ye,Be),this.backend)}return this.chain.handle(F)}}return E.\u0275fac=function(F){return new(F||E)(s.LFG(ce),s.LFG(s.zs3))},E.\u0275prov=s.Yz7({token:E,factory:E.\u0275fac}),E})(),ot=(()=>{class E{static disable(){return{ngModule:E,providers:[{provide:xt,useClass:Qt}]}}static withOptions(F={}){return{ngModule:E,providers:[F.cookieName?{provide:Y,useValue:F.cookieName}:[],F.headerName?{provide:Ve,useValue:F.headerName}:[]]}}}return E.\u0275fac=function(F){return new(F||E)},E.\u0275mod=s.oAB({type:E}),E.\u0275inj=s.cJS({providers:[xt,{provide:pt,useExisting:xt,multi:!0},{provide:ze,useClass:st},{provide:Y,useValue:"XSRF-TOKEN"},{provide:Ve,useValue:"X-XSRF-TOKEN"}]}),E})(),Oe=(()=>{class E{}return E.\u0275fac=function(F){return new(F||E)},E.\u0275mod=s.oAB({type:E}),E.\u0275inj=s.cJS({providers:[Re,{provide:be,useClass:Ut},J,{provide:ce,useExisting:J}],imports:[[ot.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),E})()},4893:($e,ve,b)=>{b.d(ve,{deG:()=>Im,tb:()=>am,AFp:()=>im,ip1:()=>nm,CZH:()=>jc,hGG:()=>VC,z2F:()=>Kc,sBO:()=>DC,Sil:()=>rC,_Vd:()=>Ra,EJc:()=>nC,SBq:()=>Ws,qLn:()=>ca,vpe:()=>ao,tBr:()=>ra,XFs:()=>S,OlP:()=>_i,zs3:()=>Hr,ZZ4:()=>tu,aQg:()=>nu,soG:()=>Gc,YKP:()=>gp,h0i:()=>fs,PXZ:()=>gC,R0b:()=>$r,FiY:()=>As,Lbi:()=>sm,g9A:()=>om,n_E:()=>Fa,Qsj:()=>qb,FYo:()=>hp,JOm:()=>no,q3G:()=>vi,tp0:()=>Ts,Rgc:()=>qs,dDg:()=>dm,GfV:()=>fp,s_b:()=>Na,ifc:()=>St,eFA:()=>pm,G48:()=>EC,Gpc:()=>Le,f3M:()=>Mu,_c5:()=>BC,VLi:()=>fC,c2e:()=>lm,zSh:()=>Gl,wAp:()=>Kt,vHH:()=>Ke,EiD:()=>Uu,mCW:()=>Ss,qzn:()=>Go,JVY:()=>cg,pB0:()=>fg,eBb:()=>dg,L6k:()=>ug,LAX:()=>hg,cg1:()=>bc,kL8:()=>Lf,yhl:()=>Pu,dqk:()=>gt,sIi:()=>Bs,CqO:()=>zh,QGY:()=>sc,F4k:()=>jh,RDi:()=>L,AaK:()=>X,z3N:()=>go,qOj:()=>Kl,TTD:()=>Hi,_Bn:()=>cp,xp6:()=>Cd,uIk:()=>Jl,Tol:()=>hf,Gre:()=>Af,ekj:()=>fc,Suo:()=>Fp,Xpm:()=>Ct,lG2:()=>zt,Yz7:()=>J,cJS:()=>Ve,oAB:()=>Se,Yjl:()=>yn,Y36:()=>Us,_UZ:()=>oc,BQk:()=>wa,ynx:()=>Ma,qZA:()=>Da,TgZ:()=>Ea,EpF:()=>Hh,n5z:()=>pu,Ikx:()=>vc,LFG:()=>Fi,$8M:()=>$a,$Z:()=>Vh,NdJ:()=>ac,CRH:()=>Lp,kcU:()=>Mo,O4$:()=>Jr,oxw:()=>Wh,ALo:()=>Ap,lcZ:()=>Tp,Hsn:()=>Zh,F$t:()=>Yh,Q6J:()=>ic,s9C:()=>uc,VKq:()=>bp,iGM:()=>Rp,MAs:()=>xh,evT:()=>Ku,CHM:()=>qr,oJD:()=>Hu,LSH:()=>ol,Udp:()=>hc,WFA:()=>lc,d8E:()=>yc,YNc:()=>Th,_uU:()=>yf,Oqu:()=>mc,hij:()=>Ta,AsE:()=>gc,lnq:()=>_c,Gf:()=>kp});var c=b(7579),s=b(727),m=b(8306),W=b(6451),le=b(2076),q=b(5698),Ce=b(930),be=b(4482);function te(e,t,...n){return!0===t?(e(),null):!1===t?null:t(...n).pipe((0,q.q)(1)).subscribe(()=>e())}function oe(e){for(let t in e)if(e[t]===oe)return t;throw Error("Could not find renamed property on target object.")}function ue(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function X(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(X).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ae(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Pe=oe({__forward_ref__:oe});function Le(e){return e.__forward_ref__=Le,e.toString=function(){return X(this())},e}function K(e){return Je(e)?e():e}function Je(e){return"function"==typeof e&&e.hasOwnProperty(Pe)&&e.__forward_ref__===Le}class Ke extends Error{constructor(t,n){super(function pe(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function z(e){return"string"==typeof e?e:null==e?"":String(e)}function Q(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():z(e)}function _e(e,t){const n=t?` in ${t}`:"";throw new Ke(-201,`No provider for ${Q(e)} found${n}`)}function Nt(e,t){null==e&&function Tt(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function J(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ve(e){return{providers:e.providers||[],imports:e.imports||[]}}function ze(e){return st(e,Ft)||st(e,Oe)}function st(e,t){return e.hasOwnProperty(t)?e[t]:null}function yt(e){return e&&(e.hasOwnProperty(ot)||e.hasOwnProperty(C))?e[ot]:null}const Ft=oe({\u0275prov:oe}),ot=oe({\u0275inj:oe}),Oe=oe({ngInjectableDef:oe}),C=oe({ngInjectorDef:oe});var S=(()=>((S=S||{})[S.Default=0]="Default",S[S.Host=1]="Host",S[S.Self=2]="Self",S[S.SkipSelf=4]="SkipSelf",S[S.Optional=8]="Optional",S))();let E;function F(e){const t=E;return E=e,t}function ie(e,t,n){const i=ze(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&S.Optional?null:void 0!==t?t:void _e(X(e),"Injector")}function Be(e){return{toString:e}.toString()}var je=(()=>((je=je||{})[je.OnPush=0]="OnPush",je[je.Default=1]="Default",je))(),St=(()=>{return(e=St||(St={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",St;var e})();const en="undefined"!=typeof globalThis&&globalThis,Wt="undefined"!=typeof window&&window,un="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,gt=en||"undefined"!=typeof global&&global||Wt||un,V={},j=[],G=oe({\u0275cmp:oe}),de=oe({\u0275dir:oe}),xe=oe({\u0275pipe:oe}),rt=oe({\u0275mod:oe}),wt=oe({\u0275fac:oe}),Zt=oe({__NG_ELEMENT_ID__:oe});let Yt=0;function Ct(e){return Be(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===je.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||j,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||St.Emulated,id:"c",styles:e.styles||j,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,l=e.features,u=e.pipes;return i.id+=Yt++,i.inputs=Pt(e.inputs,n),i.outputs=Pt(e.outputs),l&&l.forEach(p=>p(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Ne):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(ge):null,i})}function Ne(e){return Jt(e)||function Pn(e){return e[de]||null}(e)}function ge(e){return function bn(e){return e[xe]||null}(e)}const ne={};function Se(e){return Be(()=>{const t={type:e.type,bootstrap:e.bootstrap||j,declarations:e.declarations||j,imports:e.imports||j,exports:e.exports||j,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ne[e.id]=e.type),t})}function Pt(e,t){if(null==e)return V;const n={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],l=o;Array.isArray(o)&&(l=o[1],o=o[0]),n[o]=i,t&&(t[o]=l)}return n}const zt=Ct;function yn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Jt(e){return e[G]||null}function Un(e,t){const n=e[rt]||null;if(!n&&!0===t)throw new Error(`Type ${X(e)} does not have '\u0275mod' property.`);return n}function Wn(e){return Array.isArray(e)&&"object"==typeof e[1]}function bi(e){return Array.isArray(e)&&!0===e[1]}function Wi(e){return 0!=(8&e.flags)}function Yi(e){return 2==(2&e.flags)}function Tn(e){return 1==(1&e.flags)}function Xn(e){return null!==e.template}function Si(e){return 0!=(512&e[2])}function Di(e,t){return e.hasOwnProperty(wt)?e[wt]:null}class Fr{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Hi(){return Li}function Li(e){return e.type.prototype.ngOnChanges&&(e.setInput=Kr),qi}function qi(){const e=or(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===V)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Kr(e,t,n,i){const o=or(e)||function Lr(e,t){return e[Oi]=t}(e,{previous:V,current:null}),l=o.current||(o.current={}),u=o.previous,p=this.declaredInputs[n],v=u[p];l[p]=new Fr(v&&v.currentValue,t,u===V),e[i]=t}Hi.ngInherit=!0;const Oi="__ngSimpleChanges__";function or(e){return e[Oi]||null}let w;function L(e){w=e}function T(){return void 0!==w?w:"undefined"!=typeof document?document:void 0}function se(e){return!!e.listen}const Ge={createRenderer:(e,t)=>T()};function ut(e){for(;Array.isArray(e);)e=e[0];return e}function dn(e,t){return ut(t[e])}function Vt(e,t){return ut(t[e.index])}function _n(e,t){return e.data[t]}function xn(e,t){return e[t]}function Nn(e,t){const n=t[e];return Wn(n)?n:n[0]}function Mi(e){return 4==(4&e[2])}function Ji(e){return 128==(128&e[2])}function Pi(e,t){return null==t?null:e[t]}function x(e){e[18]=0}function D(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const _={lFrame:Ci(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function mi(){return _.bindingsEnabled}function it(){return _.lFrame.lView}function rn(){return _.lFrame.tView}function qr(e){return _.lFrame.contextLView=e,e[8]}function Zn(){let e=yo();for(;null!==e&&64===e.type;)e=e.parent;return e}function yo(){return _.lFrame.currentTNode}function Ni(e,t){const n=_.lFrame;n.currentTNode=e,n.isParent=t}function Qr(){return _.lFrame.isParent}function co(){_.lFrame.isParent=!1}function y(){return _.isInCheckNoChangesMode}function r(e){_.isInCheckNoChangesMode=e}function a(){const e=_.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function h(){return _.lFrame.bindingIndex}function N(){return _.lFrame.bindingIndex++}function Z(e){const t=_.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ue(e,t){const n=_.lFrame;n.bindingIndex=n.bindingRootIndex=e,bt(t)}function bt(e){_.lFrame.currentDirectiveIndex=e}function Gt(e){const t=_.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function sn(){return _.lFrame.currentQueryIndex}function Bt(e){_.lFrame.currentQueryIndex=e}function tn(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function En(e,t,n){if(n&S.SkipSelf){let o=t,l=e;for(;!(o=o.parent,null!==o||n&S.Host||(o=tn(l),null===o||(l=l[15],10&o.type))););if(null===o)return!1;t=o,e=l}const i=_.lFrame=ai();return i.currentTNode=t,i.lView=e,!0}function zn(e){const t=ai(),n=e[1];_.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ai(){const e=_.lFrame,t=null===e?null:e.child;return null===t?Ci(e):t}function Ci(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ni(){const e=_.lFrame;return _.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Tr=ni;function Bi(){const e=ni();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Bn(){return _.lFrame.selectedIndex}function gi(e){_.lFrame.selectedIndex=e}function Vn(){const e=_.lFrame;return _n(e.tView,e.selectedIndex)}function Jr(){_.lFrame.currentNamespace="svg"}function Mo(){!function uo(){_.lFrame.currentNamespace=null}()}function kt(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[v]<0&&(e[18]+=65536),(p>11>16&&(3&e[2])===t){e[2]+=2048;try{l.call(p)}finally{}}}else try{l.call(p)}finally{}}class xr{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Ro(e,t,n){const i=se(e);let o=0;for(;ot){u=l-1;break}}}for(;l>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let vs=!0;function ys(e){const t=vs;return vs=e,t}let M=0;function B(e,t){const n=me(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,ee(i.data,e),ee(t,null),ee(i.blueprint,null));const o=Ze(e,t),l=e.injectorIndex;if(Fo(o)){const u=bo(o),p=ho(o,t),v=p[1].data;for(let I=0;I<8;I++)t[l+I]=p[u+I]|v[u+I]}return t[l+8]=o,l}function ee(e,t){e.push(0,0,0,0,0,0,0,0,t)}function me(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ze(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){const l=o[1],u=l.type;if(i=2===u?l.declTNode:1===u?o[6]:null,null===i)return-1;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Dt(e,t,n){!function O(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Zt)&&(i=n[Zt]),null==i&&(i=n[Zt]=M++);const o=255&i;t.data[e+(o>>5)]|=1<=0?255&t:Br:t}(n);if("function"==typeof l){if(!En(t,e,i))return i&S.Host?Lt(o,n,i):An(t,n,i,o);try{const u=l(i);if(null!=u||i&S.Optional)return u;_e(n)}finally{Tr()}}else if("number"==typeof l){let u=null,p=me(e,t),v=-1,I=i&S.Host?t[16][6]:null;for((-1===p||i&S.SkipSelf)&&(v=-1===p?Ze(e,t):t[p+8],-1!==v&&ea(i,!1)?(u=t[1],p=bo(v),t=ho(v,t)):p=-1);-1!==p;){const k=t[1];if(Ao(l,p,k.data)){const $=po(p,t,n,u,i,I);if($!==fo)return $}v=t[p+8],-1!==v&&ea(i,t[1].data[p+8]===I)&&Ao(l,p,t)?(u=k,p=bo(v),t=ho(v,t)):p=-1}}}return An(t,n,i,o)}const fo={};function Br(){return new Lo(Zn(),it())}function po(e,t,n,i,o,l){const u=t[1],p=u.data[e+8],k=Sr(p,u,n,null==i?Yi(p)&&vs:i!=u&&0!=(3&p.type),o&S.Host&&l===p);return null!==k?br(t,u,k,p):fo}function Sr(e,t,n,i,o){const l=e.providerIndexes,u=t.data,p=1048575&l,v=e.directiveStart,k=l>>20,he=o?p+k:e.directiveEnd;for(let Ie=i?p:p+k;Ie=v&&qe.type===n)return Ie}if(o){const Ie=u[v];if(Ie&&Xn(Ie)&&Ie.type===n)return v}return null}function br(e,t,n,i){let o=e[n];const l=t.data;if(function Js(e){return e instanceof xr}(o)){const u=o;u.resolving&&function fe(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Ke(-200,`Circular dependency in DI detected for ${e}${n}`)}(Q(l[n]));const p=ys(u.canSeeViewProviders);u.resolving=!0;const v=u.injectImpl?F(u.injectImpl):null;En(e,i,S.Default);try{o=e[n]=u.factory(void 0,l,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Rt(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:l}=t.type.prototype;if(i){const u=Li(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),l&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,l),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,l))}(n,l[n],t)}finally{null!==v&&F(v),ys(p),u.resolving=!1,Tr()}}return o}function Ao(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[wt]||Ga(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const l=o[wt]||Ga(o);if(l&&l!==n)return l;o=Object.getPrototypeOf(o)}return l=>new l})}function Ga(e){return Je(e)?()=>{const t=Ga(K(e));return t&&t()}:Di(e)}function $a(e){return function an(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let o=0;for(;o{const i=function Wa(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...l){if(this instanceof o)return i.apply(this,l),this;const u=new o(...l);return p.annotation=u,p;function p(v,I,k){const $=v.hasOwnProperty(Bo)?v[Bo]:Object.defineProperty(v,Bo,{value:[]})[Bo];for(;$.length<=k;)$.push(null);return($[k]=$[k]||[]).push(u),v}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class _i{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=J({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Im=new _i("AnalyzeForEntryComponents");function Or(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Xr(n,t):t(n))}function gu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ta(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Es(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function km(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Za(e,t){const n=Ho(e,t);if(n>=0)return e[1|n]}function Ho(e,t){return function yu(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const l=i+(o-i>>1),u=e[l<t?o=l:i=l+1}return~(o<({token:e})),-1),As=ws(Uo("Optional"),8),Ts=ws(Uo("SkipSelf"),4);let sa,aa;function zo(e){var t;return(null===(t=function Xa(){if(void 0===sa&&(sa=null,gt.trustedTypes))try{sa=gt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sa}())||void 0===t?void 0:t.createHTML(e))||e}function Su(e){var t;return(null===(t=function el(){if(void 0===aa&&(aa=null,gt.trustedTypes))try{aa=gt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return aa}())||void 0===t?void 0:t.createHTML(e))||e}class To{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rg extends To{getTypeName(){return"HTML"}}class og extends To{getTypeName(){return"Style"}}class sg extends To{getTypeName(){return"Script"}}class ag extends To{getTypeName(){return"URL"}}class lg extends To{getTypeName(){return"ResourceURL"}}function go(e){return e instanceof To?e.changingThisBreaksApplicationSecurity:e}function Go(e,t){const n=Pu(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Pu(e){return e instanceof To&&e.getTypeName()||null}function cg(e){return new rg(e)}function ug(e){return new og(e)}function dg(e){return new sg(e)}function hg(e){return new ag(e)}function fg(e){return new lg(e)}class pg{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(zo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class mg{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=zo(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=zo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0Ss(t.trim())).join(", ")),this.buf.push(" ",u,'="',Vu(v),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();tl.hasOwnProperty(n)&&!Fu.hasOwnProperty(n)&&(this.buf.push(""),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Vu(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Cg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Eg=/([^\#-~ |!])/g;function Vu(e){return e.replace(/&/g,"&").replace(Cg,function(t){return""+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Eg,function(t){return""+t.charCodeAt(0)+";"}).replace(//g,">")}let la;function Uu(e,t){let n=null;try{la=la||function Ru(e){const t=new mg(e);return function gg(){try{return!!(new window.DOMParser).parseFromString(zo(""),"text/html")}catch(e){return!1}}()?new pg(t):t}(e);let i=t?String(t):"";n=la.getInertBodyElement(i);let o=5,l=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=l,l=n.innerHTML,n=la.getInertBodyElement(i)}while(i!==l);return zo((new bg).sanitizeChildren(rl(n)||n))}finally{if(n){const i=rl(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function rl(e){return"content"in e&&function Dg(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var vi=(()=>((vi=vi||{})[vi.NONE=0]="NONE",vi[vi.HTML=1]="HTML",vi[vi.STYLE=2]="STYLE",vi[vi.SCRIPT=3]="SCRIPT",vi[vi.URL=4]="URL",vi[vi.RESOURCE_URL=5]="RESOURCE_URL",vi))();function Hu(e){const t=Is();return t?Su(t.sanitize(vi.HTML,e)||""):Go(e,"HTML")?Su(go(e)):Uu(T(),z(e))}function ol(e){const t=Is();return t?t.sanitize(vi.URL,e)||"":Go(e,"URL")?go(e):Ss(z(e))}function Is(){const e=it();return e&&e[12]}const Gu="__ngContext__";function Gi(e,t){e[Gu]=t}function al(e){const t=function Ps(e){return e[Gu]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function cl(e){return e.ngOriginalError}function Vg(e,...t){e.error(...t)}class ca{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function Bg(e){return e&&e.ngErrorLogger||Vg}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&cl(t);for(;n&&cl(n);)n=cl(n);return n||null}}const Kg=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(gt))();function Ku(e){return e.ownerDocument}function to(e){return e instanceof Function?e():e}var no=(()=>((no=no||{})[no.Important=1]="Important",no[no.DashCase=2]="DashCase",no))();function dl(e,t){return undefined(e,t)}function Rs(e){const t=e[3];return bi(t)?t[3]:t}function hl(e){return ed(e[13])}function fl(e){return ed(e[4])}function ed(e){for(;null!==e&&!bi(e);)e=e[4];return e}function Wo(e,t,n,i,o){if(null!=i){let l,u=!1;bi(i)?l=i:Wn(i)&&(u=!0,i=i[0]);const p=ut(i);0===e&&null!==n?null==o?sd(t,n,p):xo(t,n,p,o||null,!0):1===e&&null!==n?xo(t,n,p,o||null,!0):2===e?function fd(e,t,n){const i=ua(e,t);i&&function l_(e,t,n,i){se(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,p,u):3===e&&t.destroyNode(p),null!=l&&function d_(e,t,n,i,o){const l=n[7];l!==ut(n)&&Wo(t,e,i,l,o);for(let p=10;p0&&(e[n-1][4]=i[4]);const l=ta(e,10+t);!function e_(e,t){ks(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const u=l[19];null!==u&&u.detachView(l[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function id(e,t){if(!(256&t[2])){const n=t[11];se(n)&&n.destroyNode&&ks(e,t,n,3,null,null),function i_(e){let t=e[13];if(!t)return _l(e[1],e);for(;t;){let n=null;if(Wn(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Wn(t)&&_l(t[1],t),t=t[3];null===t&&(t=e),Wn(t)&&_l(t[1],t),n=t&&t[4]}t=n}}(t)}}function _l(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function a_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[o=I]():i[o=-I].unsubscribe(),l+=2}else{const u=i[o=n[l+1]];n[l].call(u)}if(null!==i){for(let l=o+1;ll?"":o[$+1].toLowerCase();const Ie=8&i?he:null;if(Ie&&-1!==gd(Ie,I,0)||2&i&&I!==he){if(Vr(i))return!1;u=!0}}}}else{if(!u&&!Vr(i)&&!Vr(v))return!1;if(u&&Vr(v))continue;u=!1,i=v|1&i}}return Vr(i)||u}function Vr(e){return 0==(1&e)}function g_(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let l=!1;for(;o-1)for(n++;n0?'="'+p+'"':"")+"]"}else 8&i?o+="."+u:4&i&&(o+=" "+u);else""!==o&&!Vr(u)&&(t+=bd(l,o),o=""),i=u,l=l||!Vr(i);n++}return""!==o&&(t+=bd(l,o)),t}const on={};function Cd(e){Ed(rn(),it(),Bn()+e,y())}function Ed(e,t,n,i){if(!i)if(3==(3&t[2])){const l=e.preOrderCheckHooks;null!==l&&hn(t,l,n)}else{const l=e.preOrderHooks;null!==l&&Kn(t,l,0,n)}gi(n)}function fa(e,t){return e<<17|t<<2}function Ur(e){return e>>17&32767}function El(e){return 2|e}function _o(e){return(131068&e)>>2}function Dl(e,t){return-131069&e|t<<2}function Ml(e){return 1|e}function Rd(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&Ed(e,t,20,y()),n(i,o)}finally{gi(l)}}function Fd(e,t,n){if(Wi(t)){const o=t.directiveEnd;for(let l=t.directiveStart;l0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(p)!=v&&p.push(v),p.push(i,o,u)}}function zd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Gd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function q_(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&Bl(n)}}function Bl(e){for(let i=hl(e);null!==i;i=fl(i))for(let o=10;o0&&Bl(l)}const n=e[1].components;if(null!==n)for(let i=0;i0&&Bl(o)}}function iv(e,t){const n=Nn(t,e),i=n[1];(function rv(e,t){for(let n=t.length;nPromise.resolve(null))();function Kd(e){return e[7]||(e[7]=[])}function qd(e){return e.cleanup||(e.cleanup=[])}function Qd(e,t,n){return(null===e||Xn(e))&&(n=function mn(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Jd(e,t){const n=e[9],i=n?n.get(ca,null):null;i&&i.handleError(t)}function Xd(e,t,n,i,o){for(let l=0;lthis.processProvider(p,t,n)),Xr([t],p=>this.processInjectorType(p,[],l)),this.records.set(zl,qo(void 0,this));const u=this.records.get(Gl);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:X(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Ds,i=S.Default){this.assertNotDestroyed();const o=Eu(this),l=F(void 0);try{if(!(i&S.SkipSelf)){let p=this.records.get(t);if(void 0===p){const v=function bv(e){return"function"==typeof e||"object"==typeof e&&e instanceof _i}(t)&&ze(t);p=v&&this.injectableDefInScope(v)?qo(Wl(t),Ns):null,this.records.set(t,p)}if(null!=p)return this.hydrate(t,p)}return(i&S.Self?th():this.parent).get(t,n=i&S.Optional&&n===Ds?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[ia]=u[ia]||[]).unshift(X(t)),o)throw u;return function Wm(e,t,n,i){const o=e[ia];throw t[Cu]&&o.unshift(t[Cu]),e.message=function Ym(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=X(t);if(Array.isArray(t))o=t.map(X).join(" -> ");else if("object"==typeof t){let l=[];for(let u in t)if(t.hasOwnProperty(u)){let p=t[u];l.push(u+":"+("string"==typeof p?JSON.stringify(p):X(p)))}o=`{${l.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(Hm,"\n ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[ia]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{F(l),Eu(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,o)=>t.push(X(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ke(205,!1)}processInjectorType(t,n,i){if(!(t=K(t)))return!1;let o=yt(t);const l=null==o&&t.ngModule||void 0,u=void 0===l?t:l,p=-1!==i.indexOf(u);if(void 0!==l&&(o=yt(l)),null==o)return!1;if(null!=o.imports&&!p){let k;i.push(u);try{Xr(o.imports,$=>{this.processInjectorType($,n,i)&&(void 0===k&&(k=[]),k.push($))})}finally{}if(void 0!==k)for(let $=0;$this.processProvider(qe,he,Ie||j))}}this.injectorDefTypes.add(u);const v=Di(u)||(()=>new u);this.records.set(u,qo(v,Ns));const I=o.providers;if(null!=I&&!p){const k=t;Xr(I,$=>this.processProvider($,k,I))}return void 0!==l&&void 0!==t.providers}processProvider(t,n,i){let o=Qo(t=K(t))?t:K(t&&t.provide);const l=function pv(e,t,n){return oh(e)?qo(void 0,e.useValue):qo(rh(e),Ns)}(t);if(Qo(t)||!0!==t.multi)this.records.get(o);else{let u=this.records.get(o);u||(u=qo(void 0,Ns,!0),u.factory=()=>Qa(u.multi),this.records.set(o,u)),o=t,u.multi.push(t)}this.records.set(o,l)}hydrate(t,n){return n.value===Ns&&(n.value=dv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function yv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=K(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Wl(e){const t=ze(e),n=null!==t?t.factory:Di(e);if(null!==n)return n;if(e instanceof _i)throw new Ke(204,!1);if(e instanceof Function)return function fv(e){const t=e.length;if(t>0)throw Es(t,"?"),new Ke(204,!1);const n=function xt(e){const t=e&&(e[Ft]||e[Oe]);if(t){const n=function Ut(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Ke(204,!1)}function rh(e,t,n){let i;if(Qo(e)){const o=K(e);return Di(o)||Wl(o)}if(oh(e))i=()=>K(e.useValue);else if(function gv(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Qa(e.deps||[]));else if(function mv(e){return!(!e||!e.useExisting)}(e))i=()=>Fi(K(e.useExisting));else{const o=K(e&&(e.useClass||e.provide));if(!function vv(e){return!!e.deps}(e))return Di(o)||Wl(o);i=()=>new o(...Qa(e.deps))}return i}function qo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function oh(e){return null!==e&&"object"==typeof e&&zm in e}function Qo(e){return"function"==typeof e}let Hr=(()=>{class e{static create(n,i){var o;if(Array.isArray(n))return nh({name:""},i,n,"");{const l=null!==(o=n.name)&&void 0!==o?o:"";return nh({name:l},n.parent,n.providers,l)}}}return e.THROW_IF_NOT_FOUND=Ds,e.NULL=new eh,e.\u0275prov=J({token:e,providedIn:"any",factory:()=>Fi(zl)}),e.__NG_ELEMENT_ID__=-1,e})();function xv(e,t){kt(al(e)[1],Zn())}function Kl(e){let t=function _h(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(Xn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Ke(903,"");o=t.\u0275dir}if(o){if(n){i.push(o);const u=e;u.inputs=ql(e.inputs),u.declaredInputs=ql(e.declaredInputs),u.outputs=ql(e.outputs);const p=o.hostBindings;p&&Pv(e,p);const v=o.viewQuery,I=o.contentQueries;if(v&&Ov(e,v),I&&Iv(e,I),ue(e.inputs,o.inputs),ue(e.declaredInputs,o.declaredInputs),ue(e.outputs,o.outputs),Xn(o)&&o.data.animation){const k=e.data;k.animation=(k.animation||[]).concat(o.data.animation)}}const l=o.features;if(l)for(let u=0;u=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=ko(o.hostAttrs,n=ko(n,o.hostAttrs))}}(i)}function ql(e){return e===V?{}:e===j?[]:e}function Ov(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function Iv(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,l)=>{t(i,o,l),n(i,o,l)}:t}function Pv(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}let ya=null;function Jo(){if(!ya){const e=gt.Symbol;if(e&&e.iterator)ya=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;np(ut(vn[i.index])):i.index;if(se(n)){let vn=null;if(!p&&v&&(vn=function ly(e,t,n,i){const o=e.cleanup;if(null!=o)for(let l=0;lv?p[v]:null}"string"==typeof u&&(l+=2)}return null}(e,t,o,i.index)),null!==vn)(vn.__ngLastListenerFn__||vn).__ngNextListenerFn__=l,vn.__ngLastListenerFn__=l,Ie=!1;else{l=cc(i,t,$,l,!1);const Sn=n.listen(Mt,o,l);he.push(l,Sn),k&&k.push(o,jt,tt,tt+1)}}else l=cc(i,t,$,l,!0),Mt.addEventListener(o,l,u),he.push(l),k&&k.push(o,jt,tt,u)}else l=cc(i,t,$,l,!1);const qe=i.outputs;let lt;if(Ie&&null!==qe&&(lt=qe[o])){const ft=lt.length;if(ft)for(let Mt=0;Mt0;)t=t[15],e--;return t}(e,_.lFrame.contextLView))[8]}(e)}function cy(e,t){let n=null;const i=function __(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o=0}const Ti={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sf(e){return e.substring(Ti.key,Ti.keyEnd)}function af(e,t){const n=Ti.textEnd;return n===t?-1:(t=Ti.keyEnd=function gy(e,t,n){for(;t32;)t++;return t}(e,Ti.key=t,n),cs(e,t,n))}function cs(e,t,n){for(;t=0;n=af(t,n))Cr(e,sf(t),!0)}function zr(e,t,n,i){const o=it(),l=rn(),u=Z(2);l.firstUpdatePass&&pf(l,e,u,i),t!==on&&$i(o,u,t)&&gf(l,l.data[Bn()],o,o[11],e,o[u+1]=function Ay(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=X(go(e)))),e}(t,n),i,u)}function Gr(e,t,n,i){const o=rn(),l=Z(2);o.firstUpdatePass&&pf(o,null,l,i);const u=it();if(n!==on&&$i(u,l,n)){const p=o.data[Bn()];if(vf(p,i)&&!ff(o,l)){let v=i?p.classesWithoutHost:p.stylesWithoutHost;null!==v&&(n=ae(v,n||"")),rc(o,p,u,n,i)}else!function wy(e,t,n,i,o,l,u,p){o===on&&(o=j);let v=0,I=0,k=0=e.expandoStartIndex}function pf(e,t,n,i){const o=e.data;if(null===o[n+1]){const l=o[Bn()],u=ff(e,n);vf(l,i)&&null===t&&!u&&(t=!1),t=function by(e,t,n,i){const o=Gt(e);let l=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=Hs(n=pc(null,e,t,n,i),t.attrs,i),l=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==o)if(n=pc(o,e,t,n,i),null===l){let v=function Cy(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==_o(i))return e[Ur(i)]}(e,t,i);void 0!==v&&Array.isArray(v)&&(v=pc(null,e,t,v[1],i),v=Hs(v,t.attrs,i),function Ey(e,t,n,i){e[Ur(n?t.classBindings:t.styleBindings)]=i}(e,t,i,v))}else l=function Dy(e,t,n){let i;const o=t.directiveEnd;for(let l=1+t.directiveStylingLast;l0)&&(I=!0)}else k=n;if(o)if(0!==v){const he=Ur(e[p+1]);e[i+1]=fa(he,p),0!==he&&(e[he+1]=Dl(e[he+1],i)),e[p+1]=function M_(e,t){return 131071&e|t<<17}(e[p+1],i)}else e[i+1]=fa(p,0),0!==p&&(e[p+1]=Dl(e[p+1],i)),p=i;else e[i+1]=fa(v,0),0===p?p=i:e[v+1]=Dl(e[v+1],i),v=i;I&&(e[i+1]=El(e[i+1])),rf(e,k,i,!0),rf(e,k,i,!1),function dy(e,t,n,i,o){const l=o?e.residualClasses:e.residualStyles;null!=l&&"string"==typeof t&&Ho(l,t)>=0&&(n[i+1]=Ml(n[i+1]))}(t,k,e,i,l),u=fa(p,v),l?t.classBindings=u:t.styleBindings=u}(o,l,t,n,u,i)}}function pc(e,t,n,i,o){let l=null;const u=n.directiveEnd;let p=n.directiveStylingLast;for(-1===p?p=n.directiveStart:p++;p0;){const v=e[o],I=Array.isArray(v),k=I?v[1]:v,$=null===k;let he=n[o+1];he===on&&(he=$?j:void 0);let Ie=$?Za(he,i):k===i?he:void 0;if(I&&!Aa(Ie)&&(Ie=Za(v,i)),Aa(Ie)&&(p=Ie,u))return p;const qe=e[o+1];o=u?Ur(qe):_o(qe)}if(null!==t){let v=l?t.residualClasses:t.residualStyles;null!=v&&(p=Za(v,i))}return p}function Aa(e){return void 0!==e}function vf(e,t){return 0!=(e.flags&(t?16:32))}function yf(e,t=""){const n=it(),i=rn(),o=e+20,l=i.firstCreatePass?Yo(i,o,1,t,null):i.data[o],u=n[o]=function pl(e,t){return se(e)?e.createText(t):e.createTextNode(t)}(n[11],t);da(i,n,u,l),Ni(l,!1)}function mc(e){return Ta("",e,""),mc}function Ta(e,t,n){const i=it(),o=es(i,e,t,n);return o!==on&&vo(i,Bn(),o),Ta}function gc(e,t,n,i,o){const l=it(),u=function ts(e,t,n,i,o,l){const p=So(e,h(),n,o);return Z(2),p?t+z(n)+i+z(o)+l:on}(l,e,t,n,i,o);return u!==on&&vo(l,Bn(),u),gc}function _c(e,t,n,i,o,l,u){const p=it(),v=ns(p,e,t,n,i,o,l,u);return v!==on&&vo(p,Bn(),v),_c}function Af(e,t,n){Gr(Cr,so,es(it(),e,t,n),!0)}function vc(e,t,n){const i=it();return $i(i,N(),t)&&Er(rn(),Vn(),i,e,t,i[11],n,!0),vc}function yc(e,t,n){const i=it();if($i(i,N(),t)){const l=rn(),u=Vn();Er(l,u,i,e,t,Qd(Gt(l.data),u,i),n,!0)}return yc}const Oo=void 0;var $y=["en",[["a","p"],["AM","PM"],Oo],[["AM","PM"],Oo,Oo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Oo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Oo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Oo,"{1} 'at' {0}",Oo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Gy(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let us={};function bc(e){const t=function Wy(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Nf(t);if(n)return n;const i=t.split("-")[0];if(n=Nf(i),n)return n;if("en"===i)return $y;throw new Error(`Missing locale data for the locale "${e}".`)}function Lf(e){return bc(e)[Kt.PluralCase]}function Nf(e){return e in us||(us[e]=gt.ng&>.ng.common&>.ng.common.locales&>.ng.common.locales[e]),us[e]}var Kt=(()=>((Kt=Kt||{})[Kt.LocaleId=0]="LocaleId",Kt[Kt.DayPeriodsFormat=1]="DayPeriodsFormat",Kt[Kt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Kt[Kt.DaysFormat=3]="DaysFormat",Kt[Kt.DaysStandalone=4]="DaysStandalone",Kt[Kt.MonthsFormat=5]="MonthsFormat",Kt[Kt.MonthsStandalone=6]="MonthsStandalone",Kt[Kt.Eras=7]="Eras",Kt[Kt.FirstDayOfWeek=8]="FirstDayOfWeek",Kt[Kt.WeekendRange=9]="WeekendRange",Kt[Kt.DateFormat=10]="DateFormat",Kt[Kt.TimeFormat=11]="TimeFormat",Kt[Kt.DateTimeFormat=12]="DateTimeFormat",Kt[Kt.NumberSymbols=13]="NumberSymbols",Kt[Kt.NumberFormats=14]="NumberFormats",Kt[Kt.CurrencyCode=15]="CurrencyCode",Kt[Kt.CurrencySymbol=16]="CurrencySymbol",Kt[Kt.CurrencyName=17]="CurrencyName",Kt[Kt.Currencies=18]="Currencies",Kt[Kt.Directionality=19]="Directionality",Kt[Kt.PluralCase=20]="PluralCase",Kt[Kt.ExtraData=21]="ExtraData",Kt))();const xa="en-US";let Bf=xa;function Dc(e,t,n,i,o){if(e=K(e),Array.isArray(e))for(let l=0;l>20;if(Qo(e)||!e.multi){const Ie=new xr(v,o,Us),qe=wc(p,t,o?k:k+he,$);-1===qe?(Dt(B(I,u),l,p),Mc(l,e,t.length),t.push(p),I.directiveStart++,I.directiveEnd++,o&&(I.providerIndexes+=1048576),n.push(Ie),u.push(Ie)):(n[qe]=Ie,u[qe]=Ie)}else{const Ie=wc(p,t,k+he,$),qe=wc(p,t,k,k+he),lt=Ie>=0&&n[Ie],ft=qe>=0&&n[qe];if(o&&!ft||!o&&!lt){Dt(B(I,u),l,p);const Mt=function Gb(e,t,n,i,o){const l=new xr(e,n,Us);return l.multi=[],l.index=t,l.componentProviders=0,lp(l,o,i&&!n),l}(o?zb:jb,n.length,o,i,v);!o&&ft&&(n[qe].providerFactory=Mt),Mc(l,e,t.length,0),t.push(p),I.directiveStart++,I.directiveEnd++,o&&(I.providerIndexes+=1048576),n.push(Mt),u.push(Mt)}else Mc(l,e,Ie>-1?Ie:qe,lp(n[o?qe:Ie],v,!o&&i));!o&&i&&ft&&n[qe].componentProviders++}}}function Mc(e,t,n,i){const o=Qo(t),l=function _v(e){return!!e.useClass}(t);if(o||l){const v=(l?K(t.useClass):t).prototype.ngOnDestroy;if(v){const I=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const k=I.indexOf(n);-1===k?I.push(n,[i,v]):I[k+1].push(i,v)}else I.push(n,v)}}}function lp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function wc(e,t,n,i){for(let o=n;o{n.providersResolver=(i,o)=>function Hb(e,t,n){const i=rn();if(i.firstCreatePass){const o=Xn(e);Dc(n,i.data,i.blueprint,o,!0),Dc(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class up{}class Yb{resolveComponentFactory(t){throw function Wb(e){const t=Error(`No component factory found for ${X(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ra=(()=>{class e{}return e.NULL=new Yb,e})();function Zb(){return hs(Zn(),it())}function hs(e,t){return new Ws(Vt(e,t))}let Ws=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Zb,e})();function Kb(e){return e instanceof Ws?e.nativeElement:e}class hp{}let qb=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Jb(){const e=it(),n=Nn(Zn().index,e);return function Qb(e){return e[11]}(Wn(n)?n:e)}(),e})(),Xb=(()=>{class e{}return e.\u0275prov=J({token:e,providedIn:"root",factory:()=>null}),e})();class fp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const e0=new fp("13.2.5"),Tc={};function ka(e,t,n,i,o=!1){for(;null!==n;){const l=t[n.index];if(null!==l&&i.push(ut(l)),bi(l))for(let p=10;p-1&&(gl(t,i),ta(n,i))}this._attachedToViewContainer=!1}id(this._lView[1],this._lView)}onDestroy(t){Vd(this._lView[1],this._lView,null,t)}markForCheck(){Vl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Hl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function sv(e,t,n){r(!0);try{Hl(e,t,n)}finally{r(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Ke(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function n_(e,t){ks(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ke(902,"");this._appRef=t}}class t0 extends Ys{constructor(t){super(t),this._view=t}detectChanges(){Zd(this._view)}checkNoChanges(){!function av(e){r(!0);try{Zd(e)}finally{r(!1)}}(this._view)}get context(){return null}}class pp extends Ra{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Jt(t);return new xc(n,this.ngModule)}}function mp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class xc extends up{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function E_(e){return e.map(C_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return mp(this.componentDef.inputs)}get outputs(){return mp(this.componentDef.outputs)}create(t,n,i,o){const l=(o=o||this.ngModule)?function r0(e,t){return{get:(n,i,o)=>{const l=e.get(n,Tc,o);return l!==Tc||i===Tc?l:t.get(n,i,o)}}}(t,o.injector):t,u=l.get(hp,Ge),p=l.get(Xb,null),v=u.createRenderer(null,this.componentDef),I=this.componentDef.selectors[0][0]||"div",k=i?function Bd(e,t,n){if(se(e))return e.selectRootElement(t,n===St.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(v,i,this.componentDef.encapsulation):ml(u.createRenderer(null,this.componentDef),I,function n0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(I)),$=this.componentDef.onPush?576:528,he=function gh(e,t){return{components:[],scheduler:e||Kg,clean:lv,playerHandler:t||null,flags:0}}(),Ie=ga(0,null,null,1,0,null,null,null,null,null),qe=Fs(null,Ie,he,$,null,null,u,v,p,l);let lt,ft;zn(qe);try{const Mt=function ph(e,t,n,i,o,l){const u=n[1];n[20]=e;const v=Yo(u,20,2,"#host",null),I=v.mergedAttrs=t.hostAttrs;null!==I&&(va(v,I,!0),null!==e&&(Ro(o,e,I),null!==v.classes&&Cl(o,e,v.classes),null!==v.styles&&md(o,e,v.styles)));const k=i.createRenderer(e,t),$=Fs(n,Ld(t),null,t.onPush?64:16,n[20],v,i,k,l||null,null);return u.firstCreatePass&&(Dt(B(v,n),u,t.type),Gd(u,v),$d(v,n.length,1)),_a(n,$),n[20]=$}(k,this.componentDef,qe,u,v);if(k)if(i)Ro(v,k,["ng-version",e0.full]);else{const{attrs:tt,classes:jt}=function D_(e){const t=[],n=[];let i=1,o=2;for(;i0&&Cl(v,k,jt.join(" "))}if(ft=_n(Ie,20),void 0!==n){const tt=ft.projection=[];for(let jt=0;jtv(u,t)),t.contentQueries){const v=Zn();t.contentQueries(1,u,v.directiveStart)}const p=Zn();return!l.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(gi(p.index),jd(n[1],p,0,p.directiveStart,p.directiveEnd,t),zd(t,u)),u}(Mt,this.componentDef,qe,he,[xv]),Ls(Ie,qe,null)}finally{Bi()}return new s0(this.componentType,lt,hs(ft,qe),qe,ft)}}class s0 extends class $b{}{constructor(t,n,i,o,l){super(),this.location=i,this._rootLView=o,this._tNode=l,this.instance=n,this.hostView=this.changeDetectorRef=new t0(o),this.componentType=t}get injector(){return new Lo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class fs{}class gp{}const ps=new Map;class yp extends fs{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new pp(this);const i=Un(t);this._bootstrapComponents=to(i.bootstrap),this._r3Injector=ih(t,n,[{provide:fs,useValue:this},{provide:Ra,useValue:this.componentFactoryResolver}],X(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Hr.THROW_IF_NOT_FOUND,i=S.Default){return t===Hr||t===fs||t===zl?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Sc extends gp{constructor(t){super(),this.moduleType=t,null!==Un(t)&&function l0(e){const t=new Set;!function n(i){const o=Un(i,!0),l=o.id;null!==l&&(function _p(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${X(t)} vs ${X(t.name)}`)}(l,ps.get(l),i),ps.set(l,i));const u=to(o.imports);for(const p of u)t.has(p)||(t.add(p),n(p))}(e)}(t)}create(t){return new yp(this.moduleType,t)}}function bp(e,t,n,i){return Cp(it(),a(),e,t,n,i)}function Cp(e,t,n,i,o,l){const u=t+n;return $i(e,u,o)?function ro(e,t,n){return e[t]=n}(e,u+1,l?i.call(l,o):i(o)):function Zs(e,t){const n=e[t];return n===on?void 0:n}(e,u+1)}function Ap(e,t){const n=rn();let i;const o=e+20;n.firstCreatePass?(i=function v0(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const l=i.factory||(i.factory=Di(i.type)),u=F(Us);try{const p=ys(!1),v=l();return ys(p),function Uv(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,it(),o,v),v}finally{F(u)}}function Tp(e,t,n){const i=e+20,o=it(),l=xn(o,i);return function Ks(e,t){return e[1].data[t].pure}(o,i)?Cp(o,a(),t,l.transform,n,l):l.transform(n)}function Oc(e){return t=>{setTimeout(e,void 0,t)}}const ao=class D0 extends c.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var o,l,u;let p=t,v=n||(()=>null),I=i;if(t&&"object"==typeof t){const $=t;p=null===(o=$.next)||void 0===o?void 0:o.bind($),v=null===(l=$.error)||void 0===l?void 0:l.bind($),I=null===(u=$.complete)||void 0===u?void 0:u.bind($)}this.__isAsync&&(v=Oc(v),p&&(p=Oc(p)),I&&(I=Oc(I)));const k=super.subscribe({next:p,error:v,complete:I});return t instanceof s.w0&&t.add(k),k}};function M0(){return this._results[Jo()]()}class Fa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Jo(),i=Fa.prototype;i[n]||(i[n]=M0)}get changes(){return this._changes||(this._changes=new ao)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const o=Or(t);(this._changesDetected=!function Pm(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=T0,e})();const w0=qs,A0=class extends w0{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Fs(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const l=this._declarationLView[19];return null!==l&&(i[19]=l.createEmbeddedView(n)),Ls(n,i,t),new Ys(i)}};function T0(){return La(Zn(),it())}function La(e,t){return 4&e.type?new A0(t,e,hs(e,t)):null}let Na=(()=>{class e{}return e.__NG_ELEMENT_ID__=x0,e})();function x0(){return Op(Zn(),it())}const S0=Na,xp=class extends S0{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return hs(this._hostTNode,this._hostLView)}get injector(){return new Lo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ze(this._hostTNode,this._hostLView);if(Fo(t)){const n=ho(t,this._hostLView),i=bo(t);return new Lo(n[1].data[i+8],n)}return new Lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Sp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const o=t.createEmbeddedView(n||{});return this.insert(o,i),o}createComponent(t,n,i,o,l){const u=t&&!function Cs(e){return"function"==typeof e}(t);let p;if(u)p=n;else{const $=n||{};p=$.index,i=$.injector,o=$.projectableNodes,l=$.ngModuleRef}const v=u?t:new xc(Jt(t)),I=i||this.parentInjector;if(!l&&null==v.ngModule){const he=(u?I:this.parentInjector).get(fs,null);he&&(l=he)}const k=v.create(I,o,void 0,l);return this.insert(k.hostView,p),k}insert(t,n){const i=t._lView,o=i[1];if(function Ii(e){return bi(e[3])}(i)){const k=this.indexOf(t);if(-1!==k)this.detach(k);else{const $=i[3],he=new xp($,$[6],$[3]);he.detach(he.indexOf(t))}}const l=this._adjustIndex(n),u=this._lContainer;!function r_(e,t,n,i){const o=10+i,l=n.length;i>0&&(n[o-1][4]=t),i0)i.push(u[p/2]);else{const I=l[p+1],k=t[-v];for(let $=10;${class e{constructor(n){this.appInits=n,this.resolve=Ua,this.reject=Ua,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{l.subscribe({complete:p,error:v})});n.push(u)}}Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Fi(nm,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const im=new _i("AppId",{providedIn:"root",factory:function rm(){return`${zc()}${zc()}${zc()}`}});function zc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const om=new _i("Platform Initializer"),sm=new _i("Platform ID"),am=new _i("appBootstrapListener");let lm=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();const Gc=new _i("LocaleId",{providedIn:"root",factory:()=>Mu(Gc,S.Optional|S.SkipSelf)||function tC(){return"undefined"!=typeof $localize&&$localize.locale||xa}()}),nC=new _i("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class iC{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let rC=(()=>{class e{compileModuleSync(n){return new Sc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),l=to(Un(n).declarations).reduce((u,p)=>{const v=Jt(p);return v&&u.push(new xc(v)),u},[]);return new iC(i,l)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sC=(()=>Promise.resolve(0))();function $c(e){"undefined"==typeof Zone?sC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class $r{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ao(!1),this.onMicrotaskEmpty=new ao(!1),this.onStable=new ao(!1),this.onError=new ao(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function aC(){let e=gt.requestAnimationFrame,t=gt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function uC(e){const t=()=>{!function cC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(gt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Yc(e),e.isCheckStableRunning=!0,Wc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Yc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,l,u,p)=>{try{return cm(e),n.invokeTask(o,l,u,p)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===l.type||e.shouldCoalesceRunChangeDetection)&&t(),um(e)}},onInvoke:(n,i,o,l,u,p,v)=>{try{return cm(e),n.invoke(o,l,u,p,v)}finally{e.shouldCoalesceRunChangeDetection&&t(),um(e)}},onHasTask:(n,i,o,l)=>{n.hasTask(o,l),i===o&&("microTask"==l.change?(e._hasPendingMicrotasks=l.microTask,Yc(e),Wc(e)):"macroTask"==l.change&&(e.hasPendingMacrotasks=l.macroTask))},onHandleError:(n,i,o,l)=>(n.handleError(o,l),e.runOutsideAngular(()=>e.onError.emit(l)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$r.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($r.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const l=this._inner,u=l.scheduleEventTask("NgZoneEvent: "+o,t,lC,Ua,Ua);try{return l.runTask(u,n,i)}finally{l.cancelTask(u)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const lC={};function Wc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Yc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function um(e){e._nesting--,Wc(e)}class dC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ao,this.onMicrotaskEmpty=new ao,this.onStable=new ao,this.onError=new ao}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,o){return t.apply(n,i)}}let dm=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$r.assertNotInAngularZone(),$c(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())$c(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let l=-1;i&&i>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==l),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:l,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(Fi($r))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})(),hm=(()=>{class e{constructor(){this._applications=new Map,Zc.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Zc.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();class hC{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function fC(e){Zc=e}let Wr,Zc=new hC;const fm=new _i("AllowMultipleToken");class gC{constructor(t,n){this.name=t,this.token=n}}function pm(e,t,n=[]){const i=`Platform: ${t}`,o=new _i(i);return(l=[])=>{let u=mm();if(!u||u.injector.get(fm,!1))if(e)e(n.concat(l).concat({provide:o,useValue:!0}));else{const p=n.concat(l).concat({provide:o,useValue:!0},{provide:Gl,useValue:"platform"});!function _C(e){if(Wr&&!Wr.destroyed&&!Wr.injector.get(fm,!1))throw new Ke(400,"");Wr=e.get(gm);const t=e.get(om,null);t&&t.forEach(n=>n())}(Hr.create({providers:p,name:i}))}return function vC(e){const t=mm();if(!t)throw new Ke(401,"");return t}()}}function mm(){return Wr&&!Wr.destroyed?Wr:null}let gm=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const p=function yC(e,t){let n;return n="noop"===e?new dC:("zone.js"===e?void 0:e)||new $r({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),v=[{provide:$r,useValue:p}];return p.run(()=>{const I=Hr.create({providers:v,parent:this.injector,name:n.moduleType.name}),k=n.create(I),$=k.injector.get(ca,null);if(!$)throw new Ke(402,"");return p.runOutsideAngular(()=>{const he=p.onError.subscribe({next:Ie=>{$.handleError(Ie)}});k.onDestroy(()=>{qc(this._modules,k),he.unsubscribe()})}),function bC(e,t,n){try{const i=n();return sc(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}($,p,()=>{const he=k.injector.get(jc);return he.runInitializers(),he.donePromise.then(()=>(function qy(e){Nt(e,"Expected localeId to be defined"),"string"==typeof e&&(Bf=e.toLowerCase().replace(/_/g,"-"))}(k.injector.get(Gc,xa)||xa),this._moduleDoBootstrap(k),k))})})}bootstrapModule(n,i=[]){const o=_m({},i);return function pC(e,t,n){const i=new Sc(n);return Promise.resolve(i)}(0,0,n).then(l=>this.bootstrapModuleFactory(l,o))}_moduleDoBootstrap(n){const i=n.injector.get(Kc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Ke(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ke(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Fi(Hr))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();function _m(e,t){return Array.isArray(t)?t.reduce(_m,e):Object.assign(Object.assign({},e),t)}let Kc=(()=>{class e{constructor(n,i,o,l,u){this._zone=n,this._injector=i,this._exceptionHandler=o,this._componentFactoryResolver=l,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const p=new m.y(I=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{I.next(this._stable),I.complete()})}),v=new m.y(I=>{let k;this._zone.runOutsideAngular(()=>{k=this._zone.onStable.subscribe(()=>{$r.assertNotInAngularZone(),$c(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,I.next(!0))})})});const $=this._zone.onUnstable.subscribe(()=>{$r.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{I.next(!1)}))});return()=>{k.unsubscribe(),$.unsubscribe()}});this.isStable=(0,W.T)(p,v.pipe(function ce(e={}){const{connector:t=(()=>new c.x),resetOnError:n=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=e;return l=>{let u=null,p=null,v=null,I=0,k=!1,$=!1;const he=()=>{null==p||p.unsubscribe(),p=null},Ie=()=>{he(),u=v=null,k=$=!1},qe=()=>{const lt=u;Ie(),null==lt||lt.unsubscribe()};return(0,be.e)((lt,ft)=>{I++,!$&&!k&&he();const Mt=v=null!=v?v:t();ft.add(()=>{I--,0===I&&!$&&!k&&(p=te(qe,o))}),Mt.subscribe(ft),u||(u=new Ce.Hp({next:tt=>Mt.next(tt),error:tt=>{$=!0,he(),p=te(Ie,n,tt),Mt.error(tt)},complete:()=>{k=!0,he(),p=te(Ie,i),Mt.complete()}}),(0,le.D)(lt).subscribe(u))})(l)}}()))}bootstrap(n,i){if(!this._initStatus.done)throw new Ke(405,"");let o;o=n instanceof up?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const l=function mC(e){return e.isBoundToModule}(o)?void 0:this._injector.get(fs),p=o.create(Hr.NULL,[],i||o.selector,l),v=p.location.nativeElement,I=p.injector.get(dm,null),k=I&&p.injector.get(hm);return I&&k&&k.registerApplication(v,I),p.onDestroy(()=>{this.detachView(p.hostView),qc(this.components,p),k&&k.unregisterApplication(v)}),this._loadComponent(p),p}tick(){if(this._runningTick)throw new Ke(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;qc(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(am,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(Fi($r),Fi(Hr),Fi(ca),Fi(Ra),Fi(jc))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function qc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let ym=!0;function EC(){ym=!1}let DC=(()=>{class e{}return e.__NG_ELEMENT_ID__=MC,e})();function MC(e){return function wC(e,t,n){if(Yi(e)&&!n){const i=Nn(e.index,t);return new Ys(i,i)}return 47&e.type?new Ys(t[16],t):null}(Zn(),it(),16==(16&e))}class Mm{constructor(){}supports(t){return Bs(t)}create(t){return new IC(t)}}const OC=(e,t)=>t;class IC{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||OC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,l=null;for(;n||i;){const u=!i||n&&n.currentIndex{u=this._trackByFn(o,p),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,p,u,o)),Object.is(n.item,p)||this._addIdentityChange(n,p)):(n=this._mismatch(n,p,u,o),i=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;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=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,o){let l;return null===t?l=this._itTail:(l=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,l,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,l,o)):t=this._addAfter(new PC(n,i),l,o),t}_verifyReinsertion(t,n,i,o){let l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==l?t=this._reinsertAfter(l,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,l=t._nextRemoved;return null===o?this._removalsHead=l:o._nextRemoved=l,null===l?this._removalsTail=o:l._prevRemoved=o,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new wm),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wm),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}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class PC{constructor(t,n){this.item=t,this.trackById=n,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}}class RC{constructor(){this._head=null,this._tail=null}add(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)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class wm{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new RC,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Am(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const l=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,l)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const l=o._prev,u=o._next;return l&&(l._next=u),u&&(u._prev=l),o._next=null,o._prev=null,o}const i=new FC(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;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}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class FC{constructor(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}}function xm(){return new tu([new Mm])}let tu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||xm()),deps:[[e,new Ts,new As]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new Ke(901,"")}}return e.\u0275prov=J({token:e,providedIn:"root",factory:xm}),e})();function Sm(){return new nu([new Tm])}let nu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Sm()),deps:[[e,new Ts,new As]]}}find(n){const i=this.factories.find(l=>l.supports(n));if(i)return i;throw new Ke(901,"")}}return e.\u0275prov=J({token:e,providedIn:"root",factory:Sm}),e})();const BC=pm(null,"core",[{provide:sm,useValue:"unknown"},{provide:gm,deps:[Hr]},{provide:hm,deps:[]},{provide:lm,deps:[]}]);let VC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Fi(Kc))},e.\u0275mod=Se({type:e}),e.\u0275inj=Ve({}),e})()},2382:($e,ve,b)=>{b.d(ve,{Zs:()=>T,sg:()=>ir,u5:()=>Nn,Cf:()=>fe,JU:()=>Pe,a5:()=>ot,JL:()=>F,F:()=>pn,kI:()=>_e,_Y:()=>Tn});var c=b(4893),m=(b(9808),b(8306)),W=b(4742),le=b(8421),q=b(3269),Ce=b(5403),be=b(3268),ce=b(1810),oe=b(2076),ue=b(4004);const Pe=new c.OlP("NgValueAccessor");function z(x){return null==x||0===x.length}function Q(x){return null!=x&&"number"==typeof x.length}const fe=new c.OlP("NgValidators"),Ae=new c.OlP("NgAsyncValidators"),Fe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[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])?)*$/;class _e{static min(D){return function Ee(x){return D=>{if(z(D.value)||z(x))return null;const _=parseFloat(D.value);return!isNaN(_)&&_{if(z(D.value)||z(x))return null;const _=parseFloat(D.value);return!isNaN(_)&&_>x?{max:{max:x,actual:D.value}}:null}}(D)}static required(D){return we(D)}static requiredTrue(D){return Xe(D)}static email(D){return function Re(x){return z(x.value)||Fe.test(x.value)?null:{email:!0}}(D)}static minLength(D){return function vt(x){return D=>z(D.value)||!Q(D.value)?null:D.value.lengthQ(D.value)&&D.value.length>x?{maxlength:{requiredLength:x,actualLength:D.value.length}}:null}(D)}static pattern(D){return function Qt(x){if(!x)return _t;let D,_;return"string"==typeof x?(_="","^"!==x.charAt(0)&&(_+="^"),_+=x,"$"!==x.charAt(x.length-1)&&(_+="$"),D=new RegExp(_)):(_=x.toString(),D=x),U=>{if(z(U.value))return null;const We=U.value;return D.test(We)?null:{pattern:{requiredPattern:_,actualValue:We}}}}(D)}static nullValidator(D){return null}static compose(D){return nn(D)}static composeAsync(D){return He(D)}}function we(x){return z(x.value)?{required:!0}:null}function Xe(x){return!0===x.value?null:{required:!0}}function _t(x){return null}function It(x){return null!=x}function $t(x){const D=(0,c.QGY)(x)?(0,oe.D)(x):x;return(0,c.CqO)(D),D}function Ot(x){let D={};return x.forEach(_=>{D=null!=_?Object.assign(Object.assign({},D),_):D}),0===Object.keys(D).length?null:D}function cn(x,D){return D.map(_=>_(x))}function Tt(x){return x.map(D=>function Nt(x){return!x.validate}(D)?D:_=>D.validate(_))}function nn(x){if(!x)return null;const D=x.filter(It);return 0==D.length?null:function(_){return Ot(cn(_,D))}}function Qe(x){return null!=x?nn(Tt(x)):null}function He(x){if(!x)return null;const D=x.filter(It);return 0==D.length?null:function(_){return function te(...x){const D=(0,q.jO)(x),{args:_,keys:U}=(0,W.D)(x),We=new m.y(Et=>{const{length:Cn}=_;if(!Cn)return void Et.complete();const mi=new Array(Cn);let ji=Cn,Ri=Cn;for(let it=0;it{rn||(rn=!0,Ri--),mi[it]=qr},()=>ji--,void 0,()=>{(!ji||!rn)&&(Ri||Et.next(U?(0,ce.n)(U,mi):mi),Et.complete())}))}});return D?We.pipe((0,be.Z)(D)):We}(cn(_,D).map($t)).pipe((0,ue.U)(Ot))}}function J(x){return null!=x?He(Tt(x)):null}function Y(x,D){return null===x?[D]:Array.isArray(x)?[...x,D]:[x,D]}function Ve(x){return x._rawValidators}function ze(x){return x._rawAsyncValidators}function st(x){return x?Array.isArray(x)?x:[x]:[]}function xt(x,D){return Array.isArray(x)?x.includes(D):x===D}function Ut(x,D){const _=st(D);return st(x).forEach(We=>{xt(_,We)||_.push(We)}),_}function yt(x,D){return st(D).filter(_=>!xt(x,_))}class Ft{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(D){this._rawValidators=D||[],this._composedValidatorFn=Qe(this._rawValidators)}_setAsyncValidators(D){this._rawAsyncValidators=D||[],this._composedAsyncValidatorFn=J(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(D){this._onDestroyCallbacks.push(D)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(D=>D()),this._onDestroyCallbacks=[]}reset(D){this.control&&this.control.reset(D)}hasError(D,_){return!!this.control&&this.control.hasError(D,_)}getError(D,_){return this.control?this.control.getError(D,_):null}}class ot extends Ft{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Oe extends Ft{get formDirective(){return null}get path(){return null}}let F=(()=>{class x extends class C{constructor(D){this._cd=D}is(D){var _,U,We;return"submitted"===D?!!(null===(_=this._cd)||void 0===_?void 0:_.submitted):!!(null===(We=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===We?void 0:We[D])}}{constructor(_){super(_)}}return x.\u0275fac=function(_){return new(_||x)(c.Y36(Oe,10))},x.\u0275dir=c.lG2({type:x,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(_,U){2&_&&c.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[c.qOj]}),x})();function de(x,D){Zt(x,D),D.valueAccessor.writeValue(x.value),function Ct(x,D){D.valueAccessor.registerOnChange(_=>{x._pendingValue=_,x._pendingChange=!0,x._pendingDirty=!0,"change"===x.updateOn&&Ne(x,D)})}(x,D),function ge(x,D){const _=(U,We)=>{D.valueAccessor.writeValue(U),We&&D.viewToModelUpdate(U)};x.registerOnChange(_),D._registerOnDestroy(()=>{x._unregisterOnChange(_)})}(x,D),function In(x,D){D.valueAccessor.registerOnTouched(()=>{x._pendingTouched=!0,"blur"===x.updateOn&&x._pendingChange&&Ne(x,D),"submit"!==x.updateOn&&x.markAsTouched()})}(x,D),function wt(x,D){if(D.valueAccessor.setDisabledState){const _=U=>{D.valueAccessor.setDisabledState(U)};x.registerOnDisabledChange(_),D._registerOnDestroy(()=>{x._unregisterOnDisabledChange(_)})}}(x,D)}function xe(x,D,_=!0){const U=()=>{};D.valueAccessor&&(D.valueAccessor.registerOnChange(U),D.valueAccessor.registerOnTouched(U)),Yt(x,D),x&&(D._invokeOnDestroyCallbacks(),x._registerOnCollectionChange(()=>{}))}function rt(x,D){x.forEach(_=>{_.registerOnValidatorChange&&_.registerOnValidatorChange(D)})}function Zt(x,D){const _=Ve(x);null!==D.validator?x.setValidators(Y(_,D.validator)):"function"==typeof _&&x.setValidators([_]);const U=ze(x);null!==D.asyncValidator?x.setAsyncValidators(Y(U,D.asyncValidator)):"function"==typeof U&&x.setAsyncValidators([U]);const We=()=>x.updateValueAndValidity();rt(D._rawValidators,We),rt(D._rawAsyncValidators,We)}function Yt(x,D){let _=!1;if(null!==x){if(null!==D.validator){const We=Ve(x);if(Array.isArray(We)&&We.length>0){const Et=We.filter(Cn=>Cn!==D.validator);Et.length!==We.length&&(_=!0,x.setValidators(Et))}}if(null!==D.asyncValidator){const We=ze(x);if(Array.isArray(We)&&We.length>0){const Et=We.filter(Cn=>Cn!==D.asyncValidator);Et.length!==We.length&&(_=!0,x.setAsyncValidators(Et))}}}const U=()=>{};return rt(D._rawValidators,U),rt(D._rawAsyncValidators,U),_}function Ne(x,D){x._pendingDirty&&x.markAsDirty(),x.setValue(x._pendingValue,{emitModelToViewChange:!1}),D.viewToModelUpdate(x._pendingValue),x._pendingChange=!1}function ne(x,D){Zt(x,D)}function Jt(x,D){x._syncPendingControls(),D.forEach(_=>{const U=_.control;"submit"===U.updateOn&&U._pendingChange&&(_.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function bn(x,D){const _=x.indexOf(D);_>-1&&x.splice(_,1)}const Gn="VALID",yi="INVALID",oi="PENDING",hi="DISABLED";function Ui(x){return(fn(x)?x.validators:x)||null}function Hn(x){return Array.isArray(x)?Qe(x):x||null}function ht(x,D){return(fn(D)?D.asyncValidators:x)||null}function qt(x){return Array.isArray(x)?J(x):x||null}function fn(x){return null!=x&&!Array.isArray(x)&&"object"==typeof x}const Rn=x=>x instanceof Ht,si=x=>x instanceof ci;function li(x){return Rn(x)?x.value:x.getRawValue()}function Xt(x,D){const _=si(x),U=x.controls;if(!(_?Object.keys(U):U).length)throw new c.vHH(1e3,"");if(!U[D])throw new c.vHH(1001,"")}function $n(x,D){si(x),x._forEachChild((U,We)=>{if(void 0===D[We])throw new c.vHH(1002,"")})}class fi{constructor(D,_){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=D,this._rawAsyncValidators=_,this._composedValidatorFn=Hn(this._rawValidators),this._composedAsyncValidatorFn=qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(D){this._rawValidators=this._composedValidatorFn=D}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(D){this._rawAsyncValidators=this._composedAsyncValidatorFn=D}get parent(){return this._parent}get valid(){return this.status===Gn}get invalid(){return this.status===yi}get pending(){return this.status==oi}get disabled(){return this.status===hi}get enabled(){return this.status!==hi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(D){this._rawValidators=D,this._composedValidatorFn=Hn(D)}setAsyncValidators(D){this._rawAsyncValidators=D,this._composedAsyncValidatorFn=qt(D)}addValidators(D){this.setValidators(Ut(D,this._rawValidators))}addAsyncValidators(D){this.setAsyncValidators(Ut(D,this._rawAsyncValidators))}removeValidators(D){this.setValidators(yt(D,this._rawValidators))}removeAsyncValidators(D){this.setAsyncValidators(yt(D,this._rawAsyncValidators))}hasValidator(D){return xt(this._rawValidators,D)}hasAsyncValidator(D){return xt(this._rawAsyncValidators,D)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(D={}){this.touched=!0,this._parent&&!D.onlySelf&&this._parent.markAsTouched(D)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(D=>D.markAllAsTouched())}markAsUntouched(D={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(_=>{_.markAsUntouched({onlySelf:!0})}),this._parent&&!D.onlySelf&&this._parent._updateTouched(D)}markAsDirty(D={}){this.pristine=!1,this._parent&&!D.onlySelf&&this._parent.markAsDirty(D)}markAsPristine(D={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(_=>{_.markAsPristine({onlySelf:!0})}),this._parent&&!D.onlySelf&&this._parent._updatePristine(D)}markAsPending(D={}){this.status=oi,!1!==D.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!D.onlySelf&&this._parent.markAsPending(D)}disable(D={}){const _=this._parentMarkedDirty(D.onlySelf);this.status=hi,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},D),{onlySelf:!0}))}),this._updateValue(),!1!==D.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},D),{skipPristineCheck:_})),this._onDisabledChange.forEach(U=>U(!0))}enable(D={}){const _=this._parentMarkedDirty(D.onlySelf);this.status=Gn,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},D),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:D.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},D),{skipPristineCheck:_})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(D){this._parent&&!D.onlySelf&&(this._parent.updateValueAndValidity(D),D.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(D){this._parent=D}updateValueAndValidity(D={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Gn||this.status===oi)&&this._runAsyncValidator(D.emitEvent)),!1!==D.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!D.onlySelf&&this._parent.updateValueAndValidity(D)}_updateTreeValidity(D={emitEvent:!0}){this._forEachChild(_=>_._updateTreeValidity(D)),this.updateValueAndValidity({onlySelf:!0,emitEvent:D.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?hi:Gn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(D){if(this.asyncValidator){this.status=oi,this._hasOwnPendingAsyncValidator=!0;const _=$t(this.asyncValidator(this));this._asyncValidationSubscription=_.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:D})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(D,_={}){this.errors=D,this._updateControlsErrors(!1!==_.emitEvent)}get(D){return function kn(x,D,_){if(null==D||(Array.isArray(D)||(D=D.split(_)),Array.isArray(D)&&0===D.length))return null;let U=x;return D.forEach(We=>{U=si(U)?U.controls.hasOwnProperty(We)?U.controls[We]:null:(x=>x instanceof Qn)(U)&&U.at(We)||null}),U}(this,D,".")}getError(D,_){const U=_?this.get(_):this;return U&&U.errors?U.errors[D]:null}hasError(D,_){return!!this.getError(D,_)}get root(){let D=this;for(;D._parent;)D=D._parent;return D}_updateControlsErrors(D){this.status=this._calculateStatus(),D&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(D)}_initObservables(){this.valueChanges=new c.vpe,this.statusChanges=new c.vpe}_calculateStatus(){return this._allControlsDisabled()?hi:this.errors?yi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(oi)?oi:this._anyControlsHaveStatus(yi)?yi:Gn}_anyControlsHaveStatus(D){return this._anyControls(_=>_.status===D)}_anyControlsDirty(){return this._anyControls(D=>D.dirty)}_anyControlsTouched(){return this._anyControls(D=>D.touched)}_updatePristine(D={}){this.pristine=!this._anyControlsDirty(),this._parent&&!D.onlySelf&&this._parent._updatePristine(D)}_updateTouched(D={}){this.touched=this._anyControlsTouched(),this._parent&&!D.onlySelf&&this._parent._updateTouched(D)}_isBoxedValue(D){return"object"==typeof D&&null!==D&&2===Object.keys(D).length&&"value"in D&&"disabled"in D}_registerOnCollectionChange(D){this._onCollectionChange=D}_setUpdateStrategy(D){fn(D)&&null!=D.updateOn&&(this._updateOn=D.updateOn)}_parentMarkedDirty(D){return!D&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ht extends fi{constructor(D=null,_,U){super(Ui(_),ht(U,_)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(D),this._setUpdateStrategy(_),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),fn(_)&&_.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(D)?D.value:D)}setValue(D,_={}){this.value=this._pendingValue=D,this._onChange.length&&!1!==_.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==_.emitViewToModelChange)),this.updateValueAndValidity(_)}patchValue(D,_={}){this.setValue(D,_)}reset(D=this.defaultValue,_={}){this._applyFormState(D),this.markAsPristine(_),this.markAsUntouched(_),this.setValue(this.value,_),this._pendingChange=!1}_updateValue(){}_anyControls(D){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(D){this._onChange.push(D)}_unregisterOnChange(D){bn(this._onChange,D)}registerOnDisabledChange(D){this._onDisabledChange.push(D)}_unregisterOnDisabledChange(D){bn(this._onDisabledChange,D)}_forEachChild(D){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(D){this._isBoxedValue(D)?(this.value=this._pendingValue=D.value,D.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=D}}class ci extends fi{constructor(D,_,U){super(Ui(_),ht(U,_)),this.controls=D,this._initObservables(),this._setUpdateStrategy(_),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(D,_){return this.controls[D]?this.controls[D]:(this.controls[D]=_,_.setParent(this),_._registerOnCollectionChange(this._onCollectionChange),_)}addControl(D,_,U={}){this.registerControl(D,_),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(D,_={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),delete this.controls[D],this.updateValueAndValidity({emitEvent:_.emitEvent}),this._onCollectionChange()}setControl(D,_,U={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),delete this.controls[D],_&&this.registerControl(D,_),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(D){return this.controls.hasOwnProperty(D)&&this.controls[D].enabled}setValue(D,_={}){$n(this,D),Object.keys(D).forEach(U=>{Xt(this,U),this.controls[U].setValue(D[U],{onlySelf:!0,emitEvent:_.emitEvent})}),this.updateValueAndValidity(_)}patchValue(D,_={}){null!=D&&(Object.keys(D).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(D[U],{onlySelf:!0,emitEvent:_.emitEvent})}),this.updateValueAndValidity(_))}reset(D={},_={}){this._forEachChild((U,We)=>{U.reset(D[We],{onlySelf:!0,emitEvent:_.emitEvent})}),this._updatePristine(_),this._updateTouched(_),this.updateValueAndValidity(_)}getRawValue(){return this._reduceChildren({},(D,_,U)=>(D[U]=li(_),D))}_syncPendingControls(){let D=this._reduceChildren(!1,(_,U)=>!!U._syncPendingControls()||_);return D&&this.updateValueAndValidity({onlySelf:!0}),D}_forEachChild(D){Object.keys(this.controls).forEach(_=>{const U=this.controls[_];U&&D(U,_)})}_setUpControls(){this._forEachChild(D=>{D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(D){for(const _ of Object.keys(this.controls)){const U=this.controls[_];if(this.contains(_)&&D(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(D,_,U)=>((_.enabled||this.disabled)&&(D[U]=_.value),D))}_reduceChildren(D,_){let U=D;return this._forEachChild((We,Et)=>{U=_(U,We,Et)}),U}_allControlsDisabled(){for(const D of Object.keys(this.controls))if(this.controls[D].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Qn extends fi{constructor(D,_,U){super(Ui(_),ht(U,_)),this.controls=D,this._initObservables(),this._setUpdateStrategy(_),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(D){return this.controls[D]}push(D,_={}){this.controls.push(D),this._registerControl(D),this.updateValueAndValidity({emitEvent:_.emitEvent}),this._onCollectionChange()}insert(D,_,U={}){this.controls.splice(D,0,_),this._registerControl(_),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(D,_={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),this.controls.splice(D,1),this.updateValueAndValidity({emitEvent:_.emitEvent})}setControl(D,_,U={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),this.controls.splice(D,1),_&&(this.controls.splice(D,0,_),this._registerControl(_)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(D,_={}){$n(this,D),D.forEach((U,We)=>{Xt(this,We),this.at(We).setValue(U,{onlySelf:!0,emitEvent:_.emitEvent})}),this.updateValueAndValidity(_)}patchValue(D,_={}){null!=D&&(D.forEach((U,We)=>{this.at(We)&&this.at(We).patchValue(U,{onlySelf:!0,emitEvent:_.emitEvent})}),this.updateValueAndValidity(_))}reset(D=[],_={}){this._forEachChild((U,We)=>{U.reset(D[We],{onlySelf:!0,emitEvent:_.emitEvent})}),this._updatePristine(_),this._updateTouched(_),this.updateValueAndValidity(_)}getRawValue(){return this.controls.map(D=>li(D))}clear(D={}){this.controls.length<1||(this._forEachChild(_=>_._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:D.emitEvent}))}_syncPendingControls(){let D=this.controls.reduce((_,U)=>!!U._syncPendingControls()||_,!1);return D&&this.updateValueAndValidity({onlySelf:!0}),D}_forEachChild(D){this.controls.forEach((_,U)=>{D(_,U)})}_updateValue(){this.value=this.controls.filter(D=>D.enabled||this.disabled).map(D=>D.value)}_anyControls(D){return this.controls.some(_=>_.enabled&&D(_))}_setUpControls(){this._forEachChild(D=>this._registerControl(D))}_allControlsDisabled(){for(const D of this.controls)if(D.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(D){D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange)}}const xi={provide:Oe,useExisting:(0,c.Gpc)(()=>pn)},jn=(()=>Promise.resolve(null))();let pn=(()=>{class x extends Oe{constructor(_,U){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new c.vpe,this.form=new ci({},Qe(_),J(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(_){jn.then(()=>{const U=this._findContainer(_.path);_.control=U.registerControl(_.name,_.control),de(_.control,_),_.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(_)})}getControl(_){return this.form.get(_.path)}removeControl(_){jn.then(()=>{const U=this._findContainer(_.path);U&&U.removeControl(_.name),this._directives.delete(_)})}addFormGroup(_){jn.then(()=>{const U=this._findContainer(_.path),We=new ci({});ne(We,_),U.registerControl(_.name,We),We.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(_){jn.then(()=>{const U=this._findContainer(_.path);U&&U.removeControl(_.name)})}getFormGroup(_){return this.form.get(_.path)}updateModel(_,U){jn.then(()=>{this.form.get(_.path).setValue(U)})}setValue(_){this.control.setValue(_)}onSubmit(_){return this.submitted=!0,Jt(this.form,this._directives),this.ngSubmit.emit(_),!1}onReset(){this.resetForm()}resetForm(_){this.form.reset(_),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(_){return _.pop(),_.length?this.form.get(_):this.form}}return x.\u0275fac=function(_){return new(_||x)(c.Y36(fe,10),c.Y36(Ae,10))},x.\u0275dir=c.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(_,U){1&_&&c.NdJ("submit",function(Et){return U.onSubmit(Et)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([xi]),c.qOj]}),x})(),Tn=(()=>{class x{}return x.\u0275fac=function(_){return new(_||x)},x.\u0275dir=c.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),x})(),ur=(()=>{class x{}return x.\u0275fac=function(_){return new(_||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({}),x})();const wr={provide:Oe,useExisting:(0,c.Gpc)(()=>ir)};let ir=(()=>{class x extends Oe{constructor(_,U){super(),this.validators=_,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new c.vpe,this._setValidators(_),this._setAsyncValidators(U)}ngOnChanges(_){this._checkFormPresent(),_.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Yt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(_){const U=this.form.get(_.path);return de(U,_),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(_),U}getControl(_){return this.form.get(_.path)}removeControl(_){xe(_.control||null,_,!1),bn(this.directives,_)}addFormGroup(_){this._setUpFormContainer(_)}removeFormGroup(_){this._cleanUpFormContainer(_)}getFormGroup(_){return this.form.get(_.path)}addFormArray(_){this._setUpFormContainer(_)}removeFormArray(_){this._cleanUpFormContainer(_)}getFormArray(_){return this.form.get(_.path)}updateModel(_,U){this.form.get(_.path).setValue(U)}onSubmit(_){return this.submitted=!0,Jt(this.form,this.directives),this.ngSubmit.emit(_),!1}onReset(){this.resetForm()}resetForm(_){this.form.reset(_),this.submitted=!1}_updateDomValue(){this.directives.forEach(_=>{const U=_.control,We=this.form.get(_.path);U!==We&&(xe(U||null,_),Rn(We)&&(de(We,_),_.control=We))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(_){const U=this.form.get(_.path);ne(U,_),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(_){if(this.form){const U=this.form.get(_.path);U&&function Se(x,D){return Yt(x,D)}(U,_)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zt(this.form,this),this._oldForm&&Yt(this._oldForm,this)}_checkFormPresent(){}}return x.\u0275fac=function(_){return new(_||x)(c.Y36(fe,10),c.Y36(Ae,10))},x.\u0275dir=c.lG2({type:x,selectors:[["","formGroup",""]],hostBindings:function(_,U){1&_&&c.NdJ("submit",function(Et){return U.onSubmit(Et)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([wr]),c.qOj,c.TTD]}),x})(),wn=(()=>{class x{constructor(){this._validator=_t}ngOnChanges(_){if(this.inputName in _){const U=this.normalizeInput(_[this.inputName].currentValue);this._enabled=this.enabled(U),this._validator=this._enabled?this.createValidator(U):_t,this._onChange&&this._onChange()}}validate(_){return this._validator(_)}registerOnValidatorChange(_){this._onChange=_}enabled(_){return null!=_}}return x.\u0275fac=function(_){return new(_||x)},x.\u0275dir=c.lG2({type:x,features:[c.TTD]}),x})();const Ar={provide:fe,useExisting:(0,c.Gpc)(()=>L),multi:!0},w={provide:fe,useExisting:(0,c.Gpc)(()=>T),multi:!0};let L=(()=>{class x extends wn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=_=>function ei(x){return null!=x&&!1!==x&&"false"!=`${x}`}(_),this.createValidator=_=>we}enabled(_){return _}}return x.\u0275fac=function(){let D;return function(U){return(D||(D=c.n5z(x)))(U||x)}}(),x.\u0275dir=c.lG2({type:x,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(_,U){2&_&&c.uIk("required",U._enabled?"":null)},inputs:{required:"required"},features:[c._Bn([Ar]),c.qOj]}),x})(),T=(()=>{class x extends L{constructor(){super(...arguments),this.createValidator=_=>Xe}}return x.\u0275fac=function(){let D;return function(U){return(D||(D=c.n5z(x)))(U||x)}}(),x.\u0275dir=c.lG2({type:x,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(_,U){2&_&&c.uIk("required",U._enabled?"":null)},features:[c._Bn([w]),c.qOj]}),x})(),xn=(()=>{class x{}return x.\u0275fac=function(_){return new(_||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({imports:[[ur]]}),x})(),Nn=(()=>{class x{}return x.\u0275fac=function(_){return new(_||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({imports:[xn]}),x})()},7423:($e,ve,b)=>{b.d(ve,{zs:()=>ue,lW:()=>oe,ot:()=>X});var c=b(4893),s=b(508),m=b(6360),W=b(5664);const le=["mat-button",""],q=["*"],ce=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],te=(0,s.pj)((0,s.Id)((0,s.Kr)(class{constructor(ae){this._elementRef=ae}})));let oe=(()=>{class ae extends te{constructor(Le,K,Je){super(Le),this._focusMonitor=K,this._animationMode=Je,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Ye of ce)this._hasHostAttributes(Ye)&&this._getHostElement().classList.add(Ye);Le.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(Le,K){Le?this._focusMonitor.focusVia(this._getHostElement(),Le,K):this._getHostElement().focus(K)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...Le){return Le.some(K=>this._getHostElement().hasAttribute(K))}}return ae.\u0275fac=function(Le){return new(Le||ae)(c.Y36(c.SBq),c.Y36(W.tE),c.Y36(m.Qb,8))},ae.\u0275cmp=c.Xpm({type:ae,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(Le,K){if(1&Le&&c.Gf(s.wG,5),2&Le){let Je;c.iGM(Je=c.CRH())&&(K.ripple=Je.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(Le,K){2&Le&&(c.uIk("disabled",K.disabled||null),c.ekj("_mat-animation-noopable","NoopAnimations"===K._animationMode)("mat-button-disabled",K.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[c.qOj],attrs:le,ngContentSelectors:q,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Le,K){1&Le&&(c.F$t(),c.TgZ(0,"span",0),c.Hsn(1),c.qZA(),c._UZ(2,"span",1)(3,"span",2)),2&Le&&(c.xp6(2),c.ekj("mat-button-ripple-round",K.isRoundButton||K.isIconButton),c.Q6J("matRippleDisabled",K._isRippleDisabled())("matRippleCentered",K.isIconButton)("matRippleTrigger",K._getHostElement()))},directives:[s.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),ae})(),ue=(()=>{class ae extends oe{constructor(Le,K,Je,Ye){super(K,Le,Je),this._ngZone=Ye,this._haltDisabledEvents=Ke=>{this.disabled&&(Ke.preventDefault(),Ke.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return ae.\u0275fac=function(Le){return new(Le||ae)(c.Y36(W.tE),c.Y36(c.SBq),c.Y36(m.Qb,8),c.Y36(c.R0b,8))},ae.\u0275cmp=c.Xpm({type:ae,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(Le,K){2&Le&&(c.uIk("tabindex",K.disabled?-1:K.tabIndex||0)("disabled",K.disabled||null)("aria-disabled",K.disabled.toString()),c.ekj("_mat-animation-noopable","NoopAnimations"===K._animationMode)("mat-button-disabled",K.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[c.qOj],attrs:le,ngContentSelectors:q,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Le,K){1&Le&&(c.F$t(),c.TgZ(0,"span",0),c.Hsn(1),c.qZA(),c._UZ(2,"span",1)(3,"span",2)),2&Le&&(c.xp6(2),c.ekj("mat-button-ripple-round",K.isRoundButton||K.isIconButton),c.Q6J("matRippleDisabled",K._isRippleDisabled())("matRippleCentered",K.isIconButton)("matRippleTrigger",K._getHostElement()))},directives:[s.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),ae})(),X=(()=>{class ae{}return ae.\u0275fac=function(Le){return new(Le||ae)},ae.\u0275mod=c.oAB({type:ae}),ae.\u0275inj=c.cJS({imports:[[s.si,s.BQ],s.BQ]}),ae})()},508:($e,ve,b)=>{b.d(ve,{rD:()=>Tt,K7:()=>je,HF:()=>F,BQ:()=>pe,ey:()=>Wt,Ng:()=>gt,wG:()=>C,si:()=>S,CB:()=>un,jH:()=>ct,pj:()=>Fe,Kr:()=>_e,Id:()=>Ae,FD:()=>Te,sb:()=>Ee});var c=b(4893),s=b(226),W=b(9808),le=b(925),q=b(5664),Ce=b(3191),be=b(7579),ce=b(6360),te=b(1159);function X(ke,Me){if(1&ke&&c._UZ(0,"mat-pseudo-checkbox",4),2&ke){const V=c.oxw();c.Q6J("state",V.selected?"checked":"unchecked")("disabled",V.disabled)}}function ae(ke,Me){if(1&ke&&(c.TgZ(0,"span",5),c._uU(1),c.qZA()),2&ke){const V=c.oxw();c.xp6(1),c.hij("(",V.group.label,")")}}const Pe=["*"],Ke=new c.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ye(){return!0}});let pe=(()=>{class ke{constructor(V,j,G){this._sanityChecks=j,this._document=G,this._hasDoneGlobalChecks=!1,V._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(V){return!(0,le.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[V])}}return ke.\u0275fac=function(V){return new(V||ke)(c.LFG(q.qm),c.LFG(Ke,8),c.LFG(W.K0))},ke.\u0275mod=c.oAB({type:ke}),ke.\u0275inj=c.cJS({imports:[[s.vT],s.vT]}),ke})();function Ae(ke){return class extends ke{constructor(...Me){super(...Me),this._disabled=!1}get disabled(){return this._disabled}set disabled(Me){this._disabled=(0,Ce.Ig)(Me)}}}function Fe(ke,Me){return class extends ke{constructor(...V){super(...V),this.defaultColor=Me,this.color=Me}get color(){return this._color}set color(V){const j=V||this.defaultColor;j!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),j&&this._elementRef.nativeElement.classList.add(`mat-${j}`),this._color=j)}}}function _e(ke){return class extends ke{constructor(...Me){super(...Me),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Me){this._disableRipple=(0,Ce.Ig)(Me)}}}function Ee(ke,Me=0){return class extends ke{constructor(...V){super(...V),this._tabIndex=Me,this.defaultTabIndex=Me}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(V){this._tabIndex=null!=V?(0,Ce.su)(V):this.defaultTabIndex}}}function Te(ke){return class extends ke{constructor(...Me){super(...Me),this.stateChanges=new be.x,this.errorState=!1}updateErrorState(){const Me=this.errorState,de=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);de!==Me&&(this.errorState=de,this.stateChanges.next())}}}let Tt=(()=>{class ke{isErrorState(V,j){return!!(V&&V.invalid&&(V.touched||j&&j.submitted))}}return ke.\u0275fac=function(V){return new(V||ke)},ke.\u0275prov=c.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();class Y{constructor(Me,V,j){this._renderer=Me,this.element=V,this.config=j,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ve={enterDuration:225,exitDuration:150},st=(0,le.i$)({passive:!0}),xt=["mousedown","touchstart"],Ut=["mouseup","mouseleave","touchend","touchcancel"];class yt{constructor(Me,V,j,G){this._target=Me,this._ngZone=V,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,G.isBrowser&&(this._containerElement=(0,Ce.fI)(j))}fadeInRipple(Me,V,j={}){const G=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),de=Object.assign(Object.assign({},Ve),j.animation);j.centered&&(Me=G.left+G.width/2,V=G.top+G.height/2);const xe=j.radius||function ot(ke,Me,V){const j=Math.max(Math.abs(ke-V.left),Math.abs(ke-V.right)),G=Math.max(Math.abs(Me-V.top),Math.abs(Me-V.bottom));return Math.sqrt(j*j+G*G)}(Me,V,G),rt=Me-G.left,wt=V-G.top,Zt=de.enterDuration,Yt=document.createElement("div");Yt.classList.add("mat-ripple-element"),Yt.style.left=rt-xe+"px",Yt.style.top=wt-xe+"px",Yt.style.height=2*xe+"px",Yt.style.width=2*xe+"px",null!=j.color&&(Yt.style.backgroundColor=j.color),Yt.style.transitionDuration=`${Zt}ms`,this._containerElement.appendChild(Yt),function Ft(ke){window.getComputedStyle(ke).getPropertyValue("opacity")}(Yt),Yt.style.transform="scale(1)";const Ct=new Y(this,Yt,j);return Ct.state=0,this._activeRipples.add(Ct),j.persistent||(this._mostRecentTransientRipple=Ct),this._runTimeoutOutsideZone(()=>{const In=Ct===this._mostRecentTransientRipple;Ct.state=1,!j.persistent&&(!In||!this._isPointerDown)&&Ct.fadeOut()},Zt),Ct}fadeOutRipple(Me){const V=this._activeRipples.delete(Me);if(Me===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!V)return;const j=Me.element,G=Object.assign(Object.assign({},Ve),Me.config.animation);j.style.transitionDuration=`${G.exitDuration}ms`,j.style.opacity="0",Me.state=2,this._runTimeoutOutsideZone(()=>{Me.state=3,j.remove()},G.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Me=>Me.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Me=>{Me.config.persistent||Me.fadeOut()})}setupTriggerEvents(Me){const V=(0,Ce.fI)(Me);!V||V===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=V,this._registerEvents(xt))}handleEvent(Me){"mousedown"===Me.type?this._onMousedown(Me):"touchstart"===Me.type?this._onTouchStart(Me):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ut),this._pointerUpEventsRegistered=!0)}_onMousedown(Me){const V=(0,q.X6)(Me),j=this._lastTouchStartEvent&&Date.now(){!Me.config.persistent&&(1===Me.state||Me.config.terminateOnPointerUp&&0===Me.state)&&Me.fadeOut()}))}_runTimeoutOutsideZone(Me,V=0){this._ngZone.runOutsideAngular(()=>setTimeout(Me,V))}_registerEvents(Me){this._ngZone.runOutsideAngular(()=>{Me.forEach(V=>{this._triggerElement.addEventListener(V,this,st)})})}_removeTriggerEvents(){this._triggerElement&&(xt.forEach(Me=>{this._triggerElement.removeEventListener(Me,this,st)}),this._pointerUpEventsRegistered&&Ut.forEach(Me=>{this._triggerElement.removeEventListener(Me,this,st)}))}}const Oe=new c.OlP("mat-ripple-global-options");let C=(()=>{class ke{constructor(V,j,G,de,xe){this._elementRef=V,this._animationMode=xe,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=de||{},this._rippleRenderer=new yt(this,j,V,G)}get disabled(){return this._disabled}set disabled(V){V&&this.fadeOutAllNonPersistent(),this._disabled=V,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(V){this._trigger=V,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(V,j=0,G){return"number"==typeof V?this._rippleRenderer.fadeInRipple(V,j,Object.assign(Object.assign({},this.rippleConfig),G)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),V))}}return ke.\u0275fac=function(V){return new(V||ke)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(le.t4),c.Y36(Oe,8),c.Y36(ce.Qb,8))},ke.\u0275dir=c.lG2({type:ke,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(V,j){2&V&&c.ekj("mat-ripple-unbounded",j.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),ke})(),S=(()=>{class ke{}return ke.\u0275fac=function(V){return new(V||ke)},ke.\u0275mod=c.oAB({type:ke}),ke.\u0275inj=c.cJS({imports:[[pe],pe]}),ke})(),E=(()=>{class ke{constructor(V){this._animationMode=V,this.state="unchecked",this.disabled=!1}}return ke.\u0275fac=function(V){return new(V||ke)(c.Y36(ce.Qb,8))},ke.\u0275cmp=c.Xpm({type:ke,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(V,j){2&V&&c.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===j.state)("mat-pseudo-checkbox-checked","checked"===j.state)("mat-pseudo-checkbox-disabled",j.disabled)("_mat-animation-noopable","NoopAnimations"===j._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(V,j){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),ke})(),P=(()=>{class ke{}return ke.\u0275fac=function(V){return new(V||ke)},ke.\u0275mod=c.oAB({type:ke}),ke.\u0275inj=c.cJS({imports:[[pe]]}),ke})();const F=new c.OlP("MAT_OPTION_PARENT_COMPONENT"),je=new c.OlP("MatOptgroup");let at=0;class St{constructor(Me,V=!1){this.source=Me,this.isUserInput=V}}let en=(()=>{class ke{constructor(V,j,G,de){this._element=V,this._changeDetectorRef=j,this._parent=G,this.group=de,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+at++,this.onSelectionChange=new c.vpe,this._stateChanges=new be.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(V){this._disabled=(0,Ce.Ig)(V)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(V,j){const G=this._getHostElement();"function"==typeof G.focus&&G.focus(j)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(V){(V.keyCode===te.K5||V.keyCode===te.L_)&&!(0,te.Vb)(V)&&(this._selectViaInteraction(),V.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const V=this.viewValue;V!==this._mostRecentViewValue&&(this._mostRecentViewValue=V,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(V=!1){this.onSelectionChange.emit(new St(this,V))}}return ke.\u0275fac=function(V){c.$Z()},ke.\u0275dir=c.lG2({type:ke,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ke})(),Wt=(()=>{class ke extends en{constructor(V,j,G,de){super(V,j,G,de)}}return ke.\u0275fac=function(V){return new(V||ke)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(F,8),c.Y36(je,8))},ke.\u0275cmp=c.Xpm({type:ke,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(V,j){1&V&&c.NdJ("click",function(){return j._selectViaInteraction()})("keydown",function(de){return j._handleKeydown(de)}),2&V&&(c.Ikx("id",j.id),c.uIk("tabindex",j._getTabIndex())("aria-selected",j._getAriaSelected())("aria-disabled",j.disabled.toString()),c.ekj("mat-selected",j.selected)("mat-option-multiple",j.multiple)("mat-active",j.active)("mat-option-disabled",j.disabled))},exportAs:["matOption"],features:[c.qOj],ngContentSelectors:Pe,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(V,j){1&V&&(c.F$t(),c.YNc(0,X,1,2,"mat-pseudo-checkbox",0),c.TgZ(1,"span",1),c.Hsn(2),c.qZA(),c.YNc(3,ae,2,1,"span",2),c._UZ(4,"div",3)),2&V&&(c.Q6J("ngIf",j.multiple),c.xp6(3),c.Q6J("ngIf",j.group&&j.group._inert),c.xp6(1),c.Q6J("matRippleTrigger",j._getHostElement())("matRippleDisabled",j.disabled||j.disableRipple))},directives:[E,W.O5,C],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),ke})();function un(ke,Me,V){if(V.length){let j=Me.toArray(),G=V.toArray(),de=0;for(let xe=0;xeV+j?Math.max(0,ke-j+Me):V}let gt=(()=>{class ke{}return ke.\u0275fac=function(V){return new(V||ke)},ke.\u0275mod=c.oAB({type:ke}),ke.\u0275inj=c.cJS({imports:[[S,W.ez,pe,P]]}),ke})()},8966:($e,ve,b)=>{b.d(ve,{WI:()=>Ee,uw:()=>Qt,H8:()=>Nt,ZT:()=>$t,xY:()=>cn,Is:()=>nn,so:()=>Fe,uh:()=>Ot});var c=b(9776),s=b(7429),m=b(4893),W=b(508),le=b(226),q=b(7579),Ce=b(9770),be=b(727),ce=b(9646),te=b(9300),oe=b(5698),ue=b(8675),X=b(925),ae=b(9808),Pe=b(1777),Le=b(5664),K=b(1159),Je=b(6360);function Ye(Qe,He){}class Ke{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const pe={dialogContainer:(0,Pe.X$)("dialogContainer",[(0,Pe.SB)("void, exit",(0,Pe.oB)({opacity:0,transform:"scale(0.7)"})),(0,Pe.SB)("enter",(0,Pe.oB)({transform:"none"})),(0,Pe.eR)("* => enter",(0,Pe.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Pe.oB)({transform:"none",opacity:1}))),(0,Pe.eR)("* => void, * => exit",(0,Pe.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Pe.oB)({opacity:0})))])};let Q=(()=>{class Qe extends s.en{constructor(J,Y,Ve,ze,st,xt,Ut,yt){super(),this._elementRef=J,this._focusTrapFactory=Y,this._changeDetectorRef=Ve,this._config=st,this._interactivityChecker=xt,this._ngZone=Ut,this._focusMonitor=yt,this._animationStateChanged=new m.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Ft=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Ft)),this._ariaLabelledBy=st.ariaLabelledBy||null,this._document=ze}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(J){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(J)}attachTemplatePortal(J){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(J)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(J,Y){this._interactivityChecker.isFocusable(J)||(J.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{J.addEventListener("blur",()=>J.removeAttribute("tabindex")),J.addEventListener("mousedown",()=>J.removeAttribute("tabindex"))})),J.focus(Y)}_focusByCssSelector(J,Y){let Ve=this._elementRef.nativeElement.querySelector(J);Ve&&this._forceFocus(Ve,Y)}_trapFocus(){const J=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||J.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Y=>{Y||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const J=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&J&&"function"==typeof J.focus){const Y=(0,X.ht)(),Ve=this._elementRef.nativeElement;(!Y||Y===this._document.body||Y===Ve||Ve.contains(Y))&&(this._focusMonitor?(this._focusMonitor.focusVia(J,this._closeInteractionType),this._closeInteractionType=null):J.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,X.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const J=this._elementRef.nativeElement,Y=(0,X.ht)();return J===Y||J.contains(Y)}}return Qe.\u0275fac=function(J){return new(J||Qe)(m.Y36(m.SBq),m.Y36(Le.qV),m.Y36(m.sBO),m.Y36(ae.K0,8),m.Y36(Ke),m.Y36(Le.ic),m.Y36(m.R0b),m.Y36(Le.tE))},Qe.\u0275dir=m.lG2({type:Qe,viewQuery:function(J,Y){if(1&J&&m.Gf(s.Pl,7),2&J){let Ve;m.iGM(Ve=m.CRH())&&(Y._portalOutlet=Ve.first)}},features:[m.qOj]}),Qe})(),fe=(()=>{class Qe extends Q{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:J,totalTime:Y}){"enter"===J?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Y})):"exit"===J&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Y}))}_onAnimationStart({toState:J,totalTime:Y}){"enter"===J?this._animationStateChanged.next({state:"opening",totalTime:Y}):("exit"===J||"void"===J)&&this._animationStateChanged.next({state:"closing",totalTime:Y})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Qe.\u0275fac=function(){let He;return function(Y){return(He||(He=m.n5z(Qe)))(Y||Qe)}}(),Qe.\u0275cmp=m.Xpm({type:Qe,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(J,Y){1&J&&m.WFA("@dialogContainer.start",function(ze){return Y._onAnimationStart(ze)})("@dialogContainer.done",function(ze){return Y._onAnimationDone(ze)}),2&J&&(m.Ikx("id",Y._id),m.uIk("role",Y._config.role)("aria-labelledby",Y._config.ariaLabel?null:Y._ariaLabelledBy)("aria-label",Y._config.ariaLabel)("aria-describedby",Y._config.ariaDescribedBy||null),m.d8E("@dialogContainer",Y._state))},features:[m.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(J,Y){1&J&&m.YNc(0,Ye,0,0,"ng-template",0)},directives:[s.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[pe.dialogContainer]}}),Qe})(),Ae=0;class Fe{constructor(He,J,Y="mat-dialog-"+Ae++){this._overlayRef=He,this._containerInstance=J,this.id=Y,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new q.x,this._afterClosed=new q.x,this._beforeClosed=new q.x,this._state=0,J._id=Y,J._animationStateChanged.pipe((0,te.h)(Ve=>"opened"===Ve.state),(0,oe.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),J._animationStateChanged.pipe((0,te.h)(Ve=>"closed"===Ve.state),(0,oe.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),He.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),He.keydownEvents().pipe((0,te.h)(Ve=>Ve.keyCode===K.hY&&!this.disableClose&&!(0,K.Vb)(Ve))).subscribe(Ve=>{Ve.preventDefault(),_e(this,"keyboard")}),He.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():_e(this,"mouse")})}close(He){this._result=He,this._containerInstance._animationStateChanged.pipe((0,te.h)(J=>"closing"===J.state),(0,oe.q)(1)).subscribe(J=>{this._beforeClosed.next(He),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),J.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(He){let J=this._getPositionStrategy();return He&&(He.left||He.right)?He.left?J.left(He.left):J.right(He.right):J.centerHorizontally(),He&&(He.top||He.bottom)?He.top?J.top(He.top):J.bottom(He.bottom):J.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(He="",J=""){return this._overlayRef.updateSize({width:He,height:J}),this._overlayRef.updatePosition(),this}addPanelClass(He){return this._overlayRef.addPanelClass(He),this}removePanelClass(He){return this._overlayRef.removePanelClass(He),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function _e(Qe,He,J){return void 0!==Qe._containerInstance&&(Qe._containerInstance._closeInteractionType=He),Qe.close(J)}const Ee=new m.OlP("MatDialogData"),Te=new m.OlP("mat-dialog-default-options"),we=new m.OlP("mat-dialog-scroll-strategy"),vt={provide:we,deps:[c.aV],useFactory:function Re(Qe){return()=>Qe.scrollStrategies.block()}};let pt=(()=>{class Qe{constructor(J,Y,Ve,ze,st,xt,Ut,yt,Ft,ot){this._overlay=J,this._injector=Y,this._defaultOptions=Ve,this._parentDialog=ze,this._overlayContainer=st,this._dialogRefConstructor=Ut,this._dialogContainerType=yt,this._dialogDataToken=Ft,this._animationMode=ot,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new q.x,this._afterOpenedAtThisLevel=new q.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,Ce.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,ue.O)(void 0))),this._scrollStrategy=xt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const J=this._parentDialog;return J?J._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(J,Y){if(Y=function _t(Qe,He){return Object.assign(Object.assign({},He),Qe)}(Y,this._defaultOptions||new Ke),Y.id&&this.getDialogById(Y.id),this._dialogAnimatingOpen)return this._lastDialogRef;const Ve=this._createOverlay(Y),ze=this._attachDialogContainer(Ve,Y);if("NoopAnimations"!==this._animationMode){const xt=ze._animationStateChanged.subscribe(Ut=>{"opening"===Ut.state&&(this._dialogAnimatingOpen=!0),"opened"===Ut.state&&(this._dialogAnimatingOpen=!1,xt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new be.w0),this._animationStateSubscriptions.add(xt)}const st=this._attachDialogContent(J,ze,Ve,Y);return this._lastDialogRef=st,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(st),st.afterClosed().subscribe(()=>this._removeOpenDialog(st)),this.afterOpened.next(st),ze._initializeWithAttachedContent(),st}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(J){return this.openDialogs.find(Y=>Y.id===J)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(J){const Y=this._getOverlayConfig(J);return this._overlay.create(Y)}_getOverlayConfig(J){const Y=new c.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:J.scrollStrategy||this._scrollStrategy(),panelClass:J.panelClass,hasBackdrop:J.hasBackdrop,direction:J.direction,minWidth:J.minWidth,minHeight:J.minHeight,maxWidth:J.maxWidth,maxHeight:J.maxHeight,disposeOnNavigation:J.closeOnNavigation});return J.backdropClass&&(Y.backdropClass=J.backdropClass),Y}_attachDialogContainer(J,Y){const ze=m.zs3.create({parent:Y&&Y.viewContainerRef&&Y.viewContainerRef.injector||this._injector,providers:[{provide:Ke,useValue:Y}]}),st=new s.C5(this._dialogContainerType,Y.viewContainerRef,ze,Y.componentFactoryResolver);return J.attach(st).instance}_attachDialogContent(J,Y,Ve,ze){const st=new this._dialogRefConstructor(Ve,Y,ze.id);if(J instanceof m.Rgc)Y.attachTemplatePortal(new s.UE(J,null,{$implicit:ze.data,dialogRef:st}));else{const xt=this._createInjector(ze,st,Y),Ut=Y.attachComponentPortal(new s.C5(J,ze.viewContainerRef,xt,ze.componentFactoryResolver));st.componentInstance=Ut.instance}return st.updateSize(ze.width,ze.height).updatePosition(ze.position),st}_createInjector(J,Y,Ve){const ze=J&&J.viewContainerRef&&J.viewContainerRef.injector,st=[{provide:this._dialogContainerType,useValue:Ve},{provide:this._dialogDataToken,useValue:J.data},{provide:this._dialogRefConstructor,useValue:Y}];return J.direction&&(!ze||!ze.get(le.Is,null,m.XFs.Optional))&&st.push({provide:le.Is,useValue:{value:J.direction,change:(0,ce.of)()}}),m.zs3.create({parent:ze||this._injector,providers:st})}_removeOpenDialog(J){const Y=this.openDialogs.indexOf(J);Y>-1&&(this.openDialogs.splice(Y,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Ve,ze)=>{Ve?ze.setAttribute("aria-hidden",Ve):ze.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const J=this._overlayContainer.getContainerElement();if(J.parentElement){const Y=J.parentElement.children;for(let Ve=Y.length-1;Ve>-1;Ve--){let ze=Y[Ve];ze!==J&&"SCRIPT"!==ze.nodeName&&"STYLE"!==ze.nodeName&&!ze.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(ze,ze.getAttribute("aria-hidden")),ze.setAttribute("aria-hidden","true"))}}}_closeDialogs(J){let Y=J.length;for(;Y--;)J[Y].close()}}return Qe.\u0275fac=function(J){m.$Z()},Qe.\u0275dir=m.lG2({type:Qe}),Qe})(),Qt=(()=>{class Qe extends pt{constructor(J,Y,Ve,ze,st,xt,Ut,yt){super(J,Y,ze,xt,Ut,st,Fe,fe,Ee,yt)}}return Qe.\u0275fac=function(J){return new(J||Qe)(m.LFG(c.aV),m.LFG(m.zs3),m.LFG(ae.Ye,8),m.LFG(Te,8),m.LFG(we),m.LFG(Qe,12),m.LFG(c.Xj),m.LFG(Je.Qb,8))},Qe.\u0275prov=m.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})(),It=0,$t=(()=>{class Qe{constructor(J,Y,Ve){this.dialogRef=J,this._elementRef=Y,this._dialog=Ve,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Tt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(J){const Y=J._matDialogClose||J._matDialogCloseResult;Y&&(this.dialogResult=Y.currentValue)}_onButtonClick(J){_e(this.dialogRef,0===J.screenX&&0===J.screenY?"keyboard":"mouse",this.dialogResult)}}return Qe.\u0275fac=function(J){return new(J||Qe)(m.Y36(Fe,8),m.Y36(m.SBq),m.Y36(Qt))},Qe.\u0275dir=m.lG2({type:Qe,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(J,Y){1&J&&m.NdJ("click",function(ze){return Y._onButtonClick(ze)}),2&J&&m.uIk("aria-label",Y.ariaLabel||null)("type",Y.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[m.TTD]}),Qe})(),Ot=(()=>{class Qe{constructor(J,Y,Ve){this._dialogRef=J,this._elementRef=Y,this._dialog=Ve,this.id="mat-dialog-title-"+It++}ngOnInit(){this._dialogRef||(this._dialogRef=Tt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const J=this._dialogRef._containerInstance;J&&!J._ariaLabelledBy&&(J._ariaLabelledBy=this.id)})}}return Qe.\u0275fac=function(J){return new(J||Qe)(m.Y36(Fe,8),m.Y36(m.SBq),m.Y36(Qt))},Qe.\u0275dir=m.lG2({type:Qe,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(J,Y){2&J&&m.Ikx("id",Y.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Qe})(),cn=(()=>{class Qe{}return Qe.\u0275fac=function(J){return new(J||Qe)},Qe.\u0275dir=m.lG2({type:Qe,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Qe})(),Nt=(()=>{class Qe{}return Qe.\u0275fac=function(J){return new(J||Qe)},Qe.\u0275dir=m.lG2({type:Qe,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Qe})();function Tt(Qe,He){let J=Qe.nativeElement.parentElement;for(;J&&!J.classList.contains("mat-dialog-container");)J=J.parentElement;return J?He.find(Y=>Y.id===J.id):null}let nn=(()=>{class Qe{}return Qe.\u0275fac=function(J){return new(J||Qe)},Qe.\u0275mod=m.oAB({type:Qe}),Qe.\u0275inj=m.cJS({providers:[Qt,vt],imports:[[c.U8,s.eL,W.BQ],W.BQ]}),Qe})()},7322:($e,ve,b)=>{b.d(ve,{G_:()=>Ft,o2:()=>yt,KE:()=>ot,Eo:()=>_t,lN:()=>Oe,hX:()=>nn,R9:()=>Ve});var c=b(7144),s=b(9808),m=b(4893),W=b(508),le=b(3191),q=b(7579),Ce=b(6451),be=b(4968),ce=b(8675),te=b(2722),oe=b(5698),ue=b(1777),X=b(6360),ae=b(226),Pe=b(925);const Le=["connectionContainer"],K=["inputContainer"],Je=["label"];function Ye(C,S){1&C&&(m.ynx(0),m.TgZ(1,"div",14),m._UZ(2,"div",15)(3,"div",16)(4,"div",17),m.qZA(),m.TgZ(5,"div",18),m._UZ(6,"div",15)(7,"div",16)(8,"div",17),m.qZA(),m.BQk())}function Ke(C,S){if(1&C){const E=m.EpF();m.TgZ(0,"div",19),m.NdJ("cdkObserveContent",function(){return m.CHM(E),m.oxw().updateOutlineGap()}),m.Hsn(1,1),m.qZA()}if(2&C){const E=m.oxw();m.Q6J("cdkObserveContentDisabled","outline"!=E.appearance)}}function pe(C,S){if(1&C&&(m.ynx(0),m.Hsn(1,2),m.TgZ(2,"span"),m._uU(3),m.qZA(),m.BQk()),2&C){const E=m.oxw(2);m.xp6(3),m.Oqu(E._control.placeholder)}}function z(C,S){1&C&&m.Hsn(0,3,["*ngSwitchCase","true"])}function Q(C,S){1&C&&(m.TgZ(0,"span",23),m._uU(1," *"),m.qZA())}function fe(C,S){if(1&C){const E=m.EpF();m.TgZ(0,"label",20,21),m.NdJ("cdkObserveContent",function(){return m.CHM(E),m.oxw().updateOutlineGap()}),m.YNc(2,pe,4,1,"ng-container",12),m.YNc(3,z,1,0,"ng-content",12),m.YNc(4,Q,2,0,"span",22),m.qZA()}if(2&C){const E=m.oxw();m.ekj("mat-empty",E._control.empty&&!E._shouldAlwaysFloat())("mat-form-field-empty",E._control.empty&&!E._shouldAlwaysFloat())("mat-accent","accent"==E.color)("mat-warn","warn"==E.color),m.Q6J("cdkObserveContentDisabled","outline"!=E.appearance)("id",E._labelId)("ngSwitch",E._hasLabel()),m.uIk("for",E._control.id)("aria-owns",E._control.id),m.xp6(2),m.Q6J("ngSwitchCase",!1),m.xp6(1),m.Q6J("ngSwitchCase",!0),m.xp6(1),m.Q6J("ngIf",!E.hideRequiredMarker&&E._control.required&&!E._control.disabled)}}function Ae(C,S){1&C&&(m.TgZ(0,"div",24),m.Hsn(1,4),m.qZA())}function Fe(C,S){if(1&C&&(m.TgZ(0,"div",25),m._UZ(1,"span",26),m.qZA()),2&C){const E=m.oxw();m.xp6(1),m.ekj("mat-accent","accent"==E.color)("mat-warn","warn"==E.color)}}function _e(C,S){if(1&C&&(m.TgZ(0,"div"),m.Hsn(1,5),m.qZA()),2&C){const E=m.oxw();m.Q6J("@transitionMessages",E._subscriptAnimationState)}}function Ee(C,S){if(1&C&&(m.TgZ(0,"div",30),m._uU(1),m.qZA()),2&C){const E=m.oxw(2);m.Q6J("id",E._hintLabelId),m.xp6(1),m.Oqu(E.hintLabel)}}function Te(C,S){if(1&C&&(m.TgZ(0,"div",27),m.YNc(1,Ee,2,2,"div",28),m.Hsn(2,6),m._UZ(3,"div",29),m.Hsn(4,7),m.qZA()),2&C){const E=m.oxw();m.Q6J("@transitionMessages",E._subscriptAnimationState),m.xp6(1),m.Q6J("ngIf",E.hintLabel)}}const we=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Xe=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],vt=new m.OlP("MatError"),Qt={transitionMessages:(0,ue.X$)("transitionMessages",[(0,ue.SB)("enter",(0,ue.oB)({opacity:1,transform:"translateY(0%)"})),(0,ue.eR)("void => enter",[(0,ue.oB)({opacity:0,transform:"translateY(-5px)"}),(0,ue.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let _t=(()=>{class C{}return C.\u0275fac=function(E){return new(E||C)},C.\u0275dir=m.lG2({type:C}),C})();const Nt=new m.OlP("MatHint");let nn=(()=>{class C{}return C.\u0275fac=function(E){return new(E||C)},C.\u0275dir=m.lG2({type:C,selectors:[["mat-label"]]}),C})(),Qe=(()=>{class C{}return C.\u0275fac=function(E){return new(E||C)},C.\u0275dir=m.lG2({type:C,selectors:[["mat-placeholder"]]}),C})();const He=new m.OlP("MatPrefix"),Y=new m.OlP("MatSuffix");let Ve=(()=>{class C{}return C.\u0275fac=function(E){return new(E||C)},C.\u0275dir=m.lG2({type:C,selectors:[["","matSuffix",""]],features:[m._Bn([{provide:Y,useExisting:C}])]}),C})(),ze=0;const Ut=(0,W.pj)(class{constructor(C){this._elementRef=C}},"primary"),yt=new m.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ft=new m.OlP("MatFormField");let ot=(()=>{class C extends Ut{constructor(E,P,F,ie,ye,Be,je){super(E),this._changeDetectorRef=P,this._dir=F,this._defaults=ie,this._platform=ye,this._ngZone=Be,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new q.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+ze++,this._labelId="mat-form-field-label-"+ze++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==je,this.appearance=ie&&ie.appearance?ie.appearance:"legacy",this._hideRequiredMarker=!(!ie||null==ie.hideRequiredMarker)&&ie.hideRequiredMarker}get appearance(){return this._appearance}set appearance(E){const P=this._appearance;this._appearance=E||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&P!==E&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(E){this._hideRequiredMarker=(0,le.Ig)(E)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(E){this._hintLabel=E,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(E){E!==this._floatLabel&&(this._floatLabel=E||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(E){this._explicitFormFieldControl=E}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const E=this._control;E.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${E.controlType}`),E.stateChanges.pipe((0,ce.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),E.ngControl&&E.ngControl.valueChanges&&E.ngControl.valueChanges.pipe((0,te.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,te.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Ce.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,ce.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,ce.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,te.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(E){const P=this._control?this._control.ngControl:null;return P&&P[E]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,be.R)(this._label.nativeElement,"transitionend").pipe((0,oe.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let E=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&E.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const P=this._hintChildren?this._hintChildren.find(ie=>"start"===ie.align):null,F=this._hintChildren?this._hintChildren.find(ie=>"end"===ie.align):null;P?E.push(P.id):this._hintLabel&&E.push(this._hintLabelId),F&&E.push(F.id)}else this._errorChildren&&E.push(...this._errorChildren.map(P=>P.id));this._control.setDescribedByIds(E)}}_validateControlChild(){}updateOutlineGap(){const E=this._label?this._label.nativeElement:null,P=this._connectionContainerRef.nativeElement,F=".mat-form-field-outline-start",ie=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!E||!E.children.length||!E.textContent.trim()){const at=P.querySelectorAll(`${F}, ${ie}`);for(let St=0;St0?.75*un+10:0}for(let at=0;at{class C{}return C.\u0275fac=function(E){return new(E||C)},C.\u0275mod=m.oAB({type:C}),C.\u0275inj=m.cJS({imports:[[s.ez,W.BQ,c.Q8],W.BQ]}),C})()},7531:($e,ve,b)=>{b.d(ve,{Nt:()=>Ye,c:()=>Ke});var c=b(3191),s=b(925),m=b(4893),W=b(2382),le=b(508),q=b(7322),Ce=b(7579),be=b(515);const ce=(0,s.i$)({passive:!0});let te=(()=>{class pe{constructor(Q,fe){this._platform=Q,this._ngZone=fe,this._monitoredElements=new Map}monitor(Q){if(!this._platform.isBrowser)return be.E;const fe=(0,c.fI)(Q),Ae=this._monitoredElements.get(fe);if(Ae)return Ae.subject;const Fe=new Ce.x,_e="cdk-text-field-autofilled",Ee=Te=>{"cdk-text-field-autofill-start"!==Te.animationName||fe.classList.contains(_e)?"cdk-text-field-autofill-end"===Te.animationName&&fe.classList.contains(_e)&&(fe.classList.remove(_e),this._ngZone.run(()=>Fe.next({target:Te.target,isAutofilled:!1}))):(fe.classList.add(_e),this._ngZone.run(()=>Fe.next({target:Te.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{fe.addEventListener("animationstart",Ee,ce),fe.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(fe,{subject:Fe,unlisten:()=>{fe.removeEventListener("animationstart",Ee,ce)}}),Fe}stopMonitoring(Q){const fe=(0,c.fI)(Q),Ae=this._monitoredElements.get(fe);Ae&&(Ae.unlisten(),Ae.subject.complete(),fe.classList.remove("cdk-text-field-autofill-monitored"),fe.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(fe))}ngOnDestroy(){this._monitoredElements.forEach((Q,fe)=>this.stopMonitoring(fe))}}return pe.\u0275fac=function(Q){return new(Q||pe)(m.LFG(s.t4),m.LFG(m.R0b))},pe.\u0275prov=m.Yz7({token:pe,factory:pe.\u0275fac,providedIn:"root"}),pe})(),X=(()=>{class pe{}return pe.\u0275fac=function(Q){return new(Q||pe)},pe.\u0275mod=m.oAB({type:pe}),pe.\u0275inj=m.cJS({}),pe})();const Pe=new m.OlP("MAT_INPUT_VALUE_ACCESSOR"),Le=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let K=0;const Je=(0,le.FD)(class{constructor(pe,z,Q,fe){this._defaultErrorStateMatcher=pe,this._parentForm=z,this._parentFormGroup=Q,this.ngControl=fe}});let Ye=(()=>{class pe extends Je{constructor(Q,fe,Ae,Fe,_e,Ee,Te,we,Xe,Re){super(Ee,Fe,_e,Ae),this._elementRef=Q,this._platform=fe,this._autofillMonitor=we,this._formField=Re,this._uid="mat-input-"+K++,this.focused=!1,this.stateChanges=new Ce.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Qt=>(0,s.qK)().has(Qt));const vt=this._elementRef.nativeElement,pt=vt.nodeName.toLowerCase();this._inputValueAccessor=Te||vt,this._previousNativeValue=this.value,this.id=this.id,fe.IOS&&Xe.runOutsideAngular(()=>{Q.nativeElement.addEventListener("keyup",Qt=>{const _t=Qt.target;!_t.value&&0===_t.selectionStart&&0===_t.selectionEnd&&(_t.setSelectionRange(1,1),_t.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===pt,this._isTextarea="textarea"===pt,this._isInFormField=!!Re,this._isNativeSelect&&(this.controlType=vt.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Q){this._disabled=(0,c.Ig)(Q),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Q){this._id=Q||this._uid}get required(){var Q,fe,Ae,Fe;return null!==(Fe=null!==(Q=this._required)&&void 0!==Q?Q:null===(Ae=null===(fe=this.ngControl)||void 0===fe?void 0:fe.control)||void 0===Ae?void 0:Ae.hasValidator(W.kI.required))&&void 0!==Fe&&Fe}set required(Q){this._required=(0,c.Ig)(Q)}get type(){return this._type}set type(Q){this._type=Q||"text",this._validateType(),!this._isTextarea&&(0,s.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Q){Q!==this.value&&(this._inputValueAccessor.value=Q,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Q){this._readonly=(0,c.Ig)(Q)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Q=>{this.autofilled=Q.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Q){this._elementRef.nativeElement.focus(Q)}_focusChanged(Q){Q!==this.focused&&(this.focused=Q,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var Q,fe;const Ae=(null===(fe=null===(Q=this._formField)||void 0===Q?void 0:Q._hideControlPlaceholder)||void 0===fe?void 0:fe.call(Q))?null:this.placeholder;if(Ae!==this._previousPlaceholder){const Fe=this._elementRef.nativeElement;this._previousPlaceholder=Ae,Ae?Fe.setAttribute("placeholder",Ae):Fe.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Q=this._elementRef.nativeElement.value;this._previousNativeValue!==Q&&(this._previousNativeValue=Q,this.stateChanges.next())}_validateType(){Le.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Q=this._elementRef.nativeElement.validity;return Q&&Q.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Q=this._elementRef.nativeElement,fe=Q.options[0];return this.focused||Q.multiple||!this.empty||!!(Q.selectedIndex>-1&&fe&&fe.label)}return this.focused||!this.empty}setDescribedByIds(Q){Q.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Q.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Q=this._elementRef.nativeElement;return this._isNativeSelect&&(Q.multiple||Q.size>1)}}return pe.\u0275fac=function(Q){return new(Q||pe)(m.Y36(m.SBq),m.Y36(s.t4),m.Y36(W.a5,10),m.Y36(W.F,8),m.Y36(W.sg,8),m.Y36(le.rD),m.Y36(Pe,10),m.Y36(te),m.Y36(m.R0b),m.Y36(q.G_,8))},pe.\u0275dir=m.lG2({type:pe,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(Q,fe){1&Q&&m.NdJ("focus",function(){return fe._focusChanged(!0)})("blur",function(){return fe._focusChanged(!1)})("input",function(){return fe._onInput()}),2&Q&&(m.Ikx("disabled",fe.disabled)("required",fe.required),m.uIk("id",fe.id)("data-placeholder",fe.placeholder)("name",fe.name||null)("readonly",fe.readonly&&!fe._isNativeSelect||null)("aria-invalid",fe.empty&&fe.required?null:fe.errorState)("aria-required",fe.required),m.ekj("mat-input-server",fe._isServer)("mat-native-select-inline",fe._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[m._Bn([{provide:q.Eo,useExisting:pe}]),m.qOj,m.TTD]}),pe})(),Ke=(()=>{class pe{}return pe.\u0275fac=function(Q){return new(Q||pe)},pe.\u0275mod=m.oAB({type:pe}),pe.\u0275inj=m.cJS({providers:[le.rD],imports:[[X,q.lN,le.BQ],X,q.lN]}),pe})()},4107:($e,ve,b)=>{b.d(ve,{gD:()=>yt,LD:()=>Ft});var c=b(9776),s=b(9808),m=b(4893),W=b(508),le=b(7322),q=b(495),Ce=b(5664),be=b(3191),ce=b(449),te=b(1159),oe=b(2382),ue=b(7579),X=b(9770),ae=b(6451),Pe=b(8675),Le=b(3900),K=b(5698),Je=b(9300),Ye=b(4004),Ke=b(1884),pe=b(2722),z=b(1777),Q=b(226);const fe=["trigger"],Ae=["panel"];function Fe(ot,Oe){if(1&ot&&(m.TgZ(0,"span",8),m._uU(1),m.qZA()),2&ot){const C=m.oxw();m.xp6(1),m.Oqu(C.placeholder)}}function _e(ot,Oe){if(1&ot&&(m.TgZ(0,"span",12),m._uU(1),m.qZA()),2&ot){const C=m.oxw(2);m.xp6(1),m.Oqu(C.triggerValue)}}function Ee(ot,Oe){1&ot&&m.Hsn(0,0,["*ngSwitchCase","true"])}function Te(ot,Oe){if(1&ot&&(m.TgZ(0,"span",9),m.YNc(1,_e,2,1,"span",10),m.YNc(2,Ee,1,0,"ng-content",11),m.qZA()),2&ot){const C=m.oxw();m.Q6J("ngSwitch",!!C.customTrigger),m.xp6(2),m.Q6J("ngSwitchCase",!0)}}function we(ot,Oe){if(1&ot){const C=m.EpF();m.TgZ(0,"div",13)(1,"div",14,15),m.NdJ("@transformPanel.done",function(E){return m.CHM(C),m.oxw()._panelDoneAnimatingStream.next(E.toState)})("keydown",function(E){return m.CHM(C),m.oxw()._handleKeydown(E)}),m.Hsn(3,1),m.qZA()()}if(2&ot){const C=m.oxw();m.Q6J("@transformPanelWrap",void 0),m.xp6(1),m.Gre("mat-select-panel ",C._getPanelTheme(),""),m.Udp("transform-origin",C._transformOrigin)("font-size",C._triggerFontSize,"px"),m.Q6J("ngClass",C.panelClass)("@transformPanel",C.multiple?"showing-multiple":"showing"),m.uIk("id",C.id+"-panel")("aria-multiselectable",C.multiple)("aria-label",C.ariaLabel||null)("aria-labelledby",C._getPanelAriaLabelledby())}}const Xe=[[["mat-select-trigger"]],"*"],Re=["mat-select-trigger","*"],vt={transformPanelWrap:(0,z.X$)("transformPanelWrap",[(0,z.eR)("* => void",(0,z.IO)("@transformPanel",[(0,z.pV)()],{optional:!0}))]),transformPanel:(0,z.X$)("transformPanel",[(0,z.SB)("void",(0,z.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,z.SB)("showing",(0,z.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,z.SB)("showing-multiple",(0,z.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,z.eR)("void => *",(0,z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,z.eR)("* => void",(0,z.jt)("100ms 25ms linear",(0,z.oB)({opacity:0})))])};let It=0;const Qe=new m.OlP("mat-select-scroll-strategy"),J=new m.OlP("MAT_SELECT_CONFIG"),Y={provide:Qe,deps:[c.aV],useFactory:function He(ot){return()=>ot.scrollStrategies.reposition()}};class Ve{constructor(Oe,C){this.source=Oe,this.value=C}}const ze=(0,W.Kr)((0,W.sb)((0,W.Id)((0,W.FD)(class{constructor(ot,Oe,C,S,E){this._elementRef=ot,this._defaultErrorStateMatcher=Oe,this._parentForm=C,this._parentFormGroup=S,this.ngControl=E}})))),st=new m.OlP("MatSelectTrigger");let Ut=(()=>{class ot extends ze{constructor(C,S,E,P,F,ie,ye,Be,je,mt,at,St,en,Wt){var un,ct,gt;super(F,P,ye,Be,mt),this._viewportRuler=C,this._changeDetectorRef=S,this._ngZone=E,this._dir=ie,this._parentFormField=je,this._liveAnnouncer=en,this._defaultOptions=Wt,this._panelOpen=!1,this._compareWith=(ke,Me)=>ke===Me,this._uid="mat-select-"+It++,this._triggerAriaLabelledBy=null,this._destroy=new ue.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+It++,this._panelDoneAnimatingStream=new ue.x,this._overlayPanelClass=(null===(un=this._defaultOptions)||void 0===un?void 0:un.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(gt=null===(ct=this._defaultOptions)||void 0===ct?void 0:ct.disableOptionCentering)&&void 0!==gt&>,this.ariaLabel="",this.optionSelectionChanges=(0,X.P)(()=>{const ke=this.options;return ke?ke.changes.pipe((0,Pe.O)(ke),(0,Le.w)(()=>(0,ae.T)(...ke.map(Me=>Me.onSelectionChange)))):this._ngZone.onStable.pipe((0,K.q)(1),(0,Le.w)(()=>this.optionSelectionChanges))}),this.openedChange=new m.vpe,this._openedStream=this.openedChange.pipe((0,Je.h)(ke=>ke),(0,Ye.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Je.h)(ke=>!ke),(0,Ye.U)(()=>{})),this.selectionChange=new m.vpe,this.valueChange=new m.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Wt?void 0:Wt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Wt.typeaheadDebounceInterval),this._scrollStrategyFactory=St,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(at)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(C){this._placeholder=C,this.stateChanges.next()}get required(){var C,S,E,P;return null!==(P=null!==(C=this._required)&&void 0!==C?C:null===(E=null===(S=this.ngControl)||void 0===S?void 0:S.control)||void 0===E?void 0:E.hasValidator(oe.kI.required))&&void 0!==P&&P}set required(C){this._required=(0,be.Ig)(C),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(C){this._multiple=(0,be.Ig)(C)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(C){this._disableOptionCentering=(0,be.Ig)(C)}get compareWith(){return this._compareWith}set compareWith(C){this._compareWith=C,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(C){(C!==this._value||this._multiple&&Array.isArray(C))&&(this.options&&this._setSelectionByValue(C),this._value=C)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(C){this._typeaheadDebounceInterval=(0,be.su)(C)}get id(){return this._id}set id(C){this._id=C||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ce.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Ke.x)(),(0,pe.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,pe.R)(this._destroy)).subscribe(C=>{C.added.forEach(S=>S.select()),C.removed.forEach(S=>S.deselect())}),this.options.changes.pipe((0,Pe.O)(null),(0,pe.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const C=this._getTriggerAriaLabelledby();if(C!==this._triggerAriaLabelledBy){const S=this._elementRef.nativeElement;this._triggerAriaLabelledBy=C,C?S.setAttribute("aria-labelledby",C):S.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(C){C.disabled&&this.stateChanges.next(),C.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(C){this.value=C}registerOnChange(C){this._onChange=C}registerOnTouched(C){this._onTouched=C}setDisabledState(C){this.disabled=C,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var C,S;return this.multiple?(null===(C=this._selectionModel)||void 0===C?void 0:C.selected)||[]:null===(S=this._selectionModel)||void 0===S?void 0:S.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const C=this._selectionModel.selected.map(S=>S.viewValue);return this._isRtl()&&C.reverse(),C.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(C){this.disabled||(this.panelOpen?this._handleOpenKeydown(C):this._handleClosedKeydown(C))}_handleClosedKeydown(C){const S=C.keyCode,E=S===te.JH||S===te.LH||S===te.oh||S===te.SV,P=S===te.K5||S===te.L_,F=this._keyManager;if(!F.isTyping()&&P&&!(0,te.Vb)(C)||(this.multiple||C.altKey)&&E)C.preventDefault(),this.open();else if(!this.multiple){const ie=this.selected;F.onKeydown(C);const ye=this.selected;ye&&ie!==ye&&this._liveAnnouncer.announce(ye.viewValue,1e4)}}_handleOpenKeydown(C){const S=this._keyManager,E=C.keyCode,P=E===te.JH||E===te.LH,F=S.isTyping();if(P&&C.altKey)C.preventDefault(),this.close();else if(F||E!==te.K5&&E!==te.L_||!S.activeItem||(0,te.Vb)(C))if(!F&&this._multiple&&E===te.A&&C.ctrlKey){C.preventDefault();const ie=this.options.some(ye=>!ye.disabled&&!ye.selected);this.options.forEach(ye=>{ye.disabled||(ie?ye.select():ye.deselect())})}else{const ie=S.activeItemIndex;S.onKeydown(C),this._multiple&&P&&C.shiftKey&&S.activeItem&&S.activeItemIndex!==ie&&S.activeItem._selectViaInteraction()}else C.preventDefault(),S.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,K.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(C){if(this._selectionModel.selected.forEach(S=>S.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&C)Array.isArray(C),C.forEach(S=>this._selectValue(S)),this._sortValues();else{const S=this._selectValue(C);S?this._keyManager.updateActiveItem(S):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(C){const S=this.options.find(E=>{if(this._selectionModel.isSelected(E))return!1;try{return null!=E.value&&this._compareWith(E.value,C)}catch(P){return!1}});return S&&this._selectionModel.select(S),S}_initKeyManager(){this._keyManager=new Ce.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,pe.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,pe.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const C=(0,ae.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,pe.R)(C)).subscribe(S=>{this._onSelect(S.source,S.isUserInput),S.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ae.T)(...this.options.map(S=>S._stateChanges)).pipe((0,pe.R)(C)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(C,S){const E=this._selectionModel.isSelected(C);null!=C.value||this._multiple?(E!==C.selected&&(C.selected?this._selectionModel.select(C):this._selectionModel.deselect(C)),S&&this._keyManager.setActiveItem(C),this.multiple&&(this._sortValues(),S&&this.focus())):(C.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(C.value)),E!==this._selectionModel.isSelected(C)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const C=this.options.toArray();this._selectionModel.sort((S,E)=>this.sortComparator?this.sortComparator(S,E,C):C.indexOf(S)-C.indexOf(E)),this.stateChanges.next()}}_propagateChanges(C){let S=null;S=this.multiple?this.selected.map(E=>E.value):this.selected?this.selected.value:C,this._value=S,this.valueChange.emit(S),this._onChange(S),this.selectionChange.emit(this._getChangeEvent(S)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var C;return!this._panelOpen&&!this.disabled&&(null===(C=this.options)||void 0===C?void 0:C.length)>0}focus(C){this._elementRef.nativeElement.focus(C)}_getPanelAriaLabelledby(){var C;if(this.ariaLabel)return null;const S=null===(C=this._parentFormField)||void 0===C?void 0:C.getLabelId();return this.ariaLabelledby?(S?S+" ":"")+this.ariaLabelledby:S}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var C;if(this.ariaLabel)return null;const S=null===(C=this._parentFormField)||void 0===C?void 0:C.getLabelId();let E=(S?S+" ":"")+this._valueId;return this.ariaLabelledby&&(E+=" "+this.ariaLabelledby),E}_panelDoneAnimating(C){this.openedChange.emit(C)}setDescribedByIds(C){this._ariaDescribedby=C.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return ot.\u0275fac=function(C){return new(C||ot)(m.Y36(q.rL),m.Y36(m.sBO),m.Y36(m.R0b),m.Y36(W.rD),m.Y36(m.SBq),m.Y36(Q.Is,8),m.Y36(oe.F,8),m.Y36(oe.sg,8),m.Y36(le.G_,8),m.Y36(oe.a5,10),m.$8M("tabindex"),m.Y36(Qe),m.Y36(Ce.Kd),m.Y36(J,8))},ot.\u0275dir=m.lG2({type:ot,viewQuery:function(C,S){if(1&C&&(m.Gf(fe,5),m.Gf(Ae,5),m.Gf(c.pI,5)),2&C){let E;m.iGM(E=m.CRH())&&(S.trigger=E.first),m.iGM(E=m.CRH())&&(S.panel=E.first),m.iGM(E=m.CRH())&&(S._overlayDir=E.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[m.qOj,m.TTD]}),ot})(),yt=(()=>{class ot extends Ut{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(C,S,E){const P=this._getItemHeight();return Math.min(Math.max(0,P*C-S+P/2),E)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,pe.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,K.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(C){const S=(0,W.CB)(C,this.options,this.optionGroups),E=this._getItemHeight();this.panel.nativeElement.scrollTop=0===C&&1===S?0:(0,W.jH)((C+S)*E,E,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(C){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(C)}_getChangeEvent(C){return new Ve(this,C)}_calculateOverlayOffsetX(){const C=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),S=this._viewportRuler.getViewportSize(),E=this._isRtl(),P=this.multiple?56:32;let F;if(this.multiple)F=40;else if(this.disableOptionCentering)F=16;else{let Be=this._selectionModel.selected[0]||this.options.first;F=Be&&Be.group?32:16}E||(F*=-1);const ie=0-(C.left+F-(E?P:0)),ye=C.right+F-S.width+(E?0:P);ie>0?F+=ie+8:ye>0&&(F-=ye+8),this._overlayDir.offsetX=Math.round(F),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(C,S,E){const P=this._getItemHeight(),F=(P-this._triggerRect.height)/2,ie=Math.floor(256/P);let ye;return this.disableOptionCentering?0:(ye=0===this._scrollTop?C*P:this._scrollTop===E?(C-(this._getItemCount()-ie))*P+(P-(this._getItemCount()*P-256)%P):S-P/2,Math.round(-1*ye-F))}_checkOverlayWithinViewport(C){const S=this._getItemHeight(),E=this._viewportRuler.getViewportSize(),P=this._triggerRect.top-8,F=E.height-this._triggerRect.bottom-8,ie=Math.abs(this._offsetY),Be=Math.min(this._getItemCount()*S,256)-ie-this._triggerRect.height;Be>F?this._adjustPanelUp(Be,F):ie>P?this._adjustPanelDown(ie,P,C):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(C,S){const E=Math.round(C-S);this._scrollTop-=E,this._offsetY-=E,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(C,S,E){const P=Math.round(C-S);if(this._scrollTop+=P,this._offsetY+=P,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=E)return this._scrollTop=E,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const C=this._getItemHeight(),S=this._getItemCount(),E=Math.min(S*C,256),F=S*C-E;let ie;ie=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ie+=(0,W.CB)(ie,this.options,this.optionGroups);const ye=E/2;this._scrollTop=this._calculateOverlayScroll(ie,ye,F),this._offsetY=this._calculateOverlayOffsetY(ie,ye,F),this._checkOverlayWithinViewport(F)}_getOriginBasedOnOption(){const C=this._getItemHeight(),S=(C-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-S+C/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return ot.\u0275fac=function(){let Oe;return function(S){return(Oe||(Oe=m.n5z(ot)))(S||ot)}}(),ot.\u0275cmp=m.Xpm({type:ot,selectors:[["mat-select"]],contentQueries:function(C,S,E){if(1&C&&(m.Suo(E,st,5),m.Suo(E,W.ey,5),m.Suo(E,W.K7,5)),2&C){let P;m.iGM(P=m.CRH())&&(S.customTrigger=P.first),m.iGM(P=m.CRH())&&(S.options=P),m.iGM(P=m.CRH())&&(S.optionGroups=P)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(C,S){1&C&&m.NdJ("keydown",function(P){return S._handleKeydown(P)})("focus",function(){return S._onFocus()})("blur",function(){return S._onBlur()}),2&C&&(m.uIk("id",S.id)("tabindex",S.tabIndex)("aria-controls",S.panelOpen?S.id+"-panel":null)("aria-expanded",S.panelOpen)("aria-label",S.ariaLabel||null)("aria-required",S.required.toString())("aria-disabled",S.disabled.toString())("aria-invalid",S.errorState)("aria-describedby",S._ariaDescribedby||null)("aria-activedescendant",S._getAriaActiveDescendant()),m.ekj("mat-select-disabled",S.disabled)("mat-select-invalid",S.errorState)("mat-select-required",S.required)("mat-select-empty",S.empty)("mat-select-multiple",S.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[m._Bn([{provide:le.Eo,useExisting:ot},{provide:W.HF,useExisting:ot}]),m.qOj],ngContentSelectors:Re,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(C,S){if(1&C&&(m.F$t(Xe),m.TgZ(0,"div",0,1),m.NdJ("click",function(){return S.toggle()}),m.TgZ(3,"div",2),m.YNc(4,Fe,2,1,"span",3),m.YNc(5,Te,3,2,"span",4),m.qZA(),m.TgZ(6,"div",5),m._UZ(7,"div",6),m.qZA()(),m.YNc(8,we,4,14,"ng-template",7),m.NdJ("backdropClick",function(){return S.close()})("attach",function(){return S._onAttached()})("detach",function(){return S.close()})),2&C){const E=m.MAs(1);m.uIk("aria-owns",S.panelOpen?S.id+"-panel":null),m.xp6(3),m.Q6J("ngSwitch",S.empty),m.uIk("id",S._valueId),m.xp6(1),m.Q6J("ngSwitchCase",!0),m.xp6(1),m.Q6J("ngSwitchCase",!1),m.xp6(3),m.Q6J("cdkConnectedOverlayPanelClass",S._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",S._scrollStrategy)("cdkConnectedOverlayOrigin",E)("cdkConnectedOverlayOpen",S.panelOpen)("cdkConnectedOverlayPositions",S._positions)("cdkConnectedOverlayMinWidth",null==S._triggerRect?null:S._triggerRect.width)("cdkConnectedOverlayOffsetY",S._offsetY)}},directives:[c.xu,s.RF,s.n9,s.ED,c.pI,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[vt.transformPanelWrap,vt.transformPanel]},changeDetection:0}),ot})(),Ft=(()=>{class ot{}return ot.\u0275fac=function(C){return new(C||ot)},ot.\u0275mod=m.oAB({type:ot}),ot.\u0275inj=m.cJS({providers:[Y],imports:[[s.ez,c.U8,W.Ng,W.BQ],q.ZD,le.lN,W.Ng,W.BQ]}),ot})()},6360:($e,ve,b)=>{b.d(ve,{Qb:()=>_r,PW:()=>Do});var c=b(4893),s=b(2313),m=b(1777);const W=!1;function q(y){return new c.vHH(3e3,W)}function Tt(){return"undefined"!=typeof window&&void 0!==window.document}function nn(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Qe(y){switch(y.length){case 0:return new m.ZN;case 1:return y[0];default:return new m.ZE(y)}}function He(y,r,a,h,A={},N={}){const Z=[],re=[];let De=-1,Ue=null;if(h.forEach(dt=>{const bt=dt.offset,Gt=bt==De,sn=Gt&&Ue||{};Object.keys(dt).forEach(Bt=>{let tn=Bt,En=dt[Bt];if("offset"!==Bt)switch(tn=r.normalizePropertyName(tn,Z),En){case m.k1:En=A[Bt];break;case m.l3:En=N[Bt];break;default:En=r.normalizeStyleValue(Bt,tn,En,Z)}sn[tn]=En}),Gt||re.push(sn),Ue=sn,De=bt}),Z.length)throw function we(y){return new c.vHH(3502,W)}();return re}function J(y,r,a,h){switch(r){case"start":y.onStart(()=>h(a&&Y(a,"start",y)));break;case"done":y.onDone(()=>h(a&&Y(a,"done",y)));break;case"destroy":y.onDestroy(()=>h(a&&Y(a,"destroy",y)))}}function Y(y,r,a){const h=a.totalTime,N=Ve(y.element,y.triggerName,y.fromState,y.toState,r||y.phaseName,null==h?y.totalTime:h,!!a.disabled),Z=y._data;return null!=Z&&(N._data=Z),N}function Ve(y,r,a,h,A="",N=0,Z){return{element:y,triggerName:r,fromState:a,toState:h,phaseName:A,totalTime:N,disabled:!!Z}}function ze(y,r,a){let h;return y instanceof Map?(h=y.get(r),h||y.set(r,h=a)):(h=y[r],h||(h=y[r]=a)),h}function st(y){const r=y.indexOf(":");return[y.substring(1,r),y.substr(r+1)]}let xt=(y,r)=>!1,Ut=(y,r,a)=>[],yt=null;function Ft(y){const r=y.parentNode||y.host;return r===yt?null:r}(nn()||"undefined"!=typeof Element)&&(Tt()?(yt=(()=>document.documentElement)(),xt=(y,r)=>{for(;r;){if(r===y)return!0;r=Ft(r)}return!1}):xt=(y,r)=>y.contains(r),Ut=(y,r,a)=>{if(a)return Array.from(y.querySelectorAll(r));const h=y.querySelector(r);return h?[h]:[]});let C=null,S=!1;function E(y){C||(C=function P(){return"undefined"!=typeof document?document.body:null}()||{},S=!!C.style&&"WebkitAppearance"in C.style);let r=!0;return C.style&&!function Oe(y){return"ebkit"==y.substring(1,6)}(y)&&(r=y in C.style,!r&&S&&(r="Webkit"+y.charAt(0).toUpperCase()+y.substr(1)in C.style)),r}const F=xt,ie=Ut;let Be=(()=>{class y{validateStyleProperty(a){return E(a)}matchesElement(a,h){return!1}containsElement(a,h){return F(a,h)}getParentElement(a){return Ft(a)}query(a,h,A){return ie(a,h,A)}computeStyle(a,h,A){return A||""}animate(a,h,A,N,Z,re=[],De){return new m.ZN(A,N)}}return y.\u0275fac=function(a){return new(a||y)},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac}),y})(),je=(()=>{class y{}return y.NOOP=new Be,y})();const en="ng-enter",Wt="ng-leave",un="ng-trigger",ct=".ng-trigger",gt="ng-animating",ke=".ng-animating";function Me(y){if("number"==typeof y)return y;const r=y.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:V(parseFloat(r[1]),r[2])}function V(y,r){return"s"===r?1e3*y:y}function j(y,r,a){return y.hasOwnProperty("duration")?y:function G(y,r,a){let A,N=0,Z="";if("string"==typeof y){const re=y.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===re)return r.push(q()),{duration:0,delay:0,easing:""};A=V(parseFloat(re[1]),re[2]);const De=re[3];null!=De&&(N=V(parseFloat(De),re[4]));const Ue=re[5];Ue&&(Z=Ue)}else A=y;if(!a){let re=!1,De=r.length;A<0&&(r.push(function Ce(){return new c.vHH(3100,W)}()),re=!0),N<0&&(r.push(function be(){return new c.vHH(3101,W)}()),re=!0),re&&r.splice(De,0,q())}return{duration:A,delay:N,easing:Z}}(y,r,a)}function de(y,r={}){return Object.keys(y).forEach(a=>{r[a]=y[a]}),r}function rt(y,r,a={}){if(r)for(let h in y)a[h]=y[h];else de(y,a);return a}function wt(y,r,a){return a?r+":"+a+";":""}function Zt(y){let r="";for(let a=0;a{const A=zt(h);a&&!a.hasOwnProperty(h)&&(a[h]=y.style[A]),y.style[A]=r[h]}),nn()&&Zt(y))}function Ct(y,r){y.style&&(Object.keys(r).forEach(a=>{const h=zt(a);y.style[h]=""}),nn()&&Zt(y))}function In(y){return Array.isArray(y)?1==y.length?y[0]:(0,m.vP)(y):y}const ge=new RegExp("{{\\s*(.+?)\\s*}}","g");function ne(y){let r=[];if("string"==typeof y){let a;for(;a=ge.exec(y);)r.push(a[1]);ge.lastIndex=0}return r}function Se(y,r,a){const h=y.toString(),A=h.replace(ge,(N,Z)=>{let re=r[Z];return r.hasOwnProperty(Z)||(a.push(function te(y){return new c.vHH(3003,W)}()),re=""),re.toString()});return A==h?y:A}function nt(y){const r=[];let a=y.next();for(;!a.done;)r.push(a.value),a=y.next();return r}const Pt=/-+([a-z0-9])/g;function zt(y){return y.replace(Pt,(...r)=>r[1].toUpperCase())}function yn(y){return y.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function bn(y,r,a){switch(r.type){case 7:return y.visitTrigger(r,a);case 0:return y.visitState(r,a);case 1:return y.visitTransition(r,a);case 2:return y.visitSequence(r,a);case 3:return y.visitGroup(r,a);case 4:return y.visitAnimate(r,a);case 5:return y.visitKeyframes(r,a);case 6:return y.visitStyle(r,a);case 8:return y.visitReference(r,a);case 9:return y.visitAnimateChild(r,a);case 10:return y.visitAnimateRef(r,a);case 11:return y.visitQuery(r,a);case 12:return y.visitStagger(r,a);default:throw function oe(y){return new c.vHH(3004,W)}()}}function Un(y,r){return window.getComputedStyle(y)[r]}function ht(y,r){const a=[];return"string"==typeof y?y.split(/\s*,\s*/).forEach(h=>function qt(y,r,a){if(":"==y[0]){const De=function fn(y,r){switch(y){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,h)=>parseFloat(h)>parseFloat(a);case":decrement":return(a,h)=>parseFloat(h) *"}}(y,a);if("function"==typeof De)return void r.push(De);y=De}const h=y.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==h||h.length<4)return a.push(function Ae(y){return new c.vHH(3015,W)}()),r;const A=h[1],N=h[2],Z=h[3];r.push(Mn(A,Z));"<"==N[0]&&!("*"==A&&"*"==Z)&&r.push(Mn(Z,A))}(h,a,r)):a.push(y),a}const Rn=new Set(["true","1"]),si=new Set(["false","0"]);function Mn(y,r){const a=Rn.has(y)||si.has(y),h=Rn.has(r)||si.has(r);return(A,N)=>{let Z="*"==y||y==A,re="*"==r||r==N;return!Z&&a&&"boolean"==typeof A&&(Z=A?Rn.has(y):si.has(y)),!re&&h&&"boolean"==typeof N&&(re=N?Rn.has(r):si.has(r)),Z&&re}}const Xt=new RegExp("s*:selfs*,?","g");function $n(y,r,a,h){return new Ht(y).build(r,a,h)}class Ht{constructor(r){this._driver=r}build(r,a,h){const A=new xi(a);this._resetContextStyleTimingState(A);const N=bn(this,In(r),A);return A.unsupportedCSSPropertiesFound.size&&A.unsupportedCSSPropertiesFound.keys(),N}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles={},r.collectedStyles[""]={},r.currentTime=0}visitTrigger(r,a){let h=a.queryCount=0,A=a.depCount=0;const N=[],Z=[];return"@"==r.name.charAt(0)&&a.errors.push(function X(){return new c.vHH(3006,W)}()),r.definitions.forEach(re=>{if(this._resetContextStyleTimingState(a),0==re.type){const De=re,Ue=De.name;Ue.toString().split(/\s*,\s*/).forEach(dt=>{De.name=dt,N.push(this.visitState(De,a))}),De.name=Ue}else if(1==re.type){const De=this.visitTransition(re,a);h+=De.queryCount,A+=De.depCount,Z.push(De)}else a.errors.push(function ae(){return new c.vHH(3007,W)}())}),{type:7,name:r.name,states:N,transitions:Z,queryCount:h,depCount:A,options:null}}visitState(r,a){const h=this.visitStyle(r.styles,a),A=r.options&&r.options.params||null;if(h.containsDynamicStyles){const N=new Set,Z=A||{};h.styles.forEach(re=>{if(pn(re)){const De=re;Object.keys(De).forEach(Ue=>{ne(De[Ue]).forEach(dt=>{Z.hasOwnProperty(dt)||N.add(dt)})})}}),N.size&&(nt(N.values()),a.errors.push(function Pe(y,r){return new c.vHH(3008,W)}()))}return{type:0,name:r.name,style:h,options:A?{params:A}:null}}visitTransition(r,a){a.queryCount=0,a.depCount=0;const h=bn(this,In(r.animation),a);return{type:1,matchers:ht(r.expr,a.errors),animation:h,queryCount:a.queryCount,depCount:a.depCount,options:Fn(r.options)}}visitSequence(r,a){return{type:2,steps:r.steps.map(h=>bn(this,h,a)),options:Fn(r.options)}}visitGroup(r,a){const h=a.currentTime;let A=0;const N=r.steps.map(Z=>{a.currentTime=h;const re=bn(this,Z,a);return A=Math.max(A,a.currentTime),re});return a.currentTime=A,{type:3,steps:N,options:Fn(r.options)}}visitAnimate(r,a){const h=function ui(y,r){let a=null;if(y.hasOwnProperty("duration"))a=y;else if("number"==typeof y)return Jn(j(y,r).duration,0,"");const h=y;if(h.split(/\s+/).some(N=>"{"==N.charAt(0)&&"{"==N.charAt(1))){const N=Jn(0,0,"");return N.dynamic=!0,N.strValue=h,N}return a=a||j(h,r),Jn(a.duration,a.delay,a.easing)}(r.timings,a.errors);a.currentAnimateTimings=h;let A,N=r.styles?r.styles:(0,m.oB)({});if(5==N.type)A=this.visitKeyframes(N,a);else{let Z=r.styles,re=!1;if(!Z){re=!0;const Ue={};h.easing&&(Ue.easing=h.easing),Z=(0,m.oB)(Ue)}a.currentTime+=h.duration+h.delay;const De=this.visitStyle(Z,a);De.isEmptyStep=re,A=De}return a.currentAnimateTimings=null,{type:4,timings:h,style:A,options:null}}visitStyle(r,a){const h=this._makeStyleAst(r,a);return this._validateStyleAst(h,a),h}_makeStyleAst(r,a){const h=[];Array.isArray(r.styles)?r.styles.forEach(Z=>{"string"==typeof Z?Z==m.l3?h.push(Z):a.errors.push(function Le(y){return new c.vHH(3002,W)}()):h.push(Z)}):h.push(r.styles);let A=!1,N=null;return h.forEach(Z=>{if(pn(Z)){const re=Z,De=re.easing;if(De&&(N=De,delete re.easing),!A)for(let Ue in re)if(re[Ue].toString().indexOf("{{")>=0){A=!0;break}}}),{type:6,styles:h,easing:N,offset:r.offset,containsDynamicStyles:A,options:null}}_validateStyleAst(r,a){const h=a.currentAnimateTimings;let A=a.currentTime,N=a.currentTime;h&&N>0&&(N-=h.duration+h.delay),r.styles.forEach(Z=>{"string"!=typeof Z&&Object.keys(Z).forEach(re=>{if(!this._driver.validateStyleProperty(re))return delete Z[re],void a.unsupportedCSSPropertiesFound.add(re);const De=a.collectedStyles[a.currentQuerySelector],Ue=De[re];let dt=!0;Ue&&(N!=A&&N>=Ue.startTime&&A<=Ue.endTime&&(a.errors.push(function Je(y,r,a,h,A){return new c.vHH(3010,W)}()),dt=!1),N=Ue.startTime),dt&&(De[re]={startTime:N,endTime:A}),a.options&&function Ne(y,r,a){const h=r.params||{},A=ne(y);A.length&&A.forEach(N=>{h.hasOwnProperty(N)||a.push(function ce(y){return new c.vHH(3001,W)}())})}(Z[re],a.options,a.errors)})})}visitKeyframes(r,a){const h={type:5,styles:[],options:null};if(!a.currentAnimateTimings)return a.errors.push(function Ye(){return new c.vHH(3011,W)}()),h;let N=0;const Z=[];let re=!1,De=!1,Ue=0;const dt=r.steps.map(zn=>{const ai=this._makeStyleAst(zn,a);let Ci=null!=ai.offset?ai.offset:function jn(y){if("string"==typeof y)return null;let r=null;if(Array.isArray(y))y.forEach(a=>{if(pn(a)&&a.hasOwnProperty("offset")){const h=a;r=parseFloat(h.offset),delete h.offset}});else if(pn(y)&&y.hasOwnProperty("offset")){const a=y;r=parseFloat(a.offset),delete a.offset}return r}(ai.styles),ni=0;return null!=Ci&&(N++,ni=ai.offset=Ci),De=De||ni<0||ni>1,re=re||ni0&&N{const Ci=Gt>0?ai==sn?1:Gt*ai:Z[ai],ni=Ci*En;a.currentTime=Bt+tn.delay+ni,tn.duration=ni,this._validateStyleAst(zn,a),zn.offset=Ci,h.styles.push(zn)}),h}visitReference(r,a){return{type:8,animation:bn(this,In(r.animation),a),options:Fn(r.options)}}visitAnimateChild(r,a){return a.depCount++,{type:9,options:Fn(r.options)}}visitAnimateRef(r,a){return{type:10,animation:this.visitReference(r.animation,a),options:Fn(r.options)}}visitQuery(r,a){const h=a.currentQuerySelector,A=r.options||{};a.queryCount++,a.currentQuery=r;const[N,Z]=function ci(y){const r=!!y.split(/\s*,\s*/).find(a=>":self"==a);return r&&(y=y.replace(Xt,"")),y=y.replace(/@\*/g,ct).replace(/@\w+/g,a=>ct+"-"+a.substr(1)).replace(/:animating/g,ke),[y,r]}(r.selector);a.currentQuerySelector=h.length?h+" "+N:N,ze(a.collectedStyles,a.currentQuerySelector,{});const re=bn(this,In(r.animation),a);return a.currentQuery=null,a.currentQuerySelector=h,{type:11,selector:N,limit:A.limit||0,optional:!!A.optional,includeSelf:Z,animation:re,originalSelector:r.selector,options:Fn(r.options)}}visitStagger(r,a){a.currentQuery||a.errors.push(function Q(){return new c.vHH(3013,W)}());const h="full"===r.timings?{duration:0,delay:0,easing:"full"}:j(r.timings,a.errors,!0);return{type:12,animation:bn(this,In(r.animation),a),timings:h,options:null}}}class xi{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function pn(y){return!Array.isArray(y)&&"object"==typeof y}function Fn(y){return y?(y=de(y)).params&&(y.params=function Qn(y){return y?de(y):null}(y.params)):y={},y}function Jn(y,r,a){return{duration:y,delay:r,easing:a}}function ln(y,r,a,h,A,N,Z=null,re=!1){return{type:1,element:y,keyframes:r,preStyleProps:a,postStyleProps:h,duration:A,delay:N,totalTime:A+N,easing:Z,subTimeline:re}}class tr{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,a){let h=this._map.get(r);h||this._map.set(r,h=[]),h.push(...a)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const bi=new RegExp(":enter","g"),Yi=new RegExp(":leave","g");function Tn(y,r,a,h,A,N={},Z={},re,De,Ue=[]){return(new Xn).buildKeyframes(y,r,a,h,A,N,Z,re,De,Ue)}class Xn{buildKeyframes(r,a,h,A,N,Z,re,De,Ue,dt=[]){Ue=Ue||new tr;const bt=new cr(r,a,Ue,A,N,dt,[]);bt.options=De,bt.currentTimeline.setStyles([Z],null,bt.errors,De),bn(this,h,bt);const Gt=bt.timelines.filter(sn=>sn.containsAnimation());if(Object.keys(re).length){let sn;for(let Bt=Gt.length-1;Bt>=0;Bt--){const tn=Gt[Bt];if(tn.element===a){sn=tn;break}}sn&&!sn.allowOnlyTimelineStyles()&&sn.setStyles([re],null,bt.errors,De)}return Gt.length?Gt.map(sn=>sn.buildKeyframes()):[ln(a,[],[],[],0,0,"",!1)]}visitTrigger(r,a){}visitState(r,a){}visitTransition(r,a){}visitAnimateChild(r,a){const h=a.subInstructions.get(a.element);if(h){const A=a.createSubContext(r.options),N=a.currentTimeline.currentTime,Z=this._visitSubInstructions(h,A,A.options);N!=Z&&a.transformIntoNewTimeline(Z)}a.previousNode=r}visitAnimateRef(r,a){const h=a.createSubContext(r.options);h.transformIntoNewTimeline(),this.visitReference(r.animation,h),a.transformIntoNewTimeline(h.currentTimeline.currentTime),a.previousNode=r}_visitSubInstructions(r,a,h){let N=a.currentTimeline.currentTime;const Z=null!=h.duration?Me(h.duration):null,re=null!=h.delay?Me(h.delay):null;return 0!==Z&&r.forEach(De=>{const Ue=a.appendInstructionToTimeline(De,Z,re);N=Math.max(N,Ue.duration+Ue.delay)}),N}visitReference(r,a){a.updateOptions(r.options,!0),bn(this,r.animation,a),a.previousNode=r}visitSequence(r,a){const h=a.subContextCount;let A=a;const N=r.options;if(N&&(N.params||N.delay)&&(A=a.createSubContext(N),A.transformIntoNewTimeline(),null!=N.delay)){6==A.previousNode.type&&(A.currentTimeline.snapshotCurrentStyles(),A.previousNode=Si);const Z=Me(N.delay);A.delayNextStep(Z)}r.steps.length&&(r.steps.forEach(Z=>bn(this,Z,A)),A.currentTimeline.applyStylesToKeyframe(),A.subContextCount>h&&A.transformIntoNewTimeline()),a.previousNode=r}visitGroup(r,a){const h=[];let A=a.currentTimeline.currentTime;const N=r.options&&r.options.delay?Me(r.options.delay):0;r.steps.forEach(Z=>{const re=a.createSubContext(r.options);N&&re.delayNextStep(N),bn(this,Z,re),A=Math.max(A,re.currentTimeline.currentTime),h.push(re.currentTimeline)}),h.forEach(Z=>a.currentTimeline.mergeTimelineCollectedStyles(Z)),a.transformIntoNewTimeline(A),a.previousNode=r}_visitTiming(r,a){if(r.dynamic){const h=r.strValue;return j(a.params?Se(h,a.params,a.errors):h,a.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,a){const h=a.currentAnimateTimings=this._visitTiming(r.timings,a),A=a.currentTimeline;h.delay&&(a.incrementTime(h.delay),A.snapshotCurrentStyles());const N=r.style;5==N.type?this.visitKeyframes(N,a):(a.incrementTime(h.duration),this.visitStyle(N,a),A.applyStylesToKeyframe()),a.currentAnimateTimings=null,a.previousNode=r}visitStyle(r,a){const h=a.currentTimeline,A=a.currentAnimateTimings;!A&&h.getCurrentStyleProperties().length&&h.forwardFrame();const N=A&&A.easing||r.easing;r.isEmptyStep?h.applyEmptyStep(N):h.setStyles(r.styles,N,a.errors,a.options),a.previousNode=r}visitKeyframes(r,a){const h=a.currentAnimateTimings,A=a.currentTimeline.duration,N=h.duration,re=a.createSubContext().currentTimeline;re.easing=h.easing,r.styles.forEach(De=>{re.forwardTime((De.offset||0)*N),re.setStyles(De.styles,De.easing,a.errors,a.options),re.applyStylesToKeyframe()}),a.currentTimeline.mergeTimelineCollectedStyles(re),a.transformIntoNewTimeline(A+N),a.previousNode=r}visitQuery(r,a){const h=a.currentTimeline.currentTime,A=r.options||{},N=A.delay?Me(A.delay):0;N&&(6===a.previousNode.type||0==h&&a.currentTimeline.getCurrentStyleProperties().length)&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Si);let Z=h;const re=a.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!A.optional,a.errors);a.currentQueryTotal=re.length;let De=null;re.forEach((Ue,dt)=>{a.currentQueryIndex=dt;const bt=a.createSubContext(r.options,Ue);N&&bt.delayNextStep(N),Ue===a.element&&(De=bt.currentTimeline),bn(this,r.animation,bt),bt.currentTimeline.applyStylesToKeyframe(),Z=Math.max(Z,bt.currentTimeline.currentTime)}),a.currentQueryIndex=0,a.currentQueryTotal=0,a.transformIntoNewTimeline(Z),De&&(a.currentTimeline.mergeTimelineCollectedStyles(De),a.currentTimeline.snapshotCurrentStyles()),a.previousNode=r}visitStagger(r,a){const h=a.parentContext,A=a.currentTimeline,N=r.timings,Z=Math.abs(N.duration),re=Z*(a.currentQueryTotal-1);let De=Z*a.currentQueryIndex;switch(N.duration<0?"reverse":N.easing){case"reverse":De=re-De;break;case"full":De=h.currentStaggerTime}const dt=a.currentTimeline;De&&dt.delayNextStep(De);const bt=dt.currentTime;bn(this,r.animation,a),a.previousNode=r,h.currentStaggerTime=A.currentTime-bt+(A.startTime-h.currentTimeline.startTime)}}const Si={};class cr{constructor(r,a,h,A,N,Z,re,De){this._driver=r,this.element=a,this.subInstructions=h,this._enterClassName=A,this._leaveClassName=N,this.errors=Z,this.timelines=re,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Si,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=De||new nr(this._driver,a,0),re.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,a){if(!r)return;const h=r;let A=this.options;null!=h.duration&&(A.duration=Me(h.duration)),null!=h.delay&&(A.delay=Me(h.delay));const N=h.params;if(N){let Z=A.params;Z||(Z=this.options.params={}),Object.keys(N).forEach(re=>{(!a||!Z.hasOwnProperty(re))&&(Z[re]=Se(N[re],Z,this.errors))})}}_copyOptions(){const r={};if(this.options){const a=this.options.params;if(a){const h=r.params={};Object.keys(a).forEach(A=>{h[A]=a[A]})}}return r}createSubContext(r=null,a,h){const A=a||this.element,N=new cr(this._driver,A,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(A,h||0));return N.previousNode=this.previousNode,N.currentAnimateTimings=this.currentAnimateTimings,N.options=this._copyOptions(),N.updateOptions(r),N.currentQueryIndex=this.currentQueryIndex,N.currentQueryTotal=this.currentQueryTotal,N.parentContext=this,this.subContextCount++,N}transformIntoNewTimeline(r){return this.previousNode=Si,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,a,h){const A={duration:null!=a?a:r.duration,delay:this.currentTimeline.currentTime+(null!=h?h:0)+r.delay,easing:""},N=new ur(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,A,r.stretchStartingKeyframe);return this.timelines.push(N),A}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,a,h,A,N,Z){let re=[];if(A&&re.push(this.element),r.length>0){r=(r=r.replace(bi,"."+this._enterClassName)).replace(Yi,"."+this._leaveClassName);let Ue=this._driver.query(this.element,r,1!=h);0!==h&&(Ue=h<0?Ue.slice(Ue.length+h,Ue.length):Ue.slice(0,h)),re.push(...Ue)}return!N&&0==re.length&&Z.push(function fe(y){return new c.vHH(3014,W)}()),re}}class nr{constructor(r,a,h,A){this._driver=r,this.element=a,this.startTime=h,this._elementTimelineStylesLookup=A,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const a=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||a?(this.forwardTime(this.currentTime+r),a&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,a){return this.applyStylesToKeyframe(),new nr(this._driver,r,a||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,a){this._localTimelineStyles[r]=a,this._globalTimelineStyles[r]=a,this._styleSummary[r]={time:this.currentTime,value:a}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&(this._previousKeyframe.easing=r),Object.keys(this._globalTimelineStyles).forEach(a=>{this._backFill[a]=this._globalTimelineStyles[a]||m.l3,this._currentKeyframe[a]=m.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,a,h,A){a&&(this._previousKeyframe.easing=a);const N=A&&A.params||{},Z=function Pr(y,r){const a={};let h;return y.forEach(A=>{"*"===A?(h=h||Object.keys(r),h.forEach(N=>{a[N]=m.l3})):rt(A,!1,a)}),a}(r,this._globalTimelineStyles);Object.keys(Z).forEach(re=>{const De=Se(Z[re],N,h);this._pendingStyles[re]=De,this._localTimelineStyles.hasOwnProperty(re)||(this._backFill[re]=this._globalTimelineStyles.hasOwnProperty(re)?this._globalTimelineStyles[re]:m.l3),this._updateStyle(re,De)})}applyStylesToKeyframe(){const r=this._pendingStyles,a=Object.keys(r);0!=a.length&&(this._pendingStyles={},a.forEach(h=>{this._currentKeyframe[h]=r[h]}),Object.keys(this._localTimelineStyles).forEach(h=>{this._currentKeyframe.hasOwnProperty(h)||(this._currentKeyframe[h]=this._localTimelineStyles[h])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(r=>{const a=this._localTimelineStyles[r];this._pendingStyles[r]=a,this._updateStyle(r,a)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let a in this._currentKeyframe)r.push(a);return r}mergeTimelineCollectedStyles(r){Object.keys(r._styleSummary).forEach(a=>{const h=this._styleSummary[a],A=r._styleSummary[a];(!h||A.time>h.time)&&this._updateStyle(a,A.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,a=new Set,h=1===this._keyframes.size&&0===this.duration;let A=[];this._keyframes.forEach((re,De)=>{const Ue=rt(re,!0);Object.keys(Ue).forEach(dt=>{const bt=Ue[dt];bt==m.k1?r.add(dt):bt==m.l3&&a.add(dt)}),h||(Ue.offset=De/this.duration),A.push(Ue)});const N=r.size?nt(r.values()):[],Z=a.size?nt(a.values()):[];if(h){const re=A[0],De=de(re);re.offset=0,De.offset=1,A=[re,De]}return ln(this.element,A,N,Z,this.duration,this.startTime,this.easing,!1)}}class ur extends nr{constructor(r,a,h,A,N,Z,re=!1){super(r,a,Z.delay),this.keyframes=h,this.preStyleProps=A,this.postStyleProps=N,this._stretchStartingKeyframe=re,this.timings={duration:Z.duration,delay:Z.delay,easing:Z.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:a,duration:h,easing:A}=this.timings;if(this._stretchStartingKeyframe&&a){const N=[],Z=h+a,re=a/Z,De=rt(r[0],!1);De.offset=0,N.push(De);const Ue=rt(r[0],!1);Ue.offset=dr(re),N.push(Ue);const dt=r.length-1;for(let bt=1;bt<=dt;bt++){let Gt=rt(r[bt],!1);Gt.offset=dr((a+Gt.offset*h)/Z),N.push(Gt)}h=Z,a=0,A="",r=N}return ln(this.element,r,this.preStyleProps,this.postStyleProps,h,a,A,!0)}}function dr(y,r=3){const a=Math.pow(10,r-1);return Math.round(y*a)/a}class hr{}class fr extends hr{normalizePropertyName(r,a){return zt(r)}normalizeStyleValue(r,a,h,A){let N="";const Z=h.toString().trim();if(Zi[a]&&0!==h&&"0"!==h)if("number"==typeof h)N="px";else{const re=h.match(/^[+-]?[\d\.]+([a-z]*)$/);re&&0==re[1].length&&A.push(function ue(y,r){return new c.vHH(3005,W)}())}return Z+N}}const Zi=(()=>function wr(y){const r={};return y.forEach(a=>r[a]=!0),r}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function ir(y,r,a,h,A,N,Z,re,De,Ue,dt,bt,Gt){return{type:0,element:y,triggerName:r,isRemovalTransition:A,fromState:a,fromStyles:N,toState:h,toStyles:Z,timelines:re,queriedElements:De,preStyleProps:Ue,postStyleProps:dt,totalTime:bt,errors:Gt}}const pr={};class rr{constructor(r,a,h){this._triggerName=r,this.ast=a,this._stateStyles=h}match(r,a,h,A){return function Yr(y,r,a,h,A){return y.some(N=>N(r,a,h,A))}(this.ast.matchers,r,a,h,A)}buildStyles(r,a,h){const A=this._stateStyles["*"],N=this._stateStyles[r],Z=A?A.buildStyles(a,h):{};return N?N.buildStyles(a,h):Z}build(r,a,h,A,N,Z,re,De,Ue,dt){const bt=[],Gt=this.ast.options&&this.ast.options.params||pr,Bt=this.buildStyles(h,re&&re.params||pr,bt),tn=De&&De.params||pr,En=this.buildStyles(A,tn,bt),zn=new Set,ai=new Map,Ci=new Map,ni="void"===A,Tr={params:Object.assign(Object.assign({},Gt),tn)},Bi=dt?[]:Tn(r,a,this.ast.animation,N,Z,Bt,En,Tr,Ue,bt);let wi=0;if(Bi.forEach(Bn=>{wi=Math.max(Bn.duration+Bn.delay,wi)}),bt.length)return ir(a,this._triggerName,h,A,ni,Bt,En,[],[],ai,Ci,wi,bt);Bi.forEach(Bn=>{const gi=Bn.element,Vn=ze(ai,gi,{});Bn.preStyleProps.forEach(ii=>Vn[ii]=!0);const Jr=ze(Ci,gi,{});Bn.postStyleProps.forEach(ii=>Jr[ii]=!0),gi!==a&&zn.add(gi)});const vr=nt(zn.values());return ir(a,this._triggerName,h,A,ni,Bt,En,Bi,vr,ai,Ci,wi)}}class mr{constructor(r,a,h){this.styles=r,this.defaultParams=a,this.normalizer=h}buildStyles(r,a){const h={},A=de(this.defaultParams);return Object.keys(r).forEach(N=>{const Z=r[N];null!=Z&&(A[N]=Z)}),this.styles.styles.forEach(N=>{if("string"!=typeof N){const Z=N;Object.keys(Z).forEach(re=>{let De=Z[re];De.length>1&&(De=Se(De,A,a));const Ue=this.normalizer.normalizePropertyName(re,a);De=this.normalizer.normalizeStyleValue(re,Ue,De,a),h[Ue]=De})}}),h}}class Ki{constructor(r,a,h){this.name=r,this.ast=a,this._normalizer=h,this.transitionFactories=[],this.states={},a.states.forEach(A=>{this.states[A.name]=new mr(A.style,A.options&&A.options.params||{},h)}),gr(this.states,"true","1"),gr(this.states,"false","0"),a.transitions.forEach(A=>{this.transitionFactories.push(new rr(r,A,this.states))}),this.fallbackTransition=function pi(y,r,a){return new rr(y,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Z,re)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,a,h,A){return this.transitionFactories.find(Z=>Z.match(r,a,h,A))||null}matchStyles(r,a,h){return this.fallbackTransition.buildStyles(r,a,h)}}function gr(y,r,a){y.hasOwnProperty(r)?y.hasOwnProperty(a)||(y[a]=y[r]):y.hasOwnProperty(a)&&(y[r]=y[a])}const Ei=new tr;class Zr{constructor(r,a,h){this.bodyNode=r,this._driver=a,this._normalizer=h,this._animations={},this._playersById={},this.players=[]}register(r,a){const h=[],N=$n(this._driver,a,h,[]);if(h.length)throw function Xe(y){return new c.vHH(3503,W)}();this._animations[r]=N}_buildPlayer(r,a,h){const A=r.element,N=He(0,this._normalizer,0,r.keyframes,a,h);return this._driver.animate(A,N,r.duration,r.delay,r.easing,[],!0)}create(r,a,h={}){const A=[],N=this._animations[r];let Z;const re=new Map;if(N?(Z=Tn(this._driver,a,N,en,Wt,{},{},h,Ei,A),Z.forEach(dt=>{const bt=ze(re,dt.element,{});dt.postStyleProps.forEach(Gt=>bt[Gt]=null)})):(A.push(function Re(){return new c.vHH(3300,W)}()),Z=[]),A.length)throw function vt(y){return new c.vHH(3504,W)}();re.forEach((dt,bt)=>{Object.keys(dt).forEach(Gt=>{dt[Gt]=this._driver.computeStyle(bt,Gt,m.l3)})});const Ue=Qe(Z.map(dt=>{const bt=re.get(dt.element);return this._buildPlayer(dt,{},bt)}));return this._playersById[r]=Ue,Ue.onDestroy(()=>this.destroy(r)),this.players.push(Ue),Ue}destroy(r){const a=this._getPlayer(r);a.destroy(),delete this._playersById[r];const h=this.players.indexOf(a);h>=0&&this.players.splice(h,1)}_getPlayer(r){const a=this._playersById[r];if(!a)throw function pt(y){return new c.vHH(3301,W)}();return a}listen(r,a,h,A){const N=Ve(a,"","","");return J(this._getPlayer(r),h,N,A),()=>{}}command(r,a,h,A){if("register"==h)return void this.register(r,A[0]);if("create"==h)return void this.create(r,a,A[0]||{});const N=this._getPlayer(r);switch(h){case"play":N.play();break;case"pause":N.pause();break;case"reset":N.reset();break;case"restart":N.restart();break;case"finish":N.finish();break;case"init":N.init();break;case"setPosition":N.setPosition(parseFloat(A[0]));break;case"destroy":this.destroy(r)}}}const Di="ng-animate-queued",Hi="ng-animate-disabled",Oi=[],or={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Lr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ei="__ng_removed";class sr{constructor(r,a=""){this.namespaceId=a;const h=r&&r.hasOwnProperty("value");if(this.value=function w(y){return null!=y?y:null}(h?r.value:r),h){const N=de(r);delete N.value,this.options=N}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const a=r.params;if(a){const h=this.options.params;Object.keys(a).forEach(A=>{null==h[A]&&(h[A]=a[A])})}}}const wn="void",Qi=new sr(wn);class ti{constructor(r,a,h){this.id=r,this.hostElement=a,this._engine=h,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,et(a,this._hostClassName)}listen(r,a,h,A){if(!this._triggers.hasOwnProperty(a))throw function Qt(y,r){return new c.vHH(3302,W)}();if(null==h||0==h.length)throw function _t(y){return new c.vHH(3303,W)}();if(!function T(y){return"start"==y||"done"==y}(h))throw function It(y,r){return new c.vHH(3400,W)}();const N=ze(this._elementListeners,r,[]),Z={name:a,phase:h,callback:A};N.push(Z);const re=ze(this._engine.statesByElement,r,{});return re.hasOwnProperty(a)||(et(r,un),et(r,un+"-"+a),re[a]=Qi),()=>{this._engine.afterFlush(()=>{const De=N.indexOf(Z);De>=0&&N.splice(De,1),this._triggers[a]||delete re[a]})}}register(r,a){return!this._triggers[r]&&(this._triggers[r]=a,!0)}_getTrigger(r){const a=this._triggers[r];if(!a)throw function $t(y){return new c.vHH(3401,W)}();return a}trigger(r,a,h,A=!0){const N=this._getTrigger(a),Z=new ar(this.id,a,r);let re=this._engine.statesByElement.get(r);re||(et(r,un),et(r,un+"-"+a),this._engine.statesByElement.set(r,re={}));let De=re[a];const Ue=new sr(h,this.id);if(!(h&&h.hasOwnProperty("value"))&&De&&Ue.absorbOptions(De.options),re[a]=Ue,De||(De=Qi),Ue.value!==wn&&De.value===Ue.value){if(!function Vt(y,r){const a=Object.keys(y),h=Object.keys(r);if(a.length!=h.length)return!1;for(let A=0;A{Ct(r,En),Yt(r,zn)})}return}const Gt=ze(this._engine.playersByElement,r,[]);Gt.forEach(tn=>{tn.namespaceId==this.id&&tn.triggerName==a&&tn.queued&&tn.destroy()});let sn=N.matchTransition(De.value,Ue.value,r,Ue.params),Bt=!1;if(!sn){if(!A)return;sn=N.fallbackTransition,Bt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:a,transition:sn,fromState:De,toState:Ue,player:Z,isFallbackTransition:Bt}),Bt||(et(r,Di),Z.onStart(()=>{ut(r,Di)})),Z.onDone(()=>{let tn=this.players.indexOf(Z);tn>=0&&this.players.splice(tn,1);const En=this._engine.playersByElement.get(r);if(En){let zn=En.indexOf(Z);zn>=0&&En.splice(zn,1)}}),this.players.push(Z),Gt.push(Z),Z}deregister(r){delete this._triggers[r],this._engine.statesByElement.forEach((a,h)=>{delete a[r]}),this._elementListeners.forEach((a,h)=>{this._elementListeners.set(h,a.filter(A=>A.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const a=this._engine.playersByElement.get(r);a&&(a.forEach(h=>h.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,a){const h=this._engine.driver.query(r,ct,!0);h.forEach(A=>{if(A[ei])return;const N=this._engine.fetchNamespacesByElement(A);N.size?N.forEach(Z=>Z.triggerLeaveAnimation(A,a,!1,!0)):this.clearElementCache(A)}),this._engine.afterFlushAnimationsDone(()=>h.forEach(A=>this.clearElementCache(A)))}triggerLeaveAnimation(r,a,h,A){const N=this._engine.statesByElement.get(r),Z=new Map;if(N){const re=[];if(Object.keys(N).forEach(De=>{if(Z.set(De,N[De].value),this._triggers[De]){const Ue=this.trigger(r,De,wn,A);Ue&&re.push(Ue)}}),re.length)return this._engine.markElementAsRemoved(this.id,r,!0,a,Z),h&&Qe(re).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const a=this._elementListeners.get(r),h=this._engine.statesByElement.get(r);if(a&&h){const A=new Set;a.forEach(N=>{const Z=N.name;if(A.has(Z))return;A.add(Z);const De=this._triggers[Z].fallbackTransition,Ue=h[Z]||Qi,dt=new sr(wn),bt=new ar(this.id,Z,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:Z,transition:De,fromState:Ue,toState:dt,player:bt,isFallbackTransition:!0})})}}removeNode(r,a){const h=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,a),this.triggerLeaveAnimation(r,a,!0))return;let A=!1;if(h.totalAnimations){const N=h.players.length?h.playersByQueriedElement.get(r):[];if(N&&N.length)A=!0;else{let Z=r;for(;Z=Z.parentNode;)if(h.statesByElement.get(Z)){A=!0;break}}}if(this.prepareLeaveAnimationListeners(r),A)h.markElementAsRemoved(this.id,r,!1,a);else{const N=r[ei];(!N||N===or)&&(h.afterFlush(()=>this.clearElementCache(r)),h.destroyInnerAnimations(r),h._onRemovalComplete(r,a))}}insertNode(r,a){et(r,this._hostClassName)}drainQueuedTransitions(r){const a=[];return this._queue.forEach(h=>{const A=h.player;if(A.destroyed)return;const N=h.element,Z=this._elementListeners.get(N);Z&&Z.forEach(re=>{if(re.name==h.triggerName){const De=Ve(N,h.triggerName,h.fromState.value,h.toState.value);De._data=r,J(h.player,re.phase,De,re.callback)}}),A.markedForDestroy?this._engine.afterFlush(()=>{A.destroy()}):a.push(h)}),this._queue=[],a.sort((h,A)=>{const N=h.transition.ast.depCount,Z=A.transition.ast.depCount;return 0==N||0==Z?N-Z:this._engine.driver.containsElement(h.element,A.element)?1:-1})}destroy(r){this.players.forEach(a=>a.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let a=!1;return this._elementListeners.has(r)&&(a=!0),a=!!this._queue.find(h=>h.element===r)||a,a}}class Yn{constructor(r,a,h){this.bodyNode=r,this.driver=a,this._normalizer=h,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(A,N)=>{}}_onRemovalComplete(r,a){this.onRemovalComplete(r,a)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(a=>{a.players.forEach(h=>{h.queued&&r.push(h)})}),r}createNamespace(r,a){const h=new ti(r,a,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,a)?this._balanceNamespaceList(h,a):(this.newHostElements.set(a,h),this.collectEnterElement(a)),this._namespaceLookup[r]=h}_balanceNamespaceList(r,a){const h=this._namespaceList,A=this.namespacesByHostElement,N=h.length-1;if(N>=0){let Z=!1;if(void 0!==this.driver.getParentElement){let re=this.driver.getParentElement(a);for(;re;){const De=A.get(re);if(De){const Ue=h.indexOf(De);h.splice(Ue+1,0,r),Z=!0;break}re=this.driver.getParentElement(re)}}else for(let re=N;re>=0;re--)if(this.driver.containsElement(h[re].hostElement,a)){h.splice(re+1,0,r),Z=!0;break}Z||h.unshift(r)}else h.push(r);return A.set(a,r),r}register(r,a){let h=this._namespaceLookup[r];return h||(h=this.createNamespace(r,a)),h}registerTrigger(r,a,h){let A=this._namespaceLookup[r];A&&A.register(a,h)&&this.totalAnimations++}destroy(r,a){if(!r)return;const h=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(h.hostElement),delete this._namespaceLookup[r];const A=this._namespaceList.indexOf(h);A>=0&&this._namespaceList.splice(A,1)}),this.afterFlushAnimationsDone(()=>h.destroy(a))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const a=new Set,h=this.statesByElement.get(r);if(h){const A=Object.keys(h);for(let N=0;N=0&&this.collectedLeaveElements.splice(Z,1)}if(r){const Z=this._fetchNamespace(r);Z&&Z.insertNode(a,h)}A&&this.collectEnterElement(a)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,a){a?this.disabledNodes.has(r)||(this.disabledNodes.add(r),et(r,Hi)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),ut(r,Hi))}removeNode(r,a,h,A){if(L(a)){const N=r?this._fetchNamespace(r):null;if(N?N.removeNode(a,A):this.markElementAsRemoved(r,a,!1,A),h){const Z=this.namespacesByHostElement.get(a);Z&&Z.id!==r&&Z.removeNode(a,A)}}else this._onRemovalComplete(a,A)}markElementAsRemoved(r,a,h,A,N){this.collectedLeaveElements.push(a),a[ei]={namespaceId:r,setForRemoval:A,hasAnimation:h,removedBeforeQueried:!1,previousTriggersValues:N}}listen(r,a,h,A,N){return L(a)?this._fetchNamespace(r).listen(a,h,A,N):()=>{}}_buildInstruction(r,a,h,A,N){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,h,A,r.fromState.options,r.toState.options,a,N)}destroyInnerAnimations(r){let a=this.driver.query(r,ct,!0);a.forEach(h=>this.destroyActiveAnimationsForElement(h)),0!=this.playersByQueriedElement.size&&(a=this.driver.query(r,ke,!0),a.forEach(h=>this.finishActiveQueriedAnimationOnElement(h)))}destroyActiveAnimationsForElement(r){const a=this.playersByElement.get(r);a&&a.forEach(h=>{h.queued?h.markedForDestroy=!0:h.destroy()})}finishActiveQueriedAnimationOnElement(r){const a=this.playersByQueriedElement.get(r);a&&a.forEach(h=>h.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return Qe(this.players).onDone(()=>r());r()})}processLeaveNode(r){var a;const h=r[ei];if(h&&h.setForRemoval){if(r[ei]=or,h.namespaceId){this.destroyInnerAnimations(r);const A=this._fetchNamespace(h.namespaceId);A&&A.clearElementCache(r)}this._onRemovalComplete(r,h.setForRemoval)}(null===(a=r.classList)||void 0===a?void 0:a.contains(Hi))&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(A=>{this.markElementAsDisabled(A,!1)})}flush(r=-1){let a=[];if(this.newHostElements.size&&(this.newHostElements.forEach((h,A)=>this._balanceNamespaceList(h,A)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let h=0;hh()),this._flushFns=[],this._whenQuietFns.length){const h=this._whenQuietFns;this._whenQuietFns=[],a.length?Qe(a).onDone(()=>{h.forEach(A=>A())}):h.forEach(A=>A())}}reportError(r){throw function Ot(y){return new c.vHH(3402,W)}()}_flushAnimations(r,a){const h=new tr,A=[],N=new Map,Z=[],re=new Map,De=new Map,Ue=new Map,dt=new Set;this.disabledNodes.forEach(At=>{dt.add(At);const Rt=this.driver.query(At,".ng-animate-queued",!0);for(let kt=0;kt{const kt=en+tn++;Bt.set(Rt,kt),At.forEach(hn=>et(hn,kt))});const En=[],zn=new Set,ai=new Set;for(let At=0;Atzn.add(hn)):ai.add(Rt))}const Ci=new Map,ni=Ge(Gt,Array.from(zn));ni.forEach((At,Rt)=>{const kt=Wt+tn++;Ci.set(Rt,kt),At.forEach(hn=>et(hn,kt))}),r.push(()=>{sn.forEach((At,Rt)=>{const kt=Bt.get(Rt);At.forEach(hn=>ut(hn,kt))}),ni.forEach((At,Rt)=>{const kt=Ci.get(Rt);At.forEach(hn=>ut(hn,kt))}),En.forEach(At=>{this.processLeaveNode(At)})});const Tr=[],Bi=[];for(let At=this._namespaceList.length-1;At>=0;At--)this._namespaceList[At].drainQueuedTransitions(a).forEach(kt=>{const hn=kt.player,Kn=kt.element;if(Tr.push(hn),this.collectedEnterElements.length){const qn=Kn[ei];if(qn&&qn.setForMove){if(qn.previousTriggersValues&&qn.previousTriggersValues.has(kt.triggerName)){const zi=qn.previousTriggersValues.get(kt.triggerName),lr=this.statesByElement.get(kt.element);lr&&lr[kt.triggerName]&&(lr[kt.triggerName].value=zi)}return void hn.destroy()}}const Vi=!bt||!this.driver.containsElement(bt,Kn),ki=Ci.get(Kn),yr=Bt.get(Kn),Dn=this._buildInstruction(kt,h,yr,ki,Vi);if(Dn.errors&&Dn.errors.length)return void Bi.push(Dn);if(Vi)return hn.onStart(()=>Ct(Kn,Dn.fromStyles)),hn.onDestroy(()=>Yt(Kn,Dn.toStyles)),void A.push(hn);if(kt.isFallbackTransition)return hn.onStart(()=>Ct(Kn,Dn.fromStyles)),hn.onDestroy(()=>Yt(Kn,Dn.toStyles)),void A.push(hn);const xr=[];Dn.timelines.forEach(qn=>{qn.stretchStartingKeyframe=!0,this.disabledNodes.has(qn.element)||xr.push(qn)}),Dn.timelines=xr,h.append(Kn,Dn.timelines),Z.push({instruction:Dn,player:hn,element:Kn}),Dn.queriedElements.forEach(qn=>ze(re,qn,[]).push(hn)),Dn.preStyleProps.forEach((qn,zi)=>{const lr=Object.keys(qn);if(lr.length){let Nr=De.get(zi);Nr||De.set(zi,Nr=new Set),lr.forEach(wo=>Nr.add(wo))}}),Dn.postStyleProps.forEach((qn,zi)=>{const lr=Object.keys(qn);let Nr=Ue.get(zi);Nr||Ue.set(zi,Nr=new Set),lr.forEach(wo=>Nr.add(wo))})});if(Bi.length){const At=[];Bi.forEach(Rt=>{At.push(function Nt(y,r){return new c.vHH(3505,W)}())}),Tr.forEach(Rt=>Rt.destroy()),this.reportError(At)}const wi=new Map,vr=new Map;Z.forEach(At=>{const Rt=At.element;h.has(Rt)&&(vr.set(Rt,Rt),this._beforeAnimationBuild(At.player.namespaceId,At.instruction,wi))}),A.forEach(At=>{const Rt=At.element;this._getPreviousPlayers(Rt,!1,At.namespaceId,At.triggerName,null).forEach(hn=>{ze(wi,Rt,[]).push(hn),hn.destroy()})});const Bn=En.filter(At=>Ln(At,De,Ue)),gi=new Map;se(gi,this.driver,ai,Ue,m.l3).forEach(At=>{Ln(At,De,Ue)&&Bn.push(At)});const Jr=new Map;sn.forEach((At,Rt)=>{se(Jr,this.driver,new Set(At),De,m.k1)}),Bn.forEach(At=>{const Rt=gi.get(At),kt=Jr.get(At);gi.set(At,Object.assign(Object.assign({},Rt),kt))});const ii=[],Mo=[],uo={};Z.forEach(At=>{const{element:Rt,player:kt,instruction:hn}=At;if(h.has(Rt)){if(dt.has(Rt))return kt.onDestroy(()=>Yt(Rt,hn.toStyles)),kt.disabled=!0,kt.overrideTotalTime(hn.totalTime),void A.push(kt);let Kn=uo;if(vr.size>1){let ki=Rt;const yr=[];for(;ki=ki.parentNode;){const Dn=vr.get(ki);if(Dn){Kn=Dn;break}yr.push(ki)}yr.forEach(Dn=>vr.set(Dn,Kn))}const Vi=this._buildAnimation(kt.namespaceId,hn,wi,N,Jr,gi);if(kt.setRealPlayer(Vi),Kn===uo)ii.push(kt);else{const ki=this.playersByElement.get(Kn);ki&&ki.length&&(kt.parentPlayer=Qe(ki)),A.push(kt)}}else Ct(Rt,hn.fromStyles),kt.onDestroy(()=>Yt(Rt,hn.toStyles)),Mo.push(kt),dt.has(Rt)&&A.push(kt)}),Mo.forEach(At=>{const Rt=N.get(At.element);if(Rt&&Rt.length){const kt=Qe(Rt);At.setRealPlayer(kt)}}),A.forEach(At=>{At.parentPlayer?At.syncPlayerEvents(At.parentPlayer):At.destroy()});for(let At=0;At!Vi.destroyed);Kn.length?mn(this,Rt,Kn):this.processLeaveNode(Rt)}return En.length=0,ii.forEach(At=>{this.players.push(At),At.onDone(()=>{At.destroy();const Rt=this.players.indexOf(At);this.players.splice(Rt,1)}),At.play()}),ii}elementContainsData(r,a){let h=!1;const A=a[ei];return A&&A.setForRemoval&&(h=!0),this.playersByElement.has(a)&&(h=!0),this.playersByQueriedElement.has(a)&&(h=!0),this.statesByElement.has(a)&&(h=!0),this._fetchNamespace(r).elementContainsData(a)||h}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,a,h,A,N){let Z=[];if(a){const re=this.playersByQueriedElement.get(r);re&&(Z=re)}else{const re=this.playersByElement.get(r);if(re){const De=!N||N==wn;re.forEach(Ue=>{Ue.queued||!De&&Ue.triggerName!=A||Z.push(Ue)})}}return(h||A)&&(Z=Z.filter(re=>!(h&&h!=re.namespaceId||A&&A!=re.triggerName))),Z}_beforeAnimationBuild(r,a,h){const N=a.element,Z=a.isRemovalTransition?void 0:r,re=a.isRemovalTransition?void 0:a.triggerName;for(const De of a.timelines){const Ue=De.element,dt=Ue!==N,bt=ze(h,Ue,[]);this._getPreviousPlayers(Ue,dt,Z,re,a.toState).forEach(sn=>{const Bt=sn.getRealPlayer();Bt.beforeDestroy&&Bt.beforeDestroy(),sn.destroy(),bt.push(sn)})}Ct(N,a.fromStyles)}_buildAnimation(r,a,h,A,N,Z){const re=a.triggerName,De=a.element,Ue=[],dt=new Set,bt=new Set,Gt=a.timelines.map(Bt=>{const tn=Bt.element;dt.add(tn);const En=tn[ei];if(En&&En.removedBeforeQueried)return new m.ZN(Bt.duration,Bt.delay);const zn=tn!==De,ai=function gn(y){const r=[];return dn(y,r),r}((h.get(tn)||Oi).map(wi=>wi.getRealPlayer())).filter(wi=>!!wi.element&&wi.element===tn),Ci=N.get(tn),ni=Z.get(tn),Tr=He(0,this._normalizer,0,Bt.keyframes,Ci,ni),Bi=this._buildPlayer(Bt,Tr,ai);if(Bt.subTimeline&&A&&bt.add(tn),zn){const wi=new ar(r,re,tn);wi.setRealPlayer(Bi),Ue.push(wi)}return Bi});Ue.forEach(Bt=>{ze(this.playersByQueriedElement,Bt.element,[]).push(Bt),Bt.onDone(()=>function Ar(y,r,a){let h;if(y instanceof Map){if(h=y.get(r),h){if(h.length){const A=h.indexOf(a);h.splice(A,1)}0==h.length&&y.delete(r)}}else if(h=y[r],h){if(h.length){const A=h.indexOf(a);h.splice(A,1)}0==h.length&&delete y[r]}return h}(this.playersByQueriedElement,Bt.element,Bt))}),dt.forEach(Bt=>et(Bt,gt));const sn=Qe(Gt);return sn.onDestroy(()=>{dt.forEach(Bt=>ut(Bt,gt)),Yt(De,a.toStyles)}),bt.forEach(Bt=>{ze(A,Bt,[]).push(sn)}),sn}_buildPlayer(r,a,h){return a.length>0?this.driver.animate(r.element,a,r.duration,r.delay,r.easing,h):new m.ZN(r.duration,r.delay)}}class ar{constructor(r,a,h){this.namespaceId=r,this.triggerName=a,this.element=h,this._player=new m.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,Object.keys(this._queuedCallbacks).forEach(a=>{this._queuedCallbacks[a].forEach(h=>J(r,a,void 0,h))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const a=this._player;a.triggerCallback&&r.onStart(()=>a.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,a){ze(this._queuedCallbacks,r,[]).push(a)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const a=this._player;a.triggerCallback&&a.triggerCallback(r)}}function L(y){return y&&1===y.nodeType}function H(y,r){const a=y.style.display;return y.style.display=null!=r?r:"none",a}function se(y,r,a,h,A){const N=[];a.forEach(De=>N.push(H(De)));const Z=[];h.forEach((De,Ue)=>{const dt={};De.forEach(bt=>{const Gt=dt[bt]=r.computeStyle(Ue,bt,A);(!Gt||0==Gt.length)&&(Ue[ei]=Lr,Z.push(Ue))}),y.set(Ue,dt)});let re=0;return a.forEach(De=>H(De,N[re++])),Z}function Ge(y,r){const a=new Map;if(y.forEach(re=>a.set(re,[])),0==r.length)return a;const A=new Set(r),N=new Map;function Z(re){if(!re)return 1;let De=N.get(re);if(De)return De;const Ue=re.parentNode;return De=a.has(Ue)?Ue:A.has(Ue)?1:Z(Ue),N.set(re,De),De}return r.forEach(re=>{const De=Z(re);1!==De&&a.get(De).push(re)}),a}function et(y,r){var a;null===(a=y.classList)||void 0===a||a.add(r)}function ut(y,r){var a;null===(a=y.classList)||void 0===a||a.remove(r)}function mn(y,r,a){Qe(a).onDone(()=>y.processLeaveNode(r))}function dn(y,r){for(let a=0;aA.add(N)):r.set(y,h),a.delete(y),!0}class _n{constructor(r,a,h){this.bodyNode=r,this._driver=a,this._normalizer=h,this._triggerCache={},this.onRemovalComplete=(A,N)=>{},this._transitionEngine=new Yn(r,a,h),this._timelineEngine=new Zr(r,a,h),this._transitionEngine.onRemovalComplete=(A,N)=>this.onRemovalComplete(A,N)}registerTrigger(r,a,h,A,N){const Z=r+"-"+A;let re=this._triggerCache[Z];if(!re){const De=[],dt=$n(this._driver,N,De,[]);if(De.length)throw function Te(y,r){return new c.vHH(3404,W)}();re=function kr(y,r,a){return new Ki(y,r,a)}(A,dt,this._normalizer),this._triggerCache[Z]=re}this._transitionEngine.registerTrigger(a,A,re)}register(r,a){this._transitionEngine.register(r,a)}destroy(r,a){this._transitionEngine.destroy(r,a)}onInsert(r,a,h,A){this._transitionEngine.insertNode(r,a,h,A)}onRemove(r,a,h,A){this._transitionEngine.removeNode(r,a,A||!1,h)}disableAnimations(r,a){this._transitionEngine.markElementAsDisabled(r,a)}process(r,a,h,A){if("@"==h.charAt(0)){const[N,Z]=st(h);this._timelineEngine.command(N,a,Z,A)}else this._transitionEngine.trigger(r,a,h,A)}listen(r,a,h,A,N){if("@"==h.charAt(0)){const[Z,re]=st(h);return this._timelineEngine.listen(Z,a,re,N)}return this._transitionEngine.listen(r,a,h,A,N)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Nn=(()=>{class y{constructor(a,h,A){this._element=a,this._startStyles=h,this._endStyles=A,this._state=0;let N=y.initialStylesByElement.get(a);N||y.initialStylesByElement.set(a,N={}),this._initialStyles=N}start(){this._state<1&&(this._startStyles&&Yt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Yt(this._element,this._initialStyles),this._endStyles&&(Yt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(y.initialStylesByElement.delete(this._element),this._startStyles&&(Ct(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ct(this._element,this._endStyles),this._endStyles=null),Yt(this._element,this._initialStyles),this._state=3)}}return y.initialStylesByElement=new WeakMap,y})();function Mi(y){let r=null;const a=Object.keys(y);for(let h=0;hr()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(r,a,h){return r.animate(a,h)}onStart(r){this._onStartFns.push(r)}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r={};if(this.hasStarted()){const a=this._finalKeyframe;Object.keys(a).forEach(h=>{"offset"!=h&&(r[h]=this._finished?a[h]:Un(this.element,h))})}this.currentSnapshot=r}triggerCallback(r){const a="start"==r?this._onStartFns:this._onDoneFns;a.forEach(h=>h()),a.length=0}}class Pi{validateStyleProperty(r){return E(r)}matchesElement(r,a){return!1}containsElement(r,a){return F(r,a)}getParentElement(r){return Ft(r)}query(r,a,h){return ie(r,a,h)}computeStyle(r,a,h){return window.getComputedStyle(r)[a]}animate(r,a,h,A,N,Z=[]){const De={duration:h,delay:A,fill:0==A?"both":"forwards"};N&&(De.easing=N);const Ue={},dt=Z.filter(Gt=>Gt instanceof Ii);(function Jt(y,r){return 0===y||0===r})(h,A)&&dt.forEach(Gt=>{let sn=Gt.currentSnapshot;Object.keys(sn).forEach(Bt=>Ue[Bt]=sn[Bt])}),a=function Pn(y,r,a){const h=Object.keys(a);if(h.length&&r.length){let N=r[0],Z=[];if(h.forEach(re=>{N.hasOwnProperty(re)||Z.push(re),N[re]=a[re]}),Z.length)for(var A=1;Art(Gt,!1)),Ue);const bt=function xn(y,r){let a=null,h=null;return Array.isArray(r)&&r.length?(a=Mi(r[0]),r.length>1&&(h=Mi(r[r.length-1]))):r&&(a=Mi(r)),a||h?new Nn(y,a,h):null}(r,a);return new Ii(r,a,De,bt)}}var x=b(9808);let D=(()=>{class y extends m._j{constructor(a,h){super(),this._nextAnimationId=0,this._renderer=a.createRenderer(h.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(a){const h=this._nextAnimationId.toString();this._nextAnimationId++;const A=Array.isArray(a)?(0,m.vP)(a):a;return We(this._renderer,null,h,"register",[A]),new _(h,this._renderer)}}return y.\u0275fac=function(a){return new(a||y)(c.LFG(c.FYo),c.LFG(x.K0))},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac}),y})();class _ extends m.LC{constructor(r,a){super(),this._id=r,this._renderer=a}create(r,a){return new U(this._id,r,a||{},this._renderer)}}class U{constructor(r,a,h,A){this.id=r,this.element=a,this._renderer=A,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",h)}_listen(r,a){return this._renderer.listen(this.element,`@@${this.id}:${r}`,a)}_command(r,...a){return We(this._renderer,this.element,this.id,r,a)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){var r,a;return null!==(a=null===(r=this._renderer.engine.players[+this.id])||void 0===r?void 0:r.getPosition())&&void 0!==a?a:0}}function We(y,r,a,h,A){return y.setProperty(r,`@@${a}:${h}`,A)}const Cn="@.disabled";let mi=(()=>{class y{constructor(a,h,A){this.delegate=a,this.engine=h,this._zone=A,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),h.onRemovalComplete=(N,Z)=>{const re=null==Z?void 0:Z.parentNode(N);re&&Z.removeChild(re,N)}}createRenderer(a,h){const N=this.delegate.createRenderer(a,h);if(!(a&&h&&h.data&&h.data.animation)){let dt=this._rendererCache.get(N);return dt||(dt=new ji("",N,this.engine),this._rendererCache.set(N,dt)),dt}const Z=h.id,re=h.id+"-"+this._currentId;this._currentId++,this.engine.register(re,a);const De=dt=>{Array.isArray(dt)?dt.forEach(De):this.engine.registerTrigger(Z,re,a,dt.name,dt)};return h.data.animation.forEach(De),new Ri(this,re,N,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(a,h,A){a>=0&&ah(A)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(N=>{const[Z,re]=N;Z(re)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([h,A]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return y.\u0275fac=function(a){return new(a||y)(c.LFG(c.FYo),c.LFG(_n),c.LFG(c.R0b))},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac}),y})();class ji{constructor(r,a,h){this.namespaceId=r,this.delegate=a,this.engine=h,this.destroyNode=this.delegate.destroyNode?A=>a.destroyNode(A):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,a){return this.delegate.createElement(r,a)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,a){this.delegate.appendChild(r,a),this.engine.onInsert(this.namespaceId,a,r,!1)}insertBefore(r,a,h,A=!0){this.delegate.insertBefore(r,a,h),this.engine.onInsert(this.namespaceId,a,r,A)}removeChild(r,a,h){this.engine.onRemove(this.namespaceId,a,this.delegate,h)}selectRootElement(r,a){return this.delegate.selectRootElement(r,a)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,a,h,A){this.delegate.setAttribute(r,a,h,A)}removeAttribute(r,a,h){this.delegate.removeAttribute(r,a,h)}addClass(r,a){this.delegate.addClass(r,a)}removeClass(r,a){this.delegate.removeClass(r,a)}setStyle(r,a,h,A){this.delegate.setStyle(r,a,h,A)}removeStyle(r,a,h){this.delegate.removeStyle(r,a,h)}setProperty(r,a,h){"@"==a.charAt(0)&&a==Cn?this.disableAnimations(r,!!h):this.delegate.setProperty(r,a,h)}setValue(r,a){this.delegate.setValue(r,a)}listen(r,a,h){return this.delegate.listen(r,a,h)}disableAnimations(r,a){this.engine.disableAnimations(r,a)}}class Ri extends ji{constructor(r,a,h,A){super(a,h,A),this.factory=r,this.namespaceId=a}setProperty(r,a,h){"@"==a.charAt(0)?"."==a.charAt(1)&&a==Cn?this.disableAnimations(r,h=void 0===h||!!h):this.engine.process(this.namespaceId,r,a.substr(1),h):this.delegate.setProperty(r,a,h)}listen(r,a,h){if("@"==a.charAt(0)){const A=function it(y){switch(y){case"body":return document.body;case"document":return document;case"window":return window;default:return y}}(r);let N=a.substr(1),Z="";return"@"!=N.charAt(0)&&([N,Z]=function rn(y){const r=y.indexOf(".");return[y.substring(0,r),y.substr(r+1)]}(N)),this.engine.listen(this.namespaceId,A,N,Z,re=>{this.factory.scheduleListenerCallback(re._data||-1,h,re)})}return this.delegate.listen(r,a,h)}}let qr=(()=>{class y extends _n{constructor(a,h,A){super(a.body,h,A)}ngOnDestroy(){this.flush()}}return y.\u0275fac=function(a){return new(a||y)(c.LFG(x.K0),c.LFG(je),c.LFG(hr))},y.\u0275prov=c.Yz7({token:y,factory:y.\u0275fac}),y})();const _r=new c.OlP("AnimationModuleType"),Ni=[{provide:m._j,useClass:D},{provide:hr,useFactory:function Zn(){return new fr}},{provide:_n,useClass:qr},{provide:c.FYo,useFactory:function yo(y,r,a){return new mi(y,r,a)},deps:[s.se,_n,c.R0b]}],Qr=[{provide:je,useFactory:()=>new Pi},{provide:_r,useValue:"BrowserAnimations"},...Ni],co=[{provide:je,useClass:Be},{provide:_r,useValue:"NoopAnimations"},...Ni];let Do=(()=>{class y{static withConfig(a){return{ngModule:y,providers:a.disableAnimations?co:Qr}}}return y.\u0275fac=function(a){return new(a||y)},y.\u0275mod=c.oAB({type:y}),y.\u0275inj=c.cJS({providers:Qr,imports:[s.b2]}),y})()},2313:($e,ve,b)=>{b.d(ve,{b2:()=>xt,H7:()=>Zt,q6:()=>ze,se:()=>Xe});var c=b(9808),s=b(4893);class m extends c.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class W extends m{static makeCurrent(){(0,c.HT)(new W)}onAndCancel(ge,ne,Se){return ge.addEventListener(ne,Se,!1),()=>{ge.removeEventListener(ne,Se,!1)}}dispatchEvent(ge,ne){ge.dispatchEvent(ne)}remove(ge){ge.parentNode&&ge.parentNode.removeChild(ge)}createElement(ge,ne){return(ne=ne||this.getDefaultDocument()).createElement(ge)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ge){return ge.nodeType===Node.ELEMENT_NODE}isShadowRoot(ge){return ge instanceof DocumentFragment}getGlobalEventTarget(ge,ne){return"window"===ne?window:"document"===ne?ge:"body"===ne?ge.body:null}getBaseHref(ge){const ne=function q(){return le=le||document.querySelector("base"),le?le.getAttribute("href"):null}();return null==ne?null:function be(Ne){Ce=Ce||document.createElement("a"),Ce.setAttribute("href",Ne);const ge=Ce.pathname;return"/"===ge.charAt(0)?ge:`/${ge}`}(ne)}resetBaseElement(){le=null}getUserAgent(){return window.navigator.userAgent}getCookie(ge){return(0,c.Mx)(document.cookie,ge)}}let Ce,le=null;const ce=new s.OlP("TRANSITION_ID"),oe=[{provide:s.ip1,useFactory:function te(Ne,ge,ne){return()=>{ne.get(s.CZH).donePromise.then(()=>{const Se=(0,c.q)(),nt=ge.querySelectorAll(`style[ng-transition="${Ne}"]`);for(let Pt=0;Pt{const Pt=ge.findTestabilityInTree(Se,nt);if(null==Pt)throw new Error("Could not find testability for element.");return Pt},s.dqk.getAllAngularTestabilities=()=>ge.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>ge.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(Se=>{const nt=s.dqk.getAllAngularTestabilities();let Pt=nt.length,zt=!1;const yn=function(Jt){zt=zt||Jt,Pt--,0==Pt&&Se(zt)};nt.forEach(function(Jt){Jt.whenStable(yn)})})}findTestabilityInTree(ge,ne,Se){if(null==ne)return null;const nt=ge.getTestability(ne);return null!=nt?nt:Se?(0,c.q)().isShadowRoot(ne)?this.findTestabilityInTree(ge,ne.host,!0):this.findTestabilityInTree(ge,ne.parentElement,!0):null}}let X=(()=>{class Ne{build(){return new XMLHttpRequest}}return Ne.\u0275fac=function(ne){return new(ne||Ne)},Ne.\u0275prov=s.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();const ae=new s.OlP("EventManagerPlugins");let Pe=(()=>{class Ne{constructor(ne,Se){this._zone=Se,this._eventNameToPlugin=new Map,ne.forEach(nt=>nt.manager=this),this._plugins=ne.slice().reverse()}addEventListener(ne,Se,nt){return this._findPluginFor(Se).addEventListener(ne,Se,nt)}addGlobalEventListener(ne,Se,nt){return this._findPluginFor(Se).addGlobalEventListener(ne,Se,nt)}getZone(){return this._zone}_findPluginFor(ne){const Se=this._eventNameToPlugin.get(ne);if(Se)return Se;const nt=this._plugins;for(let Pt=0;Pt{class Ne{constructor(){this._stylesSet=new Set}addStyles(ne){const Se=new Set;ne.forEach(nt=>{this._stylesSet.has(nt)||(this._stylesSet.add(nt),Se.add(nt))}),this.onStylesAdded(Se)}onStylesAdded(ne){}getAllStyles(){return Array.from(this._stylesSet)}}return Ne.\u0275fac=function(ne){return new(ne||Ne)},Ne.\u0275prov=s.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})(),Je=(()=>{class Ne extends K{constructor(ne){super(),this._doc=ne,this._hostNodes=new Map,this._hostNodes.set(ne.head,[])}_addStylesToHost(ne,Se,nt){ne.forEach(Pt=>{const zt=this._doc.createElement("style");zt.textContent=Pt,nt.push(Se.appendChild(zt))})}addHost(ne){const Se=[];this._addStylesToHost(this._stylesSet,ne,Se),this._hostNodes.set(ne,Se)}removeHost(ne){const Se=this._hostNodes.get(ne);Se&&Se.forEach(Ye),this._hostNodes.delete(ne)}onStylesAdded(ne){this._hostNodes.forEach((Se,nt)=>{this._addStylesToHost(ne,nt,Se)})}ngOnDestroy(){this._hostNodes.forEach(ne=>ne.forEach(Ye))}}return Ne.\u0275fac=function(ne){return new(ne||Ne)(s.LFG(c.K0))},Ne.\u0275prov=s.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();function Ye(Ne){(0,c.q)().remove(Ne)}const Ke={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/",math:"http://www.w3.org/1998/MathML/"},pe=/%COMP%/g,Q="%COMP%",fe=`_nghost-${Q}`,Ae=`_ngcontent-${Q}`;function Ee(Ne,ge,ne){for(let Se=0;Se{if("__ngUnwrap__"===ge)return Ne;!1===Ne(ge)&&(ge.preventDefault(),ge.returnValue=!1)}}let Xe=(()=>{class Ne{constructor(ne,Se,nt){this.eventManager=ne,this.sharedStylesHost=Se,this.appId=nt,this.rendererByCompId=new Map,this.defaultRenderer=new Re(ne)}createRenderer(ne,Se){if(!ne||!Se)return this.defaultRenderer;switch(Se.encapsulation){case s.ifc.Emulated:{let nt=this.rendererByCompId.get(Se.id);return nt||(nt=new Qt(this.eventManager,this.sharedStylesHost,Se,this.appId),this.rendererByCompId.set(Se.id,nt)),nt.applyToHost(ne),nt}case 1:case s.ifc.ShadowDom:return new _t(this.eventManager,this.sharedStylesHost,ne,Se);default:if(!this.rendererByCompId.has(Se.id)){const nt=Ee(Se.id,Se.styles,[]);this.sharedStylesHost.addStyles(nt),this.rendererByCompId.set(Se.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ne.\u0275fac=function(ne){return new(ne||Ne)(s.LFG(Pe),s.LFG(Je),s.LFG(s.AFp))},Ne.\u0275prov=s.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();class Re{constructor(ge){this.eventManager=ge,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ge,ne){return ne?document.createElementNS(Ke[ne]||ne,ge):document.createElement(ge)}createComment(ge){return document.createComment(ge)}createText(ge){return document.createTextNode(ge)}appendChild(ge,ne){ge.appendChild(ne)}insertBefore(ge,ne,Se){ge&&ge.insertBefore(ne,Se)}removeChild(ge,ne){ge&&ge.removeChild(ne)}selectRootElement(ge,ne){let Se="string"==typeof ge?document.querySelector(ge):ge;if(!Se)throw new Error(`The selector "${ge}" did not match any elements`);return ne||(Se.textContent=""),Se}parentNode(ge){return ge.parentNode}nextSibling(ge){return ge.nextSibling}setAttribute(ge,ne,Se,nt){if(nt){ne=nt+":"+ne;const Pt=Ke[nt];Pt?ge.setAttributeNS(Pt,ne,Se):ge.setAttribute(ne,Se)}else ge.setAttribute(ne,Se)}removeAttribute(ge,ne,Se){if(Se){const nt=Ke[Se];nt?ge.removeAttributeNS(nt,ne):ge.removeAttribute(`${Se}:${ne}`)}else ge.removeAttribute(ne)}addClass(ge,ne){ge.classList.add(ne)}removeClass(ge,ne){ge.classList.remove(ne)}setStyle(ge,ne,Se,nt){nt&(s.JOm.DashCase|s.JOm.Important)?ge.style.setProperty(ne,Se,nt&s.JOm.Important?"important":""):ge.style[ne]=Se}removeStyle(ge,ne,Se){Se&s.JOm.DashCase?ge.style.removeProperty(ne):ge.style[ne]=""}setProperty(ge,ne,Se){ge[ne]=Se}setValue(ge,ne){ge.nodeValue=ne}listen(ge,ne,Se){return"string"==typeof ge?this.eventManager.addGlobalEventListener(ge,ne,Te(Se)):this.eventManager.addEventListener(ge,ne,Te(Se))}}class Qt extends Re{constructor(ge,ne,Se,nt){super(ge),this.component=Se;const Pt=Ee(nt+"-"+Se.id,Se.styles,[]);ne.addStyles(Pt),this.contentAttr=function Fe(Ne){return Ae.replace(pe,Ne)}(nt+"-"+Se.id),this.hostAttr=function _e(Ne){return fe.replace(pe,Ne)}(nt+"-"+Se.id)}applyToHost(ge){super.setAttribute(ge,this.hostAttr,"")}createElement(ge,ne){const Se=super.createElement(ge,ne);return super.setAttribute(Se,this.contentAttr,""),Se}}class _t extends Re{constructor(ge,ne,Se,nt){super(ge),this.sharedStylesHost=ne,this.hostEl=Se,this.shadowRoot=Se.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Pt=Ee(nt.id,nt.styles,[]);for(let zt=0;zt{class Ne extends Le{constructor(ne){super(ne)}supports(ne){return!0}addEventListener(ne,Se,nt){return ne.addEventListener(Se,nt,!1),()=>this.removeEventListener(ne,Se,nt)}removeEventListener(ne,Se,nt){return ne.removeEventListener(Se,nt)}}return Ne.\u0275fac=function(ne){return new(ne||Ne)(s.LFG(c.K0))},Ne.\u0275prov=s.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();const $t=["alt","control","meta","shift"],cn={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Nt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Tt={alt:Ne=>Ne.altKey,control:Ne=>Ne.ctrlKey,meta:Ne=>Ne.metaKey,shift:Ne=>Ne.shiftKey};let nn=(()=>{class Ne extends Le{constructor(ne){super(ne)}supports(ne){return null!=Ne.parseEventName(ne)}addEventListener(ne,Se,nt){const Pt=Ne.parseEventName(Se),zt=Ne.eventCallback(Pt.fullKey,nt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.q)().onAndCancel(ne,Pt.domEventName,zt))}static parseEventName(ne){const Se=ne.toLowerCase().split("."),nt=Se.shift();if(0===Se.length||"keydown"!==nt&&"keyup"!==nt)return null;const Pt=Ne._normalizeKey(Se.pop());let zt="";if($t.forEach(Jt=>{const Pn=Se.indexOf(Jt);Pn>-1&&(Se.splice(Pn,1),zt+=Jt+".")}),zt+=Pt,0!=Se.length||0===Pt.length)return null;const yn={};return yn.domEventName=nt,yn.fullKey=zt,yn}static getEventFullKey(ne){let Se="",nt=function Qe(Ne){let ge=Ne.key;if(null==ge){if(ge=Ne.keyIdentifier,null==ge)return"Unidentified";ge.startsWith("U+")&&(ge=String.fromCharCode(parseInt(ge.substring(2),16)),3===Ne.location&&Nt.hasOwnProperty(ge)&&(ge=Nt[ge]))}return cn[ge]||ge}(ne);return nt=nt.toLowerCase()," "===nt?nt="space":"."===nt&&(nt="dot"),$t.forEach(Pt=>{Pt!=nt&&Tt[Pt](ne)&&(Se+=Pt+".")}),Se+=nt,Se}static eventCallback(ne,Se,nt){return Pt=>{Ne.getEventFullKey(Pt)===ne&&nt.runGuarded(()=>Se(Pt))}}static _normalizeKey(ne){return"esc"===ne?"escape":ne}}return Ne.\u0275fac=function(ne){return new(ne||Ne)(s.LFG(c.K0))},Ne.\u0275prov=s.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})();const ze=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:c.bD},{provide:s.g9A,useValue:function He(){W.makeCurrent(),ue.init()},multi:!0},{provide:c.K0,useFactory:function Y(){return(0,s.RDi)(document),document},deps:[]}]),st=[{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function J(){return new s.qLn},deps:[]},{provide:ae,useClass:It,multi:!0,deps:[c.K0,s.R0b,s.Lbi]},{provide:ae,useClass:nn,multi:!0,deps:[c.K0]},{provide:Xe,useClass:Xe,deps:[Pe,Je,s.AFp]},{provide:s.FYo,useExisting:Xe},{provide:K,useExisting:Je},{provide:Je,useClass:Je,deps:[c.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:Pe,useClass:Pe,deps:[ae,s.R0b]},{provide:c.JF,useClass:X,deps:[]}];let xt=(()=>{class Ne{constructor(ne){if(ne)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.")}static withServerTransition(ne){return{ngModule:Ne,providers:[{provide:s.AFp,useValue:ne.appId},{provide:ce,useExisting:s.AFp},oe]}}}return Ne.\u0275fac=function(ne){return new(ne||Ne)(s.LFG(Ne,12))},Ne.\u0275mod=s.oAB({type:Ne}),Ne.\u0275inj=s.cJS({providers:st,imports:[c.ez,s.hGG]}),Ne})();"undefined"!=typeof window&&window;let Zt=(()=>{class Ne{}return Ne.\u0275fac=function(ne){return new(ne||Ne)},Ne.\u0275prov=s.Yz7({token:Ne,factory:function(ne){let Se=null;return Se=ne?new(ne||Ne):s.LFG(Ct),Se},providedIn:"root"}),Ne})(),Ct=(()=>{class Ne extends Zt{constructor(ne){super(),this._doc=ne}sanitize(ne,Se){if(null==Se)return null;switch(ne){case s.q3G.NONE:return Se;case s.q3G.HTML:return(0,s.qzn)(Se,"HTML")?(0,s.z3N)(Se):(0,s.EiD)(this._doc,String(Se)).toString();case s.q3G.STYLE:return(0,s.qzn)(Se,"Style")?(0,s.z3N)(Se):Se;case s.q3G.SCRIPT:if((0,s.qzn)(Se,"Script"))return(0,s.z3N)(Se);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(Se),(0,s.qzn)(Se,"URL")?(0,s.z3N)(Se):(0,s.mCW)(String(Se));case s.q3G.RESOURCE_URL:if((0,s.qzn)(Se,"ResourceURL"))return(0,s.z3N)(Se);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ne} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ne){return(0,s.JVY)(ne)}bypassSecurityTrustStyle(ne){return(0,s.L6k)(ne)}bypassSecurityTrustScript(ne){return(0,s.eBb)(ne)}bypassSecurityTrustUrl(ne){return(0,s.LAX)(ne)}bypassSecurityTrustResourceUrl(ne){return(0,s.pB0)(ne)}}return Ne.\u0275fac=function(ne){return new(ne||Ne)(s.LFG(c.K0))},Ne.\u0275prov=s.Yz7({token:Ne,factory:function(ne){let Se=null;return Se=ne?new ne:function Yt(Ne){return new Ct(Ne.get(c.K0))}(s.LFG(s.zs3)),Se},providedIn:"root"}),Ne})()},9525:($e,ve,b)=>{b.d(ve,{gz:()=>Qn,F0:()=>ii,rH:()=>At,yS:()=>Rt,Bz:()=>wo,lC:()=>or});var c=b(4893),s=b(8306),m=b(576);function W(g,f){const d=(0,m.m)(g)?g:()=>g,M=O=>O.error(d());return new s.y(f?O=>f.schedule(M,0,O):M)}const q=(0,b(3888).d)(g=>function(){g(this),this.name="EmptyError",this.message="no elements in sequence"});var Ce=b(727),be=b(4482),ce=b(5403);function te(){return(0,be.e)((g,f)=>{let d=null;g._refCount++;const M=(0,ce.x)(f,void 0,void 0,void 0,()=>{if(!g||g._refCount<=0||0<--g._refCount)return void(d=null);const O=g._connection,B=d;d=null,O&&(!B||O===B)&&O.unsubscribe(),f.unsubscribe()});g.subscribe(M),M.closed||(d=g.connect())})}class oe extends s.y{constructor(f,d){super(),this.source=f,this.subjectFactory=d,this._subject=null,this._refCount=0,this._connection=null,(0,be.A)(f)&&(this.lift=f.lift)}_subscribe(f){return this.getSubject().subscribe(f)}getSubject(){const f=this._subject;return(!f||f.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:f}=this;this._subject=this._connection=null,null==f||f.unsubscribe()}connect(){let f=this._connection;if(!f){f=this._connection=new Ce.w0;const d=this.getSubject();f.add(this.source.subscribe((0,ce.x)(d,void 0,()=>{this._teardown(),d.complete()},M=>{this._teardown(),d.error(M)},()=>this._teardown()))),f.closed&&(this._connection=null,f=Ce.w0.EMPTY)}return f}refCount(){return te()(this)}}var ue=b(2076),X=b(9646),ae=b(1135),Pe=b(9841),Le=b(7272),K=b(9770),Je=b(515),Ye=b(7579);function Ke(g,f,d,M,O){return(B,ee)=>{let me=d,Ze=f,Dt=0;B.subscribe((0,ce.x)(ee,an=>{const Lt=Dt++;Ze=me?g(Ze,an,Lt):(me=!0,an),M&&ee.next(Ze)},O&&(()=>{me&&ee.next(Ze),ee.complete()})))}}function pe(g,f){return(0,be.e)(Ke(g,f,arguments.length>=2,!0))}var z=b(8421);function Q(g){return(0,be.e)((f,d)=>{let B,M=null,O=!1;M=f.subscribe((0,ce.x)(d,void 0,void 0,ee=>{B=(0,z.Xf)(g(ee,Q(g)(f))),M?(M.unsubscribe(),M=null,B.subscribe(d)):O=!0})),O&&(M.unsubscribe(),M=null,B.subscribe(d))})}var fe=b(9300);function Ae(g){return g<=0?()=>Je.E:(0,be.e)((f,d)=>{let M=[];f.subscribe((0,ce.x)(d,O=>{M.push(O),g{for(const O of M)d.next(O);d.complete()},void 0,()=>{M=null}))})}function Fe(g=_e){return(0,be.e)((f,d)=>{let M=!1;f.subscribe((0,ce.x)(d,O=>{M=!0,d.next(O)},()=>M?d.complete():d.error(g())))})}function _e(){return new q}function Ee(g){return(0,be.e)((f,d)=>{let M=!1;f.subscribe((0,ce.x)(d,O=>{M=!0,d.next(O)},()=>{M||d.next(g),d.complete()}))})}var Te=b(4671),Xe=b(5698);function Re(g,f){const d=arguments.length>=2;return M=>M.pipe(g?(0,fe.h)((O,B)=>g(O,B,M)):Te.y,(0,Xe.q)(1),d?Ee(f):Fe(()=>new q))}var pt=b(4004),Qt=b(3900),_t=b(8675),It=b(4351),$t=b(5577),Ot=b(8505),cn=b(8189),Nt=b(9808);class Tt{constructor(f,d){this.id=f,this.url=d}}class nn extends Tt{constructor(f,d,M="imperative",O=null){super(f,d),this.navigationTrigger=M,this.restoredState=O}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Qe extends Tt{constructor(f,d,M){super(f,d),this.urlAfterRedirects=M}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class He extends Tt{constructor(f,d,M){super(f,d),this.reason=M}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class J extends Tt{constructor(f,d,M){super(f,d),this.error=M}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Y extends Tt{constructor(f,d,M,O){super(f,d),this.urlAfterRedirects=M,this.state=O}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ve extends Tt{constructor(f,d,M,O){super(f,d),this.urlAfterRedirects=M,this.state=O}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ze extends Tt{constructor(f,d,M,O,B){super(f,d),this.urlAfterRedirects=M,this.state=O,this.shouldActivate=B}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class st extends Tt{constructor(f,d,M,O){super(f,d),this.urlAfterRedirects=M,this.state=O}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xt extends Tt{constructor(f,d,M,O){super(f,d),this.urlAfterRedirects=M,this.state=O}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ut{constructor(f){this.route=f}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class yt{constructor(f){this.route=f}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ft{constructor(f){this.snapshot=f}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ot{constructor(f){this.snapshot=f}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Oe{constructor(f){this.snapshot=f}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class C{constructor(f){this.snapshot=f}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S{constructor(f,d,M){this.routerEvent=f,this.position=d,this.anchor=M}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const E="primary";class P{constructor(f){this.params=f||{}}has(f){return Object.prototype.hasOwnProperty.call(this.params,f)}get(f){if(this.has(f)){const d=this.params[f];return Array.isArray(d)?d[0]:d}return null}getAll(f){if(this.has(f)){const d=this.params[f];return Array.isArray(d)?d:[d]}return[]}get keys(){return Object.keys(this.params)}}function F(g){return new P(g)}const ie="ngNavigationCancelingError";function ye(g){const f=Error("NavigationCancelingError: "+g);return f[ie]=!0,f}function je(g,f,d){const M=d.path.split("/");if(M.length>g.length||"full"===d.pathMatch&&(f.hasChildren()||M.lengthM[B]===O)}return g===f}function en(g){return Array.prototype.concat.apply([],g)}function Wt(g){return g.length>0?g[g.length-1]:null}function ct(g,f){for(const d in g)g.hasOwnProperty(d)&&f(g[d],d)}function gt(g){return(0,c.CqO)(g)?g:(0,c.QGY)(g)?(0,ue.D)(Promise.resolve(g)):(0,X.of)(g)}const Me={exact:function de(g,f,d){if(!ge(g.segments,f.segments)||!Zt(g.segments,f.segments,d)||g.numberOfChildren!==f.numberOfChildren)return!1;for(const M in f.children)if(!g.children[M]||!de(g.children[M],f.children[M],d))return!1;return!0},subset:rt},V={exact:function G(g,f){return at(g,f)},subset:function xe(g,f){return Object.keys(f).length<=Object.keys(g).length&&Object.keys(f).every(d=>St(g[d],f[d]))},ignored:()=>!0};function j(g,f,d){return Me[d.paths](g.root,f.root,d.matrixParams)&&V[d.queryParams](g.queryParams,f.queryParams)&&!("exact"===d.fragment&&g.fragment!==f.fragment)}function rt(g,f,d){return wt(g,f,f.segments,d)}function wt(g,f,d,M){if(g.segments.length>d.length){const O=g.segments.slice(0,d.length);return!(!ge(O,d)||f.hasChildren()||!Zt(O,d,M))}if(g.segments.length===d.length){if(!ge(g.segments,d)||!Zt(g.segments,d,M))return!1;for(const O in f.children)if(!g.children[O]||!rt(g.children[O],f.children[O],M))return!1;return!0}{const O=d.slice(0,g.segments.length),B=d.slice(g.segments.length);return!!(ge(g.segments,O)&&Zt(g.segments,O,M)&&g.children[E])&&wt(g.children[E],f,B,M)}}function Zt(g,f,d){return f.every((M,O)=>V[d](g[O].parameters,M.parameters))}class Yt{constructor(f,d,M){this.root=f,this.queryParams=d,this.fragment=M}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=F(this.queryParams)),this._queryParamMap}toString(){return Pt.serialize(this)}}class Ct{constructor(f,d){this.segments=f,this.children=d,this.parent=null,ct(d,(M,O)=>M.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zt(this)}}class In{constructor(f,d){this.path=f,this.parameters=d}get parameterMap(){return this._parameterMap||(this._parameterMap=F(this.parameters)),this._parameterMap}toString(){return yi(this)}}function ge(g,f){return g.length===f.length&&g.every((d,M)=>d.path===f[M].path)}class Se{}class nt{parse(f){const d=new Rn(f);return new Yt(d.parseRootSegment(),d.parseQueryParams(),d.parseFragment())}serialize(f){const d=`/${yn(f.root,!0)}`,M=function hi(g){const f=Object.keys(g).map(d=>{const M=g[d];return Array.isArray(M)?M.map(O=>`${Pn(d)}=${Pn(O)}`).join("&"):`${Pn(d)}=${Pn(M)}`}).filter(d=>!!d);return f.length?`?${f.join("&")}`:""}(f.queryParams);return`${d}${M}${"string"==typeof f.fragment?`#${function bn(g){return encodeURI(g)}(f.fragment)}`:""}`}}const Pt=new nt;function zt(g){return g.segments.map(f=>yi(f)).join("/")}function yn(g,f){if(!g.hasChildren())return zt(g);if(f){const d=g.children[E]?yn(g.children[E],!1):"",M=[];return ct(g.children,(O,B)=>{B!==E&&M.push(`${B}:${yn(O,!1)}`)}),M.length>0?`${d}(${M.join("//")})`:d}{const d=function ne(g,f){let d=[];return ct(g.children,(M,O)=>{O===E&&(d=d.concat(f(M,O)))}),ct(g.children,(M,O)=>{O!==E&&(d=d.concat(f(M,O)))}),d}(g,(M,O)=>O===E?[yn(g.children[E],!1)]:[`${O}:${yn(M,!1)}`]);return 1===Object.keys(g.children).length&&null!=g.children[E]?`${zt(g)}/${d[0]}`:`${zt(g)}/(${d.join("//")})`}}function Jt(g){return encodeURIComponent(g).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Pn(g){return Jt(g).replace(/%3B/gi,";")}function Un(g){return Jt(g).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ri(g){return decodeURIComponent(g)}function Gn(g){return ri(g.replace(/\+/g,"%20"))}function yi(g){return`${Un(g.path)}${function oi(g){return Object.keys(g).map(f=>`;${Un(f)}=${Un(g[f])}`).join("")}(g.parameters)}`}const kn=/^[^\/()?;=#]+/;function Ui(g){const f=g.match(kn);return f?f[0]:""}const Hn=/^[^=?]+/,qt=/^[^]+/;class Rn{constructor(f){this.url=f,this.remaining=f}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ct([],{}):new Ct([],this.parseChildren())}parseQueryParams(){const f={};if(this.consumeOptional("?"))do{this.parseQueryParam(f)}while(this.consumeOptional("&"));return f}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const f=[];for(this.peekStartsWith("(")||f.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),f.push(this.parseSegment());let d={};this.peekStartsWith("/(")&&(this.capture("/"),d=this.parseParens(!0));let M={};return this.peekStartsWith("(")&&(M=this.parseParens(!1)),(f.length>0||Object.keys(d).length>0)&&(M[E]=new Ct(f,d)),M}parseSegment(){const f=Ui(this.remaining);if(""===f&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(f),new In(ri(f),this.parseMatrixParams())}parseMatrixParams(){const f={};for(;this.consumeOptional(";");)this.parseParam(f);return f}parseParam(f){const d=Ui(this.remaining);if(!d)return;this.capture(d);let M="";if(this.consumeOptional("=")){const O=Ui(this.remaining);O&&(M=O,this.capture(M))}f[ri(d)]=ri(M)}parseQueryParam(f){const d=function ht(g){const f=g.match(Hn);return f?f[0]:""}(this.remaining);if(!d)return;this.capture(d);let M="";if(this.consumeOptional("=")){const ee=function fn(g){const f=g.match(qt);return f?f[0]:""}(this.remaining);ee&&(M=ee,this.capture(M))}const O=Gn(d),B=Gn(M);if(f.hasOwnProperty(O)){let ee=f[O];Array.isArray(ee)||(ee=[ee],f[O]=ee),ee.push(B)}else f[O]=B}parseParens(f){const d={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const M=Ui(this.remaining),O=this.remaining[M.length];if("/"!==O&&")"!==O&&";"!==O)throw new Error(`Cannot parse url '${this.url}'`);let B;M.indexOf(":")>-1?(B=M.substr(0,M.indexOf(":")),this.capture(B),this.capture(":")):f&&(B=E);const ee=this.parseChildren();d[B]=1===Object.keys(ee).length?ee[E]:new Ct([],ee),this.consumeOptional("//")}return d}peekStartsWith(f){return this.remaining.startsWith(f)}consumeOptional(f){return!!this.peekStartsWith(f)&&(this.remaining=this.remaining.substring(f.length),!0)}capture(f){if(!this.consumeOptional(f))throw new Error(`Expected "${f}".`)}}class si{constructor(f){this._root=f}get root(){return this._root.value}parent(f){const d=this.pathFromRoot(f);return d.length>1?d[d.length-2]:null}children(f){const d=Mn(f,this._root);return d?d.children.map(M=>M.value):[]}firstChild(f){const d=Mn(f,this._root);return d&&d.children.length>0?d.children[0].value:null}siblings(f){const d=li(f,this._root);return d.length<2?[]:d[d.length-2].children.map(O=>O.value).filter(O=>O!==f)}pathFromRoot(f){return li(f,this._root).map(d=>d.value)}}function Mn(g,f){if(g===f.value)return f;for(const d of f.children){const M=Mn(g,d);if(M)return M}return null}function li(g,f){if(g===f.value)return[f];for(const d of f.children){const M=li(g,d);if(M.length)return M.unshift(f),M}return[]}class Xt{constructor(f,d){this.value=f,this.children=d}toString(){return`TreeNode(${this.value})`}}function $n(g){const f={};return g&&g.children.forEach(d=>f[d.value.outlet]=d),f}class fi extends si{constructor(f,d){super(f),this.snapshot=d,Fn(this,f)}toString(){return this.snapshot.toString()}}function Ht(g,f){const d=function ci(g,f){const ee=new pn([],{},{},"",{},E,f,null,g.root,-1,{});return new ui("",new Xt(ee,[]))}(g,f),M=new ae.X([new In("",{})]),O=new ae.X({}),B=new ae.X({}),ee=new ae.X({}),me=new ae.X(""),Ze=new Qn(M,O,ee,me,B,E,f,d.root);return Ze.snapshot=d.root,new fi(new Xt(Ze,[]),d)}class Qn{constructor(f,d,M,O,B,ee,me,Ze){this.url=f,this.params=d,this.queryParams=M,this.fragment=O,this.data=B,this.outlet=ee,this.component=me,this._futureSnapshot=Ze}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,pt.U)(f=>F(f)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,pt.U)(f=>F(f)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xi(g,f="emptyOnly"){const d=g.pathFromRoot;let M=0;if("always"!==f)for(M=d.length-1;M>=1;){const O=d[M],B=d[M-1];if(O.routeConfig&&""===O.routeConfig.path)M--;else{if(B.component)break;M--}}return function jn(g){return g.reduce((f,d)=>({params:Object.assign(Object.assign({},f.params),d.params),data:Object.assign(Object.assign({},f.data),d.data),resolve:Object.assign(Object.assign({},f.resolve),d._resolvedData)}),{params:{},data:{},resolve:{}})}(d.slice(M))}class pn{constructor(f,d,M,O,B,ee,me,Ze,Dt,an,Lt){this.url=f,this.params=d,this.queryParams=M,this.fragment=O,this.data=B,this.outlet=ee,this.component=me,this.routeConfig=Ze,this._urlSegment=Dt,this._lastPathIndex=an,this._resolve=Lt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=F(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=F(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(M=>M.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ui extends si{constructor(f,d){super(d),this.url=f,Fn(this,d)}toString(){return Jn(this._root)}}function Fn(g,f){f.value._routerState=g,f.children.forEach(d=>Fn(g,d))}function Jn(g){const f=g.children.length>0?` { ${g.children.map(Jn).join(", ")} } `:"";return`${g.value}${f}`}function ln(g){if(g.snapshot){const f=g.snapshot,d=g._futureSnapshot;g.snapshot=d,at(f.queryParams,d.queryParams)||g.queryParams.next(d.queryParams),f.fragment!==d.fragment&&g.fragment.next(d.fragment),at(f.params,d.params)||g.params.next(d.params),function mt(g,f){if(g.length!==f.length)return!1;for(let d=0;dat(d.parameters,f[M].parameters))}(g.url,f.url);return d&&!(!g.parent!=!f.parent)&&(!g.parent||tr(g.parent,f.parent))}function Wn(g,f,d){if(d&&g.shouldReuseRoute(f.value,d.value.snapshot)){const M=d.value;M._futureSnapshot=f.value;const O=function bi(g,f,d){return f.children.map(M=>{for(const O of d.children)if(g.shouldReuseRoute(M.value,O.value.snapshot))return Wn(g,M,O);return Wn(g,M)})}(g,f,d);return new Xt(M,O)}{if(g.shouldAttach(f.value)){const B=g.retrieve(f.value);if(null!==B){const ee=B.route;return ee.value._futureSnapshot=f.value,ee.children=f.children.map(me=>Wn(g,me)),ee}}const M=function Wi(g){return new Qn(new ae.X(g.url),new ae.X(g.params),new ae.X(g.queryParams),new ae.X(g.fragment),new ae.X(g.data),g.outlet,g.component,g)}(f.value),O=f.children.map(B=>Wn(g,B));return new Xt(M,O)}}function Tn(g){return"object"==typeof g&&null!=g&&!g.outlets&&!g.segmentPath}function Xn(g){return"object"==typeof g&&null!=g&&g.outlets}function Si(g,f,d,M,O){let B={};return M&&ct(M,(ee,me)=>{B[me]=Array.isArray(ee)?ee.map(Ze=>`${Ze}`):`${ee}`}),new Yt(d.root===g?f:cr(d.root,g,f),B,O)}function cr(g,f,d){const M={};return ct(g.children,(O,B)=>{M[B]=O===f?d:cr(O,f,d)}),new Ct(g.segments,M)}class nr{constructor(f,d,M){if(this.isAbsolute=f,this.numberOfDoubleDots=d,this.commands=M,f&&M.length>0&&Tn(M[0]))throw new Error("Root segment cannot have matrix parameters");const O=M.find(Xn);if(O&&O!==Wt(M))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class dr{constructor(f,d,M){this.segmentGroup=f,this.processChildren=d,this.index=M}}function Rr(g,f,d){if(g||(g=new Ct([],{})),0===g.segments.length&&g.hasChildren())return fr(g,f,d);const M=function Zi(g,f,d){let M=0,O=f;const B={match:!1,pathIndex:0,commandIndex:0};for(;O=d.length)return B;const ee=g.segments[O],me=d[M];if(Xn(me))break;const Ze=`${me}`,Dt=M0&&void 0===Ze)break;if(Ze&&Dt&&"object"==typeof Dt&&void 0===Dt.outlets){if(!rr(Ze,Dt,ee))return B;M+=2}else{if(!rr(Ze,{},ee))return B;M++}O++}return{match:!0,pathIndex:O,commandIndex:M}}(g,f,d),O=d.slice(M.commandIndex);if(M.match&&M.pathIndex{"string"==typeof B&&(B=[B]),null!==B&&(O[ee]=Rr(g.children[ee],f,B))}),ct(g.children,(B,ee)=>{void 0===M[ee]&&(O[ee]=B)}),new Ct(g.segments,O)}}function wr(g,f,d){const M=g.segments.slice(0,f);let O=0;for(;O{"string"==typeof d&&(d=[d]),null!==d&&(f[M]=wr(new Ct([],{}),0,d))}),f}function pr(g){const f={};return ct(g,(d,M)=>f[M]=`${d}`),f}function rr(g,f,d){return g==d.path&&at(f,d.parameters)}class mr{constructor(f,d,M,O){this.routeReuseStrategy=f,this.futureState=d,this.currState=M,this.forwardEvent=O}activate(f){const d=this.futureState._root,M=this.currState?this.currState._root:null;this.deactivateChildRoutes(d,M,f),ln(this.futureState.root),this.activateChildRoutes(d,M,f)}deactivateChildRoutes(f,d,M){const O=$n(d);f.children.forEach(B=>{const ee=B.value.outlet;this.deactivateRoutes(B,O[ee],M),delete O[ee]}),ct(O,(B,ee)=>{this.deactivateRouteAndItsChildren(B,M)})}deactivateRoutes(f,d,M){const O=f.value,B=d?d.value:null;if(O===B)if(O.component){const ee=M.getContext(O.outlet);ee&&this.deactivateChildRoutes(f,d,ee.children)}else this.deactivateChildRoutes(f,d,M);else B&&this.deactivateRouteAndItsChildren(d,M)}deactivateRouteAndItsChildren(f,d){f.value.component&&this.routeReuseStrategy.shouldDetach(f.value.snapshot)?this.detachAndStoreRouteSubtree(f,d):this.deactivateRouteAndOutlet(f,d)}detachAndStoreRouteSubtree(f,d){const M=d.getContext(f.value.outlet),O=M&&f.value.component?M.children:d,B=$n(f);for(const ee of Object.keys(B))this.deactivateRouteAndItsChildren(B[ee],O);if(M&&M.outlet){const ee=M.outlet.detach(),me=M.children.onOutletDeactivated();this.routeReuseStrategy.store(f.value.snapshot,{componentRef:ee,route:f,contexts:me})}}deactivateRouteAndOutlet(f,d){const M=d.getContext(f.value.outlet),O=M&&f.value.component?M.children:d,B=$n(f);for(const ee of Object.keys(B))this.deactivateRouteAndItsChildren(B[ee],O);M&&M.outlet&&(M.outlet.deactivate(),M.children.onOutletDeactivated(),M.attachRef=null,M.resolver=null,M.route=null)}activateChildRoutes(f,d,M){const O=$n(d);f.children.forEach(B=>{this.activateRoutes(B,O[B.value.outlet],M),this.forwardEvent(new C(B.value.snapshot))}),f.children.length&&this.forwardEvent(new ot(f.value.snapshot))}activateRoutes(f,d,M){const O=f.value,B=d?d.value:null;if(ln(O),O===B)if(O.component){const ee=M.getOrCreateContext(O.outlet);this.activateChildRoutes(f,d,ee.children)}else this.activateChildRoutes(f,d,M);else if(O.component){const ee=M.getOrCreateContext(O.outlet);if(this.routeReuseStrategy.shouldAttach(O.snapshot)){const me=this.routeReuseStrategy.retrieve(O.snapshot);this.routeReuseStrategy.store(O.snapshot,null),ee.children.onOutletReAttached(me.contexts),ee.attachRef=me.componentRef,ee.route=me.route.value,ee.outlet&&ee.outlet.attach(me.componentRef,me.route.value),ln(me.route.value),this.activateChildRoutes(f,null,ee.children)}else{const me=function kr(g){for(let f=g.parent;f;f=f.parent){const d=f.routeConfig;if(d&&d._loadedConfig)return d._loadedConfig;if(d&&d.component)return null}return null}(O.snapshot),Ze=me?me.module.componentFactoryResolver:null;ee.attachRef=null,ee.route=O,ee.resolver=Ze,ee.outlet&&ee.outlet.activateWith(O,Ze),this.activateChildRoutes(f,null,ee.children)}}else this.activateChildRoutes(f,null,M)}}class Ki{constructor(f,d){this.routes=f,this.module=d}}function pi(g){return"function"==typeof g}function Ei(g){return g instanceof Yt}const Li=Symbol("INITIAL_VALUE");function qi(){return(0,Qt.w)(g=>(0,Pe.a)(g.map(f=>f.pipe((0,Xe.q)(1),(0,_t.O)(Li)))).pipe(pe((f,d)=>{let M=!1;return d.reduce((O,B,ee)=>O!==Li?O:(B===Li&&(M=!0),M||!1!==B&&ee!==d.length-1&&!Ei(B)?O:B),f)},Li),(0,fe.h)(f=>f!==Li),(0,pt.U)(f=>Ei(f)?f:!0===f),(0,Xe.q)(1)))}class Kr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Oi,this.attachRef=null}}class Oi{constructor(){this.contexts=new Map}onChildOutletCreated(f,d){const M=this.getOrCreateContext(f);M.outlet=d,this.contexts.set(f,M)}onChildOutletDestroyed(f){const d=this.getContext(f);d&&(d.outlet=null,d.attachRef=null)}onOutletDeactivated(){const f=this.contexts;return this.contexts=new Map,f}onOutletReAttached(f){this.contexts=f}getOrCreateContext(f){let d=this.getContext(f);return d||(d=new Kr,this.contexts.set(f,d)),d}getContext(f){return this.contexts.get(f)||null}}let or=(()=>{class g{constructor(d,M,O,B,ee){this.parentContexts=d,this.location=M,this.resolver=O,this.changeDetector=ee,this.activated=null,this._activatedRoute=null,this.activateEvents=new c.vpe,this.deactivateEvents=new c.vpe,this.attachEvents=new c.vpe,this.detachEvents=new c.vpe,this.name=B||E,d.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const d=this.parentContexts.getContext(this.name);d&&d.route&&(d.attachRef?this.attach(d.attachRef,d.route):this.activateWith(d.route,d.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const d=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(d.instance),d}attach(d,M){this.activated=d,this._activatedRoute=M,this.location.insert(d.hostView),this.attachEvents.emit(d.instance)}deactivate(){if(this.activated){const d=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(d)}}activateWith(d,M){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=d;const ee=(M=M||this.resolver).resolveComponentFactory(d._futureSnapshot.routeConfig.component),me=this.parentContexts.getOrCreateContext(this.name).children,Ze=new Lr(d,me,this.location.injector);this.activated=this.location.createComponent(ee,this.location.length,Ze),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return g.\u0275fac=function(d){return new(d||g)(c.Y36(Oi),c.Y36(c.s_b),c.Y36(c._Vd),c.$8M("name"),c.Y36(c.sBO))},g.\u0275dir=c.lG2({type:g,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),g})();class Lr{constructor(f,d,M){this.route=f,this.childContexts=d,this.parent=M}get(f,d){return f===Qn?this.route:f===Oi?this.childContexts:this.parent.get(f,d)}}let ei=(()=>{class g{}return g.\u0275fac=function(d){return new(d||g)},g.\u0275cmp=c.Xpm({type:g,selectors:[["ng-component"]],decls:1,vars:0,template:function(d,M){1&d&&c._UZ(0,"router-outlet")},directives:[or],encapsulation:2}),g})();function sr(g,f=""){for(let d=0;dYn(M)===f);return d.push(...g.filter(M=>Yn(M)!==f)),d}const Ar={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function w(g,f,d){var M;if(""===f.path)return"full"===f.pathMatch&&(g.hasChildren()||d.length>0)?Object.assign({},Ar):{matched:!0,consumedSegments:[],remainingSegments:d,parameters:{},positionalParamSegments:{}};const B=(f.matcher||je)(d,g,f);if(!B)return Object.assign({},Ar);const ee={};ct(B.posParams,(Ze,Dt)=>{ee[Dt]=Ze.path});const me=B.consumed.length>0?Object.assign(Object.assign({},ee),B.consumed[B.consumed.length-1].parameters):ee;return{matched:!0,consumedSegments:B.consumed,remainingSegments:d.slice(B.consumed.length),parameters:me,positionalParamSegments:null!==(M=B.posParams)&&void 0!==M?M:{}}}function L(g,f,d,M,O="corrected"){if(d.length>0&&function se(g,f,d){return d.some(M=>et(g,f,M)&&Yn(M)!==E)}(g,d,M)){const ee=new Ct(f,function H(g,f,d,M){const O={};O[E]=M,M._sourceSegment=g,M._segmentIndexShift=f.length;for(const B of d)if(""===B.path&&Yn(B)!==E){const ee=new Ct([],{});ee._sourceSegment=g,ee._segmentIndexShift=f.length,O[Yn(B)]=ee}return O}(g,f,M,new Ct(d,g.children)));return ee._sourceSegment=g,ee._segmentIndexShift=f.length,{segmentGroup:ee,slicedSegments:[]}}if(0===d.length&&function Ge(g,f,d){return d.some(M=>et(g,f,M))}(g,d,M)){const ee=new Ct(g.segments,function T(g,f,d,M,O,B){const ee={};for(const me of M)if(et(g,d,me)&&!O[Yn(me)]){const Ze=new Ct([],{});Ze._sourceSegment=g,Ze._segmentIndexShift="legacy"===B?g.segments.length:f.length,ee[Yn(me)]=Ze}return Object.assign(Object.assign({},O),ee)}(g,f,d,M,g.children,O));return ee._sourceSegment=g,ee._segmentIndexShift=f.length,{segmentGroup:ee,slicedSegments:d}}const B=new Ct(g.segments,g.children);return B._sourceSegment=g,B._segmentIndexShift=f.length,{segmentGroup:B,slicedSegments:d}}function et(g,f,d){return(!(g.hasChildren()||f.length>0)||"full"!==d.pathMatch)&&""===d.path}function ut(g,f,d,M){return!!(Yn(g)===M||M!==E&&et(f,d,g))&&("**"===g.path||w(f,g,d).matched)}function mn(g,f,d){return 0===f.length&&!g.children[d]}class gn{constructor(f){this.segmentGroup=f||null}}class dn{constructor(f){this.urlTree=f}}function Vt(g){return W(new gn(g))}function Ln(g){return W(new dn(g))}class Mi{constructor(f,d,M,O,B){this.configLoader=d,this.urlSerializer=M,this.urlTree=O,this.config=B,this.allowRedirects=!0,this.ngModule=f.get(c.h0i)}apply(){const f=L(this.urlTree.root,[],[],this.config).segmentGroup,d=new Ct(f.segments,f.children);return this.expandSegmentGroup(this.ngModule,this.config,d,E).pipe((0,pt.U)(B=>this.createUrlTree(Ii(B),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Q(B=>{if(B instanceof dn)return this.allowRedirects=!1,this.match(B.urlTree);throw B instanceof gn?this.noMatchError(B):B}))}match(f){return this.expandSegmentGroup(this.ngModule,this.config,f.root,E).pipe((0,pt.U)(O=>this.createUrlTree(Ii(O),f.queryParams,f.fragment))).pipe(Q(O=>{throw O instanceof gn?this.noMatchError(O):O}))}noMatchError(f){return new Error(`Cannot match any routes. URL Segment: '${f.segmentGroup}'`)}createUrlTree(f,d,M){const O=f.segments.length>0?new Ct([],{[E]:f}):f;return new Yt(O,d,M)}expandSegmentGroup(f,d,M,O){return 0===M.segments.length&&M.hasChildren()?this.expandChildren(f,d,M).pipe((0,pt.U)(B=>new Ct([],B))):this.expandSegment(f,M,d,M.segments,O,!0)}expandChildren(f,d,M){const O=[];for(const B of Object.keys(M.children))"primary"===B?O.unshift(B):O.push(B);return(0,ue.D)(O).pipe((0,It.b)(B=>{const ee=M.children[B],me=ar(d,B);return this.expandSegmentGroup(f,me,ee,B).pipe((0,pt.U)(Ze=>({segment:Ze,outlet:B})))}),pe((B,ee)=>(B[ee.outlet]=ee.segment,B),{}),function we(g,f){const d=arguments.length>=2;return M=>M.pipe(g?(0,fe.h)((O,B)=>g(O,B,M)):Te.y,Ae(1),d?Ee(f):Fe(()=>new q))}())}expandSegment(f,d,M,O,B,ee){return(0,ue.D)(M).pipe((0,It.b)(me=>this.expandSegmentAgainstRoute(f,d,M,me,O,B,ee).pipe(Q(Dt=>{if(Dt instanceof gn)return(0,X.of)(null);throw Dt}))),Re(me=>!!me),Q((me,Ze)=>{if(me instanceof q||"EmptyError"===me.name){if(mn(d,O,B))return(0,X.of)(new Ct([],{}));throw new gn(d)}throw me}))}expandSegmentAgainstRoute(f,d,M,O,B,ee,me){return ut(O,d,B,ee)?void 0===O.redirectTo?this.matchSegmentAgainstRoute(f,d,O,B,ee):me&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(f,d,M,O,B,ee):Vt(d):Vt(d)}expandSegmentAgainstRouteUsingRedirect(f,d,M,O,B,ee){return"**"===O.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(f,M,O,ee):this.expandRegularSegmentAgainstRouteUsingRedirect(f,d,M,O,B,ee)}expandWildCardWithParamsAgainstRouteUsingRedirect(f,d,M,O){const B=this.applyRedirectCommands([],M.redirectTo,{});return M.redirectTo.startsWith("/")?Ln(B):this.lineralizeSegments(M,B).pipe((0,$t.z)(ee=>{const me=new Ct(ee,{});return this.expandSegment(f,me,d,ee,O,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(f,d,M,O,B,ee){const{matched:me,consumedSegments:Ze,remainingSegments:Dt,positionalParamSegments:an}=w(d,O,B);if(!me)return Vt(d);const Lt=this.applyRedirectCommands(Ze,O.redirectTo,an);return O.redirectTo.startsWith("/")?Ln(Lt):this.lineralizeSegments(O,Lt).pipe((0,$t.z)(An=>this.expandSegment(f,d,M,An.concat(Dt),ee,!1)))}matchSegmentAgainstRoute(f,d,M,O,B){if("**"===M.path)return M.loadChildren?(M._loadedConfig?(0,X.of)(M._loadedConfig):this.configLoader.load(f.injector,M)).pipe((0,pt.U)(Lt=>(M._loadedConfig=Lt,new Ct(O,{})))):(0,X.of)(new Ct(O,{}));const{matched:ee,consumedSegments:me,remainingSegments:Ze}=w(d,M,O);return ee?this.getChildConfig(f,M,O).pipe((0,$t.z)(an=>{const Lt=an.module,An=an.routes,{segmentGroup:On,slicedSegments:fo}=L(d,me,Ze,An),Br=new Ct(On.segments,On.children);if(0===fo.length&&Br.hasChildren())return this.expandChildren(Lt,An,Br).pipe((0,pt.U)(mo=>new Ct(me,mo)));if(0===An.length&&0===fo.length)return(0,X.of)(new Ct(me,{}));const po=Yn(M)===B;return this.expandSegment(Lt,Br,An,fo,po?E:B,!0).pipe((0,pt.U)(br=>new Ct(me.concat(br.segments),br.children)))})):Vt(d)}getChildConfig(f,d,M){return d.children?(0,X.of)(new Ki(d.children,f)):d.loadChildren?void 0!==d._loadedConfig?(0,X.of)(d._loadedConfig):this.runCanLoadGuards(f.injector,d,M).pipe((0,$t.z)(O=>O?this.configLoader.load(f.injector,d).pipe((0,pt.U)(B=>(d._loadedConfig=B,B))):function xn(g){return W(ye(`Cannot load children because the guard of the route "path: '${g.path}'" returned false`))}(d))):(0,X.of)(new Ki([],f))}runCanLoadGuards(f,d,M){const O=d.canLoad;if(!O||0===O.length)return(0,X.of)(!0);const B=O.map(ee=>{const me=f.get(ee);let Ze;if(function Zr(g){return g&&pi(g.canLoad)}(me))Ze=me.canLoad(d,M);else{if(!pi(me))throw new Error("Invalid CanLoad guard");Ze=me(d,M)}return gt(Ze)});return(0,X.of)(B).pipe(qi(),(0,Ot.b)(ee=>{if(!Ei(ee))return;const me=ye(`Redirecting to "${this.urlSerializer.serialize(ee)}"`);throw me.url=ee,me}),(0,pt.U)(ee=>!0===ee))}lineralizeSegments(f,d){let M=[],O=d.root;for(;;){if(M=M.concat(O.segments),0===O.numberOfChildren)return(0,X.of)(M);if(O.numberOfChildren>1||!O.children[E])return W(new Error(`Only absolute redirects can have named outlets. redirectTo: '${f.redirectTo}'`));O=O.children[E]}}applyRedirectCommands(f,d,M){return this.applyRedirectCreatreUrlTree(d,this.urlSerializer.parse(d),f,M)}applyRedirectCreatreUrlTree(f,d,M,O){const B=this.createSegmentGroup(f,d.root,M,O);return new Yt(B,this.createQueryParams(d.queryParams,this.urlTree.queryParams),d.fragment)}createQueryParams(f,d){const M={};return ct(f,(O,B)=>{if("string"==typeof O&&O.startsWith(":")){const me=O.substring(1);M[B]=d[me]}else M[B]=O}),M}createSegmentGroup(f,d,M,O){const B=this.createSegments(f,d.segments,M,O);let ee={};return ct(d.children,(me,Ze)=>{ee[Ze]=this.createSegmentGroup(f,me,M,O)}),new Ct(B,ee)}createSegments(f,d,M,O){return d.map(B=>B.path.startsWith(":")?this.findPosParam(f,B,O):this.findOrReturn(B,M))}findPosParam(f,d,M){const O=M[d.path.substring(1)];if(!O)throw new Error(`Cannot redirect to '${f}'. Cannot find '${d.path}'.`);return O}findOrReturn(f,d){let M=0;for(const O of d){if(O.path===f.path)return d.splice(M),O;M++}return f}}function Ii(g){const f={};for(const M of Object.keys(g.children)){const B=Ii(g.children[M]);(B.segments.length>0||B.hasChildren())&&(f[M]=B)}return function Ji(g){if(1===g.numberOfChildren&&g.children[E]){const f=g.children[E];return new Ct(g.segments.concat(f.segments),f.children)}return g}(new Ct(g.segments,f))}class x{constructor(f){this.path=f,this.route=this.path[this.path.length-1]}}class D{constructor(f,d){this.component=f,this.route=d}}function _(g,f,d){const M=g._root;return Cn(M,f?f._root:null,d,[M.value])}function We(g,f,d){const M=function Et(g){if(!g)return null;for(let f=g.parent;f;f=f.parent){const d=f.routeConfig;if(d&&d._loadedConfig)return d._loadedConfig}return null}(f);return(M?M.module.injector:d).get(g)}function Cn(g,f,d,M,O={canDeactivateChecks:[],canActivateChecks:[]}){const B=$n(f);return g.children.forEach(ee=>{(function mi(g,f,d,M,O={canDeactivateChecks:[],canActivateChecks:[]}){const B=g.value,ee=f?f.value:null,me=d?d.getContext(g.value.outlet):null;if(ee&&B.routeConfig===ee.routeConfig){const Ze=function ji(g,f,d){if("function"==typeof d)return d(g,f);switch(d){case"pathParamsChange":return!ge(g.url,f.url);case"pathParamsOrQueryParamsChange":return!ge(g.url,f.url)||!at(g.queryParams,f.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(g,f)||!at(g.queryParams,f.queryParams);default:return!tr(g,f)}}(ee,B,B.routeConfig.runGuardsAndResolvers);Ze?O.canActivateChecks.push(new x(M)):(B.data=ee.data,B._resolvedData=ee._resolvedData),Cn(g,f,B.component?me?me.children:null:d,M,O),Ze&&me&&me.outlet&&me.outlet.isActivated&&O.canDeactivateChecks.push(new D(me.outlet.component,ee))}else ee&&Ri(f,me,O),O.canActivateChecks.push(new x(M)),Cn(g,null,B.component?me?me.children:null:d,M,O)})(ee,B[ee.value.outlet],d,M.concat([ee.value]),O),delete B[ee.value.outlet]}),ct(B,(ee,me)=>Ri(ee,d.getContext(me),O)),O}function Ri(g,f,d){const M=$n(g),O=g.value;ct(M,(B,ee)=>{Ri(B,O.component?f?f.children.getContext(ee):null:f,d)}),d.canDeactivateChecks.push(new D(O.component&&f&&f.outlet&&f.outlet.isActivated?f.outlet.component:null,O))}class co{}function Do(g){return new s.y(f=>f.error(g))}class y{constructor(f,d,M,O,B,ee){this.rootComponentType=f,this.config=d,this.urlTree=M,this.url=O,this.paramsInheritanceStrategy=B,this.relativeLinkResolution=ee}recognize(){const f=L(this.urlTree.root,[],[],this.config.filter(ee=>void 0===ee.redirectTo),this.relativeLinkResolution).segmentGroup,d=this.processSegmentGroup(this.config,f,E);if(null===d)return null;const M=new pn([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},E,this.rootComponentType,null,this.urlTree.root,-1,{}),O=new Xt(M,d),B=new ui(this.url,O);return this.inheritParamsAndData(B._root),B}inheritParamsAndData(f){const d=f.value,M=xi(d,this.paramsInheritanceStrategy);d.params=Object.freeze(M.params),d.data=Object.freeze(M.data),f.children.forEach(O=>this.inheritParamsAndData(O))}processSegmentGroup(f,d,M){return 0===d.segments.length&&d.hasChildren()?this.processChildren(f,d):this.processSegment(f,d,d.segments,M)}processChildren(f,d){const M=[];for(const B of Object.keys(d.children)){const ee=d.children[B],me=ar(f,B),Ze=this.processSegmentGroup(me,ee,B);if(null===Ze)return null;M.push(...Ze)}const O=A(M);return function r(g){g.sort((f,d)=>f.value.outlet===E?-1:d.value.outlet===E?1:f.value.outlet.localeCompare(d.value.outlet))}(O),O}processSegment(f,d,M,O){for(const B of f){const ee=this.processSegmentAgainstRoute(B,d,M,O);if(null!==ee)return ee}return mn(d,M,O)?[]:null}processSegmentAgainstRoute(f,d,M,O){if(f.redirectTo||!ut(f,d,M,O))return null;let B,ee=[],me=[];if("**"===f.path){const On=M.length>0?Wt(M).parameters:{};B=new pn(M,On,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,De(f),Yn(f),f.component,f,Z(d),re(d)+M.length,Ue(f))}else{const On=w(d,f,M);if(!On.matched)return null;ee=On.consumedSegments,me=On.remainingSegments,B=new pn(ee,On.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,De(f),Yn(f),f.component,f,Z(d),re(d)+ee.length,Ue(f))}const Ze=function a(g){return g.children?g.children:g.loadChildren?g._loadedConfig.routes:[]}(f),{segmentGroup:Dt,slicedSegments:an}=L(d,ee,me,Ze.filter(On=>void 0===On.redirectTo),this.relativeLinkResolution);if(0===an.length&&Dt.hasChildren()){const On=this.processChildren(Ze,Dt);return null===On?null:[new Xt(B,On)]}if(0===Ze.length&&0===an.length)return[new Xt(B,[])];const Lt=Yn(f)===O,An=this.processSegment(Ze,Dt,an,Lt?E:O);return null===An?null:[new Xt(B,An)]}}function h(g){const f=g.value.routeConfig;return f&&""===f.path&&void 0===f.redirectTo}function A(g){const f=[],d=new Set;for(const M of g){if(!h(M)){f.push(M);continue}const O=f.find(B=>M.value.routeConfig===B.value.routeConfig);void 0!==O?(O.children.push(...M.children),d.add(O)):f.push(M)}for(const M of d){const O=A(M.children);f.push(new Xt(M.value,O))}return f.filter(M=>!d.has(M))}function Z(g){let f=g;for(;f._sourceSegment;)f=f._sourceSegment;return f}function re(g){let f=g,d=f._segmentIndexShift?f._segmentIndexShift:0;for(;f._sourceSegment;)f=f._sourceSegment,d+=f._segmentIndexShift?f._segmentIndexShift:0;return d-1}function De(g){return g.data||{}}function Ue(g){return g.resolve||{}}function Bt(g){return[...Object.keys(g),...Object.getOwnPropertySymbols(g)]}function En(g){return(0,Qt.w)(f=>{const d=g(f);return d?(0,ue.D)(d).pipe((0,pt.U)(()=>f)):(0,X.of)(f)})}class Ci extends class ai{shouldDetach(f){return!1}store(f,d){}shouldAttach(f){return!1}retrieve(f){return null}shouldReuseRoute(f,d){return f.routeConfig===d.routeConfig}}{}const ni=new c.OlP("ROUTES");class Tr{constructor(f,d,M,O){this.injector=f,this.compiler=d,this.onLoadStartListener=M,this.onLoadEndListener=O}load(f,d){if(d._loader$)return d._loader$;this.onLoadStartListener&&this.onLoadStartListener(d);const O=this.loadModuleFactory(d.loadChildren).pipe((0,pt.U)(B=>{this.onLoadEndListener&&this.onLoadEndListener(d);const ee=B.create(f);return new Ki(en(ee.injector.get(ni,void 0,c.XFs.Self|c.XFs.Optional)).map(ti),ee)}),Q(B=>{throw d._loader$=void 0,B}));return d._loader$=new oe(O,()=>new Ye.x).pipe(te()),d._loader$}loadModuleFactory(f){return gt(f()).pipe((0,$t.z)(d=>d instanceof c.YKP?(0,X.of)(d):(0,ue.D)(this.compiler.compileModuleAsync(d))))}}class wi{shouldProcessUrl(f){return!0}extract(f){return f}merge(f,d){return f}}function vr(g){throw g}function Bn(g,f,d){return f.parse("/")}function gi(g,f){return(0,X.of)(null)}const Vn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Jr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ii=(()=>{class g{constructor(d,M,O,B,ee,me,Ze){this.rootComponentType=d,this.urlSerializer=M,this.rootContexts=O,this.location=B,this.config=Ze,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ye.x,this.errorHandler=vr,this.malformedUriErrorHandler=Bn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:gi,afterPreactivation:gi},this.urlHandlingStrategy=new wi,this.routeReuseStrategy=new Ci,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=ee.get(c.h0i),this.console=ee.get(c.c2e);const Lt=ee.get(c.R0b);this.isNgZoneEnabled=Lt instanceof c.R0b&&c.R0b.isInAngularZone(),this.resetConfig(Ze),this.currentUrlTree=function ke(){return new Yt(new Ct([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Tr(ee,me,An=>this.triggerEvent(new Ut(An)),An=>this.triggerEvent(new yt(An))),this.routerState=Ht(this.currentUrlTree,this.rootComponentType),this.transitions=new ae.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var d;return null===(d=this.location.getState())||void 0===d?void 0:d.\u0275routerPageId}setupNavigations(d){const M=this.events;return d.pipe((0,fe.h)(O=>0!==O.id),(0,pt.U)(O=>Object.assign(Object.assign({},O),{extractedUrl:this.urlHandlingStrategy.extract(O.rawUrl)})),(0,Qt.w)(O=>{let B=!1,ee=!1;return(0,X.of)(O).pipe((0,Ot.b)(me=>{this.currentNavigation={id:me.id,initialUrl:me.currentRawUrl,extractedUrl:me.extractedUrl,trigger:me.source,extras:me.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Qt.w)(me=>{const Ze=this.browserUrlTree.toString(),Dt=!this.navigated||me.extractedUrl.toString()!==Ze||Ze!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Dt)&&this.urlHandlingStrategy.shouldProcessUrl(me.rawUrl))return uo(me.source)&&(this.browserUrlTree=me.extractedUrl),(0,X.of)(me).pipe((0,Qt.w)(Lt=>{const An=this.transitions.getValue();return M.next(new nn(Lt.id,this.serializeUrl(Lt.extractedUrl),Lt.source,Lt.restoredState)),An!==this.transitions.getValue()?Je.E:Promise.resolve(Lt)}),function Pi(g,f,d,M){return(0,Qt.w)(O=>function Nn(g,f,d,M,O){return new Mi(g,f,d,M,O).apply()}(g,f,d,O.extractedUrl,M).pipe((0,pt.U)(B=>Object.assign(Object.assign({},O),{urlAfterRedirects:B}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ot.b)(Lt=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Lt.urlAfterRedirects})}),function dt(g,f,d,M,O){return(0,$t.z)(B=>function R(g,f,d,M,O="emptyOnly",B="legacy"){try{const ee=new y(g,f,d,M,O,B).recognize();return null===ee?Do(new co):(0,X.of)(ee)}catch(ee){return Do(ee)}}(g,f,B.urlAfterRedirects,d(B.urlAfterRedirects),M,O).pipe((0,pt.U)(ee=>Object.assign(Object.assign({},B),{targetSnapshot:ee}))))}(this.rootComponentType,this.config,Lt=>this.serializeUrl(Lt),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ot.b)(Lt=>{if("eager"===this.urlUpdateStrategy){if(!Lt.extras.skipLocationChange){const On=this.urlHandlingStrategy.merge(Lt.urlAfterRedirects,Lt.rawUrl);this.setBrowserUrl(On,Lt)}this.browserUrlTree=Lt.urlAfterRedirects}const An=new Y(Lt.id,this.serializeUrl(Lt.extractedUrl),this.serializeUrl(Lt.urlAfterRedirects),Lt.targetSnapshot);M.next(An)}));if(Dt&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:An,extractedUrl:On,source:fo,restoredState:Br,extras:po}=me,Sr=new nn(An,this.serializeUrl(On),fo,Br);M.next(Sr);const br=Ht(On,this.rootComponentType).snapshot;return(0,X.of)(Object.assign(Object.assign({},me),{targetSnapshot:br,urlAfterRedirects:On,extras:Object.assign(Object.assign({},po),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=me.rawUrl,me.resolve(null),Je.E}),En(me=>{const{targetSnapshot:Ze,id:Dt,extractedUrl:an,rawUrl:Lt,extras:{skipLocationChange:An,replaceUrl:On}}=me;return this.hooks.beforePreactivation(Ze,{navigationId:Dt,appliedUrlTree:an,rawUrlTree:Lt,skipLocationChange:!!An,replaceUrl:!!On})}),(0,Ot.b)(me=>{const Ze=new Ve(me.id,this.serializeUrl(me.extractedUrl),this.serializeUrl(me.urlAfterRedirects),me.targetSnapshot);this.triggerEvent(Ze)}),(0,pt.U)(me=>Object.assign(Object.assign({},me),{guards:_(me.targetSnapshot,me.currentSnapshot,this.rootContexts)})),function it(g,f){return(0,$t.z)(d=>{const{targetSnapshot:M,currentSnapshot:O,guards:{canActivateChecks:B,canDeactivateChecks:ee}}=d;return 0===ee.length&&0===B.length?(0,X.of)(Object.assign(Object.assign({},d),{guardsResult:!0})):function rn(g,f,d,M){return(0,ue.D)(g).pipe((0,$t.z)(O=>function Qr(g,f,d,M,O){const B=f&&f.routeConfig?f.routeConfig.canDeactivate:null;if(!B||0===B.length)return(0,X.of)(!0);const ee=B.map(me=>{const Ze=We(me,f,O);let Dt;if(function Hi(g){return g&&pi(g.canDeactivate)}(Ze))Dt=gt(Ze.canDeactivate(g,f,d,M));else{if(!pi(Ze))throw new Error("Invalid CanDeactivate guard");Dt=gt(Ze(g,f,d,M))}return Dt.pipe(Re())});return(0,X.of)(ee).pipe(qi())}(O.component,O.route,d,f,M)),Re(O=>!0!==O,!0))}(ee,M,O,g).pipe((0,$t.z)(me=>me&&function gr(g){return"boolean"==typeof g}(me)?function qr(g,f,d,M){return(0,ue.D)(f).pipe((0,It.b)(O=>(0,Le.z)(function yo(g,f){return null!==g&&f&&f(new Ft(g)),(0,X.of)(!0)}(O.route.parent,M),function Zn(g,f){return null!==g&&f&&f(new Oe(g)),(0,X.of)(!0)}(O.route,M),function Ni(g,f,d){const M=f[f.length-1],B=f.slice(0,f.length-1).reverse().map(ee=>function U(g){const f=g.routeConfig?g.routeConfig.canActivateChild:null;return f&&0!==f.length?{node:g,guards:f}:null}(ee)).filter(ee=>null!==ee).map(ee=>(0,K.P)(()=>{const me=ee.guards.map(Ze=>{const Dt=We(Ze,ee.node,d);let an;if(function Fr(g){return g&&pi(g.canActivateChild)}(Dt))an=gt(Dt.canActivateChild(M,g));else{if(!pi(Dt))throw new Error("Invalid CanActivateChild guard");an=gt(Dt(M,g))}return an.pipe(Re())});return(0,X.of)(me).pipe(qi())}));return(0,X.of)(B).pipe(qi())}(g,O.path,d),function _r(g,f,d){const M=f.routeConfig?f.routeConfig.canActivate:null;if(!M||0===M.length)return(0,X.of)(!0);const O=M.map(B=>(0,K.P)(()=>{const ee=We(B,f,d);let me;if(function Di(g){return g&&pi(g.canActivate)}(ee))me=gt(ee.canActivate(f,g));else{if(!pi(ee))throw new Error("Invalid CanActivate guard");me=gt(ee(f,g))}return me.pipe(Re())}));return(0,X.of)(O).pipe(qi())}(g,O.route,d))),Re(O=>!0!==O,!0))}(M,B,g,f):(0,X.of)(me)),(0,pt.U)(me=>Object.assign(Object.assign({},d),{guardsResult:me})))})}(this.ngModule.injector,me=>this.triggerEvent(me)),(0,Ot.b)(me=>{if(Ei(me.guardsResult)){const Dt=ye(`Redirecting to "${this.serializeUrl(me.guardsResult)}"`);throw Dt.url=me.guardsResult,Dt}const Ze=new ze(me.id,this.serializeUrl(me.extractedUrl),this.serializeUrl(me.urlAfterRedirects),me.targetSnapshot,!!me.guardsResult);this.triggerEvent(Ze)}),(0,fe.h)(me=>!!me.guardsResult||(this.restoreHistory(me),this.cancelNavigationTransition(me,""),!1)),En(me=>{if(me.guards.canActivateChecks.length)return(0,X.of)(me).pipe((0,Ot.b)(Ze=>{const Dt=new st(Ze.id,this.serializeUrl(Ze.extractedUrl),this.serializeUrl(Ze.urlAfterRedirects),Ze.targetSnapshot);this.triggerEvent(Dt)}),(0,Qt.w)(Ze=>{let Dt=!1;return(0,X.of)(Ze).pipe(function bt(g,f){return(0,$t.z)(d=>{const{targetSnapshot:M,guards:{canActivateChecks:O}}=d;if(!O.length)return(0,X.of)(d);let B=0;return(0,ue.D)(O).pipe((0,It.b)(ee=>function Gt(g,f,d,M){return function sn(g,f,d,M){const O=Bt(g);if(0===O.length)return(0,X.of)({});const B={};return(0,ue.D)(O).pipe((0,$t.z)(ee=>function tn(g,f,d,M){const O=We(g,f,M);return gt(O.resolve?O.resolve(f,d):O(f,d))}(g[ee],f,d,M).pipe((0,Ot.b)(me=>{B[ee]=me}))),Ae(1),(0,$t.z)(()=>Bt(B).length===O.length?(0,X.of)(B):Je.E))}(g._resolve,g,f,M).pipe((0,pt.U)(B=>(g._resolvedData=B,g.data=Object.assign(Object.assign({},g.data),xi(g,d).resolve),null)))}(ee.route,M,g,f)),(0,Ot.b)(()=>B++),Ae(1),(0,$t.z)(ee=>B===O.length?(0,X.of)(d):Je.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ot.b)({next:()=>Dt=!0,complete:()=>{Dt||(this.restoreHistory(Ze),this.cancelNavigationTransition(Ze,"At least one route resolver didn't emit any value."))}}))}),(0,Ot.b)(Ze=>{const Dt=new xt(Ze.id,this.serializeUrl(Ze.extractedUrl),this.serializeUrl(Ze.urlAfterRedirects),Ze.targetSnapshot);this.triggerEvent(Dt)}))}),En(me=>{const{targetSnapshot:Ze,id:Dt,extractedUrl:an,rawUrl:Lt,extras:{skipLocationChange:An,replaceUrl:On}}=me;return this.hooks.afterPreactivation(Ze,{navigationId:Dt,appliedUrlTree:an,rawUrlTree:Lt,skipLocationChange:!!An,replaceUrl:!!On})}),(0,pt.U)(me=>{const Ze=function Mr(g,f,d){const M=Wn(g,f._root,d?d._root:void 0);return new fi(M,f)}(this.routeReuseStrategy,me.targetSnapshot,me.currentRouterState);return Object.assign(Object.assign({},me),{targetRouterState:Ze})}),(0,Ot.b)(me=>{this.currentUrlTree=me.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(me.urlAfterRedirects,me.rawUrl),this.routerState=me.targetRouterState,"deferred"===this.urlUpdateStrategy&&(me.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,me),this.browserUrlTree=me.urlAfterRedirects)}),((g,f,d)=>(0,pt.U)(M=>(new mr(f,M.targetRouterState,M.currentRouterState,d).activate(g),M)))(this.rootContexts,this.routeReuseStrategy,me=>this.triggerEvent(me)),(0,Ot.b)({next(){B=!0},complete(){B=!0}}),function vt(g){return(0,be.e)((f,d)=>{try{f.subscribe(d)}finally{d.add(g)}})}(()=>{var me;B||ee||this.cancelNavigationTransition(O,`Navigation ID ${O.id} is not equal to the current navigation id ${this.navigationId}`),(null===(me=this.currentNavigation)||void 0===me?void 0:me.id)===O.id&&(this.currentNavigation=null)}),Q(me=>{if(ee=!0,function Be(g){return g&&g[ie]}(me)){const Ze=Ei(me.url);Ze||(this.navigated=!0,this.restoreHistory(O,!0));const Dt=new He(O.id,this.serializeUrl(O.extractedUrl),me.message);M.next(Dt),Ze?setTimeout(()=>{const an=this.urlHandlingStrategy.merge(me.url,this.rawUrlTree),Lt={skipLocationChange:O.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||uo(O.source)};this.scheduleNavigation(an,"imperative",null,Lt,{resolve:O.resolve,reject:O.reject,promise:O.promise})},0):O.resolve(!1)}else{this.restoreHistory(O,!0);const Ze=new J(O.id,this.serializeUrl(O.extractedUrl),me);M.next(Ze);try{O.resolve(this.errorHandler(me))}catch(Dt){O.reject(Dt)}}return Je.E}))}))}resetRootComponentType(d){this.rootComponentType=d,this.routerState.root.component=this.rootComponentType}setTransition(d){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),d))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(d=>{const M="popstate"===d.type?"popstate":"hashchange";"popstate"===M&&setTimeout(()=>{var O;const B={replaceUrl:!0},ee=(null===(O=d.state)||void 0===O?void 0:O.navigationId)?d.state:null;if(ee){const Ze=Object.assign({},ee);delete Ze.navigationId,delete Ze.\u0275routerPageId,0!==Object.keys(Ze).length&&(B.state=Ze)}const me=this.parseUrl(d.url);this.scheduleNavigation(me,M,ee,B)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(d){this.events.next(d)}resetConfig(d){sr(d),this.config=d.map(ti),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(d,M={}){const{relativeTo:O,queryParams:B,fragment:ee,queryParamsHandling:me,preserveFragment:Ze}=M,Dt=O||this.routerState.root,an=Ze?this.currentUrlTree.fragment:ee;let Lt=null;switch(me){case"merge":Lt=Object.assign(Object.assign({},this.currentUrlTree.queryParams),B);break;case"preserve":Lt=this.currentUrlTree.queryParams;break;default:Lt=B||null}return null!==Lt&&(Lt=this.removeEmptyProps(Lt)),function Yi(g,f,d,M,O){if(0===d.length)return Si(f.root,f.root,f,M,O);const B=function ur(g){if("string"==typeof g[0]&&1===g.length&&"/"===g[0])return new nr(!0,0,g);let f=0,d=!1;const M=g.reduce((O,B,ee)=>{if("object"==typeof B&&null!=B){if(B.outlets){const me={};return ct(B.outlets,(Ze,Dt)=>{me[Dt]="string"==typeof Ze?Ze.split("/"):Ze}),[...O,{outlets:me}]}if(B.segmentPath)return[...O,B.segmentPath]}return"string"!=typeof B?[...O,B]:0===ee?(B.split("/").forEach((me,Ze)=>{0==Ze&&"."===me||(0==Ze&&""===me?d=!0:".."===me?f++:""!=me&&O.push(me))}),O):[...O,B]},[]);return new nr(d,f,M)}(d);if(B.toRoot())return Si(f.root,new Ct([],{}),f,M,O);const ee=function Pr(g,f,d){if(g.isAbsolute)return new dr(f.root,!0,0);if(-1===d.snapshot._lastPathIndex){const B=d.snapshot._urlSegment;return new dr(B,B===f.root,0)}const M=Tn(g.commands[0])?0:1;return function lo(g,f,d){let M=g,O=f,B=d;for(;B>O;){if(B-=O,M=M.parent,!M)throw new Error("Invalid number of '../'");O=M.segments.length}return new dr(M,!1,O-B)}(d.snapshot._urlSegment,d.snapshot._lastPathIndex+M,g.numberOfDoubleDots)}(B,f,g),me=ee.processChildren?fr(ee.segmentGroup,ee.index,B.commands):Rr(ee.segmentGroup,ee.index,B.commands);return Si(ee.segmentGroup,me,f,M,O)}(Dt,this.currentUrlTree,d,Lt,null!=an?an:null)}navigateByUrl(d,M={skipLocationChange:!1}){const O=Ei(d)?d:this.parseUrl(d),B=this.urlHandlingStrategy.merge(O,this.rawUrlTree);return this.scheduleNavigation(B,"imperative",null,M)}navigate(d,M={skipLocationChange:!1}){return function Mo(g){for(let f=0;f{const B=d[O];return null!=B&&(M[O]=B),M},{})}processNavigations(){this.navigations.subscribe(d=>{this.navigated=!0,this.lastSuccessfulId=d.id,this.currentPageId=d.targetPageId,this.events.next(new Qe(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,d.resolve(!0)},d=>{this.console.warn(`Unhandled Navigation Error: ${d}`)})}scheduleNavigation(d,M,O,B,ee){var me,Ze,Dt;if(this.disposed)return Promise.resolve(!1);const an=this.transitions.value,Lt=uo(M)&&an&&!uo(an.source),An=an.rawUrl.toString()===d.toString(),On=an.id===(null===(me=this.currentNavigation)||void 0===me?void 0:me.id);if(Lt&&An&&On)return Promise.resolve(!0);let Br,po,Sr;ee?(Br=ee.resolve,po=ee.reject,Sr=ee.promise):Sr=new Promise((Ao,ea)=>{Br=Ao,po=ea});const br=++this.navigationId;let mo;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(O=this.location.getState()),mo=O&&O.\u0275routerPageId?O.\u0275routerPageId:B.replaceUrl||B.skipLocationChange?null!==(Ze=this.browserPageId)&&void 0!==Ze?Ze:0:(null!==(Dt=this.browserPageId)&&void 0!==Dt?Dt:0)+1):mo=0,this.setTransition({id:br,targetPageId:mo,source:M,restoredState:O,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:d,extras:B,resolve:Br,reject:po,promise:Sr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Sr.catch(Ao=>Promise.reject(Ao))}setBrowserUrl(d,M){const O=this.urlSerializer.serialize(d),B=Object.assign(Object.assign({},M.extras.state),this.generateNgRouterState(M.id,M.targetPageId));this.location.isCurrentPathEqualTo(O)||M.extras.replaceUrl?this.location.replaceState(O,"",B):this.location.go(O,"",B)}restoreHistory(d,M=!1){var O,B;if("computed"===this.canceledNavigationResolution){const ee=this.currentPageId-d.targetPageId;"popstate"!==d.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(O=this.currentNavigation)||void 0===O?void 0:O.finalUrl)||0===ee?this.currentUrlTree===(null===(B=this.currentNavigation)||void 0===B?void 0:B.finalUrl)&&0===ee&&(this.resetState(d),this.browserUrlTree=d.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ee)}else"replace"===this.canceledNavigationResolution&&(M&&this.resetState(d),this.resetUrlToCurrentUrlTree())}resetState(d){this.routerState=d.currentRouterState,this.currentUrlTree=d.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,d.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(d,M){const O=new He(d.id,this.serializeUrl(d.extractedUrl),M);this.triggerEvent(O),d.resolve(!1)}generateNgRouterState(d,M){return"computed"===this.canceledNavigationResolution?{navigationId:d,\u0275routerPageId:M}:{navigationId:d}}}return g.\u0275fac=function(d){c.$Z()},g.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac}),g})();function uo(g){return"imperative"!==g}let At=(()=>{class g{constructor(d,M,O,B,ee){this.router=d,this.route=M,this.tabIndexAttribute=O,this.renderer=B,this.el=ee,this.commands=null,this.onChanges=new Ye.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(d){if(null!=this.tabIndexAttribute)return;const M=this.renderer,O=this.el.nativeElement;null!==d?M.setAttribute(O,"tabindex",d):M.removeAttribute(O,"tabindex")}ngOnChanges(d){this.onChanges.next(this)}set routerLink(d){null!=d?(this.commands=Array.isArray(d)?d:[d],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const d={skipLocationChange:kt(this.skipLocationChange),replaceUrl:kt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,d),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:kt(this.preserveFragment)})}}return g.\u0275fac=function(d){return new(d||g)(c.Y36(ii),c.Y36(Qn),c.$8M("tabindex"),c.Y36(c.Qsj),c.Y36(c.SBq))},g.\u0275dir=c.lG2({type:g,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(d,M){1&d&&c.NdJ("click",function(){return M.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),g})(),Rt=(()=>{class g{constructor(d,M,O){this.router=d,this.route=M,this.locationStrategy=O,this.commands=null,this.href=null,this.onChanges=new Ye.x,this.subscription=d.events.subscribe(B=>{B instanceof Qe&&this.updateTargetUrlAndHref()})}set routerLink(d){this.commands=null!=d?Array.isArray(d)?d:[d]:null}ngOnChanges(d){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(d,M,O,B,ee){if(0!==d||M||O||B||ee||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const me={skipLocationChange:kt(this.skipLocationChange),replaceUrl:kt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,me),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:kt(this.preserveFragment)})}}return g.\u0275fac=function(d){return new(d||g)(c.Y36(ii),c.Y36(Qn),c.Y36(Nt.S$))},g.\u0275dir=c.lG2({type:g,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(d,M){1&d&&c.NdJ("click",function(B){return M.onClick(B.button,B.ctrlKey,B.shiftKey,B.altKey,B.metaKey)}),2&d&&c.uIk("target",M.target)("href",M.href,c.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),g})();function kt(g){return""===g||!!g}class Vi{}class yr{preload(f,d){return(0,X.of)(null)}}let Dn=(()=>{class g{constructor(d,M,O,B){this.router=d,this.injector=O,this.preloadingStrategy=B,this.loader=new Tr(O,M,Ze=>d.triggerEvent(new Ut(Ze)),Ze=>d.triggerEvent(new yt(Ze)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,fe.h)(d=>d instanceof Qe),(0,It.b)(()=>this.preload())).subscribe(()=>{})}preload(){const d=this.injector.get(c.h0i);return this.processRoutes(d,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(d,M){const O=[];for(const B of M)if(B.loadChildren&&!B.canLoad&&B._loadedConfig){const ee=B._loadedConfig;O.push(this.processRoutes(ee.module,ee.routes))}else B.loadChildren&&!B.canLoad?O.push(this.preloadConfig(d,B)):B.children&&O.push(this.processRoutes(d,B.children));return(0,ue.D)(O).pipe((0,cn.J)(),(0,pt.U)(B=>{}))}preloadConfig(d,M){return this.preloadingStrategy.preload(M,()=>(M._loadedConfig?(0,X.of)(M._loadedConfig):this.loader.load(d.injector,M)).pipe((0,$t.z)(B=>(M._loadedConfig=B,this.processRoutes(B.module,B.routes)))))}}return g.\u0275fac=function(d){return new(d||g)(c.LFG(ii),c.LFG(c.Sil),c.LFG(c.zs3),c.LFG(Vi))},g.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac}),g})(),xr=(()=>{class g{constructor(d,M,O={}){this.router=d,this.viewportScroller=M,this.options=O,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},O.scrollPositionRestoration=O.scrollPositionRestoration||"disabled",O.anchorScrolling=O.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(d=>{d instanceof nn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=d.navigationTrigger,this.restoredId=d.restoredState?d.restoredState.navigationId:0):d instanceof Qe&&(this.lastId=d.id,this.scheduleScrollEvent(d,this.router.parseUrl(d.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(d=>{d instanceof S&&(d.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(d.position):d.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(d.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(d,M){this.router.triggerEvent(new S(d,"popstate"===this.lastSource?this.store[this.restoredId]:null,M))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return g.\u0275fac=function(d){c.$Z()},g.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac}),g})();const qn=new c.OlP("ROUTER_CONFIGURATION"),zi=new c.OlP("ROUTER_FORROOT_GUARD"),lr=[Nt.Ye,{provide:Se,useClass:nt},{provide:ii,useFactory:function _s(g,f,d,M,O,B,ee={},me,Ze){const Dt=new ii(null,g,f,d,M,O,en(B));return me&&(Dt.urlHandlingStrategy=me),Ze&&(Dt.routeReuseStrategy=Ze),function ko(g,f){g.errorHandler&&(f.errorHandler=g.errorHandler),g.malformedUriErrorHandler&&(f.malformedUriErrorHandler=g.malformedUriErrorHandler),g.onSameUrlNavigation&&(f.onSameUrlNavigation=g.onSameUrlNavigation),g.paramsInheritanceStrategy&&(f.paramsInheritanceStrategy=g.paramsInheritanceStrategy),g.relativeLinkResolution&&(f.relativeLinkResolution=g.relativeLinkResolution),g.urlUpdateStrategy&&(f.urlUpdateStrategy=g.urlUpdateStrategy),g.canceledNavigationResolution&&(f.canceledNavigationResolution=g.canceledNavigationResolution)}(ee,Dt),ee.enableTracing&&Dt.events.subscribe(an=>{var Lt,An;null===(Lt=console.group)||void 0===Lt||Lt.call(console,`Router Event: ${an.constructor.name}`),console.log(an.toString()),console.log(an),null===(An=console.groupEnd)||void 0===An||An.call(console)}),Dt},deps:[Se,Oi,Nt.Ye,c.zs3,c.Sil,ni,qn,[class Bi{},new c.FiY],[class zn{},new c.FiY]]},Oi,{provide:Qn,useFactory:function Xs(g){return g.routerState.root},deps:[ii]},Dn,yr,class ki{preload(f,d){return d().pipe(Q(()=>(0,X.of)(null)))}},{provide:qn,useValue:{enableTracing:!1}}];function Nr(){return new c.PXZ("Router",ii)}let wo=(()=>{class g{constructor(d,M){}static forRoot(d,M){return{ngModule:g,providers:[lr,gs(d),{provide:zi,useFactory:Ro,deps:[[ii,new c.FiY,new c.tp0]]},{provide:qn,useValue:M||{}},{provide:Nt.S$,useFactory:fu,deps:[Nt.lw,[new c.tBr(Nt.mr),new c.FiY],qn]},{provide:xr,useFactory:hu,deps:[ii,Nt.EM,qn]},{provide:Vi,useExisting:M&&M.preloadingStrategy?M.preloadingStrategy:yr},{provide:c.PXZ,multi:!0,useFactory:Nr},[Fo,{provide:c.ip1,multi:!0,useFactory:bo,deps:[Fo]},{provide:ho,useFactory:za,deps:[Fo]},{provide:c.tb,multi:!0,useExisting:ho}]]}}static forChild(d){return{ngModule:g,providers:[gs(d)]}}}return g.\u0275fac=function(d){return new(d||g)(c.LFG(zi,8),c.LFG(ii,8))},g.\u0275mod=c.oAB({type:g}),g.\u0275inj=c.cJS({}),g})();function hu(g,f,d){return d.scrollOffset&&f.setOffset(d.scrollOffset),new xr(g,f,d)}function fu(g,f,d={}){return d.useHash?new Nt.Do(g,f):new Nt.b0(g,f)}function Ro(g){return"guarded"}function gs(g){return[{provide:c.deG,multi:!0,useValue:g},{provide:ni,multi:!0,useValue:g}]}let Fo=(()=>{class g{constructor(d){this.injector=d,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ye.x}appInitializer(){return this.injector.get(Nt.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let M=null;const O=new Promise(me=>M=me),B=this.injector.get(ii),ee=this.injector.get(qn);return"disabled"===ee.initialNavigation?(B.setUpLocationChangeListener(),M(!0)):"enabled"===ee.initialNavigation||"enabledBlocking"===ee.initialNavigation?(B.hooks.afterPreactivation=()=>this.initNavigation?(0,X.of)(null):(this.initNavigation=!0,M(!0),this.resultOfPreactivationDone),B.initialNavigation()):M(!0),O})}bootstrapListener(d){const M=this.injector.get(qn),O=this.injector.get(Dn),B=this.injector.get(xr),ee=this.injector.get(ii),me=this.injector.get(c.z2F);d===me.components[0]&&(("enabledNonBlocking"===M.initialNavigation||void 0===M.initialNavigation)&&ee.initialNavigation(),O.setUpPreloading(),B.init(),ee.resetRootComponentType(me.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return g.\u0275fac=function(d){return new(d||g)(c.LFG(c.zs3))},g.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac}),g})();function bo(g){return g.appInitializer.bind(g)}function za(g){return g.bootstrapListener.bind(g)}const ho=new c.OlP("Router Initializer")}},$e=>{$e($e.s=9563)}]);
\ No newline at end of file